hydromt_wflow.workflows.pet#

hydromt_wflow.workflows.pet(pet: ~xarray.core.dataarray.DataArray, ds_like: ~xarray.core.dataset.Dataset, freq: str = 'D', mask_name: str | None = None, chunksize: int | None = None, logger: ~logging.Logger | None = <Logger hydromt_wflow.workflows.forcing (WARNING)>) DataArray[source]#

Resample and reproject PET to the grid of ds_like.

Parameters:
  • pet (xr.DataArray) – PET data array with time as first dimension.

  • ds_like (xr.Dataset) – Dataset with the grid to reproject to.

  • freq (str, optional) – Resampling frequency, by default “D”.

  • mask_name (str, optional) – Name of the mask variable in ds_like, by default None.

  • chunksize (int, optional) – Chunksize for the time dimension for resampling, by default None to use default time chunk.

Returns:

pet_out – Resampled and reprojected PET data array.

Return type:

xr.DataArray