[ncl-talk] colorbar that's part grayscale, part color?

Rashed Mahmood rashidcomsis at gmail.com
Mon Feb 12 18:50:26 MST 2018


Hi Jared,
I think it's easy combine two color maps to get what you want. See attached
script and the figure. the input file is NCEP surface air temperature.

Cheers,
Rashed


On Mon, Feb 12, 2018 at 4:33 PM, Jared Lee <jaredlee at ucar.edu> wrote:

> Hi all,
>
> Has anyone out there made any plots where the colorbar/colormap is part
> grayscale, part color? For example, what I'd like to do for one application
> is make some plots with a color palette like "NCV_bright," for instance,
> where temperatures below 0ºC (say) get plotted in a grayscaled version of
> the color palette, but grid cells with values above 0ºC get plotted with
> the regular full-color palette. How would I go about doing that? Would I
> have to manually replace the sub-zero part of my color palette with various
> named gray colors? Thanks for any tips or ideas!
>
> Jared
>
> --
> ===============================
> Jared A. Lee, Ph.D.
> Project Scientist I
> Research Applications Laboratory
> National Center for Atmospheric Research
> Boulder, Colorado, USA
>
> Member, AMS Planning Commission
>
> Email: jaredlee at ucar.edu (w)
> Phone: 303.497.8485 <(303)%20497-8485> (w)
> Web: https://staff.ucar.edu/users/jaredlee
> ===============================
>
> _______________________________________________
> 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/20180212/e2c33744/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_file.pdf
Type: application/pdf
Size: 191007 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180212/e2c33744/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.ncl
Type: application/octet-stream
Size: 1074 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180212/e2c33744/attachment.obj>


More information about the ncl-talk mailing list