<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<font size="2">Hi Jeff,
<br />
<br />you have to write a fortran code to read your data and write them as a simple binary file. With an appropriate .ctl you will be able to display it in GrADS.
<br />Take a look at the GrADS Documentation Index entry for "</font><a target="pages" href="http://www.iges.org/grads/gadoc/aboutgriddeddata.html">binary data sets</a><font size="2">". Isn't it what you are looking for?
<br />
<br />For example:
<br />
<br />If you have a z(lon,lat) list of data, this excerpt below (fortran 77 code) tell you how to write a regular field in binary (it will also work for an "almost" regular field, with some few displacements of the data from their real position):
<br /></font>
<br />This simple example write out one variable:
<p>
</p>
<pre> REAL Z(72,46)
<br />c .... read your data here
<br />
<br /> OPEN(8,FILE='grads.bin',FORM='UNFORMATTED',
& ACCESS='DIRECT',RECL=72*46)
WRITE (8,REC=1) ((Z(I,J),I=1,72),J=1,46)
<br /> CLOSE (8)
<br /></pre>and the .ctl:
<br />
<pre><a href="http://www.iges.org/grads/gadoc/descriptorfile.html#DSET">DSET</a> ^grads.bin
<a href="http://www.iges.org/grads/gadoc/descriptorfile.html#TITLE">TITLE</a> Some Data
<a href="http://www.iges.org/grads/gadoc/descriptorfile.html#UNDEF">UNDEF</a> -9999.90
<a href="http://www.iges.org/grads/gadoc/descriptorfile.html#XDEF">XDEF</a> 72 linear -80 2.5
<a href="http://www.iges.org/grads/gadoc/descriptorfile.html#YDEF">YDEF</a> 46 linear 30 2.0
<a href="http://www.iges.org/grads/gadoc/descriptorfile.html#ZDEF">ZDEF</a> 1 levels 1000
<a href="http://www.iges.org/grads/gadoc/descriptorfile.html#TDEF">TDEF</a> 1 linear 00z01apr2012 6hr
<a href="http://www.iges.org/grads/gadoc/descriptorfile.html#VARS">VARS</a> 1
Z 1 99 Some variable
<a href="http://www.iges.org/grads/gadoc/descriptorfile.html#ENDVARS">ENDVARS</a></pre>
<br />If your data is really almost rectangular, you can approximate the xdef and ydef intervals appropriately.
<br />
<br />Forgive me if it is not exactly what you are looking for.
<br />Regards,<font size="2">
<br />Ricardo
<br /><b>
<br />On Fri, 20 Jul 2012 16:56:31 -0500, Jeff Duda wrote</b>
<br />>
Hello,
<br />> I have some text data that I would like to display as a gridded
field. Basically it's already a rectangular array of values, but only in
text form. Is it possible to do this? If so, how?
<br clear="all" />
<br />>
Jeff Duda
<br />>
<br />> --
<br />> Jeff Duda
<br />> Graduate research
assistant
<br />> University of Oklahoma School of Meteorology
<br />> Center
for Analysis and Prediction of Storms
<br />
<br />
<br />
</font>
</BODY>
</HTML>