pysteps.io.readers.read_timeseries#
- pysteps.io.readers.read_timeseries(inputfns, importer, timestep=None, **kwargs) Dataset | None#
Read a time series of input files using the methods implemented in the
pysteps.io.importersmodule and stack them into a 3d xarray dataset of shape (num_timesteps, height, width).- Parameters:
inputfns (tuple) – Input files returned by a function implemented in the
pysteps.io.archivemodule.importer (function) – A function implemented in the
pysteps.io.importersmodule.timestep (int, optional) – The timestep in seconds, this value is optional if more than 1 inputfns are given.
kwargs (dict) – Optional keyword arguments for the importer.
- Returns:
out – A dataset containing the read data and quality rasters and associated metadata. If an input file name is None, the corresponding precipitation and quality fields are filled with nan values. If all input file names are None or if the length of the file name list is zero, None is returned.
- Return type:
Dataset