[Thread Prev][Thread Next][Index]

Re: [ferret_users] Reading ascii files



Hi Paulo,
The SHOW DATA command only goes and looks at the grid of the data.  It does not try to read any of the data; that happens only when you issue a command which loads data, in this case the CONTOUR command.

You are missing the /COLUMNS qualifier on the file command, so when you issue the CONTOUR command, only the firs column of each record is being read.

In the section on reading ascii data, look at the example 4b) under  Example 4—1 variable, 2 dimensions

   4b) If the file in the above example has, instead, 4 values per record: 

   3.1   2.6   5.4   4.6
   3.5   6.1  . . . 

   then add /COLUMNS=4 to the FILE command: 

  yes? FILE/VAR=height/COLUMNS=4/GRID=gplants greenhouse_plants.dat 


Luiz Paulo wrote:
Hi all,

I have a two dimensional one variable ascii file (matrix called vel_amp1.dat). The file has the following dimensions (901 lines x  1081 columns). Following manual I did the following

*************************************
DEFINE AXIS/X=1:1081:1 xlon
DEFINE AXIS/Y=1:901:1 ylat
DEFINE GRID/X=xlon/Y=ylat vel_amp
FILE/VAR=height/GRID=vel_amp vel_amp1.dat
**********************************************

When I execute the show data command I got the following:

*************************************************************************
 currently SET data sets:
    1> .\vel_amp1.dat  (default)
 name     title                             I            J         K         L
 HEIGHT   HEIGHT                1:1081    1:901     ...       ...
**************************************************************************
When tried to contour the height variable I've got the following error message:

CONTOUR height

**********************************************************************************
yes? contour height
 **ERROR: dimensions improperly specified: must be a 2D region
          contour height
***********************************************************************************

What am I doing wrong?

Thanks for the help,

Luiz



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement