Re: errors when using rgb color map

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Jul 13 2010 - 09:24:40 MDT

If I understand your question correctly, I think you simply need to set the special resurce "gsnSpreadColorEnd" to the last value in the color map that you want to be part of your contour colors.

The default of this resource is -1, which is the last color in your colormap. You added gray to the end of your colormap, and that's why you are seeing it in your contour colors.
Try setting opts_r@gsnSpreadColorEnd = -2 (second to the last color in your color map). You may also want to set opts_r@gsnSpreadColors to True to span the full color map.

--Mary

On Jul 13, 2010, at 3:04 AM, Yuhua Yang wrote:

> Hi,
> I defined some colors using rgb triplets in ncl script, but the fourth color( Bleu de France RGB:R97,G184,B255) missed and gray color appeared automatically at the end.
> I think the number of colors and cnLevels is matched ,but why I got wrong image? Could you please tell me how to modify my script.
> Attachment is my ncl script and the related images.
> Thanks a lot!!
>
> Yuhua
> <tmpncl.rain><image.doc>_______________________________________________
> 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 Tue Jul 13 09:24:44 2010

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