<div dir="ltr">Hi:<div><br></div><div>I need to follow up.</div><div><br></div><div>radar_panel.. plots nc data from the Weather Climate and Tool Kit (anyone is welcome to use -- but I am not finished with that part of the program to remove attenuation).</div><div><br></div><div>The other program plots WRF radar data.</div><div><br></div><div>I have attached data from the mapping of radar observations (KOKX) and the WRF output.</div><div><br></div><div>The radar observations have white space around a 150 km radius because the data is undefined.</div><div><br></div><div>I tried to do the same for the WRF output following Mary's suggestion. However, there are two problems: i) even though I use the same "NCV_jet" and ispan values in each, the color bar in the WRF mapping is not the same (it needs to be redder on the right hand side). ii) I would expect white coloring in the first (leftmost) part of the colorbar, but this doesn't seem to work correctly either. Both problems are probably related.</div><div><br></div><div>Thank you,</div><div><br></div><div>Barry<br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 6, 2017 at 9:53 AM, Michael Weston <span dir="ltr"><<a href="mailto:mjweston@masdar.ac.ae" target="_blank">mjweston@masdar.ac.ae</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Thank you Mary!</p>
<p>That is a much better approach :)<br>
</p>
Regards<span class="HOEnZb"><font color="#888888"><br>
Michael</font></span><span class=""><br>
<br>
<div class="m_7427981138303543593moz-cite-prefix">On 04/08/2017 20:05, Mary Haley wrote:<br>
</div>
<blockquote type="cite">
<div style="font-size:small">Hi Mike (and
Barry),</div>
<div style="font-size:small"><br>
</div>
<div style="font-size:small">Just an FYI: I
don't think you need to use cnFillColors. You can simply read
the colormap you want, set the first color to white, and then
load this new colormap using cnFillPalette:</div>
<div style="font-size:small"><br>
</div>
<div> cmap =
read_colormap_file("<wbr>BlueYellowRed")</div>
<div style="font-size:small"> cmap(0,:) =
1. ; Make first color white<br>
</div>
<div style="font-size:small"><br>
</div>
<div style="font-size:small">
<div> res@cnLevelSelectionMode =
"ExplicitLevels" ; set explicit contour levels</div>
<div> res@cnLevels =
(/0.1,0.2,0.3,0.4,0.5,0.6,0.7,<wbr>0.8,0.9,1/) ; 10 levels<br>
res@cnFillPalette = cmap</div>
<div><br>
</div>
<div>If you want the first color to be
transparent rather than white, then use:</div>
<div><br>
</div>
<div>
<div> cmap(0,3) = 0,0 ; Make first
color transparent<br>
</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
</div>
</div>
</blockquote>
<br>
</span><span class=""><div class="m_7427981138303543593moz-signature">-- <br>
<br>
<div class="m_7427981138303543593moz-signature">
<div class="m_7427981138303543593moz-signature"><b>Michael</b><font face="Arial,sans-serif" color="#1F497D"><b> </b></font><font face="Arial,sans-serif" color="black"><b>Weston</b></font><font face="Arial,sans-serif" color="black"><b><br>
</b></font><font face="Arial,sans-serif" color="black" size="2"><span style="font-size:10pt">Research Engineer </span></font></div>
<img alt="" src="cid:part1.CAA97269.7AFF13EF@masdar.ac.ae" height="57" width="339"><br>
<br>
<b><span style="font-size:10.0pt;font-family:"Arial",sans-serif">A
Part of Khalifa University of Science and Technology<span style="color:#1f497d"><u></u><u></u></span></span></b>
<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:normal">
</p>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">PO
Box 54224, Abu Dhabi, </span></font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt"><br>
United Arab Emirates</span></font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt"><br>
Office <a href="tel:+971%202%20810%209510" value="+97128109510" target="_blank">+971 2 810 9510</a></span></font></span></font></div>
<font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt"><br>
</span></font>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt">Email </span></font><a href="mailto:mjweston@masdar.ac.ae" target="_blank"><font face="Times New Roman,serif">mjweston@masdar.ac.ae</font></a><font face="Times New Roman,serif" color="#0391BE"> </font><font face="Times New Roman,serif" color="black"> </font><font face="Arial,sans-serif" color="#0391BE" size="2"><span style="font-size:10pt"></span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font color="black"> </font><a href="http://www.masdar.ac.ae/" target="_blank"><font face="Arial,sans-serif" size="2"><span style="font-size:10pt">http://www.masdar.ac.ae</span></font></a></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Times New Roman,serif" color="black" size="3"><span style="font-size:12pt"><b> </b></span></font></span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"> </span></font></div>
<div style="margin:0"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Webdings" color="#0099FF" size="2"><span style="font-size:10pt"></span></font><font color="#0099FF" size="2"><span style="font-size:10pt">
</span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><i>Please
consider the environment before printing this email</i></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><i><br>
</i></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><br>
This transmission is confidential and intended solely
for the person or organization to whom it is
addressed. It may contain privileged and confidential
information. If you are not the intended recipient,
you should not copy, distribute or take any action in
reliance on it. If you have received this transmission
in error, please notify us immediately by e-mail at </span></font><font face="Arial,sans-serif" size="1"><span style="font-size:8pt"><b><font color="#0099FF"><a class="m_7427981138303543593moz-txt-link-abbreviated" href="mailto:info@masdar.ae" target="_blank">info@masdar.ae</a></font></b></span></font><font face="Arial,sans-serif" color="#0099FF" size="1"><span style="font-size:8pt"><b>.</b> </span></font></span></font></div>
</div>
</div>
</span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_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 914 432 3108<br></div></div></div>
</div></div></div>