load_datasets
- glotaran.utils.io.load_datasets(dataset_mappable: Union[str, pathlib.Path, xarray.core.dataset.Dataset, xarray.core.dataarray.DataArray, Sequence[Union[str, pathlib.Path, xarray.core.dataset.Dataset, xarray.core.dataarray.DataArray]], Mapping[str, Union[str, pathlib.Path, xarray.core.dataset.Dataset, xarray.core.dataarray.DataArray]]]) glotaran.utils.io.DatasetMapping [source]
Load multiple datasets into a mapping (convenience function).
This is used for
file_loadable_field
of a dataset mapping e.g. inScheme
- Parameters
dataset_mappable (DatasetMappable) – Single dataset/file path to a dataset or sequence or mapping of it.
- Returns
Mapping of dataset with string keys, where datasets hare ensured to have the
source_path
attr.- Return type