<div dir="ltr">Hi Saji,<div><br></div><div>How are you calling cd_inv_calendar in your code? Are you certain that partial days (e.g., hours, minutes, and/or seconds not equal to 0) aren't being fed into the function? I've used this function countless times with "hours since xxx" and "days since xxxx" and never experienced the issue you are describing.</div><div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div></div>
<br><div class="gmail_quote">On Tue, Jul 21, 2015 at 6:32 AM, Saji Hameed <span dir="ltr"><<a href="mailto:saji.nh@gmail.com" target="_blank">saji.nh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear NCL developers,<div><br></div><div>I have a library that uses cd_inv_calendar for some critical parts. Once in a blue moon, my</div><div>script crashes due to problems with values returned by cd_inv_calendar. Instead of returning</div><div>a whole number (for example 37785 days since 1900-01-01 return value is double), it sometimes returns a fraction (37784.xxxx).</div><div><br></div><div>I use NCL version 6.3.0 on a Linux box.</div><div><br></div><div>It is quite difficult to reproduce this issue because it happens rarely and randomly. I notice that <a href="http://www.ncl.ucar.edu/current_release.shtml#KnownBugs6.3.0" target="_blank">http://www.ncl.ucar.edu/current_release.shtml#KnownBugs6.3.0</a> notes a bug with cd_calendar when the units are specified as "minutes since" or "seconds since". In my case the units are </div><div>"days since 1900-01-01".</div><div><br></div><div>I will use ut_calendar for the time being, but thought that I would notify the developers about this issue.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>saji</div></font></span></div>
<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>
<br></blockquote></div><br></div>