[ncl-talk] yyyymmdd in month_to_annual_weighted?

Maria Gehne - NOAA Affiliate maria.gehne at noaa.gov
Fri Aug 1 12:41:51 MDT 2014


I ran into a similar issue a while ago. My fix would be to copy the part of
contributed.ncl that computes month_to_annual_weighted and save it as a
separate ncl script with a slightly different name. I changed all the
references to yyyymmdd in that script to yyyymm and it works. You just need
to load the new script at the beginning of the ncl script that
uses month_to_annual_weighted_new (or whatever you decide to call it).

Maria


On Thu, Jul 31, 2014 at 11:00 AM, Dennis Shea <shea at ucar.edu> wrote:

> That is a bug: See
>
>    http://www.ncl.ucar.edu/future_release.shtml
>
> This will be fixed in 6.2.1 [sometime-in-August release]
> You will be sent a 'fix' offline.
>
>
>
> On Thu, Jul 31, 2014 at 10:25 AM, <lsmith at ucar.edu> wrote:
>
>> Hi gang,
>> I'm trying to use month_to_annual_weighted
>> and I need more info about what the first field in the function is
>> supposed to be.
>> I created dates of the type YYYYMM for my data, but I'm getting the error:
>> 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
>>
>> Where does dd come into it?  The webpage doesn't say anything about days:
>>
>> https://www.ncl.ucar.edu/Document/Functions/Contributed/month_to_annual_weighted.shtml
>> Do my dates need some particular metadata?
>> Or are they supposed to be of the form YYYYMMDD?
>> Thanks for any suggestions,
>> -Lesley L. Smith
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140801/2d309f39/attachment.html 


More information about the ncl-talk mailing list