hydromt.readers.open_timeseries_from_table#
- hydromt.readers.open_timeseries_from_table(path: str | Path, *, name: str | None = None, index_dim: str = 'index', filesystem: AbstractFileSystem | None = None, **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:
path (
path,str) – Path or URI of the time series filename (
str) – variable name, derived from basename of path if None.index_dim – the dimension to index on.
filesystem (
AbstractFileSystem | None, optional) – fsspec filesystem to read the file from. None (default) means the local filesystem.**kwargs – key-word arguments are passed to the reader method
- Returns:
da – DataArray
- Return type: