[Thread Prev][Thread Next][Index]

Re: ascii-grid


	You didn't give a lot of information so I will have to make some
guesses. When you say that you have an ascii file with only one column, I am
going to assume that you have monthly transport data at only 1 location so that
your final grid is 1D (time only). All you have to do to convert this to a grid
is define a time axis. Let's assume that you have monthly data from 1980 to
1998. The correct ferret commands would be:

yes? define axis/t="16-jan-1980:12":"16-dec-1998:12"/np=228 ttran
yes? define grid/t=ttran gtran

Some explanation: 16-jan-1980:12 and 16-dec-1998:12 are the middle of the month
for January and December. np=228 is the number of months for the 19 years of
the time series. You want to avoid explicit time steps because of the problem
of variable length years, this method give results that are always CLOSE to the
middle of the month and don't result in offsets over time. The time axis and
grids can be any name you want ttran and gtran are just examples.

Now, all you have to do is open the transport file giving the grid you just

yes? file/var=transport/grid=gtran transport.dat


On Apr 6, 11:27am, Kevin McKone wrote:
I have a monthly time series of Transport.  This is an ascii file with
only one column.    What is the easiest (best) way to convert this to a grid
file, so I can compute climatologies.  I have been through the mail archive,
etc. and I still don't get it.

 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