hydromt_sfincs.SfincsModel.set_forcing_1d#

SfincsModel.set_forcing_1d(df_ts: DataFrame | None = None, gdf_locs: GeoDataFrame | None = None, name: str = 'bzs', merge: bool = True)[source]#

Set 1D forcing time series for ‘bzs’ or ‘dis’ boundary conditions.

1D forcing exists of point location gdf_locs and associated timeseries df_ts. If gdf_locs is None, the currently set locations are used.

If merge is True, time series in df_ts with the same index will overwrite existing data. Time series with new indices are added to the existing forcing.

In case the forcing time series have a numeric index, the index is converted to a datetime index assuming the index is in seconds since tref.

Parameters:
  • df_ts (pd.DataFrame, optional) – 1D forcing time series data. If None, dummy forcing data is added.

  • gdf_locs (gpd.GeoDataFrame, optional) – Location of waterlevel boundary points. If None, the currently set locations are used.

  • name (str, optional) – Name of the waterlevel boundary time series file, by default ‘bzs’.

  • merge (bool, optional) – If True, merge with existing forcing data, by default True.