[Thread Prev][Thread Next][Index]

Re: how to list the axis values?



Hello Emanuele,

To get the axis info, you need to tell ferret the variable name too.
The following works (with coads_climatology.cdf).  Sorry about the
wrapped lines, but I guess you'll see the solution :).

yes? use coads_climatology
yes? sh dat
     currently SET data sets:
    1> /usr/local/ferret/fer_dsets/data/coads_climatology.cdf
(default)
 name     title                             I         J         K
L
 SST      SEA SURFACE TEMPERATURE          1:180     1:90      ...
1:12
 AIRT     AIR TEMPERATURE                  1:180     1:90      ...
1:12
 SPEH     SPECIFIC HUMIDITY                1:180     1:90      ...
1:12
 WSPD     WIND SPEED                       1:180     1:90      ...
1:12
 UWND     ZONAL WIND                       1:180     1:90      ...
1:12
 VWND     MERIDIONAL WIND                  1:180     1:90      ...
1:12
 SLP      SEA LEVEL PRESSURE               1:180     1:90      ...
1:12
 
yes? list /i=1:3 x[g=sst]  ! <======== (return the x axis of sst)
             X
             axis COADSX
             DATA SET:
/usr/local/ferret/fer_dsets/data/coads_climatology.cdf
 21E   / 1:  21.00
 23E   / 2:  23.00
 25E   / 3:  25.00
yes? 

Regards, Shankar.

D. Shankar                           Ph. (O): [91](832) 22 6253 * 4312/4400
Physical Oceanography Division,                         22 1322 * 4312/4400
National Institute of Oceanography,      (R): [91](832) 23 8208      
Dona Paula,                          Fax    : [91](832) 22 3340/9102
Goa 403 004,                         email  : shankar@darya.nio.org
India.                                        shankar@csnio.ren.nic.in

On Mon, 11 Mar 2002, emanuele lombardi wrote:

> 
> Dear Ferreters,
> I'm sorry to annoy you asking a very simple question, but I'm in troubles.
> 
> 	I use netcdf files and, from Ferret, I'm not able to list the values of 
> the axis
> 	(coordinate variables in netcdf language).
> 
> ncdump -v COADSX coads_climatology.cdf
> 	returns all the Longitude values of the netcdf file.
> 
> 	Once in ferret I do
> yes? use coads_climatology.cdf
> 	but then I'm not able to know, let's say, the value of the 10th longitude. 
> If I  type
> yes? list/I=10 X
>               VARIABLE : X
>                          axis ABSTRACT
>               X        : 10
>            10.00
> 	As you see i get a wrong value (10.00 is simply the "real" of 10) since 
> the wanted longitude is 39 degrees_east
> 	If I type as follow I get another error:
> yes? list/I=10 COADSX
>   **ERROR: variable unknown or not in data set: COADSX
> 
> For sure I'm missing a very basic info, so I would really appreciate your help.
> 
> Thank you very much from Italy,
> Emanuele Lombardi	
> 



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement