Hai Luis,<br><br> You can use grads sdfwrite function for writing netcdf output.
The <code>sdfwrite</code> command works with GrADS version 2.0.a3 (or higher). The example as given in GrADS documentation index is<br><br><code>open global_forecast.ctl<br>
set lon -111.3 -103.8 <br>
set lat 40.9 45.0 <br>
set lev 1000 10<br>
set t 1 last<br>
set e 1 last<br>
define precip = ptot</code><code><br>
set sdfwrite <a href="http://wyoming_precip.nc">wyoming_precip.nc</a><br>
sdfwrite precip<br><br style="font-family: garamond,serif;"><span style="font-family: arial,helvetica,sans-serif;">this will write output to the netcdf file </span></code><code style="font-family: arial,helvetica,sans-serif;"><a href="http://wyoming_precip.nc">wyoming_precip.nc</a></code><br>
<br><br>Krishnamohan.K.S<br>Junior Research Fellow<br>Department Of Atmospheric Sciences<br>Cochin University of Science and Technology<br>Cochin,India<br><br><br><div class="gmail_quote">On Thu, Feb 11, 2010 at 1:38 AM, luis blacutt <span dir="ltr"><<a href="mailto:luis.blacutt@gmail.com">luis.blacutt@gmail.com</a>></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;">Dear grads users,<br><br>I would like to save the display directly to netcdf. I'm already aware that there is a way to convert to a txt file, through the fprintf function, or the set gxout print command.<br>
<br>Regards<br><font color="#888888">
Luis<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><br>