On Wed, May 6, 2009 at 5:14 PM, Mark Hess <span dir="ltr"><<a href="mailto:mhess@oceani.com">mhess@oceani.com</a>></span> 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="" bgcolor="#ffffff">
<div><font face="Arial" size="2">All,</font></div>
<div><font face="Arial"><font size="2"><font face="Arial" size="2"></font></font></font> </div>
<div><font face="Arial" size="2">I can now open and display HYCOM MLD data in GrADS.
My next step is to output a lat,lon,value ASCII file from the open
dataset for a specified region. The script (shown below)
is a cannabalized/modified version of one sent to me by Arlindo some
time ago (any errors in the script are mine not his). While it does work,
it is very slow. It was originally written to work from a local file so, I
imagine the slow speed is because each time it writes a line in the ASCII
file it needs to go out and pull that info from the http source. Is there
a way I can first write the desired data to a NetCDF or binary file on my local
disk and then write the ASCII file pulling from that file? I tried
unsuccesfully to use the frwite command, but perhaps I am using the
command incorrectly.</font></div>
<div><font face="Arial"><font size="2"><font face="Arial" size="2"></font></font></font> <br></div></div>
</blockquote></div><br>Take a look at this recipe:<br><br> <a href="http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file">http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file</a><br>
<br> Arlindo<br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>