[gradsusr] Subsetting a NetCDF File

Arlindo da Silva dasilva at alum.mit.edu
Sat Apr 14 16:44:45 EDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120414/0ae88a0b/attachment-0003.html 


More information about the gradsusr mailing list