[ncl-talk] Adding end labels to label bar

Anne SEIDENGLANZ anne.seidenglanz at unive.it
Sat Sep 29 06:14:02 MDT 2018


Hi,

I have a problem setting the labels to a label bar in a way I want. I have sea ice concentration data ranging from 0% to 100%. What I want is a label bar going from 0 to 100 as the data is, so I set also res at cnLabelBarEndStyle = “IncludeMinMaxLabels”.

When I set the contour levels explicitly from 0 to 100, NCL tells me it cannot include the lower and upper labels and I end up values above 100% which is not what I want (1st picture). When I exclude 0 and 100 from the explicit levels  and I set them from 10 to 90 I get some strange value of 99.41 as upper end label (2nd picture). I have also tried with “ManualLevels” but the result was similar. I even set my value range explicitly from 0 to 100 :
 tice = where((tice.ge.0 .and. tice.le.100), tice, tice at _FillValue)

Am I missing something? I am using NCL version 6.4.0.

Any advice is appreciated,
thanks,
Anne


explicit levels 0->100




explicit levels 10->90 and end labels included




-- 
Nota automatica aggiunta dal sistema di posta.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180929/0e0756d4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2018-09-29 at 14.10.56.png
Type: image/png
Size: 98268 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180929/0e0756d4/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2018-09-29 at 14.05.38.png
Type: image/png
Size: 91495 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180929/0e0756d4/attachment-0001.png>


More information about the ncl-talk mailing list