<div dir="ltr">Hi:<div><br></div><div>I was able to make the change suggested, but when I read in the data and process it first (instead of starting with a ready made file), the first panel is larger than the rest. </div><div><br></div><div>I assume this is another "bug" in the WRF settings...</div><div><br></div><div>This doesn't happen when I supply the output as a ready to read file.</div><div><br></div><div>Barry</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 11, 2017 at 8:55 PM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</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 Barry,<div>Thanks for providing an easy-to-run script as that made debugging this much easier. It turns out that the solution is simply a matter of providing a units attribute for the data array (liq_equiv_sml) that you are passing to wrf_contour at line 279.</div><div>Thus, append this line:</div><div>liq_equiv_sml@units = "mm" ; needs to be set to something other than ""<br></div><div>above this line:</div><div>contour = wrf_contour(a,wks,liq_equiv_<wbr>sml,res1)<br></div><div><br></div><div>I was able to get your plot to show the label bar title after appending that line. The reason for all this is that wrf_contour expects a units attribute to be set, and if it does not get one it internally sets lbTitleOn = False. (See line 2706 in WRFUserARW.ncl and trace up from there.) The current WRFUserARW.ncl coding precludes the user from manually setting the lbTitleString unless there is a units attribute that is set to something other than an empty string ("").</div><div><br></div><div><br></div><div>To answer your question about creating a greater/less than or equal symbol: Strangely, I could not find that character in the NCL font tables. You could create them though by drawing a > or < and using function codes to back up and draw a _. For example:</div><div>subtitle = "a >~H-16~_ 6" </div><div><br></div><div>Hope that all helps. If you have any further questions let ncl-talk know.</div><span class="HOEnZb"><font color="#888888"><div>Adam</div><div><br></div><div><br></div><div><br></div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 8, 2017 at 9:59 PM, 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 uploaded wrfout_d03*2017*03*</div><div><br></div><div>and <a href="http://file_for_adam.nc" target="_blank">file_for_adam.nc</a></div><div><br></div><div>The second file is needed because it contains all the processed data that is supposed to be mapped.</div><div><br></div><div>In the excerpted code (attached), the maps are the same size, but the "ensemble mean" still does not appear. I am not sure why the maps are the same size in this version of the code.</div><div><br></div><div>One question; is it possible to write > with an underline?</div><div><br></div><div>Thank you for the help!</div><div><br></div><div>Barry</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 8, 2017 at 12:16 AM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</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 Barry,<div>My original email had a typo in it. The resource I wanted you to set was <span style="font-size:12.8px">pmLabelBarOrthogonalPosF and not </span><span style="font-size:12.8px">pmLaberlBarOrthogonalPosF.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Regardless, if you would upload the wrf file you are using to our ftp site I will try to run your script from here. FTP directions:</span></div><div><span style="font-size:12.8px"><a href="http://www.ncl.ucar.edu/report_bug.shtml#HowToFTP" target="_blank">http://www.ncl.ucar.edu/report<wbr>_bug.shtml#HowToFTP</a></span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Let ncl-talk know when the file has been uploaded.</span></div><span class="m_-653564906560774904m_5344670551914689852HOEnZb"><font color="#888888"><div><span style="font-size:12.8px">Adam</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></font></span></div><div class="m_-653564906560774904m_5344670551914689852HOEnZb"><div class="m_-653564906560774904m_5344670551914689852h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 5, 2017 at 9:05 PM, 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">
<p class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-p1">
</p><p class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-p1"><span class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-s1">Hi:</span></p><p class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-p1"><span class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-s1">Making that substitution does not make a difference on the plot. "Percent" does not appear.</span></p><p class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-p1"><span class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-s1"><br></span></p><p class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-p1"><span class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-s1">
</span></p><p class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-p1"><span class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-s1">contour = wrf_contour(a,wks,liq_equiv_sm<wbr>l,</span><span class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-s2">res2</span><span class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-s1">)</span></p><p class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-p1"><span class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-s1">has no effect.</span></p><p class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-p1">Also, adding that command to adjust the label bar gives a warning.</p><p class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-p1"><span class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail-s1">warning:pmLaberlBarOrthogonalP<wbr>osF is not a valid resource in wrf_snow_panel_03_13_2017_4.0k<wbr>m-Alb_contour at this time</span></p></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 5, 2017 at 10:36 PM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</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 Barry,<div>I think the panels are different size because (for whatever reason) the labelbar title is not being drawn on the first panel, and NCL uses the size needed for the 1st panel to allocate space for all other panels. (You can switch this. See example 24 here:</div><div><a href="http://www.ncl.ucar.edu/Applications/panel.shtml#ex24" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/panel.shtml#ex24</a> )<br></div><div><br></div><div>As to why the labelbar title does not show for plot #1: Looking at your script I don't see anything amiss. Try swapping res1 for res2 when you create your first plot and see if "percent" appears:</div><div>line 401: contour = wrf_contour(a,wks,liq_equiv_sm<wbr>l,res2)<br></div><div><br></div><div>You can also move the labelbar away from the plot by setting res1@pmLaberlBarOrthogonalPosF to say -0.03.</div><div><br></div><div>Try the above and let ncl-talk know the results if the changes do not yield the answer.</div><div>Adam</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723h5">On Wed, Apr 5, 2017 at 7:11 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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723h5"><div dir="ltr">Hi:<div><br></div><div>The first plot (with res1@lb...) will not plot the label above (or anywhere) "ensemble mean."</div><div><br></div><div>Also, the size of the first plot is larger than the others.</div><div><br></div><div>I have attached the map, and the code. </div><div><br></div><div>As far as I can tell, the definitions for res1 and res2 are the same, but the results are different.</div><div><br></div><div>Thank you for your help,</div><div><br></div><div>Barry<br clear="all"><div><br></div>-- <br><div class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723m_-3177463031695463855m_-8137227307930741979gmail_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></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><span class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723m_-3177463031695463855gmail_signature" data-smartmail="gmail_signature"><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/asphill<wbr>i/</a> </font></span><span><font color="#888888"><a href="tel:(303)%20497-1726" value="+13034971726" target="_blank">303-497-1726</a> </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>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513m_1529039584177844723gmail_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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-653564906560774904m_5344670551914689852m_-2329387248344388513gmail_signature" data-smartmail="gmail_signature"><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/asphill<wbr>i/</a> </font></span><span><font color="#888888"><a href="tel:(303)%20497-1726" value="+13034971726" target="_blank">303-497-1726</a> </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>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-653564906560774904m_5344670551914689852gmail_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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-653564906560774904gmail_signature" data-smartmail="gmail_signature"><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/<wbr>asphilli/</a> </font></span><span><font color="#888888"><a href="tel:(303)%20497-1726" value="+13034971726" target="_blank">303-497-1726</a> </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>
</div>
</div></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>