[ncl-talk] delete 31 march for leap year
Xi Chang
xi.chang01 at gmail.com
Thu Apr 16 23:52:45 MDT 2015
Thanks Dennis,
Yes because i just need to analyze JFM (90 days) for 40 years. I know the
above trick but i just want delete 31 march only for LEAP YEAR not for
whole years. Do you know how to do that?
thanks
On Friday, April 17, 2015, Dennis Shea <shea at ucar.edu> wrote:
> [1] Yes ... there is a way
> [2] But ... why would ypu want to do that? It introduces a 'spectral gap'
> in the time series.
>
> ===
> foo(time,lat,lon)
>
> time has units understood by cd_calendar
> https://www.ncl.ucar.edu/Document/Functions/Built-in/cd_calendar.shtml
>
> TIME = cd_calendar(time, 0)
>
> ikeep = ind(.not.(TIME(:,1).eq.3 .and. TIME(:,2).eq.31) )
> FOO = foo(ikeep,:,:)
> delete(foo)
>
>
>
> On Thu, Apr 16, 2015 at 4:16 PM, Xi Chang <xi.chang01 at gmail.com
> <javascript:_e(%7B%7D,'cvml','xi.chang01 at gmail.com');>> wrote:
>
>> Hi NCL,
>> I have 40 years daily data, i need to delete 31 march only for the leap
>> year, is there any quick way to do that?
>>
>> Regards
>>
>> _______________________________________________
>> ncl-talk mailing list
>> 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/20150417/880f595c/attachment.html
More information about the ncl-talk
mailing list