Project

General

Profile

'cdo showlevel' shows latitudes rather than LEVELs

Added by Shizhu Wang almost 6 years ago

Hi,I have a file named temp.nc, and I want to extract the SST from it.

Firstly, I checked the dimension of the temp variable:

***********************************************
ncdump -c temp.nc

dimensions:
    lon = 360 ;
    lat = 180 ;
    depth = 60 ;
    time = 12 ;
    time_yr = 12 ;
...
...

lat = -89.5, -88.5,..., 88.5, 89.5 ;

 depth = 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 115, 130, 150, 180, 220, 
    270, 330, 400, 480, 570, 670, 780, 900, 1030, 1160, 1300, 1450, 1600, 
    1750, 1900, 2050, 2200, 2350, 2500, 2650, 2800, 2950, 3100, 3250, 3400, 
    3550, 3700, 3850, 4000, 4150, 4300, 4450, 4600, 4750, 4900, 5050, 5200, 
    5350, 5500, 5650, 5800, 5950, 6100, 6250 ;

***********************************************
Then I know the depth of vertical levels (i.e.,from 0 to 6250).
Then I use 'cdo sellevel' to extract SST data:

***********************************************
cdo sellevel,0 temp.nc sst.nc

cdo sellevel (Warning): Level 0 not found!

cdo sellevel (Abort): No variables selected!
***********************************************

I don't know why this happened. But to find out why, I rechecked the vertical levels:

***********************************************
cdo showlevel temp.nc

-89.5 -88.5 -87.5 ... 86.5 87.5 88.5 89.5

***********************************************
It seems 'cdo showlevel' didn't show the vertical levels; instead, it showed the latitudes.

I don't know why this happened. Any suggestions are appreciated :)

Best,
Shizhu


Replies (1)

RE: 'cdo showlevel' shows latitudes rather than LEVELs - Added by Ralf Mueller almost 6 years ago

Hi!

please upload the input file. I cannot reproduce this with my own data.

thx
ralf

    (1-1/1)