Project

General

Profile

cdo renames vertical dimension name

Added by Quentin Errera 12 days ago

Dear,

I have an issue using CDO 2.4.1 where vertical dimensions are renamed and/or added. Here is an example using remapbil but the issue appears with other operators:

cdo -remapbil,r48x91 in.nc out.nc

The input file in.nc is defined on a hybrib_sigma_pressure vertical coordinates using 'lev' as levels at midpoints and 'ilev' as levels at layer interfaces where 'lev' and 'ilev' are dimension and variable names. The output file replaces 'ilev' dimension by 'nhyi', adds the dimension 'nhym' and removes 'ilev' variables. The model-level parameters 'hy{a,b}{i,m}' now depend on 'nhy{i,m}' dimension while other variables still depend on 'lev'.

Why this behaviour and how to prevent this? What is wrong in my input file? Note that using ncrename to rename 'nhym' to 'lev' fails since 'lev' exists in out.nc.

ncrename -O -d nhym,lev out.nc out2.nc ncrename: ERROR Required dimension 'nyam' is not present in input file. HINT: If presence is intended to be optional, then prefix old dimension name with the period character '.', i.e., 'ncrename -d .nyam,lev'. With this syntax ncrename would succeed even when no such dimension is in the file.

Also, is there a way to test if my in.nc file is compliant with CDO? (The in.nc is supposed to be compliant with CF 1.7, at least I tested it years ago - today, the web checker seems to be down.)

Thank you in advance for your support,
Best regards,
Quentin.


Replies (2)

RE: cdo renames vertical dimension name - Added by Uwe Schulzweida 6 days ago

Der Quentin,

Vertical hybrid sigma pressure coordinates are abstracted in CDO during import so that pressure level interpolation can be performed. Unfortunately, the names of the arrays and dimensions are lost in the process. This is primarily because there was no CF conversion available at the time of implementation. Unfortunately, we also don’t have the resources to implement this in a more general way at this point. I don’t have a workaround for this problem, sorry.

Cheers,
Uwe

RE: cdo renames vertical dimension name - Added by Quentin Errera 5 days ago

Dear Uwe,

Thank you for your reply.

Best regards,
Quentin.

    (1-2/2)