hydromt.model.processes.meteo.precip#

hydromt.model.processes.meteo.precip(precip: DataArray, da_like: DataArray | Dataset, clim: DataArray | None = None, freq: str | Timedelta | None = None, reproj_method: str = 'nearest_index', resample_kwargs: Dict[str, str] | None = None) DataArray[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.

Returns:

p_out – processed precipitation forcing

Return type:

xarray.DataArray (lazy)