Project

General

Profile

Where is my vertical axis

Added by Quentin Errera about 4 years ago

Dear,

While creating a mask variable with CDO (1.9.5), it seems that the vertical grid is lost in the operation. After, the merging of the newfile and oldfile fails. Here are the operations I am doing:

cdo -expr,'in_vortex=((spv>1.7))?1:0' NC_DP_201912010000.nc nc1.nc
cdo -merge NC_DP_201912010000.nc nc1.nc nc2.nc

This last operation produce the following message:

Warning (scan_hybrid_formulaterms): NetCDF: Variable not found - ap
Warning (scan_hybrid_formulaterms): NetCDF: Variable not found - b
Warning (scan_hybrid_formulaterms): NetCDF: Variable not found - ap_bnds
Warning (scan_hybrid_formulaterms): NetCDF: Variable not found - b_bnds
cdf_def_dim       : ncid = 196608  name = lev  len = 86

Error (cdf_def_dim): NetCDF: String match to name in use

I have attached the input file.

It would ne great to have some support.

Best regards,
Quentin.


Replies (2)

RE: Where is my vertical axis - Added by Ralf Mueller about 4 years ago

hi!

instead of creating a new variable and merge it back into the original file, you can use the aexpr operator instead of expr

hth
ralf

RE: Where is my vertical axis - Added by Quentin Errera about 4 years ago

Ok, indeed, much better.
Thank you,
Quentin.

    (1-2/2)