<div dir="ltr">Dear Adam,<div>Thanks for the solution. It worked fine.</div><div><br></div><div>Best regards</div><div>S.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 24, 2019 at 6:47 PM Adam Phillips <<a href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>You could do something like this to isolate the red spectrum of the colormap:</div><div>cmap = read_colormap_file("temp_diff_18lev")</div><div>printVarSummary(cmap) <br>res@cnFillPalette = cmap(10:,:)<br></div><div>If that does not solve your issue let ncl-talk know.</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 24, 2019 at 7:55 AM S Br via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi All,<br><div>In a figure, I am using the 'temp_diff_18lev' color table to display the temperature anomaly (Positive and negative) values using the color bar. For another figure I only have the positive temperature values for which I want to use the same 'temp_diff_18lev' color table. Could you please suggest me how to display the positive sides of the color bar.</div><div><br></div><div><b>1st Figure:</b></div><div> res@cnFillPalette = "temp_diff_18lev" ; set color map<br> res@lbLabelBarOn = True ; turn off individual cb's<br> res@cnLevelSelectionMode = "ManualLevels"<br> res@cnMinLevelValF = -0.5<br> res@cnMaxLevelValF = 0.5<br> res@cnLevelSpacingF = 0.1<br></div><div><br></div><div><b>2nd Figure:</b></div><div> res@cnFillPalette = "temp_diff_18lev" ; set color map<br> res@lbLabelBarOn = True ; Here I want to display only positive part<br></div><div>res@cnLevelSelectionMode = "ManualLevels"<br> res@cnMinLevelValF = 0.1<br> res@cnMaxLevelValF = 0.5<br> res@cnLevelSpacingF = 0.1<br></div><div><br></div><div>Thanks.</div><div>S</div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>