<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Excellent thank you. Is there any way to
convert the lon from a 0-360 grid to world/geographic format 180 to -180 in this
process?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Mark</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=dasilva@alum.mit.edu href="mailto:dasilva@alum.mit.edu">Arlindo da
Silva</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=gradsusr@gradsusr.org
href="mailto:gradsusr@gradsusr.org">GrADS Users Forum</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, April 14, 2012 2:44
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [gradsusr] Subsetting a
NetCDF File</DIV>
<DIV><BR></DIV>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
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><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>
<P>
<HR>
<P></P>_______________________________________________<BR>gradsusr mailing
list<BR>gradsusr@gradsusr.org<BR>http://gradsusr.org/mailman/listinfo/gradsusr<BR></BLOCKQUOTE></BODY></HTML>