Re: gsn_define_colormap(wks,"posneg_2")

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 26 May 2008 12:58:23 -0600

We highly recommend that you upgrade, but if you are unable
to, then you can still use this color table. Take the attached
"posneg_2.rgb"
file and put it in the directory $NCARG_ROOT/lib/ncarg/colormaps.

It should then be automatically available to your version of NCL.

--Mary

On May 25, 2008, at 7:29 PM, Dennis Shea wrote:

> You are using: 4.2.0.a033
> That version was released in January 2006. There have been
> multiple releases since that time.
>
> The posneg_2 colormap was not available under the a033 release.
> You must download the 5.0.0 version.
>
> Good luck
>
> Yang Yang wrote:
>> 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_at_ucar.edu
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk_at_ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Mon May 26 2008 - 12:58:23 MDT

This archive was generated by hypermail 2.2.0 : Tue May 27 2008 - 15:12:16 MDT