hydromt.workflows.forcing.pet#

hydromt.workflows.forcing.pet(ds: ~xarray.core.dataset.Dataset, temp: ~xarray.core.dataarray.DataArray, dem_model: ~xarray.core.dataarray.DataArray, method: str = 'debruin', press_correction: bool = False, wind_correction: bool = True, wind_altitude: float = 10, reproj_method: str = 'nearest_index', freq: str = None, resample_kwargs: dict = None, logger=<Logger hydromt.workflows.forcing (WARNING)>) DataArray[source]#

Determine reference evapotranspiration.

(lazy reprojection on model grid and resampling of time dimension to frequency).

Parameters:
  • ds (xarray.Dataset) –

    Dataset with climate variables: pressure [hPa], global radiation [W m-2], TOA incident solar radiation [W m-2], wind [m s-1]

    • Required variables: {“temp”, “press” or “press_msl”, “kin”}

    • additional variables for debruin: {“kout”}

    • additional variables for penman-monteith_rh_simple:

      {“temp_min”, “temp_max”, “wind” or “wind_u”+”wind_v”, “rh”}

    • additional variables for penman-monteith_tdew:

      {“temp_min”, “temp_max”, “wind” or “wind_u”+”wind_v”, “temp_dew”}

  • temp (xarray.DataArray) – DataArray with temperature on model grid resolution [°C]

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

  • method ({'debruin', 'makkink', "penman-monteith_rh_simple", "penman-monteith_tdew"}) – Potential evapotranspiration method. if penman-monteith is used, requires the installation of the pyet package.

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

  • press_correction (bool, default False) – If True pressure is corrected, based on elevation data of dem_model

  • wind_altitude (float, optional) – ALtitude of wind speed data. By default 10m.

  • wind_correction (str, optional) – If True wind speed is re-calculated to wind speed at 2 meters using original wind_altitude.

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

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

  • logger – The logger to use.

Returns:

pet_out – reference evapotranspiration

Return type:

xarray.DataArray (lazy)