Project

General

Profile

Plot in CDO - Temperature & Pressure Levels

Added by Sandra BG about 4 years ago

Hi everyone,

I'm very (very) new to CDO and having a hard time to create a simple plot with my dataset which looks like this: (please note this dataset represents a single grid point and time)

-1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter ID
1 : 2009-01-23 00:00:00 50000 1 0 : -21.054 : 130.128
2 : 2009-01-23 00:00:00 55000 1 0 : -16.401 : 130.128
3 : 2009-01-23 00:00:00 60000 1 0 : -12.415 : 130.128
4 : 2009-01-23 00:00:00 65000 1 0 : -8.6240 : 130.128
5 : 2009-01-23 00:00:00 70000 1 0 : -5.7721 : 130.128
6 : 2009-01-23 00:00:00 75000 1 0 : -2.3124 : 130.128
7 : 2009-01-23 00:00:00 77500 1 0 : -1.4889 : 130.128
8 : 2009-01-23 00:00:00 80000 1 0 : -0.66294 : 130.128
9 : 2009-01-23 00:00:00 82500 1 0 : -0.94236 : 130.128
10 : 2009-01-23 00:00:00 85000 1 0 : 0.90017 : 130.128
11 : 2009-01-23 00:00:00 87500 1 0 : 2.3771 : 130.128
12 : 2009-01-23 00:00:00 90000 1 0 : 4.1770 : 130.128
13 : 2009-01-23 00:00:00 92500 1 0 : 5.2614 : 130.128
14 : 2009-01-23 00:00:00 95000 1 0 : 6.6635 : 130.128
15 : 2009-01-23 00:00:00 97500 1 0 : 8.1156 : 130.128
16 : 2009-01-23 00:00:00 100000 1 0 : 9.4816 : 130.128

So to begin I just want to plot temperatures in function of pressure levels. However, when I try to use the graph operator it tells me that "Variable has more than one level" ...which is right :) and that's what I want, but maybe it doesn't work and I need to precise some parameters.

In case this can help, this is what I've tried:

cdo -graph 2009_SION.NC 2009_SION_graph
cdo graph,ymin=50000,ymax=100000,stat="TRUE",sigma=6.0,obsv="TRUE' obsvfile 2009_SION.NC 2009_SION_graph

Thanks in advance for your help!

Sanda


Replies (1)

RE: Plot in CDO - Temperature & Pressure Levels - Added by Ralf Mueller about 4 years ago

hi Sandra!

the graph operators is for timeseries, only. you need something more general. I guess I'd go for XArray or good old ncview (in case you just want a simple overview what the data is about and not beautiful plot).

hth
ralf

    (1-1/1)