Re: select range of date in multiyear dataset

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Aug 13 2013 - 07:24:57 MDT

Yes.

The specific answer depends on the form of the 'time' variable
in the file(s). EG

            double time(time) ;
                 time:units = "xxxx since yyyy-mm-dd 00:00:00" ;

            f = addfile(...)
            TIME = f->time ; all times on file
            YMDH = cd_calendar(TIME, 0)

            itime = ind(YMDH(:,1).le.3 .or. YMDH(:,1).ge.9)

            x = f->X(itime,:,:) ; f->X(itime,:,:,:)
            printVarSummary(x)

            time = x&time ; or f->time(itime)
            ymdh = cd_calendar(time, -3)
            print(ymdh) ; print selected dates

On 8/13/13 5:46 AM, Verena Lili wrote:
> NCL,
>
> I have daily era40 data extending from 1980 - 2000.
> Is there any function in NCL to select a specific length of period
> for instance 1 September to 31 March repeated each year ? As such, in the
> end
> I just have a September to March data from 1980 to 2000.
> Thanks
>
>
>
>
> _______________________________________________
> 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 Tue Aug 13 07:24:41 2013

This archive was generated by hypermail 2.1.8 : Wed Aug 14 2013 - 18:35:09 MDT