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

From: Arlene Laing <laing_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 15 2013 - 15:29:30 MDT

Hi Adam,

Thanks for the tip. Resetting the attribute to "noleap", i.e., with
no trailing spaces, solved the problem.

Arlene

On Mon, 15 Jul 2013 14:23:43 -0600
  Adam Phillips <asphilli@ucar.edu> wrote:
> 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 15:29:41 2013

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