Re: syntax error in month_to_annual_weighted in 6.2.0

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 14 2014 - 13:23:28 MDT

THX for the simple example to isolate the issue.

As noted in the Current Release Notes under 'Updated functions'
     http://www.ncl.ucar.edu/current_release.shtml

All 'date' related functions in contributed.ncl have been updated to
recognize the calendar attribute.

===
Likely there is an error here and you will be provided with an updated
version.

The recognition of the 'calendar' attribute has been added
to many contributed.ncl functions in 6.2.0. A number were tested but,
quite frankly, there were so many explicit or hidden applications
of assorted 'date' functions, that some tests were apparently
not done. ..... Oh well!!

On 4/14/14, 12:12 PM, Keith Lindsay wrote:
> Hi,
>
> When I run the following commands with ncl 6.2.0, I get the error below
> them:
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> yyyymm = (/ 199001, 199002, 199003, 199004, 199005, 199006, \
> 199007, 199008, 199009, 199010, 199011, 199012 /)
> x = (/ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 /)
> opt = 1
> xa = month_to_annual_weighted(yyyymm, x, opt)
>
>
> fatal:Variable (yyyymmdd) is undefined
> fatal:["Execute.c":8567]:Execute: Error occurred at or near line 9783 in
> file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
>
> These commands work fine w/ ncl 6.1.2.
>
> Could this please be looked into?
>
> Thanks, Keith Lindsay
> _______________________________________________
> 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 Apr 14 13:23:41 2014

This archive was generated by hypermail 2.1.8 : Tue Apr 15 2014 - 10:45:19 MDT