hydromt_delwaq.workflows.forcing.climate_forcing#

hydromt_delwaq.workflows.forcing.climate_forcing(ds: Dataset, ds_model: Dataset, timestepsecs: int, temp_correction: bool = False, dem_forcing: DataArray = None) Dataset[source]#

Prepare Delwaq climate fluxes.

Parameters:
  • ds (xr.Dataset) –

    Climate data

    • Required variables: variables listed in climate_vars

  • ds_model (xr.Dataset) –

    Dataset containing the model grid

    • Required variables: [mask]

    • Optional variables for tempearture correction: [elevtn]

  • timestepsecs (int) – Delwaq model timestep in seconds.

  • temp_correction (bool, optional) – If True temperature are corrected using elevation lapse rate, by default False.

  • dem_forcing (xr.DataArray, default None) – Elevation data source with coverage of entire meteorological forcing domain. If temp_correction is True and dem_forcing is provided this is used in combination with elevation at model resolution to correct the temperature.

Returns:

ds_out – Dataset containing the processed climate data.

Return type:

xr.Dataset