Re: Extract data

From: <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 06 2013 - 08:43:07 MST

Yes. X(time,lev,lat,lon), Y(time,lat,lon)

   f = addfile(...)

   nt = 31
   xa = f->X(nt,:,:,:) ; xa(lev,lat,lon)
   xb = f->X(nt:nt,:,:,:) ; xb(time,lev,lat,lon) where time is size 1
   printVarSummary(xa)
   printVarSummary(xb)

---
   it = (/ 12, 28, 131/)
   xc = f->X(it,:,:,:)    ; xc(3,....)
   printVarSummary(xc)
---
   kStrt = 35
   kLast = 59
   xd = f->X(kStrt:kLast,:,:,:)
   printVarSummary(xd)
> For a monthly NetCDF file, is it possible to extract data of only one
> month or several months and save them to a new file?
>
> Thank you in advance for your time answering my question!
>
> Regards,
>
> Lifen
>
> 2013-02-06
>
>
>
> Jiang, Lifen
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Feb 6 08:43:20 2013

This archive was generated by hypermail 2.1.8 : Wed Feb 06 2013 - 16:37:00 MST