Creating Data Files

Kate Looney kate at WEATHERFLOW.COM
Thu Oct 20 13:12:37 EDT 2005


Good Afternoon-

I'm interested in creating a gridded binary data file of a bunch of u and v
components.  Both time and height are constants, so I'm only concerned with
latitude and longitude variation.  I've checked the Grads website
documentation on how to do this, but still have a few questions:

Here is my sample control file:

 dset gridded_data_sample.dat
 title Gridded Data Sample
 undef -9.99e33
 xdef 3 linear 0 2.5
 ydef 3 linear -90 2.0
 zdef 1 levels 1000
 tdef 1 linear 00Z19Oct2005 3hr
 vars 2
 u 0 99 U component
 v 0 99 V component
 endvars

1) Assuming I have a 3x3 grid, is this control file correct?
2) What should my gridded_data_sample.dat file look like? My best guess at
this point is that it should have 2 rows.  The first row contains all u
vector components and there should be 9 entries.  The second row contains
all v vector components and there should be 9 entries.
3) How should I format the data? i.e. how much spacing (if any) is there
between each entry in the sample file?

A sample data file that grads can read would be a huge help if anyone has
one.  Thanks for any help in advance.

Regards,
Kate Looney



More information about the gradsusr mailing list