[ncl-talk] Bug: cd_calendar(_, 4) chokes on "proleptic_gregorian"

Dennis Shea shea at ucar.edu
Tue Aug 21 13:15:06 MDT 2018


I opened a ticket: JIRA - 2767. Subsequently, I saw that there are several
previous JIRA tickets ( 1891 and 2231 ) on this issue.

---
IThe JIRA: NCL-1891 ticket which had your email. (mid-February 2016)
The 2231 has a "Fix" schedulded for NCL 6.6.0
--

On Mon, Aug 20, 2018 at 8:49 AM, Karl-Hermann Wieners <
karl-hermann.wieners at mpimet.mpg.de> wrote:

> Hi all,
>
> when using cd_calendar(_, 4) on a data file with calendar
> "proleptic_gregorian", NCL 6.5.0 and earlier print
>
> seconds_in_year: illegal calendar
> day_of_year: illegal calendar = 'proleptic_gregorian'
>
> I reported this problem years ago (I believe for NCL 6.1.0) and it still
> seems to be present. I'd really appreciate if someone could find the
> time to look into this.
>
> Please find an example data file attached. The code to reproduce is
> simple enough:
>
> datafile = addfile("proleptic_gregorian.nc", "r")
> times = cd_calendar(datafile->time, 4)
>
> Cheers,
> Karl
>
> --
> Karl-Hermann Wieners
> Max-Planck-Institut für Meteorologie
> Bundesstraße 53
> 20146 Hamburg
> Germany
> phone: +49 40 41173 161
> email: karl-hermann.wieners at mpimet.mpg.de
>
>
>
> _______________________________________________
> 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/20180821/a933ead7/attachment.html>


More information about the ncl-talk mailing list