[ncl-talk] Can't make that color bar show white

Mary Haley haley at ucar.edu
Thu Jun 7 08:35:54 MDT 2018


Hi Barry,

I can't run your code because I don't have this file:

/data7/wrf/01052018/RUN/wrfout_d01_2018-01-05_00:00:00

​It does look like you are defining the colormap correctly.

Here's a tip: If you want to see what a color map looks like, especially
after you've modified it, use the "draw_color_palette" procedure.  Here's a
5-line code that illustrates it:​

wks = gsn_open_wks("x11","test")
cmap := read_colormap_file("NCV_rainbow2")
cmap := cmap(50:, :)
cmap(0,:) = 1.   ; Make first color white

draw_color_palette(wks,cmap,0)

W
​hat version of NCL are you running?  I used some dummy WRF data in your
script which didn't work well because I don't have the correct domain, but
I did get a labelbar with white on the left if I used NCL V6.4.0. With
version 6.3.0, I had to set:

res1 at gsnSpreadColorStart = 0

--Mary


On Wed, Jun 6, 2018 at 9:46 AM, Barry Lynn <barry.h.lynn at gmail.com> wrote:

> Hi:
>
> If you run this program, you'll see that it is a dark blue on the far left
> hand side.  Yet, I set cmap(0,:) = 1.
>
> I am hoping someone can tell me how to truly get the left interval on the
> color bar to show white.
>
> Thanks.
>
> --
> Barry H. Lynn, Ph.D
> Senior Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> 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/20180607/77aa6b71/attachment.html>


More information about the ncl-talk mailing list