[Thread Prev][Thread Next][Index]

Re: [ferret_users] plotting excel file in ferret



Hi,
You do not want to keep the first FILE command in your script. In the FAQ, that is shown as a way to take a first, quick look at the data.

Are the lon,lat values organized in your file as in the example, with longitudes varying fastest?  If so, and if your grid definition matches what is in the file, then you should be able to do it this way:
yes? DEFINE AXIS/X=21:54:2/UNITS=degrees_east xaxis
yes? DEFINE AXIS/Y=12:23:2/UNITS=degrees_north yaxis
yes? DEFINE GRID/X=xaxis/Y=yaxis xygrid
yes? FILE/VAR="xskip,yskip,MAM" test.txt
Your FILE command needs to read MAM from the third column of data, skipping the first two columns.  Then you can
yes? list MAM
or
yes? shade MAM
to see the data on the grid.

This would be one time step.  You say you want to plot 5 years of data.  Are the other data in other files?

-Ansley

On 11/7/2015 10:09 AM, afwande juliet wrote:
Dear users, I am try to make spatial plot using excel data which I first save as .txt file. my file is has 3 columns as lon,lat, MAM .when I run i get this error

yes?FILE/VAR=xpoints,ypoints,MAM test.txt

yes? DEFINE AXIS/X=21:54:2/UNITS=degrees_east xaxis
yes? DEFINE AXIS/Y=12:23:2/UNITS=degrees_north yaxis
yes? DEFINE GRID/X=xaxis/Y=yaxis xygrid
yes? FILE/VAR="MAM" test.txt
yes? list
             VARIABLE : X
                        axis (AX001)
             SUBSET   : 24 points (X)
 1    /  1:   1.00
 2    /  2:   2.00
 3    /  3:   3.00
 4    /  4:   4.00
 5    /  5:   5.00
 6    /  6:   6.00
 7    /  7:   7.00
 8    /  8:   8.00
 9    /  9:   9.00
 10   / 10:  10.00
 11   / 11:  11.00
 12   / 12:  12.00
 13   / 13:  13.00
 14   / 14:  14.00
 15   / 15:  15.00
 16   / 16:  16.00
 17   / 17:  17.00
 18   / 18:  18.00
 19   / 19:  19.00
 20   / 20:  20.00
 21   / 21:  21.00
 22   / 22:  22.00
 23   / 23:  23.00
 24   / 24:  24.00



Iam trying to follow this example
http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2014/msg00223.html  and  http://ferret.pmel.noaa.gov/Ferret/faq/reading-ascii-data-representing-a-grid
secondly if I want to plot 5years how do arrange


thanks
afwande


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement