Creating Data Files
Charles Seman
Charles.Seman at NOAA.GOV
Thu Oct 20 16:48:33 EDT 2005
Kate,
The GrADS web site
http://grads.iges.org/grads/gadoc/aboutgriddeddata.html#structure
discusses the structure of a GrADS gridded binary data file, and
http://grads.iges.org/grads/gadoc/aboutgriddeddata.html#create
has some examples of how to create GrADS gridded binary data files.
Hope this helps,
Chuck
Kate Looney wrote:
>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
>
>
--
********************************************************************
Charles Seman charles.seman at noaa.gov
U.S. Department of Commerce / NOAA / OAR
Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547
201 Forrestal Road fax: (609) 987-5063
Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/
********************************************************************
"The contents of this message are mine personally and do not reflect
any position of the Government or NOAA."
More information about the gradsusr
mailing list