<div dir="ltr"><div><div><div><div>Well ....<br><br></div>If you have (say) model data that has 365 days per year then you can associate an attribute to the input array<br><br></div> yyyyddd@calendar = "365_day" ; "noleap" etc<br><br></div>There are other calendars ... see below.<br><br></div>The reason for the 366 is that 'real' data using the gregorian calendar has 365 or 366 days per year. <br><div><div><div><br></div><div> code snippet:<br></div><div><div><div><br>if (isatt(yyyyddd,"calendar")) then<br> if (yyyyddd@calendar.eq."360_day" .or. yyyyddd@calendar.eq."360") then<br> ndys = 360<br> end if<br> if (yyyyddd@calendar.eq."365_day" .or. yyyyddd@calendar.eq."365" .or. \<br> yyyyddd@calendar.eq."noleap" .or. yyyyddd@calendar.eq."no_leap") then<br> ndys = 365<br> end if<br> if (yyyyddd@calendar.eq."366_day" .or. yyyyddd@calendar.eq."366" .or. \<br> yyyyddd@calendar.eq."allleap" .or. yyyyddd@calendar.eq."all_leap") then<br> ndys = 366<br> end if<br> if (yyyyddd@calendar.eq."standard" .or. yyyyddd@calendar.eq."gregorian") then<br> ndys = 366<br> end if<br> else<br> ndys = 366 ; default<br> end if<br><br><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 4:14 AM, lzl <span dir="ltr"><<a href="mailto:lzl@gate.sinica.edu.tw" target="_blank">lzl@gate.sinica.edu.tw</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
I'm trying to use clmDayTLL<br>
I sent it a few years of non-leap-year data with the corresponding *yyyyddd values, but the returning dimension in time is "366". I don't understand what the *366th value has in it. It is supposed to be 365 instead of 366 (because my years are all non-leap-year)<br>
<br>
Thanks for your help!<br>
Leslie<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>