<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div><span style="font-size: 10pt;">Thanks, Adam for your note, but unfortunately I tried your suggestion with no luck. The inland water bodies remain white. Therefore, I revised my code to NOT use wrf* functions, but I am still struggling with the white inland
 water bodies rather than grey. Any ideas what I am missing? I am using wrf_map_resources to set some resources, but it shouldn't overwrite like wrf_map_overlays. Here's my revised script:</span></div>
<div><br>
</div>
<div>
<p class="p1">begin</p>
<p class="p2"><br>
</p>
<p class="p1">;type = &quot;ps&quot;</p>
<p class="p1">type = &quot;png&quot;</p>
<p class="p2"><br>
</p>
<p class="p1">colors=(/&quot;white&quot;,&quot;black&quot;,&quot;grey81&quot;,&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;,&quot;black&quot;/) &nbsp;</p>
<p class="p1"><br>
</p>
<p class="p1">wks = gsn_open_wks(type,pname&#43;ndt)</p>
<p class="p1">gsn_define_colormap(wks,colors) &nbsp;</p>
<p class="p2"><br>
</p>
<p class="p2"><br>
</p>
<p class="p1">;********************** mpres</p>
<p class="p2"><br>
</p>
<p class="p1">mpres&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p class="p1">mpres@gsnDraw&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</p>
<p class="p1">mpres@gsnFrame &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</p>
<p class="p2"><br>
</p>
<p class="p1">mpres&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = wrf_map_resources(f,mpres)</p>
<p class="p2"><br>
</p>
<p class="p1">mpres@mpDataBaseVersion&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;Ncarg4_1&quot;</p>
<p class="p1">mpres@mpDataSetName&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;Earth..1&quot;</p>
<p class="p1">mpres@mpNationalLineColor&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;black&quot;</p>
<p class="p1">mpres@mpNationalLineThicknessF &nbsp; &nbsp; = 3.5</p>
<p class="p1">mpres@mpGeophysicalLineColor &nbsp; &nbsp; &nbsp; = &quot;black&quot;</p>
<p class="p1">mpres@mpGeophysicalLineThicknessF&nbsp; = 3.5</p>
<p class="p1">mpres@mpProvincialLineColor&nbsp; &nbsp; &nbsp; &nbsp; = &quot;black&quot;</p>
<p class="p1">mpres@mpProvincialLineThicknessF &nbsp; = 3.5</p>
<p class="p1">mpres@mpFillOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p class="p1">mpres@mpFillColors &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = (/&quot;transparent&quot;,&quot;transparent&quot;,&quot;transparent&quot;,&quot;grey81&quot;/)</p>
<p class="p1">mpres@mpFillDrawOrder&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;PostDraw&quot;</p>
<p class="p1">;mpres@mpInlandWaterFillColor &nbsp; &nbsp; &nbsp; = &quot;grey81&quot;</p>
<p class="p1">;mpres@mpOceanFillColor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;grey81&quot;</p>
<p class="p1">;mpres@mpLandFillColor&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;grey81&quot;</p>
<p class="p2"><br>
</p>
<p class="p1">mpres@tfDoNDCOverlay &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p class="p1">mpres@gsnAddCyclic &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</p>
<p class="p2"><br>
</p>
<p class="p1">mpres@cnLinesOn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</p>
<p class="p1">mpres@cnLineLabelsOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</p>
<p class="p1">mpres@cnInfoLabelOn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</p>
<p class="p1">mpres@cnFillOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p class="p1">mpres@cnFillMode &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;RasterFill&quot;</p>
<p class="p1">mpres@cnRasterSmoothingOn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</p>
<p class="p1">mpres@cnMinLevelValF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0</p>
<p class="p1">mpres@cnMaxLevelValF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 3</p>
<p class="p1">mpres@cnLevelSpacingF&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1</p>
<p class="p2"><br>
</p>
<p class="p1">mpres@lbLabelBarOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</p>
<p class="p1">mpres@mpGridLineDashPattern&nbsp; &nbsp; &nbsp; &nbsp; = 2</p>
<p class="p1">mpres@tmXBLabelFontHeightF &nbsp; &nbsp; &nbsp; &nbsp; = 0.015</p>
<p class="p1">mpres@tmYLLabelFontHeightF &nbsp; &nbsp; &nbsp; &nbsp; = 0.015</p>
<p class="p1">mpres@tmXBMajorLengthF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0.004</p>
<p class="p1">mpres@tmXBLabelDeltaF&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = -0.4</p>
<p class="p1">mpres@gsnMaximize&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p class="p2"><br>
</p>
<p class="p2"><br>
</p>
<p class="p1"></p>
<p class="p1">mplot = gsn_csm_contour_map(wks,vmap,mpres)</p>
<p class="p1">draw(mplot)</p>
<p class="p1"></p>
<p class="p1">frame(wks)</p>
<p class="p1"><br>
</p>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF43772" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Adam Phillips [asphilli@ucar.edu]<br>
<b>Sent:</b> Monday, September 08, 2014 8:05 AM<br>
<b>To:</b> Dennis Shea<br>
<b>Cc:</b> Matthew Fearon; ncl-talk; wrfhelp@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] define infill color for inland water bodies<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>Hi Matthew,<br>
</div>
Both Kyle and Dennis are correct in that the wrf* functions can overrule or ignore some resources. However, I have one more combination of resources for you to try. I see that you are color filling your contours and that you'd like the inland lakes to be filled
 gray. In order to do this you'd want to draw the map fill last, and set all map fill colors (default, ocean, land) to transparent other than inland water. I am also having you set the contour color fill draw order to &quot;Draw&quot; to further make sure&nbsp; that the map
 fill is drawn after the contour color fill.<br>
