Hi Mary:
>Do you get any error messages when you try to run your script?
I got the following error messages:
Copyright (C) 1995-2006 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 4.2.0.a033
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
fatal:CvtStringToCmap:Unable to convert string "posneg_2" to ColorMap
warning:Error retrieving resource wkColorMap from args - Ignoring Arg
Thanks!
Regards
Ed
If you add:
gsn_draw_colormap(wks)
right after gsn_define_colormap and run your script again, do you see a
color map that looks like rainbow+gray, as you have defined in your
.hluresfile? If so, then it may mean that you don't have a new enough
version of NCL.
--Mary
On May 23, 2008, at 5:10 PM, Yang Yang wrote:
> Hello:
> I would like to use the colors of posneg_2. After I set
> gsn_define_colormap(wks,"posneg_2"), the label colors are not like the
> color label of posneg_2 shown on the ncl website. Can you tell me how
> to solve this problem? Thanks!
> Regards
> Ed
> In my .hluresfile, it shows:
> !=========================================
> ! comments for ".res" files are preceded by a "!"
> ! remember quotations are not used in .res files
> ! White background/black foreground
> *wkForegroundColor : (/0.,0.,0./)
> *wkBackgroundColor : (/1.,1.,1./)
> *wkColorMap : rainbow+gray
>
> ! Font stuff
> *Font : helvetica
> ! Function Codes [Default is a colon ]
> *TextFuncCode : ~
> ! Make default X11 window larger (adjust as necessary)
> *wkWidth : 800
> *wkHeight : 800
> ! Have a favorite colormap that you use for everything? You can
> ! make it your default here (note the name is NOT in quotes):
> ! *wkColorMap temp1
> ! Increase the default (16mb) contour memory
> ! If you gave gridded data > 500 x 500, you may need this
> *wsMaximumSize: 32556688
> !==========================================
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun May 25 2008 - 17:49:05 MDT
This archive was generated by hypermail 2.2.0 : Tue May 27 2008 - 15:12:16 MDT