[ncl-talk] Select dates range in time calendar

时光足迹 1072752133 at qq.com
Mon Jan 20 06:02:57 MST 2020


Hi, I suggest you first select the time range 11Feb1985 to 11July2015. Then you can select again from the data which had been selected in the first step.
 

------------------ 原始邮件 ------------------
发件人: "Sancta Fun via ncl-talk" <ncl-talk at ucar.edu>;
发送时间: 2020年1月20日(星期一) 20:47
收件人: "ncl-talk" <ncl-talk at ucar.edu>;
主题: [ncl-talk] Select dates range in time calendar



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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200120/1f6a0beb/attachment.html>


More information about the ncl-talk mailing list