Where is my vertical axis
Added by Quentin Errera almost 5 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.
NC_DP_201912010000.nc (25.4 MB) NC_DP_201912010000.nc |
Replies (2)
RE: Where is my vertical axis - Added by Ralf Mueller almost 5 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 almost 5 years ago
Ok, indeed, much better.
Thank you,
Quentin.