hydromt.model.processes.meteo.press#

hydromt.model.processes.meteo.press(press: DataArray, dem_model: DataArray, lapse_correction: bool = True, freq: str | Timedelta | None = None, reproj_method: str = 'nearest_index', lapse_rate: float = -0.0065, resample_kwargs: Dict[str, str] | None = None) DataArray[source]#

Return lazy reprojection of pressure to model grid.

Resample time dimension to frequency.

Parameters:
  • press (xarray.DataArray) – DataArray of pressure forcing [hPa]

  • dem_model (xarray.DataArray) – DataArray of the target resolution and projection, contains elevation data

  • lapse_correction (str, optional) – If True ‘dem_model` is used to correct the pressure with the lapse_rate.

  • freq (str, Timedelta) – output frequency of timedimension

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

  • lapse_rate (float, optional) – lapse rate of temperature [C m-1] (default: -0.0065)

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

Returns:

press_out – processed pressure forcing

Return type:

xarray.DataArray (lazy)