Re: 'calendar' attribute (noleap) is not equal to a recognized calendar

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 15 2013 - 14:23:43 MDT

Hi Arlene,
It looks to me like the calendar attribute was mistakenly written to the
netCDF file as "noleap ", as opposed to "noleap". Try changing the
calendar attribute to "noleap" and see if things work.
Adam

On 07/15/2013 02:16 PM, Arlene Laing wrote:
> Hi folks,
>
> I have encountered the following error on calling the cd_calendar
> function:
>
> "warning:cd_calendar: the 'calendar' attribute (noleap ) is not equal
> to a recognized calendar. Returning all missing values.
> ^M
>
>
>
> I am running NCL Version 6.1.2.
>
> -----start associated script lines --------
>
> times = f->time
> printVarSummary(times)
> printMinMax(times, True)
>
> yyyymm = cd_calendar(times, -1) ; integer array of length 5
> print(yyyymm)
>
> -----end associated script lines --------
>
>
> Here are the run time messages
> -----------------------------
>
> Variable: times
> Type: double
> Total Size: 5472 bytes
> 684 values
> Number of Dimensions: 1
> Dimensions and sizes: [time | 684]
> Coordinates:
> time: [36166..56940]
> Number Of Attributes: 4
> long_name : time
> units : days since 1850-01-01 00:00:00
> calendar : noleap
> bounds : time_bnds
> (0)
> (0) time: min=36166 max=56940
> warning:cd_calendar: the 'calendar' attribute (noleap ) is not equal
> to a recognized calendar. Returning all missing values.
> ^M
>
> Variable: yyyymm
> Type: integer
> Total Size: 2736 bytes
> 684 values
> Number of Dimensions: 1
> Dimensions and sizes: [684]
> Coordinates:
> Number Of Attributes: 1
> _FillValue : -2147483647
> (0) -2147483647
> (1) -2147483647
> (2) -2147483647
>
> -----end run time messages----------
>
>
> Has anyone else encountered this error and found a solution?
>
>
> Thanks in advance for your help.
>
> Arlene Laing
> NCAR/MMM
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 15 14:24:00 2013

This archive was generated by hypermail 2.1.8 : Tue Jul 16 2013 - 13:21:17 MDT