wradlib.io.xarray.open_radar_mfdataset¶
- wradlib.io.xarray.open_radar_mfdataset(paths, **kwargs)¶
Open multiple radar files as a single radar sweep dataset or radar volume.
This function uses
xarray.open_mfdatasetunder the hood. Please refer for details to the documentation ofxarray.open_mfdataset. Needsdaskpackage to be installed [1].- Parameters:
paths (
stror sequence) – Either a string glob in the form"path/to/my/files/*"or an explicit list of files to open. Paths can be given as strings or as pathlib Paths. If concatenation along more than one dimension is desired, thenpathsmust be a nested list-of-lists (seexarray.combine_nestedfor details). (A string glob will be expanded to a 1-dimensional list.)chunks (
intordict, optional) – Dictionary with keys given by dimension names and values given by chunk sizes. In general, these should divide the dimensions of each dataset. If int, chunk each dimension bychunks. By default, chunks will be chosen to load entire input files into memory at once. This has a major impact on performance: please see the full documentation for more details [2].concat_dim (
str, orlistofstr,DataArray,IndexorNone, optional) – Dimensions to concatenate files along. You only need to provide this argument ifcombine='by_coords', and if any of the dimensions along which you want to concatenate is not a dimension in the original datasets, e.g., if you want to stack a collection of 2D arrays along a third dimension. Setconcat_dim=[..., None, ...]explicitly to disable concatenation along a particular dimension. Default is None, which for a 1D list of filepaths is equivalent to opening the files separately and then merging them withxarray.merge.combine (
{"by_coords", "nested"}, optional) – Whetherxarray.combine_by_coordsorxarray.combine_nestedis used to combine all the data. Default is to usexarray.combine_by_coords.engine (
strorxarray.backends.BackendEntrypoint) – Engine to use when reading files, eg.wradlib-odimorwradlib.io.backends.OdimBackendEntryPoint.**kwargs (optional) – Additional arguments passed on to
xarray.open_mfdataset.
- Returns:
dataset (
xarray.DatasetorRadarVolume)
See also
References