hydromt_delft3dfm.DFlowFMModel.setup_spatial_forcing#
- DFlowFMModel.setup_spatial_forcing(meteo_fn: str | DataArray, variables: List[str], chunksize: int | None = None) None[source]#
Generate gridded spatial netcdf forcing.
Generate gridded spatial netcdf forcing for the temporal and spatial extent of the model.
- Parameters:
meteo_fn (str, xarray.DataArray) – Meteo RasterDataset source.
variables (str, list of str) – The variables to select from the meteo_fn. Variable names should be present in the keys/values of the translation dictionary in
translate_utils(), which is used to translate them to Delft3D FM quantity names. More information is available in the documentation of that module.chunksize (int, optional) – Chunksize on time dimension for processing data (not for saving to disk!). If None the data chunksize is used, this can however be optimized for large/small catchments. By default None.