<div dir="ltr"><div>Hi,</div><div><br></div><div>Errors coming out of the low-level contouring routines, like this case, are very hard to track down. I have found in the code where the error message emanates, but I'm uncertain as to the conditions leading to it other than that something horribly wrong happened in the contouring code.  Are you able to share your script and data (you can send directly to me)? Otherwise, are you able to post the plot when you use AutomaticLevels, and possibly the output from <br></div><div>stat_dispersion() on the variable being plotted?<br></div><div><br></div><div><a href="http://ncl.ucar.edu/Document/Functions/Contributed/stat_dispersion.shtml">http://ncl.ucar.edu/Document/Functions/Contributed/stat_dispersion.shtml</a></div><div><br></div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 3, 2019 at 3:59 PM Anahita Amiri Farahani via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello all,<br><div><br></div><div>I faced a problem when I replaced </div><div>res@cnLevelSelectionMode =  "AutomaticLevels"   ; AutomaticLevels<br></div><div><br></div><div>with </div><div>res@cnLevelSelectionMode = "ExplicitLevels"   ; set explicit contour levels<br>  res@cnLevels            = (/-0.5,-1,-1.5,-2,-4,-6,-8,-10,-12,-14,-16,-18,-20,0.,0.5,1.5,2.5,3.5,4.5,6,7,8,10,12,14,16,18,20/)<br></div><div><br></div><div>I got this error:</div><div><br></div><div>





<p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font color="#ff0000">fatal:ContourPlotDraw: CPCLAM - CONTRADICTORY AREA-IDENTIFIER INFORMATION</font></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font color="#000000"><br></font></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font color="#000000"><br></font></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font color="#000000"><br></font></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font color="#000000"><br></font></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font color="#000000">Here is the plotting part:</font></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font color="#000000"><br></font></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"> res                     = True               ; plot mods desired<br>  res@cnFillOn            = True              ; turn on color   <br>  res@gsnSpreadColors     = True               ; use full color map<br>  res@cnLinesOn           = False              ; no contour lines<br>  res@cnLineLabelsOn      = False              ; no line labels<br><br><br> ; res@gsnAddCyclic        = False <br>  res@gsnDraw             = False           ; don't draw<br>  res@gsnFrame            = False           ; don't advance frame<br>  res@cnInfoLabelOn       = False           ; turn off cn info label<br>  res@cnFillOn            = True            ; turn on color<br>  res@gsnSpreadColors     = True            ; spread out color table<br>  res@gsnSpreadColorStart = 2               ; color to startt<br><br>  res@lbLabelBarOn        = True          ; turn off individual cb's<br></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><br></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><br></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><br></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><br></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)">Any suggestions would be appreciated.</span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><br></span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)">Thanks,</span></p><p class="gmail-m_3515776820441209516gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;font-family:"Andale Mono""><span class="gmail-m_3515776820441209516gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)">Ana</span></p></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></blockquote></div>