hydromt.io.open_timeseries_from_table#

hydromt.io.open_timeseries_from_table(fn, name=None, index_dim='index', logger=<Logger hydromt.io (WARNING)>, **kwargs)[source]#

Open timeseries csv file and parse to xarray.DataArray. Accepts files with time index on one dimension and numeric location index on the other dimension. In case of string location indices, non-numeric parts are filtered from the location index.

Parameters:
  • fn (path, str) – Path to time series file

  • name (str) – variable name, derived from basename of fn if None.

  • **kwargs – key-word arguments are passed to the reader method

Returns:

da – DataArray

Return type:

xarray.DataArray