<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Arlindo<div><br></div><div>Yes, thanks for your explanation. Thats how we've been doing it. The GRADS documentation I referred to is just somewhat misleading.</div><div><br></div><div>Perhaps it should state the following:</div><div><br></div><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" color="#1723FF">The GrADS exectuables for versions </font><b><font class="Apple-style-span" color="#1723FF">1.9 </font></b><font class="Apple-style-span" color="#1723FF">and earlier are as follows:</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" color="#1723FF">gradsc </font><span style="white-space: pre; "><font class="Apple-style-span" color="#1723FF"> </font></span><font class="Apple-style-span" color="#1723FF">Reads GRIB, gridded binary, BUFR, GrADS station data</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" color="#1723FF">Writes GRIB</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><b><font><font class="Apple-style-span" color="#1723FF">gradsnc</font></font></b><font class="Apple-style-span" color="#1723FF"> Reads GRIB, gridded binary, BUFR, GrADS station data, NetCDF</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><b><font class="Apple-style-span" color="#1723FF">Writes </font></b><font class="Apple-style-span" color="#1723FF">GRIB, </font><font color="#ff141f"><b><font class="Apple-style-span" color="#1723FF">NetCDF</font> (via LATS interface)</b></font></div></blockquote></div><div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Calibri; font-size: 17px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Regards</div><div><br></div><div>Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town)</div><div>Director of Meteorological Operations</div><div>CustomWeather, Inc.</div><div>San Francisco, California, USA</div><div><br></div><div>"Taking the World by Storm!"</div><div><br></div><div><a href="http://www.customweather.com">http://www.customweather.com</a></div><div><a href="http://www.myforecast.com">http://www.myforecast.com</a></div><div><a href="http://www.1stweather.com">http://www.1stweather.com</a></div><div><br></div><div>cell: 415-794-0411</div><div>work: 415-777-3566</div><div>email: <a href="mailto:klevey@customweather.com">klevey@customweather.com</a></div><div><br></div></div><br></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On May 20, 2008, at 05/20/08 - 7:17 PM, Arlindo da Silva wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Tue, May 20, 2008 at 2:47 PM, Kevin M Levey <<a href="mailto:klevey@customweather.com">klevey@customweather.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div style="">TUE 20MAY08: 1140PDT<div><br></div><div>Dear Grads Users</div><div><br></div><div>I was always under the impression that one could NOT write out NETCDF files from GRADS directly, but that you had to use LATS4D to accomplish this.</div> <div><br></div><div>However, on the latest update of the GRADS pages found at: <span style="font-family: Helvetica; font-size: 12px;"><a href="http://grads.iges.org/grads/downloads.html" target="_blank">http://grads.iges.org/grads/downloads.html</a></span></div> <div><br></div><div>I see this: </div><div><br></div><div><div style="margin: 0px;">The GrADS exectuables for versions <b>1.9 </b>and earlier are as follows:</div><div style="margin: 0px;">gradsc <span style="white-space: pre;"> </span>Reads GRIB, gridded binary, BUFR, GrADS station data</div> <div style="margin: 0px;">Writes GRIB</div><div style="margin: 0px;"><b><font color="#ff141f">gradsnc</font></b> Reads GRIB, gridded binary, BUFR, GrADS station data, NetCDF</div><div style="margin: 0px;"><b>Writes </b>GRIB, <font color="#ff141f"><b>NetCDF</b></font></div> </div><div><br></div><div>Is this a mistake, and if not, how does one write NETCDF formatted output directly from GRADS 1.9b4? I thought one could only write gridded binary files. I have never been able to find any documentation regarding this (writing NETCDF output from GRADS). I know that version 2.0 is slated to have the NETCDF "write" functionality built into it in upcoming releases.</div> <div></div></div></blockquote><div><br>Since v1.7 you can write NetCDF/HDF and GRIB-1 files from GrADS using the LATS interface. Basically you do a bunch of "set lats ..." commands, do a "set gxout lats" and when you display a variable it goes into your netcdf or grib-1 file. Lats4d is simply a GrADS script that serves as a frontend to the LATS interface, a convenience script of sorts. (BTW, lats4d can also serve as a front end to "set gxout fwrite".) Unfortunately, the LATS interface has been removed from v2, so the only thing lats4d can do there is to write binaries.<br> <br>I am not aware of any documentation for the LATS interface. I learned how use it by following Mike Fiorino's examples. Lats4d has a built in man page that documents (almost) all of its options (I left some NASA specific options undocumented as they are not relevant to the general user.)<br> <br> Arlindo<br><br></div></div><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a></blockquote></div><br></div></body></html>