hydromt.workflows.forcing.precip#

hydromt.workflows.forcing.precip(precip, da_like, clim=None, freq=None, reproj_method='nearest_index', resample_kwargs=None, logger=<Logger hydromt.workflows.forcing (WARNING)>)[source]#

Return the lazy reprojection of precipitation to model.

Applies the projection to the grid and resampling of time dimension to frequency.

Parameters:
  • precip (xarray.DataArray) – DataArray of precipitation forcing [mm]

  • da_like (xarray.DataArray or Dataset) – DataArray of the target resolution and projection.

  • clim (xarray.DataArray) – DataArray of monthly precipitation climatology. If provided this is used to to correct the precip downscaling.

  • freq (str, Timedelta) – output frequency of time dimension

  • reproj_method (str, optional) – Method for spatital reprojection of precip, by default ‘nearest_index’

  • resample_kwargs – Additional key-word arguments (e.g. label, closed) for time resampling method

  • kwargs – Additional arguments to pass through to underlying methods.

  • logger – The logger to use

Returns:

p_out – processed precipitation forcing

Return type:

xarray.DataArray (lazy)