hydromt.workflows.forcing.press#

hydromt.workflows.forcing.press(press, dem_model, lapse_correction=True, freq=None, reproj_method='nearest_index', lapse_rate=-0.0065, resample_kwargs=None, logger=<Logger hydromt.workflows.forcing (WARNING)>)[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

  • logger – The logger to use.

Returns:

press_out – processed pressure forcing

Return type:

xarray.DataArray (lazy)