roms_tools.SurfaceForcing.from_yaml

roms_tools.SurfaceForcing.from_yaml#

classmethod SurfaceForcing.from_yaml(filepath: str | Path, use_dask: bool = False) SurfaceForcing#

Create an instance of the SurfaceForcing 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:

SurfaceForcing – An instance of the SurfaceForcing class.