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={}, logger=<Logger hydromt.workflows.forcing (WARNING)>)[source]#
Lazy reprojection of pressure to model grid and resampling of 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)