<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;ve been looking into this, and I do see what the issue is, but I&#39;m not sure why the code is written the way it is.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I will try to get back to you with some more information.  I think the code is simply treating hour 0 and 1 as the same thing.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;ve filed a bug report, NCL-2449, for your reference.</div><div class="gmail_default" style="font-size:small"><br></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><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 2, 2016 at 7:37 PM, &quot;이소진&quot; <span dir="ltr">&lt;<a href="mailto:noitul5@gist.ac.kr" target="_blank">noitul5@gist.ac.kr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Dear NCL users,</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5"><br></p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">I got an error using cd_calendar in option 4 (YYYY.fraction_of_year).</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5"><br></p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Please see an example below.</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5"><br></p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">TEST = cd_inv_calendar((/2012, 2012/), (/3, 3/), (/1, 1/),\</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">   (/0, 1/), (/30, 30/), (/0, 0/), &quot;days since 2011-12-31&quot;, 0)</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">print(cd_calendar(TEST, 4))</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5"><br></p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Variable: unnamed (return)</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Type: double</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Total Size: 16 bytes</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">            2 values</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Number of Dimensions: 1</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[2]</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Coordinates: </p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Number Of Attributes: 1</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">  calendar :<span style="white-space:pre-wrap">        </span>standard</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">(0)<span style="white-space:pre-wrap">        </span>2012.163989450516</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">(1)<span style="white-space:pre-wrap">        </span>2012.163989450516</p><div><br></div><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">TEST2 = cd_inv_calendar((/2012, 2012, 2012/), (/3, 3, 3/), (/1, 1, 1/),\</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">   (/0, 1, 2/), (/30, 30, 30/), (/0, 0, 0/), &quot;days since 2011-12-31&quot;, 0)</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">print(cd_calendar(TEST2, 4))</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5"><br></p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Variable: unnamed (return)</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Type: double</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Total Size: 24 bytes</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">            3 values</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Number of Dimensions: 1</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Dimensions and sizes:<span style="white-space:pre-wrap">        </span>[3]</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Coordinates: </p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">Number Of Attributes: 1</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">  calendar :<span style="white-space:pre-wrap">        </span>standard</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">(0)<span style="white-space:pre-wrap">        </span>2012.163989450516</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">(1)<span style="white-space:pre-wrap">        </span>2012.163989450516</p><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5">(2)<span style="white-space:pre-wrap">        </span>2012.164103293868</p><div><br></div><div><div>How to solve this issue?</div></div><div><br></div><div><br></div><div><p style="font-size:13.3333px">Best regards</p></div><div><br></div><p style="font-family:&#39;\00ad74\00b9bc&#39;;font-size:10pt;line-height:1.5"><br></p><p><br></p><p><br></p><p><br></p>
<img src="https://gist.ac.kr:443/checkread/MTQ3MTYy/bmNsLXRhbGtAdWNhci5lZHU=/" width="1px" height="1px"><img src="https://gist.ac.kr:443/resources/theme/default/images/sign/mail_banner.jpg" width="600px" height="75px"><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>