On Fri, May 15, 2009 at 12:21 PM, P.R. <span dir="ltr"><<a href="mailto:romero619@hotmail.com">romero619@hotmail.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;">
I have a netcdf file with gridded data that I want to extract into an ASCII<br>
file.<br>
The ascii file should be in an NixNj matrix format.<br>
<br>
I also want to change its resolution prior to exporting it.<br>
Example:<br>
the grid in the netcdf file has a resolution of 0.0083 degree increments.<br>
Id like to lower this resolution to 0.05 degrees.<br>
</blockquote><div><br>Take a look at the re() function (the one in v2.0.a5.oga.5 recommended). Just try this<br><br>define xxx = re(var,0.05)<br><br>the xxx variable should be 0.05x0.05 degrees. Read the documentation for the full set of options:<br>
<br> <a href="http://opengrads.org/doc/udxt/re/">http://opengrads.org/doc/udxt/re/</a><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I don't have much experience working with netcdf files.</blockquote><div><br>Once grads opens the file correctly it does not quite matter much which format the data is in (except for performance considerations). <br>
</div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can someone please recommend a method to accomplish this task (either using<br>
GrADS or some other external utility)???<br>
</blockquote><div><br><br> As Chuck recommends, take a look at Recipe 2 in the cookbooks or search the list for other alternatives:<br><br>
<a href="http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file" target="_blank">http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file</a><br>
<br> Arlindo<br></div></div><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>