[Thread Prev][Thread Next][Index]

Reverse data



Hello all,

I am trying to plot a 2-d field on the globe.  The data is written in a
Fortran unformatted file.  I read it with the following:

define axis/x=0:357.5:2.5/unit=degrees x144
define axis/y=90S:90N:2.5/unit=degrees y73
define grid/x=x144/y=y73 g144x73

file /var=precip/grid=g144x73/format=UNFORMATTED/COLUMNS=`144*73` precip79.out
ppl shakey 1,1,0,0,-3

fill /line/key/title="Total Precipitation (mm)"/i=1:144/j=1:73 precip

The problem is that the output is upside down, since the data is stored
from North to South instead of from South to North.  How can I tell
ferret to reverse the data and only the data (not the axes) ?  I know I
could write a Fortran program, but I thought that ferret ought to be
able to do this.

Thanks,

-- 
Michel Beland                 beland@CERCA.UMontreal.CA
professionnel de recherche    tel: (514)369-5223  fax: (514)369-3880
CERCA (CEntre de Recherche en Calcul Applique)
5160, boul. Decarie, bureau 400(423), Montreal (Quebec), Canada, H3X 2H9


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement