<div dir="ltr"><div><div><div>Hi Dave,<br></div>I do not see anything amiss with your code, but sometimes the default line labels can be sparse. See example #6 here on how to increase the number of line labels:<br><a href="http://www.ncl.ucar.edu/Applications/contourLab.shtml#ex6">http://www.ncl.ucar.edu/Applications/contourLab.shtml#ex6</a><br><br></div>If the above does not help or if you have additional questions please respond to ncl-talk.<br></div>Adam<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 27, 2015 at 4:33 AM, David Craig <span dir="ltr">&lt;<a href="mailto:dcdavemail@gmail.com" target="_blank">dcdavemail@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I am having trouble with contour line labels. They don&#39;t seem to appear<br>
on my map. A short example of how I call them is given below. Anyone see<br>
what the problem is?<br>
thanks,<br>
Dave<br>
<br>
<br>
<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>
; ================================================;<br>
<br>
<br>
begin<br>
<br>
<br>
<br>
   minlat = 48<br>
   maxlat = 65<br>
   minlon = -21<br>
   maxlon = 0<br>
<br>
   g = addfile(&quot;/data/davcra/GEBCO/GEBCO_2014_2D.nc&quot;, &quot;r&quot;)<br>
   e = g-&gt;elevation({minlat:maxlat},{minlon:maxlon})<br>
<br>
   wks = gsn_open_wks(&quot;png&quot;, &quot;map&quot;)               ; open a file<br>
<br>
<br>
   res                       = True     ; plot mods desired<br>
<br>
   res@cnFillOn                       = False     ; turn on/off color fill<br>
   res@cnLinesOn                      = True      ; turn on/off contour<br>
lines<br>
   res@cnLineLabelsOn                 = True      ; turn on/off contour<br>
line labels<br>
   res@cnLevelSelectionMode           = &quot;ExplicitLevels&quot;      ; set<br>
explicit contour levels<br>
   res@cnLevels                       = (/ -1000., -300., -150./)  ; set<br>
levels<br>
<br>
   res@mpMinLatF            = minlat      ; range to zoom in on<br>
   res@mpMaxLatF            = maxlat<br>
   res@mpMinLonF            = minlon<br>
   res@mpMaxLonF            = maxlon<br>
   res@gsnAddCyclic         = False    ; data already has cyclic point<br>
<br>
   plot = gsn_csm_contour_map(wks,e, res)<br>
<br>
end<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="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>
</div>