ESMCI / ESMCI/cmip7-prep

NorESM cmip7 monthly output failures

Open
#57 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1
Forks
8
Avg merge
1d 16h
Merged PRs (30d)
15

Description

The following failures are occurring for NorESM monthly output:

### ERROR1:
```
ERROR:cmip7_prep.cmor_driver:Exception while processing cltc_tavg-u-hxy-u with dims ['lon', 'lat', 'time']: KeyError("No variable named 'hyam'. Variables on the dataset include ['lev', 'lon', 'lat', 'areacella', 'cltc_tavg-u-hxy-u', 'time', 'time_bounds']")
```
This is because the yaml entry for this variable is
```
cltc_tavg-u-hxy-u:
description: Convective cloud fraction
dims: [lon, lat, time]
formula: CONCLD*100
sources: [model_var: CONCLD]
table: atmos
units: '%'
```
And CONCLD is a 3d variable (lon,lat,lev,time) not a 2d variable.

### ERROR2:
```
ERROR:cmip7_prep.cmor_driver:Exception while processing prw_tavg-u-hxy-u with dims ['lon', 'lat', 'time']: KeyError("No variable named 'hyam'. Variables on the dataset include ['lev', 'lon', 'lat', 'areacella', 'prw_tavg-u-hxy-u', 'time', 'time_bounds']")
```

This is also because the yaml entry for this variable is
```
prw_tavg-u-hxy-u:
description: Vertically integrated mass of water vapour through the atmospheric
column
dims: [lon, lat, time]
sources: [model_var: Q]
table: atmos
units: kg m-2
```
Q is again a 3d variable not a 2d variable.

@oyvindseland @maritsandstad - how do we want to handle these? Should we be using variables or do a vertical integral or vertical sum inside cmip7prep?

### ERROR3:
```
ERROR:cmip7_prep.cmor_driver:Exception while processing tas_tmaxavg-h2m-hxy-u with dims ['lon', 'lat', 'time4', 'height2m']: CMORError("Problem with 'cmor.variable'. Please check the logfile (if defined).")
```
The yaml entry for this variable is
```
tas_tmaxavg-h2m-hxy-u:
description: monthly mean of the daily-maximum near-surface air temperature.
dims: [lon, lat, time4, height2m]
sources: [model_var: TREFMXAV]
table: atmos
units: K
```
The log file gives the following error:
```
! Error: You defined variable 'tas_tmaxavg-h2m-hxy-u' (table atmos) with axis id 'time' which is not part of this variable !according to your table, it says: ( height2m time4 latitude longitude )
```
The problem is that the output time series has a time axis:
```
ncdump -h /nird/home/mvertens/test_cmor/atm.marit/timeseries/n1850.ne16pg3_tn14.noresm3_0_beta13a.Run11-2.2026-04-23.cam.h0a.TREFMXAV.113101-113512.nc
```
results in
```
float TREFMXAV(time, ncol) ;
```
I'm not sure what we want. In looking up what time4 means - I see the following:
`time4 is defined as a time coordinate for instantaneous values that are recorded at a point in time, but where bounds are still provided — essentially a labeled time point with an associated interval, used for certain diagnostics that are neither pure snapshots nor full time-means.`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.