hydromt_delft3dfm.workflows.compute_timeseries_meteo_forcings#

hydromt_delft3dfm.workflows.compute_timeseries_meteo_forcings(df_meteo: DataFrame, meteo_type: str, meteo_unit: str) DataArray[source]#

Compute spatially uniform meteo forcing from DataFrame into a DataArray.

This function assumes that model-specific validation and preprocessing have already been handled by the setup method.

Parameters:
  • df_meteo (pd.DataFrame) – DataFrame containing a time column and one column matching meteo_type.

  • meteo_type (str, optional) – Type of meteorological forcing to prepare.

  • meteo_unit (str, optional) – Unit corresponding to meteo_type.

Returns:

da_meteo – DataArray containing the meteo time series values.

Return type:

xr.DataArray