[ncl-talk] select year from the model ouput
Xi Chang
xi.chang01 at gmail.com
Sat Dec 13 14:07:27 MST 2014
sorry, I solved it.
iStrt = ind(ymd.eq.ymdStrt) ; index start
iLast = ind(ymd.eq.ymdLast) ; index last
On Sat, Dec 13, 2014 at 7:14 PM, Xi Chang <xi.chang01 at gmail.com> wrote:
>
> Hallo NCL,
>
> I have a very simple question regaring my CAM output.
> I'd like to extract data only for year 2010 (for instance) from the data
> which has
> time dimension as follows:
>
> lat = 96 ;
> lon = 144 ;
> time = UNLIMITED ; // (8833 currently)
> variables:
> float lat(lat) ;
> lat:long_name = "latitude" ;
> lat:units = "degrees_north" ;
> float lon(lon) ;
> lon:long_name = "longitude" ;
> lon:units = "degrees_east" ;
> * float time(time) ;*
> * time:long_name = "time" ;*
> * time:units = "days since 1765-01-01 00:00:00" ;*
> * time:calendar = "noleap" ;*
> * time:bounds = "time_bnds" ;*
> * int date(time) ;*
> * date:long_name = "current date (YYYYMMDD)" ;*
>
> Any solution how to do that?
> Thank you
>
> Chang.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141213/28a5b6c1/attachment.html
More information about the ncl-talk
mailing list