<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Dear Eduardo,<br>
<br>
Here is Example 3 from
<a class="moz-txt-link-freetext" href="http://grads.iges.org/grads/gadoc/aboutgriddeddata.html#structure">http://grads.iges.org/grads/gadoc/aboutgriddeddata.html#structure</a><br>
<br>
I hope this helps,<br>
Chuck<br>
<br>
-------------------------------------------------------------------------------------------------------------------------<br>
<br>
Another simple sample might be:
<p></p>
<pre>   REAL X(100)
   DO 10 I=1,100
     X(I)=I
10 CONTINUE
   OPEN (8,FILE='samp.dat',FORM='UNFORMATTED',ACCESS='DIRECT',
  &amp;RECL=100)
   WRITE (8,REC=1) X
   STOP
   END
</pre>
<p>
The associated descriptor file:
</p>
<p></p>
<pre><a
 href="http://grads.iges.org/grads/gadoc/descriptorfile.html#DSET">DSET</a>      samp.dat
<a href="http://grads.iges.org/grads/gadoc/descriptorfile.html#TITLE">TITLE</a>     Sample Data Set
<a href="http://grads.iges.org/grads/gadoc/descriptorfile.html#UNDEF">UNDEF</a>    -9.99E33
<a href="http://grads.iges.org/grads/gadoc/descriptorfile.html#XDEF">XDEF</a>     100 LINEAR 1 1
<a href="http://grads.iges.org/grads/gadoc/descriptorfile.html#YDEF">YDEF</a>     1 LINEAR 1 1
<a href="http://grads.iges.org/grads/gadoc/descriptorfile.html#ZDEF">ZDEF</a>      1 LINEAR 1 1
<a href="http://grads.iges.org/grads/gadoc/descriptorfile.html#TDEF">TDEF</a>      1 LINEAR 1JAN2000 1DY
<a href="http://grads.iges.org/grads/gadoc/descriptorfile.html#VARS">VARS</a>      1
x  0  99  100 Data Points
<a href="http://grads.iges.org/grads/gadoc/descriptorfile.html#ENDVARS">ENDVARS</a>
</pre>
<p>
Once created, you can use this data set to experiment with GrADS
data functions, such as:
</p>
<p></p>
<ul>
  <code><a href="http://grads.iges.org/grads/gadoc/gradcomddisplay.html">display</a>
  <a href="http://grads.iges.org/grads/gadoc/gradfuncsin.html"> sin</a>(x/50)
  </code>
</ul>
-------------------------------------------------------------------------------------------------------------------------<br>
<br>
Eduardo Blanchard wrote:
<blockquote
 cite="midPrayer.1.0.13.0504181508400.6208@hermes-1.csi.cam.ac.uk"
 type="cite">Hello
  <br>
  <br>
I am trying to write two different time series into a .grd file so I
can
  <br>
view them and for example do a scatter plot of the two time series in
Grads
  <br>
  <br>
within the Fortran program, I do:
  <br>
  <br>
open(14,file='scatter.grd',form='unformatted',access='direct',recl=4*109)
  <br>
write(14,rec=1)(IE(itime),itime=1,109)
  <br>
write(14,rec=2)(data1(3,it),it=392,500)
  <br>
close(14)
  <br>
  <br>
but in Grads this just opens two time series, length 54 that take
  <br>
alternating values from one of my initial time vectors- in this case,
  <br>
IE(itime)
  <br>
  <br>
My ctl file is:
  <br>
DSET scatter.grd
  <br>
TITLE&nbsp;&nbsp; HGT
  <br>
UNDEF&nbsp;&nbsp; -99
  <br>
TDEF 109 LINEAR 1aug90 1mo
  <br>
XDEF 1 LINEAR 1 1
  <br>
YDEF 1 LINEAR 1 1
  <br>
ZDEF 1 LINEAR 1 1
  <br>
  <br>
VARS 2
  <br>
f1 1 99 HT data
  <br>
f2 1 99 HT data
  <br>
ENDVARS
  <br>
  <br>
Any help is very much appreciated
  <br>
  <br>
Ed
  <br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--

********************************************************************
 Charles Seman                                <a class="moz-txt-link-abbreviated" href="mailto:Charles.Seman@noaa.gov">Charles.Seman@noaa.gov</a>
 U.S. Department of Commerce / NOAA / OAR
 Geophysical Fluid Dynamics Laboratory         voice: (609) 452-6547
 201 Forrestal Road                              fax: (609) 987-5063
 Princeton, NJ  08542                 <a class="moz-txt-link-freetext" href="http://www.gfdl.noaa.gov/~cjs/">http://www.gfdl.noaa.gov/~cjs/</a>
********************************************************************

"The contents of this message are mine personally and do not reflect
any position of the Government or NOAA."
</pre>
</body>
</html>