[ncl-talk] time selection
Dennis Shea
shea at ucar.edu
Sat Nov 4 08:19:11 MDT 2017
.and. ===> .or.
iTim = ind (ymd.ge.19790101.and.ymd.lt.20110101 .or. ymd.ge.20120101.
and.ymd.lt.20130101)
or
iTim = ind (.not.(ymd.gt.20110000.and.ymd.lt.20120000))
---
; eliminate from original data
X3 = f->X(iTim,:,:) ; no 2011
Z4 = f->Z(iTim,:,:,:)
On Fri, Nov 3, 2017 at 11:48 PM, Priyanka Silva <
priyankakeraminiya6 at gmail.com> wrote:
> Hello All,
> I have 1979 to 2012 data and I want to remove 2011 data. I used ind
> function but I got an error.
> Could someone help me.
> Thanks.
>
> Priyanka
>
>
>
> fin = addfile(f, "r")
> time = fin->time
> ymd = cd_calendar(time,2)
>
> iTim = ind (ymd.ge.19790101.and.ymd.lt.20110101.and.ymd.ge.20120101.
> and.ymd.lt.20130101)
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
> <#m_4999420893943258754_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171104/60092d8f/attachment.html>
More information about the ncl-talk
mailing list