[ncl-talk] Select dates range in time calendar

Barry Lynn barry.h.lynn at gmail.com
Mon Jan 20 05:56:38 MST 2020


Hi:

I am not sure if this will work, but you probably need an "or" rather than
an "and" between intervals.

On Mon, Jan 20, 2020 at 2:47 PM Sancta Fun via ncl-talk <ncl-talk at ucar.edu>
wrote:

> Hi,
>  I would like to select special dates: 11Feb1985 to 11 July 2015. but only
> dates in feb-mar-apr-may-jun-jul.
>
> My code is below:
>
>  ymdh = ut_calendar(time, 0)
>   y =ind(ymdh(:,1).ge.2.and.ymdh(:,2).ge.11  .and.
> ymdh(:,1).le.7.and.ymdh(:,2).le.11 .and. ymdh(:,0).ge.1985 .and.
> ymdh(:,0).le.2015 )
>
> What's wrong?
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk



-- 
Barry H. Lynn, Ph.D
Senior Associate Scientist, Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200120/068f529c/attachment.html>


More information about the ncl-talk mailing list