hydromt_delwaq.DelwaqModel.setup_climate_forcing#

DelwaqModel.setup_climate_forcing(climate_fn: str | Dataset, starttime: str, endtime: str, timestepsecs: int, climate_vars: list = ['temp', 'temp_dew', 'ssr', 'wind10_u', 'wind10_v', 'tcc'], temp_correction: bool = False, dem_forcing_fn: str = None)[source]#

Prepare Delwaq climate fluxes.

Adds model layers:

  • climate dynmap: climate fuxes for climate_vars

  • B7_climate config: names of climate fluxes included in climate.bin

Parameters:
  • climate_fn (str) –

    Climate data

    • Required variables: variables listed in climate_vars

  • startime (str) – Timestamp of the start of Delwaq simulation. Format: YYYY-mm-dd HH:MM:SS

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

  • endtime (str) – Timestamp of the end of Delwaq simulation.Format: YYYY-mm-dd HH:MM:SS

  • climate_vars (str list, optional) – List of climate_vars to consider. By default [“temp”, “temp_dew”, “ssr”, “wind_u”, “wind_v”, “tcc”]

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

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