<br>
Try this:<br>
</div>
; note that you could have set mpLandFillColor, mpOceanFIllColor, etc. instead of<br>
; mpFillColors<br>
</div>
<div>mpres@mpFillColors = (/&quot;transparent&quot;,&quot;transparent&quot;,&quot;transparent&quot;,&quot;grey81&quot;/)<br>
</div>
mpres@mpFillDrawOrder = &quot;PostDraw&quot;<br>
<br>
</div>
var3_res@cnFillDrawOrder = &quot;Draw&quot;&nbsp;&nbsp;&nbsp; ; might not be needed<br>
<div><br>
</div>
<div>If the above combination does not work, then I would follow Dennis' suggestions of either contacting wrf-help or stripping wrf_map_overlays out and modifying it to your own needs.
<br>
</div>
<div>Adam<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Sep 8, 2014 at 7:45 AM, Dennis Shea <span dir="ltr">
&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div>
<div>
<div>The wrf_* were written by wrfhelp. You should send questions to <a href="mailto:wrfhelp@ucar.edu" target="_blank">
wrfhelp@ucar.edu</a> on all of these functions. You can cc <a href="mailto:ncl-talk@ucar.edu" target="_blank">
ncl-talk@ucar.edu</a><br>
<br>
</div>
As noted, the resources may not be allowed or are overwritten by the wrf code.<br>
</div>
I'd suggest extracting the function from the library, modifying the function and then calling the modified function.<br>
<br>
</div>
Good luck<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Sep 7, 2014 at 11:10 PM, Kyle Griffin <span dir="ltr">
&lt;<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<p dir="ltr">Although I'm not certain, most WRF plotting scripts overwrite many of the more complicated resources. It sounds like these map fill resources are included in the list that they either don't recognize or overwrite.<span><font color="#888888"><br>
<br>
</font></span></p>
<span><font color="#888888">
<p dir="ltr">Kyle</p>
</font></span>
<div>
<div>
<div class="gmail_quote">On Sep 7, 2014 8:27 PM, &quot;Matthew Fearon&quot; &lt;<a href="mailto:Matthew.Fearon@dri.edu" target="_blank">Matthew.Fearon@dri.edu</a>&gt; wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Thanks, Kyle, but I'm missing something still. My script is below. The wrf_map_overlays function is perhaps messing up the draw order or recoloring inland water bodies white. Any
 ideas?&nbsp;
