hydromt_wflow.WflowModel.setup_precip_forcing#

WflowModel.setup_precip_forcing(precip_fn: str | DataArray, precip_clim_fn: str | DataArray | None = None, chunksize: int | None = None, **kwargs) None[source]#

Generate gridded precipitation forcing at model resolution.

Adds model layer:

  • precip: precipitation [mm]

Parameters:
  • precip_fn (str, xarray.DataArray) –

    Precipitation RasterDataset source, see data/forcing_sources.yml.

    • Required variable: ‘precip’ [mm]

    • Required dimension: ‘time’ [timestamp]

  • precip_clim_fn (str, xarray.DataArray, optional) –

    High resolution climatology precipitation RasterDataset source to correct precipitation, see data/forcing_sources.yml.

    • Required variable: ‘precip’ [mm]

    • Required dimension: ‘time’ [cyclic month]

  • 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.