<div dir="ltr">Hi Laura,<div>Try adding:</div><div>ores@cnLineLabelsOn = False</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 19, 2018 at 12:09 PM Laura Fowler <<a href="mailto:laura@ucar.edu">laura@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Adam:<div><br></div><div>Thanks for your help. It did work after switching to gsn_csm_contour. I followed your suggestion and added separate resources for plot2 to remove the "mp" warning messages.</div><div><br></div><div>Despite adding the following lines:</div><div>
<span></span>
<p class="m_-1626957916287355003gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003gmail-s1" style="font-variant-ligatures:no-common-ligatures">ores@cnFillOn<span class="m_-1626957916287355003gmail-Apple-converted-space"> </span>= False</span></p>
<p class="m_-1626957916287355003gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003gmail-s1" style="font-variant-ligatures:no-common-ligatures">ores@cnLinesOn <span class="m_-1626957916287355003gmail-Apple-converted-space"> </span>= False</span></p>
<p class="m_-1626957916287355003gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003gmail-s1" style="font-variant-ligatures:no-common-ligatures">ores@cnLevelFlags<span class="m_-1626957916287355003gmail-Apple-converted-space"> </span>= "NoLine"</span></p>
<p class="m_-1626957916287355003gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003gmail-s1" style="font-variant-ligatures:no-common-ligatures">ores@cnInfoLabelOn = False</span></p>
<br></div><div>to my second (ores) set of ressources, I still get labels attached to the shading. Which additional option do I need to add to remove those extra labels so that the output looks like the one in overlay.ncl?</div><div><br></div><div>Many thanks,</div><div>Laura</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 19, 2018 at 11:39 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 Laura,<div>One can't overlay a plotting type with a map over another plotting class with a map. This should work:</div><div>plot = gsn_csm_contour_map(wks,lwpath_a(:,:,n),res)<br></div><div><span style="color:rgb(0,0,0);font-family:Courier;font-size:12px;font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">plot2 =<span> </span></span><span style="color:rgb(0,0,0);font-family:Courier;font-size:12px;font-variant-ligatures:no-common-ligatures;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline">gsn_csm_contour(wks,cldtopt_a(:,:,n),res)</span><br></div><div><span style="text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline"><font color="#000000" face="Courier"><span style="font-size:12px;font-variant-ligatures:no-common-ligatures">overlay(plot,plot2)</span></font><br></span></div><div><span style="text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline"><font color="#000000" face="Courier"><span style="font-size:12px;font-variant-ligatures:no-common-ligatures"><br></span></font></span></div><div><span style="text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline"><font color="#000000" face="Courier"><span style="font-size:12px;font-variant-ligatures:no-common-ligatures">You are getting the various mp* errors as you can't pass mp resources to a non-map plotting function, in this case gsn_csm_contour. You should be able to safely ignore those messages as everything will still work; NCL is just telling you it is ignoring some of your resources. If you would like to get rid of the messages though, I would recommend you create a new resource list, res2, for your cldtopt_a array that excludes mp resources.</span></font></span></div><div><span style="text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline"><font color="#000000" face="Courier"><span style="font-size:12px;font-variant-ligatures:no-common-ligatures">Hope that helps!</span></font></span></div><div><span style="text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline"><font color="#000000" face="Courier"><span style="font-size:12px;font-variant-ligatures:no-common-ligatures">Adam</span></font></span></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 19, 2018 at 11:33 AM Laura Fowler <<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello:<div><br></div><div>I am following the ncl script overlay_5.ncl to overlay shading over a contour plot. see the script test3.ncl in
<span></span>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">/glade2/scratch2/laura/forNCL</span></p>
<div><br></div><div>first, I plot the cloud liquid water path:</div><div>
<span></span>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">plot<span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-Apple-converted-space"> </span>= gsn_csm_contour_map(wks,lwpath_a(:,:,n),res)</span></p>
<br></div><div>then I would like to overlay shading of the cloud-top temperature with shading for cloud-top temperatures less than 248 or greater than 268.</div><div><br></div><div>When I use:</div><div>
<span></span>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">plot2 = <span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">gsn_csm_contour_map(wks,cldtopt_a(:,:,n),res)</span></span></p><p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">I get the error message:</span><br></p><p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">
<span></span>
</span></p><p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member</span></p>
<br><p></p>
When I use <span style="color:rgb(0,0,0);font-family:Courier;font-size:12px;font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">gsn_csm_contour(wks,cldtopt_a(:,:,n),res)</span></div><div>then I get the messages:</div><div>
<span></span>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:mpProjection is not a valid resource in test3.ceres_aqua.PO.dec2015_contour at this time</span></p>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:mpMinLonF is not a valid resource in test3.ceres_aqua.PO.dec2015_contour at this time</span></p>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:mpMaxLonF is not a valid resource in test3.ceres_aqua.PO.dec2015_contour at this time</span></p>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:mpMinLatF is not a valid resource in test3.ceres_aqua.PO.dec2015_contour at this time</span></p>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:mpMaxLatF is not a valid resource in test3.ceres_aqua.PO.dec2015_contour at this time</span></p>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:mpCenterLonF is not a valid resource in test3.ceres_aqua.PO.dec2015_contour at this time</span></p>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:mpShapeMode is not a valid resource in test3.ceres_aqua.PO.dec2015_contour at this time</span></p>
<p class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail-s1" style="font-variant-ligatures:no-common-ligatures">warning:mpDataBaseVersion is not a valid resource in test3.ceres_aqua.PO.dec2015_contour at this time</span></p>
<br></div><div>I am not sure what is going wrong, and would really like a suggestion on how to fix this.</div><div><br></div><div>Many thanks,</div><div>Laura</div><div><br></div><div><br></div><br clear="all"><div><br></div>-- <br><div class="m_-1626957916287355003m_8037254230837132040m_7400435501164079188gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM) </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><br></div></div></div>
</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><span class="m_-1626957916287355003HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="m_-1626957916287355003HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-1626957916287355003m_8037254230837132040gmail_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/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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-1626957916287355003gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM) </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><br></div></div></div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_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/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>