<div dir="ltr"><div><div><div><div><div><div>If I understand to the first question correctly, maybe something like:<br><br>cmap = read_colormap_file("NCV_rainbow2")<br></div>printVarSummary(cmap)</div><div><br></div>cmap := cmap(50:, :)<br></div>printVarSummary(cmap)<br><br></div>On the second question, there's a small set of conditions as to whether the palette is spanned vs. whether consecutive values are used; check out cnSpanFillPalette:<br><br><a href="http://ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnSpanFillPalette">http://ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnSpanFillPalette</a><br><br></div>Hope that helps...<br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 22, 2017 at 6:40 AM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>I'd like to start using the NCV_rainbow2 color pallette from element 50.</div><div><br></div><div>I assume there is an easy way to do this, but it doesn't seem to be written down anywhere.</div><div><br></div><div>Also, I am wondering how NCL knows to span the entire original or modified color bar when apportioning the colors.</div><div><br></div><div>Thanks, </div><div><br></div><div>Barry<br clear="all"><div><br></div>-- <br><div class="m_3030094684029026314gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>