<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks. I didn’t see that. Mira should try that then.<div class=""><br class=""></div><div class="">Jack</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 27 Aug 2015, at 16:01, Alan Brammer <<a href="mailto:abrammer@albany.edu" class="">abrammer@albany.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:verdana,sans-serif"><dt style="margin: 0px; padding: 0px; line-height: 13pt; font-family: verdana, arial, sans-serif;" class="">cnLevelSpacingF still applies jn AutomaticLevels. That is the resource you want to delete if you want NCL to also choose the spacing as well as the min/max levels. You don't need to delete the selectionMode before resetting it. See below for the documentation on cnLevelSpacingF. </dt><dt style="margin: 0px; padding: 0px; line-height: 13pt; font-family: verdana, arial, sans-serif;" class=""><span style="line-height:13pt;margin:0px;padding:0px" class=""><a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF" class="">https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF</a></span><br class=""></dt><dt style="margin: 0px; padding: 0px; line-height: 13pt; font-weight: bold; font-family: verdana, arial, sans-serif;" class=""><strong style="margin:0px;padding:0px;line-height:13pt" class=""><br class=""></strong></dt><dt style="margin: 0px; padding: 0px; line-height: 13pt; font-weight: bold; font-family: verdana, arial, sans-serif;" class=""><strong style="margin:0px;padding:0px;line-height:13pt" class=""><br class=""></strong></dt><dt style="margin: 0px; padding: 0px; line-height: 13pt; font-weight: bold; font-family: verdana, arial, sans-serif;" class=""><strong style="margin:0px;padding:0px;line-height:13pt" class="">cnLevelSpacingF</strong></dt><dd style="margin: 0px 0px 0px 25px; padding: 0px; line-height: 16px;" class="">When the <a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSelectionMode" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSelectionMode</em></a> is <code style="margin:0px;padding:0px" class="">ManualLevels</code> or when the <a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSelectionMode" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSelectionMode</em></a> is <code style="margin:0px;padding:0px" class="">AutomaticLevels</code>, and<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSpacingF</em></a> is explicitly set, <a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSpacingF</em></a> determines the spacing between contour intervals. Otherwise, the<a href="https://www.ncl.ucar.edu/Document/HLUs/Classes/ContourPlot.shtml" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><strong style="margin:0px;padding:0px" class="">ContourPlot</strong></a> object sets the value of <a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSpacingF</em></a> based on the contour levels actually chosen. When the<a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSelectionMode" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSelectionMode</em></a> is <code style="margin:0px;padding:0px" class="">ExplicitLevels</code>, <a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelSpacingF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133)" class=""><em style="margin:0px;padding:0px" class="">cnLevelSpacingF</em></a> will be set to the arithmetic average of the spacing between levels.<p style="margin:10px 0px 20px;padding:0px;color:rgb(51,51,51);line-height:12pt" class="">Default: 5.0</p></dd></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Aug 27, 2015 at 7:35 AM, Jack Ogaja <span dir="ltr" class=""><<a href="mailto:jack.ogaja@gmail.com" target="_blank" class="">jack.ogaja@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try,<br class="">
<br class="">
delete(qfres@cnLevelSelectionMode) ;<=== Delete the resource before resetting<br class="">
qfres@cnLevelSelectionMode = “AutomaticLevels"<br class="">
<span class="HOEnZb"><font color="#888888" class=""><br class="">
Jack<br class="">
</font></span><div class="HOEnZb"><div class="h5"><br class="">
> On 27 Aug 2015, at 05:01, <a href="mailto:mberdahl@envsci.rutgers.edu" class="">mberdahl@envsci.rutgers.edu</a> wrote:<br class="">
><br class="">
> Hi all,<br class="">
><br class="">
> I'm trying to make a 3-panel plot, where the top two panels have user<br class="">
> define contour intervals (which I can make work, I think), but the bottom<br class="">
> panel I'd like to have automatically generated. The way I've tried is to<br class="">
> simply change the setting the LevelSelectionMode back to "AutomaticLevels"<br class="">
> before calling that final plot, but it doesn't seem to change back to<br class="">
> being automatic. Here is a snippet of my code showing how I try to do<br class="">
> this. Any recommendations on how to switch between different modes for<br class="">
> automatic and manual contour selection for different panels is greatly<br class="">
> appreciated.<br class="">
><br class="">
> Best,<br class="">
> Mira<br class="">
><br class="">
><br class="">
><br class="">
><br class="">
> qfres@cnLevelSelectionMode = "ManualLevels" ; set contour levels manually<br class="">
> qfres@cnMinLevelF = 0. ; set hte min contour level<br class="">
> qfres@cnMaxLevelF = 1. ; set the max contour level<br class="">
> qfres@cnLevelSpacingF = 0.1 ; set the contour interval<br class="">
><br class="">
><br class="">
> contour_qf_hi = gsn_csm_contour(wks,qAvgTime_hi,qfres)<br class="">
> contour_qf_lo = gsn_csm_contour(wks,qAvgTime_lo,qfres)<br class="">
><br class="">
> plot(0) = gsn_csm_contour(wks,qAvgTime_hi,qfres)<br class="">
> plot(1) = gsn_csm_contour(wks,qAvgTime_lo,qfres)<br class="">
><br class="">
> qfres@cnLevelSelectionMode = "AutomaticLevels" ; set it back to automatic<br class="">
> level contour spacing for the difference plot.<br class="">
> contour_qf_diff = gsn_csm_contour(wks,diff_q,qfres)<br class="">
> plot(2) = gsn_csm_contour(wks,diff_q,qfres)<br class="">
><br class="">
><br class="">
><br class="">
><br class="">
> _______________________________________________<br class="">
> ncl-talk mailing list<br class="">
> <a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
> List instructions, subscriber options, unsubscribe:<br class="">
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
<br class="">
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
</div></div></blockquote></div><br class=""></div></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>