esmvalcore.io.intake_esgf#
Access data using intake-esgf.
Note
It is highly recommended that you take a moment to
configure intake-esgf before using it
with ESMValCore. Make sure to set local_cache to a path where
it can store downloaded files and if (some) ESGF data is already
available on your system, point esg_dataroot to it. If you are
missing certain search results, you may want to choose a different
index node for searching the ESGF.
Run the command esmvaltool config copy data-intake-esgf.yml to update
your configuration to use this module. This will
create a file with the following content in your configuration directory:
# Read CMIP and obs4MIPs data from ESGF using intake-esgf.
projects:
CMIP7:
data:
intake-esgf:
type: esmvalcore.io.intake_esgf.IntakeESGFDataSource
# Use a lower priority than for esmvalcore.io.local.LocalDataSource
# to avoid searching ESGF if the data is available locally and
# the setting `search_data: quick` is used.
priority: 5
facets:
activity: "activity_id"
branding_suffix: "variable_branding_suffix"
dataset: "source_id"
ensemble: "variant_label"
exp: "experiment_id"
frequency: "frequency"
grid: "grid_label"
institute: "institution_id"
mip: "realm"
project: "project"
region: "region"
short_name: "variable_id"
CMIP6:
data:
intake-esgf:
type: esmvalcore.io.intake_esgf.IntakeESGFDataSource
priority: 5
facets:
activity: "activity_id"
dataset: "source_id"
ensemble: "member_id"
exp: "experiment_id"
grid: "grid_label"
institute: "institution_id"
mip: "table_id"
project: "project"
short_name: "variable_id"
CMIP6Plus:
data:
intake-esgf:
type: esmvalcore.io.intake_esgf.IntakeESGFDataSource
priority: 5
facets:
activity: "activity_id"
dataset: "source_id"
ensemble: "member_id"
exp: "experiment_id"
grid: "grid_label"
institute: "institution_id"
mip: "table_id"
project: "project"
short_name: "variable_id"
CMIP5:
data:
intake-esgf:
type: esmvalcore.io.intake_esgf.IntakeESGFDataSource
priority: 5
facets:
dataset: "model"
ensemble: "ensemble"
exp: "experiment"
frequency: "time_frequency"
institute: "institute"
mip: "cmor_table"
product: "product"
project: "project"
short_name: "variable"
values:
dataset:
"ACCESS1-0": "ACCESS1.0"
"ACCESS1-3": "ACCESS1.3"
"bcc-csm1-1": "BCC-CSM1.1"
"bcc-csm1-1-m": "BCC-CSM1.1(m)"
"CESM1-BGC": "CESM1(BGC)"
"CESM1-CAM5": "CESM1(CAM5)"
"CESM1-CAM5-1-FV2": "CESM1(CAM5.1,FV2)"
"CESM1-FASTCHEM": "CESM1(FASTCHEM)"
"CESM1-WACCM": "CESM1(WACCM)"
"CSIRO-Mk3-6-0": "CSIRO-Mk3.6.0"
"fio-esm": "FIO-ESM"
"GFDL-CM2p1": "GFDL-CM2.1"
"inmcm4": "INM-CM4"
"MRI-AGCM3-2H": "MRI-AGCM3.2H"
"MRI-AGCM3-2S": "MRI-AGCM3.2S"
CMIP3:
data:
intake-esgf:
type: esmvalcore.io.intake_esgf.IntakeESGFDataSource
priority: 5
facets:
dataset: "model"
ensemble: "ensemble"
exp: "experiment"
frequency: "time_frequency"
project: "project"
short_name: "variable"
CORDEX-CMIP6:
data:
intake-esgf:
type: esmvalcore.io.intake_esgf.IntakeESGFDataSource
priority: 5
facets:
activity: "activity_id"
dataset: "source_id"
domain: "domain_id"
driver: "driving_source_id"
ensemble: "driving_variant_label"
exp: "driving_experiment_id"
frequency: "frequency"
institute: "institution_id"
project: "project"
rcm_version: "version_realization"
short_name: "variable_id"
obs4MIPs:
data:
intake-esgf-v2:
type: esmvalcore.io.intake_esgf.IntakeESGFDataSource
priority: 5
facets:
dataset: "source_id"
frequency: "frequency"
grid: "grid_label"
institute: "institution_id"
project: "project"
short_name: "variable_id"
# TODO: Add support for older ODS V1.0 obs4MIPs (CMIP5 style) data to intake-esgf
# intake-esgf-v1:
# type: esmvalcore.io.intake_esgf.IntakeESGFDataSource
# facets:
# dataset: "source_id"
# frequency: "time_frequency"
# institute: "institute"
# project: "project"
# short_name: "variable"
Classes:
|
Data source that can be used to find data using intake-esgf. |
|
A dataset that can be used to load data found using intake-esgf. |
- class esmvalcore.io.intake_esgf.IntakeESGFDataSource(name: str, project: str, priority: int, facets: dict[str, str], values: dict[str, dict[str, str]] = <factory>)[source]#
Bases:
DataSourceData source that can be used to find data using intake-esgf.
Attributes:
The intake-esgf catalog used to find data.
A string containing debug information when no data is found.
Mapping between the ESMValCore and ESGF facet names.
A name identifying the data source.
The priority of the data source.
The project that the data source provides data for.
Facets that can be used to search for data.
Mapping between the ESMValCore and ESGF facet values.
Methods:
find_data(**facets)Find data.
- Parameters:
- catalog: ESGFCatalog#
The intake-esgf catalog used to find data.
- find_data(**facets: FacetValue) list[IntakeESGFDataset][source]#
Find data.
- Parameters:
**facets (FacetValue) – Find data matching these facets.
- Returns:
A list of data elements that have been found.
- Return type:
- class esmvalcore.io.intake_esgf.IntakeESGFDataset(name: str, facets: Facets, catalog: intake_esgf.ESGFCatalog)[source]#
Bases:
DataElementA dataset that can be used to load data found using intake-esgf.
Attributes:
Attributes are key-value pairs describing the data.
The intake-esgf catalog describing this data.
Facets are key-value pairs that were used to find this data.
A unique name identifying the data.
Methods:
- Parameters:
name (str)
facets (Facets)
catalog (intake_esgf.ESGFCatalog)
- catalog: intake_esgf.ESGFCatalog#
The intake-esgf catalog describing this data.
- facets: Facets#
Facets are key-value pairs that were used to find this data.
- to_iris() iris.cube.CubeList[source]#
Load the data as Iris cubes.
- Returns:
The loaded data.
- Return type: