<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Karl,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">From looking at the cd_calendar and cd_inv_calendar interfaces, it seems like they should be handling the proleptic_gregorian calendar just fine.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The issue is with other date functions, like day_of_year, day_of_week, monthday, etc. These don't recognize this calendar. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you are running into a problem with cd_calendar not working, then can you provide us with a sample clean code that illustrates this?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For the other date functions, we already had two tickets open on this, NCL-1891 and NCL-2231, so I've modified them to indicate they should be fixed in V6.3.1.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Albert Yau provided a fix, but we just haven't had time to test it out. None of us are familiar with the "proleptic gregorian" calendar, and are not sure if special code is needed to handle it. I believe Albert's fix treats the "proleptic gregorian" as being the same as "gregorian", but I'm not sure if this is correct.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If there are any proleptic gregorian/gregorian experts out there, we would love to hear from them. :-)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 1, 2015 at 7:43 AM, Karl-Hermann Wieners <span dir="ltr"><<a href="mailto:karl-hermann.wieners@mpimet.mpg.de" target="_blank">karl-hermann.wieners@mpimet.mpg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
as of NCL 6.3.0, cd_calendar cannot not handle time axes with the<br>
calendar="proleptic_gregorian" attribute, despite what is written in the<br>
docs. I've unearthed Albert and Mary's thread from January 2014 (see<br>
below), where you planned to fix this issue in 6.2. Can you tell me what<br>
happened to that or if and when this will be fixed?<br>
<br>
Cheers,<br>
Karl<br>
<br>
--------------------------------------------------------------------<br>
<br>
Re: "proleptic_gregorian" Support in Date Routines<br>
<br>
This message: [ Message body ] [ More options ]<br>
Related messages: [ Next message ] [ Previous message ] [ In reply to ]<br>
<br>
From: Mary Haley <haley_at_nyahnyahspammersnyahnyah><br>
Date: Thu Jan 30 2014 - 10:48:45 MST<br>
<br>
Sorry Albert, I missed the fact that you had attached a simple fix! I'll<br>
look at this now and see if we can incorporate it into 6.2.0.<br>
<br>
--Mary<br>
<br>
On Jan 30, 2014, at 10:44 AM, Mary Haley <<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>> wrote:<br>
<br>
> Hi Albert,<br>
><br>
> Can you tell us what the different units are that you're seeing in<br>
this one model, and how you are having to edit the files and resave them?<br>
><br>
> I'm not exactly sure which "rebasing" feature you are referring to in<br>
V6.2.0.<br>
><br>
> Would the "calendar_decode2" function get you the support you need for<br>
proleptic_gregorian?<br>
><br>
><br>
<a href="http://www.ncl.ucar.edu/Document/Functions/User_contributed/calendar_decode2.shtml" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/Document/Functions/User_contributed/calendar_decode2.shtml</a><br>
><br>
><br>
> --Mary<br>
><br>
> On Jan 28, 2014, at 8:38 AM, Albert Yau <<a href="mailto:albert.yau@stonybrook.edu">albert.yau@stonybrook.edu</a>> wrote:<br>
><br>
>> Hi everyone,<br>
>><br>
>> I found that the date routines in 6.1.2 are not yet fully supporting<br>
the "proleptic_gregorian" calendar. For example, days_in_month will<br>
return "illegal calendar" for this input. I have this problem while<br>
processing some of the CMIP5 model's data. It is a trivial fix in<br>
datesW.c which I have attached here, I hope it has already been included<br>
in the next release.<br>
>><br>
>> I have to say thanks for all of you developers, I am really looking<br>
forward to the automatic time rebasing feature in 6.2.0, because one<br>
particular model has monthly netcdf data with different units for a<br>
hundred years. Right now I have to edit and save all the nc files before<br>
calling addfiles.<br>
>><br>
>> Best regards,<br>
>> Albert<br>
>> <ncl-6.1.2-calendar.patch>_______________________________________________<br>
>> ncl-talk mailing list<br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div></div>