load_dataset
- glotaran.plugin_system.data_io_registration.load_dataset(file_name: str | PathLike[str], format_name: str = None, **kwargs: Any) xr.Dataset | xr.DataArray [source]
Read data from a file to xarray.Dataset or xarray.DataArray.
- Parameters
format_name (str) – Format the file is in, if not provided it will be inferred from the file extension.
**kwargs (Any) – Additional keyword arguments passes to the
read_dataset
implementation of the data io plugin. If you aren’t sure about those useget_dataloader
to get the implementation with the proper help and autocomplete.
- Returns
Data loaded from the file.
- Return type
xr.Dataset|xr.DataArray