fwrite and multiple variables

Sestak, Dr. Michael michael.sestak at FNMOC.NAVY.MIL
Mon Aug 8 13:08:13 EDT 2005


Grads data must be written out in the order

along X dimension
along Y dimension
along Z dimension
each Variables
each Time

See the description of the structure of Grads data files in the online user
manual

http://grads.iges.org/grads/gadoc/aboutgriddeddata.html#structure

Michael Sestak
Fleet Numerical Meteorology and Oceanography Center
Monterey, CA

-----Original Message-----
From: Jean Pierre Arabonis [mailto:arabonis at EGS.UCT.AC.ZA]
Sent: Monday, August 01, 2005 10:18 AM
To: GRADSUSR at LIST.CINECA.IT
Subject: fwrite and multiple variables


Hi All
    I'm trying to write a script to write out specific data from one
grads file to a new one but am bumping into problems. What I want to do
is start from a global data set and write out a file for one position or
a subset of  positions for only some of the variables.
    So far I can do one position perfectly for a single variable,
however if I try to do a second variable the data appears to become
"mixed" so I assume that the problem lies in the arrangement of the data
in the file - I think that I am writing the data out sequentially and
grads need the data interleaved in some way.
    I think I need to step through the time steps and write out each
variable for each time step and then for each position.
    Has anyone got a script that I can peruse to get an idea as to how
to approach this, I'm getting the sinking feeling that that this could
entail some complexity if I have to step through times and positions at
the same time.
    Many Thanks
       Jean Pierre





--
Jean Pierre Arabonis
arabonis at egs.uct.ac.za
Tel 021 780 1021 cell 084 401 1365
This email is 100% Microsoft Free



More information about the gradsusr mailing list