data_loader
climatebenchpress.data_loader
Modules:
-
canon– -
datasets– -
download– -
monitor–
Functions:
-
open_downloaded_canonicalized_dataset–Download a given dataset and canonicalize it, i.e. ensure that all the axes names are consistent between different datasets.
-
open_downloaded_tiny_canonicalized_dataset–Same as
open_downloaded_canonicalized_dataset, but returns a subset of the dataset.
open_downloaded_canonicalized_dataset
open_downloaded_canonicalized_dataset(
cls: type[Dataset],
basepath: Path = Path(),
progress: bool = True,
) -> xr.Dataset
Download a given dataset and canonicalize it, i.e. ensure that all the axes names are consistent between different datasets.
| Parameters: |
|---|
| Returns: |
|---|
open_downloaded_tiny_canonicalized_dataset
open_downloaded_tiny_canonicalized_dataset(
cls: type[Dataset],
basepath: Path = Path(),
progress: bool = True,
slices: Optional[dict[str, slice]] = None,
) -> xr.Dataset
Same as open_downloaded_canonicalized_dataset, but returns a subset of the dataset.
These tiny datasets are mainly used for testing purposes.
| Parameters: |
|
|---|
| Returns: |
|---|