Hao,<br><br>I use this line and it writes to a text file.<br><br>var = write(&#39;&lt;filename&gt;&#39;,&#39;&lt;text&gt;&#39;)<br><br>Below is an example w/variables mixed in.<br>icao = user input<br>fhght = calculated from model over user selected time<br>
<br>res = write (icao&#39;_MEF.txt&#39;,&#39;Lowest Freezing Level:&#39; fhght&#39;FT&#39;)<br><br>Hope this helps you,<br><br>Shawn Delaney<br><a href="http://expweather.com">expweather.com</a><br><br><div class="gmail_quote">
On Thu, Nov 5, 2009 at 9:03 PM, Hao He <span dir="ltr">&lt;<a href="mailto:hhe@atmos.umd.edu">hhe@atmos.umd.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
   I used GrADS to read the GRIB file and wanted to selected some<br>
variables, which can be write to an ASCII (.txt or .dat) file. I read the<br>
manual and found I should use &#39;gxout fwrite&#39;. But I still could not<br>
figure out how to write the script. Does anyone have an idea?<br>
<br>
Thanks!<br><font color="#888888">
<br>
Hao<br>
</font></blockquote></div><br>