climate_ref_core.esgf.cmip6
#
CMIP6 dataset request implementation.
CMIP6Request
#
Bases: IntakeESGFMixin
Represents a CMIP6 dataset request.
These data are fetched from ESGF based on the provided facets.
Source code in packages/climate-ref-core/src/climate_ref_core/esgf/cmip6.py
prefix_to_filename(ds, filename_prefix)
#
Create a filename from a dataset and a prefix.
Optionally includes the time range of the dataset if it has a time dimension.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ds
|
Dataset
|
Dataset |
required |
filename_prefix
|
str
|
Prefix for the filename (includes the different facets of the dataset) |
required |
Returns:
| Type | Description |
|---|---|
str
|
Filename for the dataset |