Open mollymacrae opened 5 months ago
I've updated the tables, so checks should run for all variables now.
We should update the mip_era with ncatted before archiving.
CF checks:
[ ] AERmon/cdnc, Amon/cl and Amon/mc ERROR: (4.3.3): Standard name of variable ps inconsistent with that of lev and lev_bnds for variable ps: standard_name = "air_pressure" needs to be changed to "surface_air_pressure"
[x] ERROR: (4.3.3): formula_terms attribute only allowed on coordinate variables: I believe this can be ignored as the bnds formula_terms matches the variable formula_terms, see discussion: https://cfconventions.org/Data/Trac-tickets/147.html
[x] Omon/volcello ERROR: (2.6.3): Variable volcello named as an external variable must not be present in this file These is no data in the volcello variable but it is still listed in the file
[x] A few 'Invalid standard name' errors were raised for variables with no standard name, these can be ignored.
commands run to make fixes:
changing ps standard_name
find -type f -name 'cdnc_*.nc' -execdir bash -c 'ncatted -O -a standard_name,ps,o,c,surface_air_pressure "$1" "$1"' bash {} \;
find -type f -name 'cl_*.nc' -execdir bash -c 'ncatted -O -a standard_name,ps,o,c,surface_air_pressure "$1" "$1"' bash {} \;
find -type f -name 'mc_*.nc' -execdir bash -c 'ncatted -O -a standard_name,ps,o,c,surface_air_pressure "$1" "$1"' bash {} \;
changing mip_era
find -type f -name '*.nc' -execdir bash -c 'ncatted -O -a mip_era,global,o,c,CMIP6Plus "$1" "$1"' bash {} \;
Super - let's go ahead and fix the above.
For Omon/volcello, I think we can just ignore that. It looks to me like it just duplicates Ofx/volcello.
I have run initial ceda-cc checks on a sample NorESM2-LM ssp370-126aer and the following errors were raised:
[x] Incorrect mip_era For all files, the Global attribute mip_era is 'CMIP6' when it should be 'RAMIP' according to the tables. FAILED:: Global attributes do not match constraints: [('mip_era', 'CMIP6', "['RAMIP']")] this will be fixed by CMIP6Plus metadata compliance scripts
[x] Missing Ofx table The following variable have a table_id = 'Ofx' which is missing from the RAMIP tables so the checks do not run: deptho sftof thkcello volcello areacello
[x] Missing Lmon table The following variable have a table_id = 'Lmon' which is missing from the RAMIP tables so the checks do not run: burntFractionAll
cVeg
fFire
lai
mrsos
npp
tran
[x] Variables not in table The following variables were not found in the Emon and Omon tables: Emon table fFireNat Omon table hfbasin hfbasinpadv hfbasinpmadv hfbasinpmdiff hfx hfy masscello mfo msftmrhompa msftmrho msftmzmpa msftmz thkcello volcello zfullo zhalfo