[gradsusr] Subsetting a NetCDF File
Mark Hess
mhess at oceani.com
Sat Apr 14 17:27:34 EDT 2012
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?
Mark
----- Original Message -----
From: Arlindo da Silva
To: GrADS Users Forum
Sent: Saturday, April 14, 2012 2:44 PM
Subject: Re: [gradsusr] Subsetting a NetCDF File
On Tue, Apr 10, 2012 at 5:22 PM, Mark Hess <mhess at oceani.com> wrote:
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 zzz.nz. 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 zzz.nc 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
If you have opengrads then you can easily do this with lats4d. Type
ga-> lats4d
for a manual page. Typically you would enter something like
ga-> lats4d -i zzz.nz -o new_zzz -lon 30 60 -lat 10 45 -v
and a netcdf file called "new_zzz.nc" will be created.
Arlindo
--
Arlindo da Silva
dasilva at alum.mit.edu
------------------------------------------------------------------------------
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120414/01f3911e/attachment-0003.html
More information about the gradsusr
mailing list