[Thread Prev][Thread Next][Index]
Re: Reading Ascii data file
You are placing the qualifier BAD in the wrong location. Since ASCII files can
have multiple variables with different bad data values, it doesn't make sense
to add the BAD qualifier to the FILE command.
The correct commands would be:
yes? DEFINE AXIS/X=65E:100E:0.25/UNIT=DEGREE LONGITUDE
yes? DEFINE AXIS/Y=2N:25.25N:0.25/UNIT=DEGREE LATITUDE
yes? DEFINE GRID/X=LONGITUDE/Y=LATITUDE gsurge
yes? FILE/GRID=gsurge/VAR="PS" pksur.dat
yes? SET VARIABLE/BAD=-999 ps
In fact, the set variable command can also be used to add a label and units to
a particular variable.
For more information, refer to the Ferret manual page 184 (SET DATA_SET/EZ, the
same as FILE), and page 202 (SET VARIABLE)
Mark Verschell
On May 19, 10:53am, Mr. P.Chitti Babu wrote:
> Subject: Reading Ascii data file
>
> I am new to Ferret. I am using ferret 4.91 version on sgi. I am placing
> problem in reading a missing value in a ascii data file.
> I am getting this message at Ferret command prompt.
>
> yes? DEFINE AXIS/X=65E:100E:0.25/UNIT=DEGREE LONGITUDE
> yes? DEFINE AXIS/Y=2N:25.25N:0.25/UNIT=DEGREE LATITUDE
> yes? DEFINE GRID/X=LONGITUDE/Y=LATITUDE gsurge
> yes? FILE/GRID=gsurge/BAD=-999/VAR="PS" pksur.dat
> **ERROR: unknown command qualifier: BAD=-999
> any help?
--
Mark Verschell NASA/Goddard Space Flight Center
verschell@neptune.gsfc.nasa.gov Code 970/Lab. for Hydrospheric Proc.
301-614-5669 Fax: 301-614-5666 Greenbelt, MD 20771
Better Living Through Denial
** USQC Certified: 100% Microsoft Free **
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement