Hi, Mary, Adam, Dennis and all
Thank you so much for the great helps. I finally used Dennis' advise
because of write permission. During the new colormap edit, I need to
remove the first line of "BlWhRe.rgb", which is "ncolors = 101",
(couldn't just change it to 102), and I have to add a "white" line (255
255 255) to the beginning, otherwise it will use the first color (dark
blue) as background.
Thanks,
Liz
>See Examples 10 and 12 at:
> http://www.cgd.ucar.edu/csm/support/CSM_Graphics/color.shtml
>
>Another variation to what Mary and Adam responded. Use a function
>located in contributed.ncl
>
>(1) Copy $NCARG_ROOT/lib/ncarg/colormaps/BlWhRe.rgb to
> a directory in which you can write. Call it
> something like "BlWhWhRe.rgb"
>
>(2) Edit it and add the line(s)
>
> 255 255 255
>
>(3) load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>
>
> wks = gsn_open_wks(...)
> cmap = RGBtoCmap("BlWhWhRe.rgb") ; contributed.ncl
> gsn_define_colormap(wks,cmap) ; create the color map
>
> gsn_draw_colormap(wks) ; draw the colormap
>
>
>
-- *********************** Liangying Zhang NCAR/ATD Email: lzhang@ucar.edu Phone: 303-497-2025 Fax : 303-497-8770 ***********************_______________________________________________ ncl-talk mailing list ncl-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Mon Aug 16 2004 - 13:12:26 MDT