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 or parquet 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.

  • index_dim – the dimension to index on.

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

  • logger – The logger to be used. If none probided, the default will be used.

Returns:

da – DataArray

Return type:

xarray.DataArray