pysteps.io.readers.read_timeseries#
- pysteps.io.readers.read_timeseries(inputfns, importer, **kwargs)#
Read a time series of input files using the methods implemented in the
pysteps.io.importersmodule and stack them into a 3d array 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.kwargs (dict) – Optional keyword arguments for the importer.
- Returns:
out – A three-element tuple 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, a three-element tuple containing None values is returned.
- Return type:
tuple