[ncl-talk] problem with gsn_merge_colormaps in v 6.2.1

Rick Brownrigg brownrig at ucar.edu
Fri Sep 5 13:43:57 MDT 2014


Hi Jamie,

It looks like gsn_merge_colormaps is indeed working, despite the warning
message.  It looks like the warning is the result of some refactoring of
code that tests color names (i.e., were we given a named-color or a
colormap name); the warning message is spurious in this case -- we'll get
it corrected.

Thanks for pointing this out!
Rick



On Fri, Sep 5, 2014 at 1:00 PM, James Scott - NOAA Affiliate <
james.d.scott at noaa.gov> wrote:

> I've noticed that gsn_merge_colormaps is not working in ncl version 6.2.1
>
> I'm getting the following error:
>
>>  NCAR Command Language Version 6.2.1
>>  The use of this software is governed by a License Agreement.
>>  See http://www.ncl.ucar.edu/ for more details.
>> (0) Warning: namedcolor2rgb: 'cyclic' is not a valid named color.
>> (0) Will return missing values for this color.
>
>
> When I run the same script in v 6.2.0 it works without error.
>
> Here is a simple script that reproduces the error:
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
>> begin
>>   wks = gsn_open_wks("ps","gsn_merge_colormaps")
>> ;
>> ; Merge two pre-defined colormaps;
>> ;
>>   gsn_merge_colormaps(wks,"rainbow","cyclic")
>>   gsn_draw_colormap(wks)
>> end
>
>
> This error was reproduced on both the mac and linux versions of 6.2.1
> -Jamie
>
> _______________________________________________
> 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/20140905/5366bb39/attachment.html 


More information about the ncl-talk mailing list