<div><br>
</div>
<div><br>
</div>
<div>
<p>type = &quot;png&quot;</p>
<p><br>
</p>
<p><span style="font-size:10pt">wks = gsn_open_wks(type,pname&#43;ndt)</span></p>
<p>gsn_define_colormap(wks,&quot;MPL_terrain&quot;)</p>
<p>res&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p>res@NoHeaderFooter &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p>
<p><br>
</p>
<p>mpres&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p>mpres@mpDataBaseVersion&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;Ncarg4_0&quot;</p>
<p>mpres@mpDataSetName&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;Earth..1&quot;</p>
<p>mpres@mpNationalLineColor&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;black&quot;</p>
<p>mpres@mpNationalLineThicknessF &nbsp; &nbsp; = 2</p>
<p>mpres@mpGeophysicalLineColor &nbsp; &nbsp; &nbsp; = &quot;black&quot;</p>
<p>mpres@mpGeophysicalLineThicknessF&nbsp; = 2</p>
<p>mpres@mpProvincialLineColor&nbsp; &nbsp; &nbsp; &nbsp; = &quot;black&quot;</p>
<p>mpres@mpProvincialLineThicknessF &nbsp; = 3</p>
<p>;mpres@mpFillOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p>;mpres@mpFillDrawOrder&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;PreDraw&quot;</p>
<p>mpres@mpInlandWaterFillColor &nbsp; &nbsp; &nbsp; = &quot;grey81&quot;</p>
<p>mpres@mpOceanFillColor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;grey81&quot;</p>
<p>mpres@mpLandFillColor&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;grey81&quot;</p>
<p><br>
</p>
<p>pltres = True</p>
<p><br>
</p>
<p><span style="font-size:10pt">var3_res = res</span></p>
<p>var3_res@ContourParameters &nbsp; &nbsp; = (/ 0, 3, 1 /)</p>
<p>var3_res@cnFillMode&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;RasterFill&quot;</p>
<p>var3_res@cnFillOn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p>var3_res@cnRasterSmoothingOn &nbsp; = False</p>
<p>var3_res@cnFillColors&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = (/&quot;grey81&quot;,&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;,&quot;black&quot;/)</p>
<p>var3_res@cnFillDrawOrder &nbsp; &nbsp; &nbsp; = &quot;Draw&quot;</p>
<p></p>
<p>con3_var = wrf_contour(f,wks,vmap,var3_res)</p>
<p><br>
</p>
<p><br>
</p>
<p>pltres@CommonTitle = True</p>
<p>pltres@PlotTitle = ndt</p>
<p>plot = wrf_map_overlays(f,wks,(/con3_var/),pltres,mpres)</p>
<p><br>
</p>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> <a href="mailto:windrunnerxc@gmail.com" target="_blank">
windrunnerxc@gmail.com</a> [<a href="mailto:windrunnerxc@gmail.com" target="_blank">windrunnerxc@gmail.com</a>] on behalf of Kyle Griffin [<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>]<br>
<b>Sent:</b> Sunday, September 07, 2014 5:33 PM<br>
<b>To:</b> Matthew Fearon; ncl-talk<br>
<b>Subject:</b> Re: [ncl-talk] define infill color for inland water bodies<br>
</font><br>
</div>
<div></div>
<div>
<p dir="ltr">Don't use mpFillColor. Use a combination of mpLandFillColor, mpOceanFillColor, and mpInlandWaterFillColor. These are your desired resources.<br>
</p>
<p dir="ltr">Kyle</p>
<div class="gmail_quote">On Sep 7, 2014 4:56 PM, &quot;Matthew Fearon&quot; &lt;<a href="mailto:Matthew.Fearon@dri.edu" target="_blank">Matthew.Fearon@dri.edu</a>&gt; wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Dear NCL Users,
<div><br>
</div>
<div>What is the correct method for filling in inland water bodies with a specified color. Here's the resources I have been experimenting with, but none seem to work, eg, inland lakes are consistently colored white not grey81. Thanks, Matt</div>
<div><br>
</div>
<div><br>
</div>
<div>
<p>mpres&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p>;mpres@mpDataBaseVersion&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;Ncarg4_0&quot;</p>
<p>;mpres@mpDataSetName&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;Earth..4&quot;</p>
<p>mpres@mpNationalLineColor&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;black&quot;</p>
<p>mpres@mpNationalLineThicknessF &nbsp; &nbsp; = 2</p>
<p>mpres@mpGeophysicalLineColor &nbsp; &nbsp; &nbsp; = &quot;black&quot;</p>
<p>mpres@mpGeophysicalLineThicknessF&nbsp; = 2</p>
<p>mpres@mpProvincialLineColor&nbsp; &nbsp; &nbsp; &nbsp; = &quot;black&quot;</p>
<p>mpres@mpProvincialLineThicknessF &nbsp; = 3</p>
<p>mpres@mpFillOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p>mpres@mpMonoFillColor&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</p>
<p>mpres@mpFillColor&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;grey81&quot;</p>
<p>mpres@mpFillAreaSpecifiers &nbsp; &nbsp; &nbsp; &nbsp; = &quot;water&quot; &nbsp; ;&quot;inlandwater&quot;</p>
<p>mpres@mpSpecifiedFillColors&nbsp; &nbsp; &nbsp; &nbsp; = &quot;grey81&quot;</p>
</div>
</div>
</div>
<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>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<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>
</blockquote>
</div>
<br>
</div>
<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>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div dir="ltr">
<div>
<div>
<div><span><font color="#888888">Adam Phillips <br>
</font></span></div>
<span><font color="#888888">Associate Scientist,&nbsp; </font></span><span><font color="#888888">Climate and Global Dynamics Division, 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>&nbsp;&nbsp;
</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>
</body>
</html>