hydromt_sfincs.read_timeseries

hydromt_sfincs.read_timeseries(fn: Union[str, Path], tref: Union[str, datetime]) DataFrame[source]

Read ascii timeseries files such as sfincs.bzs, sfincs.dis and sfincs.precip. The first column (time index) is parsed to datetime format assumming it represents seconds from tref.

Parameters
  • fn (str, Path) – Path to output timeseries file.

  • tref (datetime.datetime, str) – Datetime of tref, string in “%Y%m%d %H%M%S” format.

Returns

df – Dataframe of timeseries with parsed time index.

Return type

pd.DataFrame