[ncl-talk] delete 31 march for leap year
Dennis Shea
shea at ucar.edu
Thu Apr 16 16:56:35 MDT 2015
[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> 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/20150416/067fc931/attachment.html
More information about the ncl-talk
mailing list