<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 = &quot;365_day&quot;    ; &quot;noleap&quot; etc<br><br></div>There are other calendars ... see below.<br><br></div>The reason for the 366 is that &#39;real&#39; 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,&quot;calendar&quot;)) then<br>       if (yyyyddd@calendar.eq.&quot;360_day&quot; .or. yyyyddd@calendar.eq.&quot;360&quot;) then<br>           ndys = 360<br>       end if<br>       if (yyyyddd@calendar.eq.&quot;365_day&quot; .or. yyyyddd@calendar.eq.&quot;365&quot;      .or. \<br>           yyyyddd@calendar.eq.&quot;noleap&quot;  .or. yyyyddd@calendar.eq.&quot;no_leap&quot;) then<br>           ndys  = 365<br>       end if<br>       if (yyyyddd@calendar.eq.&quot;366_day&quot; .or. yyyyddd@calendar.eq.&quot;366&quot;      .or. \<br>           yyyyddd@calendar.eq.&quot;allleap&quot; .or. yyyyddd@calendar.eq.&quot;all_leap&quot;) then<br>           ndys  = 366<br>       end if<br>       if (yyyyddd@calendar.eq.&quot;standard&quot; .or. yyyyddd@calendar.eq.&quot;gregorian&quot;) 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">&lt;<a href="mailto:lzl@gate.sinica.edu.tw" target="_blank">lzl@gate.sinica.edu.tw</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
I&#39;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  &quot;366&quot;.  I don&#39;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>