<div dir="ltr"><div><div>Maybe<br></div><div><br>[1]<br><br>%> convert -flatten -background white -geometry 100x100 -contrast <a href="http://in.ps" target="_blank">src_name.ps</a> src_name.png<br><br>[2]<br></div>This could be used from within NCL<br><br></div> system("convert -flatten -background white -geometry 100x100 -contrast "+src_name+" "+src_name+".png")<br><br>[3] <br><br> pltType = "png"<br> pltType@wkHeight = 100<br> pltType@wkWidth = 100<br><br> wks = gsn_open_wks(pltType,"foo")<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 23, 2015 at 1:01 PM, Don Murray (NOAA Affiliate) <span dir="ltr"><<a href="mailto:don.murray@noaa.gov" target="_blank">don.murray@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dave-<br>
<br>
I want a little thumbnail of the colormap like on the examples page so I<br>
can add it to a menu. Maybe they weren't created in NCL?<br>
<span class="HOEnZb"><font color="#888888"><br>
Don<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 1/23/15 12:44 PM, David Brown wrote:<br>
> Hi Don,<br>
><br>
> The appearance is a little different, but the simplest way is probably<br>
> the procedure gsn_draw_colormap<br>
> (<a href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_draw_colormap.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_draw_colormap.shtml</a>)<br>
><br>
> -dave<br>
><br>
><br>
> On Fri, Jan 23, 2015 at 12:23 PM, Don Murray (NOAA Affiliate)<br>
> <<a href="mailto:don.murray@noaa.gov">don.murray@noaa.gov</a>> wrote:<br>
>> Is there a quick and dirty way to draw a colormap image in NCL like the<br>
>> ones on:<br>
>><br>
>> <a href="http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml</a><br>
>><br>
>> (e.g):<br>
>><br>
>> <a href="http://www.ncl.ucar.edu/Document/Graphics/ColorTables/Images/ncl_default_labelbar.500.png" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/ColorTables/Images/ncl_default_labelbar.500.png</a><br>
>><br>
>> Thanks.<br>
>><br>
>> Don<br>
>> --<br>
>> Don Murray<br>
>> NOAA/ESRL/PSD and CU-CIRES<br>
>> <a href="tel:303-497-3596" value="+13034973596">303-497-3596</a><br>
>> <a href="http://www.esrl.noaa.gov/psd/people/don.murray/" target="_blank">http://www.esrl.noaa.gov/psd/people/don.murray/</a><br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
--<br>
Don Murray<br>
NOAA/ESRL/PSD and CU-CIRES<br>
<a href="tel:303-497-3596" value="+13034973596">303-497-3596</a><br>
<a href="http://www.esrl.noaa.gov/psd/people/don.murray/" target="_blank">http://www.esrl.noaa.gov/psd/people/don.murray/</a><br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</div></div></blockquote></div><br></div>