Mubashar,<br>From the description of intrinsic functions on the <a href="http://www.iges.org/grads/gadoc/script.html#intrinsic">Grads scripting language site</a>:<br><p>
<b><code>read (<i>filename</i>)</code></b>
<br>
This functions reads individual records from file <code><i>filename</i></code>.
Repeated calls must be made to read consecutive records. The result is
a string containing two lines: the first line is the return code, the
2nd line is the record read from the file. The record may be a maximum
of 80 characters. Use the <code>sublin</code> function to separate the
result. Return codes are:<br>
</p><ul><code>0 - </code>ok <br><code>1 - </code>open error <br><code>2 - </code>end of file <br><code>8 - </code>file open for write <br><code>9 - </code>I/O error<br></ul>
Files are opened when the first call to read is made for a
particular file name. Files are closed when the execution of the
script file terminates (note that files remain open between
function calls, etc).
<br><br>This should be what you need.<br><br>Jeff Duda<br><br><div class="gmail_quote">On Sun, Feb 19, 2012 at 11:34 AM, Mubashar Dogar <span dir="ltr"><<a href="mailto:mubashardogar@gmail.com">mubashardogar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear GrADS users,<br>
<br>
Could some one guide me how can I read following data in GrADS. This<br>
is basically NAO index data which I wanted to plot in GrADS. Please<br>
suggest me. I am pasting down some part of my data:<br>
<br>
Hurrell Station-Based Monthly NAO Index<br>
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec<br>
1865 -0.6 -1.2 0.2 -0.2 -0.4 0.0 0.5 1.5 1.8 -2.0 -0.9 0.8<br>
1866 0.5 0.8 -0.6 -2.3 -2.0 0.9 -0.5 -0.2 2.4 -0.3 -0.5 0.2<br>
1867 -3.5 1.1 -4.3 1.8 -4.2 0.1 -2.0 1.9 1.4 2.2 -3.5 -0.1<br>
1868 0.7 3.0 3.6 1.7 2.3 3.1 0.4 1.5 -2.8 3.5 -1.8 -0.1<br>
<br>
<br>
<br>
Thanks,<br>
<br>
Mubashar<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br><br clear="all"><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>