On Tue, Apr 10, 2012 at 5:22 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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div bgcolor="#ffffff">
<div><font face="Arial">I imagine this is a relatively simple task, but
can't seem to find the answer in the gradsuser archives. I have a NetCDF
file <a href="http://zzz.nz" target="_blank">zzz.nz</a>. I can open the file in GrADS, set display lat/lon range and
display the data fine (in this case the data are U,V vector information).
All I am trying to do in this case is to extract a geographical subset of the
<a href="http://zzz.nc" target="_blank">zzz.nc</a> file and then save to a new NetCDF (.nc) file. Can you point me to
a thread or some documentation on how to do this? Thanks -
Mark</font></div></div>
</blockquote></div><div><br></div><div>If you have opengrads then you can easily do this with lats4d. Type </div><div><br></div><div>ga-> lats4d</div><div><br></div><div>for a manual page. Typically you would enter something like</div>
<div><br></div><div>ga-> lats4d -i <a href="http://zzz.nz">zzz.nz</a> -o new_zzz -lon 30 60 -lat 10 45 -v</div><div><br></div><div>and a netcdf file called "<a href="http://new_zzz.nc">new_zzz.nc</a>" will be created.</div>
<div><br></div><div> Arlindo</div><div><br></div><div><br></div><div><br></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>