<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi all,</p>
<p><br>
</p>
<p>I'm trying to get a map with visually smoother colours. I think it would be nice to increase by a large number the levels used in the gsn_csm_contour function. But at the same time, I still want about 10 ticks maximum on the colourbar. Is there any simple
 way to do this?</p>
<p><br>
</p>
<p>Attached is the map I'm working on (1), and the smoother type of map I'd like to produce with NCL (2).</p>
<p><br>
</p>
<p>You can find below an extract of my script.<br>
</p>
<p><br>
</p>
<p>Thank you very much,</p>
<p><br>
</p>
<p>Maxime</p>
<p><br>
</p>
<p><br>
</p>
<p>-------</p>
<p></p>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; PLOT NUMBER A2<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; delete(wks)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; delete(res)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wks = gsn_open_wks(type,&quot;./movies/plot_olr_big_array_&quot; &#43; data_dir_for_plots &#43; &quot;_num_day_&quot; &#43; num_day_s &#43; &quot;_num_output_&quot; &#43; num_output_s &#43; &quot;_v1&quot;)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gsn_define_colormap(wks,&quot;NCV_blu_red&quot;)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res = True<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@cnFillOn = True<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@gsnSpreadColors = True<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@cnLineLabelsOn = False<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@lbOrientation&nbsp;&nbsp; = &quot;Vertical&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@cnLevelSelectionMode = &quot;ManualLevels&quot; ;&quot;AutomaticLevels&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@cnMaxLevelValF = 280.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@cnMinLevelValF = 100.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@cnLevelSpacingF = 20.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@gsnMaximize = True<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@tiYAxisString = &quot;y (km)&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@tiXAxisString = &quot;x (km)&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@tiMainString = &quot;OLR, num_day=&quot; &#43; num_day &#43; &quot;, num_output=&quot; &#43; num_output<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res@gsnMaximize = True<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plot = gsn_csm_contour(wks,olr_big_array(length_single_file*(num_day-1)&#43;num_output,:,:),res)<br>
</div>
<br>
<p></p>
<p>-------<br>
</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><font face="Calibri,Arial,Helvetica,sans-serif" size="3" color="black"></font></p>
<font face="Calibri,Arial,Helvetica,sans-serif" size="3" color="black">
<pre style="margin-top:14pt; margin-bottom:14pt"><font face="Candara,sans-serif" size="2"><span style="font-size:9pt">Maxime Colin</span></font><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> <br>---------------------------------------------</span></font><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> <br>PhD candidate</span></font><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> <br>Climate Change Research Centre &amp; ARC Centre of Excellence for Climate</span></font><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> System Science, UNSW, Australia</span></font><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> <br>and</span></font><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> Laboratoire de Météorologie Dynamique, UPMC, France</span></font><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> </span></font><br><a href="http://www.ccrc.unsw.edu.au/ccrc-team/students/maxime-colin" target="_blank" id="LPNoLP"><span id="LPNoLP"><font face="Candara,sans-serif" size="2"><span style="font-size:9pt">http://www.ccrc.unsw.edu.au/ccrc-team/students/maxime-colin</span></font></span></a><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> </span></font><br><a href="http://www.climatescience.org.au/staff/profile/mcolin" target="_blank" id="LPNoLP"><span id="LPNoLP"><font face="Candara,sans-serif" size="2"><span style="font-size:9pt">http://www.climatescience.org.au/staff/profile/mcolin</span></font></span></a><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> <br>---------------------------------------------</span></font><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> <br>&#43;61 (0)421 620 779    /    &#43;33 (0)6 25 57 81 93</span></font><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"> </span></font><font face="Candara,sans-serif" size="2"><span style="font-size:9pt"><br>m.colin@unsw.edu.au    /     </span></font><a href="https://www.normalesup.org/phare/squirrelmail/src/compose.php?send_to=maxime.colin%40normalesup.org" target="_blank" id="LPNoLP"><span id="LPNoLP"><font face="Candara,sans-serif" size="2"><span style="font-size:9pt">colinmaxime@hotmail.fr</span></font></span></a></pre>
</font><br>
<p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>