[ncl-talk] Error in explicit selection mode

Adam Phillips asphilli at ucar.edu
Tue Sep 3 16:48:09 MDT 2019


Hi Ana,
I believe you need to specify contours in ascending order, so instead of
this:
res at 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/)
set this:
res at cnLevels            =
(-20,-18,-16,-14,-12,-10,-8,-6,-4,-2,-1.5,-1,-0.5,0.,0.5,1.5,2.5,3.5,4.5,6,7,8,10,12,14,16,18,20/)

Adam

On Tue, Sep 3, 2019 at 4:45 PM Rick Brownrigg via ncl-talk <
ncl-talk at ucar.edu> wrote:

> Hi,
>
> 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
> stat_dispersion() on the variable being plotted?
>
> http://ncl.ucar.edu/Document/Functions/Contributed/stat_dispersion.shtml
>
> Rick
>
>
> On Tue, Sep 3, 2019 at 3:59 PM Anahita Amiri Farahani via ncl-talk <
> ncl-talk at ucar.edu> wrote:
>
>> Hello all,
>>
>> I faced a problem when I replaced
>> res at cnLevelSelectionMode =  "AutomaticLevels"   ; AutomaticLevels
>>
>> with
>> res at cnLevelSelectionMode = "ExplicitLevels"   ; set explicit contour
>> levels
>>   res at 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/)
>>
>> I got this error:
>>
>> fatal:ContourPlotDraw: CPCLAM - CONTRADICTORY AREA-IDENTIFIER INFORMATION
>>
>>
>>
>>
>>
>> Here is the plotting part:
>>
>>
>>  res                     = True               ; plot mods desired
>>   res at cnFillOn            = True              ; turn on color
>>   res at gsnSpreadColors     = True               ; use full color map
>>   res at cnLinesOn           = False              ; no contour lines
>>   res at cnLineLabelsOn      = False              ; no line labels
>>
>>
>>  ; res at gsnAddCyclic        = False
>>   res at gsnDraw             = False           ; don't draw
>>   res at gsnFrame            = False           ; don't advance frame
>>   res at cnInfoLabelOn       = False           ; turn off cn info label
>>   res at cnFillOn            = True            ; turn on color
>>   res at gsnSpreadColors     = True            ; spread out color table
>>   res at gsnSpreadColorStart = 2               ; color to startt
>>
>>   res at lbLabelBarOn        = True          ; turn off individual cb's
>>
>>
>>
>>
>>
>> Any suggestions would be appreciated.
>>
>>
>> Thanks,
>>
>> Ana
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk



-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190903/41d2b052/attachment.html>


More information about the ncl-talk mailing list