-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
bugSomething isn't workingSomething isn't workingcmorRelated to the CMOR standardRelated to the CMOR standard
Description
The error message which appears in #371 is:
esmvalcore.cmor.check.CMORCheckError: There were errors in variable tas:
height2m: does not exist
in cube:
air_temperature / (K) (time: 1200; latitude: 180; longitude: 288)
Dimension coordinates:
time x - -
latitude - x -
longitude - - x
Scalar coordinates:
height: 2.0 m
description='~2 m standard surface air temperature and surface humidity height'
height: 2.0 m
Attributes:
Conventions: CF-1.7 CMIP-6.0 UGRID-1.0
activity_id: CMIP
branch_method: standard
branch_time_in_child: -674885.0
branch_time_in_parent: 0.0
comment: <null ref>
contact: [email protected]
data_specs_version: 01.00.27
experiment: pre-industrial control
experiment_id: piControl
external_variables: areacella
forcing_index: 1
frequency: monC
further_info_url: https://furtherinfo.es-doc.org/CMIP6.NOAA-GFDL.GFDL-CM4.piControl.none...
grid: atmos data regridded from Cubed-sphere (c96) to 180,288; interpolation...
grid_label: gr1
initialization_index: 1
institution: National Oceanic and Atmospheric Administration, Geophysical Fluid Dynamics...
institution_id: NOAA-GFDL
interp_method: conserve_order2
license: CMIP6 model data produced by NOAA-GFDL is licensed under a Creative Commons...
mip_era: CMIP6
nominal_resolution: 100 km
original_name: tas
parent_activity_id: CMIP
parent_experiment_id: piControl-spinup
parent_mip_era: CMIP6
parent_source_id: GFDL-CM4
parent_time_units: days since 1850-1-1 00:00:00
parent_variant_label: r1i1p1f1
physics_index: 1
product: model-output
realization_index: 1
realm: atmos
references: see further_info_url attribute
source: GFDL-CM4 (2018):
aerosol: interactive
atmos: GFDL-AM4.0.1 (Cubed-sphere...
source_file: /mnt/lustre02/work/bd0854/DATA/ESMValTool2/CMIP6_DKRZ/CMIP/NOAA-GFDL/G...
source_id: GFDL-CM4
source_type: AOGCM
sub_experiment: none
sub_experiment_id: none
table_id: Amon
title: NOAA GFDL GFDL-CM4 model output prepared for CMIP6 pre-industrial cont...
variable_id: tas
variant_info: N/A
variant_label: r1i1p1f1
Cell methods:
mean: area, time
However, the coordinate height is not missing, but appears twice (because it was additionally added by the fix). This can be very confusing.
The reason for this is that iris also raises an CoordinateNotFoundError for cube.coord('coord_name') if 'coord_name' appears more than once in cube:
iris.exceptions.CoordinateNotFoundError: 'Expected to find exactly 1 coordinate, but found 2. They were: ..., ....'
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't workingcmorRelated to the CMOR standardRelated to the CMOR standard