[ncl-talk] Bug: cd_calendar(_, 4) chokes on "proleptic_gregorian"
Karl-Hermann Wieners
karl-hermann.wieners at mpimet.mpg.de
Mon Aug 20 08:49:30 MDT 2018
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proleptic_gregorian.nc
Type: application/x-netcdf
Size: 2024 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180820/53545195/attachment.nc>
More information about the ncl-talk
mailing list