roms_tools.InitialConditions.from_yaml#
- classmethod InitialConditions.from_yaml(filepath: str | Path, use_dask: bool = False) InitialConditions#
Create an instance of the InitialConditions class from a YAML file.
- Parameters:
filepath (Union[str, Path]) – The path to the YAML file from which the parameters will be read.
use_dask (bool, optional) – Indicates whether to use dask for processing. If True, data is processed with dask; if False, data is processed eagerly. Defaults to False.
- Returns:
InitialConditions – An instance of the InitialConditions class.