<HTML><HEAD></HEAD>
<BODY>
<DIV id=idOWAReplyText47376 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>How about doing it "with" a data file.&nbsp; Open any existing grid for the same area, define a new grid using const to set the values, then fwrite the result to a new file.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Michael Sestak</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Fleet Numerical Meteorology and Oceanography Center</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Monterey, CA</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> P.R.<BR><B>Sent:</B> Tue 6/23/2009 16:03<BR><B>To:</B> GRADSUSR@LIST.CINECA.IT<BR><B>Subject:</B> Creating 'blank' grids in grads<BR></FONT><BR></DIV>
<DIV><PRE style="WORD-WRAP: break-word">Id like to know if its possible to create a blank, zero-valued grid without
a data-file, and then manually create a field of variables, and then fwrite
everything to a binary file.

Example:
I want to create my own 10meter (u,v) winds for a specific region, in order
to create a custom wind field for a simulation. I want the entire grid to
have 40 knt winds coming from 45 degrees, so I would need to derive my u &amp; v
values for such a wind, and then fill the entire grid with these
values...Then, I would want to fwrite the entire grid to a fortran binary
file.

Is this possible and/or practical?
If so, then how would I go about creating this 'blank' grid without a data
file?
And, how could I go about manually defining my 'u' and 'v' variables for the
entire grid?

Or, is there an easier/more practical way to create such a grid with
arbitrary, user-defined data fields (such as for use in simulations)?

Please help,
Thanks,
P.Romero
</PRE></DIV></BODY></HTML>