hydromt.workflows.forcing.precip#
- hydromt.workflows.forcing.precip(precip, da_like, clim=None, freq=None, reproj_method='nearest_index', resample_kwargs={}, logger=<Logger hydromt.workflows.forcing (WARNING)>)[source]#
Lazy reprojection of precipitation to model 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
- Returns:
p_out – processed precipitation forcing
- Return type:
xarray.DataArray (lazy)