[ncl-talk] drawing colormap

Don Murray (NOAA Affiliate) don.murray at noaa.gov
Thu Jan 29 07:43:13 MST 2015


Thanks, Mary.  We'll see if we can make use of it.

Don

On 1/28/15 2:37 PM, Mary Haley wrote:
> Hi Don,
>
> Sorry about the late response.  I didn't see this message until today.
> By coincidence, I happened to be working on a different color map
> drawing program, one that will allow me to draw any type of colors in a
> row/column format, given an array of colormaps, an array of RGB or RGBA
> values, an array of named colors, or an array of color index values.
> This one doesn't do a single labelbar though.
>
> I've attached a modified version of the labelbar code that I used to
> draw the color tables, and included a test program to call it.  Let me
> know if you have issues with it.  I didn't test it beyond this test code.
>
> --Mary
>
>
> On Fri, Jan 23, 2015 at 2:41 PM, David Brown <dbrown at ucar.edu
> <mailto:dbrown at ucar.edu>> wrote:
>
>     You may well have found the script she uses. But as you say, she is
>     tied up with the workshop now -- I'm pretty sure we will hear from her
>     before long on this topic.
>       -dave
>
>
>     On Fri, Jan 23, 2015 at 2:26 PM, Don Murray (NOAA Affiliate)
>     <don.murray at noaa.gov <mailto:don.murray at noaa.gov>> wrote:
>      > Thanks, Dave.  I did find this script which we were able to
>     modify to do
>      > what we need:
>      >
>      >
>     http://www.ncl.ucar.edu/Document/Graphics/ColorTables/Images/cmap_across.ncl
>      >
>      > but if Mary has a script, that would be good.  I know she's tied
>     up with a
>      > workshop now.
>      >
>      > Don
>      >
>      >
>      > On 1/23/15 2:14 PM, David Brown wrote:
>      >>
>      >> No NCL definitely created them. Mary knows the details since she
>      >> created the thumbnail images. I suspect they are just LabelBars with
>      >> the text and outlines removed.
>      >>   -dave
>      >>
>      >> On Fri, Jan 23, 2015 at 1:01 PM, Don Murray (NOAA Affiliate)
>      >> <don.murray at noaa.gov <mailto:don.murray at noaa.gov>> wrote:
>      >>>
>      >>> Hi Dave-
>      >>>
>      >>> I want a little thumbnail of the colormap like on the examples
>     page so I
>      >>> can
>      >>> add it to a menu.  Maybe they weren't created in NCL?
>      >>>
>      >>> Don
>      >>>
>      >>>
>      >>> On 1/23/15 12:44 PM, David Brown wrote:
>      >>>>
>      >>>>
>      >>>> Hi Don,
>      >>>>
>      >>>> The appearance is a little different, but the simplest way is
>     probably
>      >>>> the procedure gsn_draw_colormap
>      >>>>
>      >>>>
>      >>>>
>     (http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_draw_colormap.shtml)
>      >>>>
>      >>>>    -dave
>      >>>>
>      >>>>
>      >>>> On Fri, Jan 23, 2015 at 12:23 PM, Don Murray (NOAA Affiliate)
>      >>>> <don.murray at noaa.gov <mailto:don.murray at noaa.gov>> wrote:
>      >>>>>
>      >>>>>
>      >>>>> Is there a quick and dirty way to draw a colormap image in
>     NCL like the
>      >>>>> ones on:
>      >>>>>
>      >>>>>
>     http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml
>      >>>>>
>      >>>>> (e.g):
>      >>>>>
>      >>>>>
>      >>>>>
>      >>>>>
>     http://www.ncl.ucar.edu/Document/Graphics/ColorTables/Images/ncl_default_labelbar.500.png
>      >>>>>
>      >>>>> Thanks.
>      >>>>>
>      >>>>> Don
>      >>>>> --
>      >>>>> Don Murray
>      >>>>> NOAA/ESRL/PSD and CU-CIRES
>      >>>>> 303-497-3596 <tel:303-497-3596>
>      >>>>> http://www.esrl.noaa.gov/psd/people/don.murray/
>      >>>>> _______________________________________________
>      >>>>> ncl-talk mailing list
>      >>>>> List instructions, subscriber options, unsubscribe:
>      >>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>      >>>
>      >>>
>      >>>
>      >>> --
>      >>> Don Murray
>      >>> NOAA/ESRL/PSD and CU-CIRES
>      >>> 303-497-3596 <tel:303-497-3596>
>      >>> http://www.esrl.noaa.gov/psd/people/don.murray/
>      >
>      >
>      > --
>      > Don Murray
>      > NOAA/ESRL/PSD and CU-CIRES
>      > 303-497-3596 <tel:303-497-3596>
>      > http://www.esrl.noaa.gov/psd/people/don.murray/
>     _______________________________________________
>     ncl-talk mailing list
>     List instructions, subscriber options, unsubscribe:
>     http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

-- 
Don Murray
NOAA/ESRL/PSD and CU-CIRES
303-497-3596
http://www.esrl.noaa.gov/psd/people/don.murray/


More information about the ncl-talk mailing list