Re: color map problem

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu, 02 Apr 2009 14:48:32 -0600

colors is a one-dimensional variable.
It is not a string.

Try

gsn_define_colormap(wks, colors )

Dorita Rostkier-Edelstein wrote:
> Hello,
>
> I am trying to define the following color map:
>
> colors =
> (/"DeepSkyBlue4","DeepSkyBlue1","DeepSkyBlue","Cyan","Chartreuse3",\
> "Chartreuse",\
> "Green4","Green","Gold","Gold2","Gold3","Gold4","Red","Red2",\
> "Magenta3",\
> "Magenta"/)
>
> gsn_define_colormap(wks,"colors")
>
> And this is the error I get:
>
> fatal:CvtStringToCmap:Unable to convert string "colors" to ColorMap
> warning:Error retrieving resource wkColorMap from args - Ignoring Arg
>
> I defined other combinations before which did work...
>
> Thanks,
>
> Dorita
>
> =====================================
> Dr. Dorita Rostkier-Edelstein, Ph.D.
>
> http://www.geocities.com/drostkier/DO_page.html
> =====================================
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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 Thu Apr 02 2009 - 14:48:32 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 07 2009 - 10:01:36 MDT