[ncl-talk] clmDayTLL problem

Dennis Shea shea at ucar.edu
Fri May 29 07:53:30 MDT 2015


Well ....

If you have (say) model data that has 365 days per year then you can
associate an attribute to the input array

      yyyyddd at calendar = "365_day"    ; "noleap" etc

There are other calendars ... see below.

The reason for the 366 is that 'real' data using the gregorian calendar has
365 or 366 days per year.

  code snippet:

if (isatt(yyyyddd,"calendar")) then
       if (yyyyddd at calendar.eq."360_day" .or. yyyyddd at calendar.eq."360")
then
           ndys = 360
       end if
       if (yyyyddd at calendar.eq."365_day" .or. yyyyddd at calendar.eq."365"
.or. \
           yyyyddd at calendar.eq."noleap"  .or. yyyyddd at calendar.eq."no_leap")
then
           ndys  = 365
       end if
       if (yyyyddd at calendar.eq."366_day" .or. yyyyddd at calendar.eq."366"
.or. \
           yyyyddd at calendar.eq."allleap" .or. yyyyddd at calendar.eq."all_leap")
then
           ndys  = 366
       end if
       if (yyyyddd at calendar.eq."standard" .or. yyyyddd at calendar.eq."gregorian")
then
           ndys  = 366
       end if
   else
       ndys  = 366     ; default
   end if



On Fri, May 29, 2015 at 4:14 AM, lzl <lzl at gate.sinica.edu.tw> wrote:

> Hi
> I'm trying to use clmDayTLL
> 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)
>
> Thanks for your help!
> Leslie
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150529/6e15a8c4/attachment.html 


More information about the ncl-talk mailing list