[ncl-talk] drawing colormap

Dennis Shea shea at ucar.edu
Fri Jan 23 13:56:27 MST 2015


Maybe

[1]

%> convert -flatten -background white -geometry 100x100 -contrast
src_name.ps <http://in.ps>  src_name.png

[2]
This could be used  from within NCL

   system("convert -flatten -background white -geometry 100x100 -contrast
"+src_name+"  "+src_name+".png")

[3]

  pltType = "png"
  pltType at wkHeight = 100
  pltType at wkWidth  = 100

  wks = gsn_open_wks(pltType,"foo")


On Fri, Jan 23, 2015 at 1:01 PM, Don Murray (NOAA Affiliate) <
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> 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
> >> 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/
> _______________________________________________
> ncl-talk mailing list
> 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/20150123/13edeb67/attachment.html 


More information about the ncl-talk mailing list