Re: calendar_decode2.ncl function question

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 19 2010 - 07:55:03 MDT

Hi Ioana,

I need more information. Please print the time values and email those to me offline.

Thanks,

--Mary

On Jul 18, 2010, at 2:40 PM, Ioana Colfescu wrote:

> Hi,
>
> I try to use the calendar_decode2.ncl to translate an array of time values into month year values and it works however I have one year of daily data starting on 1870 and what I get when I use calendar_decode2 is data starting in 1940. Could someone please tell me why I get this ?
> The code I use is the following
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/calendar_decode2.ncl"
> begin
> f1=addfile("ts.nc","r")
> time=f1->time
> ;print(time)
> ts = f1->TS
> time@units="days since 1870-01-01 00:00:0"
> time@calendar="noleap"
> dec = calendar_decode2(time,0)
> printVarSummary(dec)
> print(dec)
> end
>
>
> ----- Original Message -----
> From: "Dennis Shea" <shea@ucar.edu>
> To: "Ioana Colfescu" <colfescu@cola.iges.org>
> Cc: "ncl-talk" <ncl-talk@ucar.edu>
> Sent: Sunday, July 18, 2010 4:18:02 PM
> Subject: Re: calendar_decode2.ncl error
>
> Try loading in the following order
>
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/calendar_decode2.ncl"
>
>
> On 7/18/10 2:11 PM, Ioana Colfescu wrote:
>> Hi,
>>
>> I try to use calendar_decode2.ncl and I get the following error not
>> from my code but from the function itself:
>>
>> fatal:Undefined identifier: (int2dble) is undefined, can't continue
>> fatal:Execute: Error occurred at or near line 689 in file
>> $NCARG_ROOT/lib/ncarg/nclscripts/contrib/calendar_decode2.ncl
>>
>> Is the error because of my data or there is something I should change
>> in the calendar_decode2.ncl ?
>>
>> Thanks,
>>
>> Ioana
>>
>> _______________________________________________ ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 19 07:55:08 2010

This archive was generated by hypermail 2.1.8 : Mon Jul 19 2010 - 09:39:01 MDT