<div dir="ltr">Hi Karin,,<div><br></div><div>I did, but it doesnt work for gsn_csm_vector_scalar_map, no idea why..</div><div><br></div><div>Chang.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 5, 2016 at 7:53 PM, Karin Meier-Fleischer <span dir="ltr"><<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi Xi,<br>
<br>
have you taken a look at the first example of the vector examples
page<br>
<a href="http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl" target="_blank">http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl</a><br>
<br>
When you want to control the minimum/maximum and interval of the
contour lines use<br>
<pre> res@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels
res@cnMinLevelValF = 24.0 ; set min contour level
res@cnMaxLevelValF = 29 ; set max contour level
res@cnLevelSpacingF = 0.10 ; set contour spacing
</pre>
Bye,<br>
Karin<br>
<br>
<div>Am 05.02.16 um 19:00 schrieb Xi Chang:<br>
</div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>Hello...<br>
<br>
</div>
Could you please tell me how to control the contour interval
for color shading once im using this function <b>gsn_csm_vector_scalar_map</b>.<br>
</div>
<br>
;===========PLOT=================<br>
<br>
wks = gsn_open_wks("png","overlay")<br>
<br>
res = True ; plot mods
desired<br>
plot = new(16,graphic)<br>
<br>
res@gsnDraw = False ; don't draw<br>
res@gsnFrame = False ; don't advance
frame<br>
<br>
; vector rescoures<br>
res@vcRefLengthF = 0.045<br>
res@vcRefMagnitudeF = 20.0<br>
res@vcRefAnnoOrthogonalPosF = -0.12<br>
res@vcRefAnnoParallelPosF = 0.997<br>
res@vcRefAnnoFontHeightF = 0.015<br>
res@vcMinDistanceF = 0.03<br>
res@lbLabelBarOn = False <br>
<br>
res@mpProjection = "AzimuthalEquidistant" ; choose map
projection<br>
res@mpLimitMode = "LatLon" ; use lat/lon
coordinates to limit area<br>
res@mpMinLatF = 25.<br>
res@mpMaxLatF = 75.<br>
res@mpMinLonF = -80.<br>
res@mpMaxLonF = 20.<br>
res@gsnMaximize = True <br>
<br>
<b> res@gsnScalarContour = True<br>
res@cnFillOn = True<br>
res@cnFillPalette = "gui_default" ; set color
map<br>
res@cnLinesOn = False ; turn off
contour lines<br>
</b><br>
<br>
<br>
do i=0,15<br>
plot(i) = gsn_csm_vector_scalar_map(wks,u(i,:,:),v(i,:,:), \<br>
p(i,:,:),res)<br>
end do<br>
<br>
resP = True ; modify the
panel plot<br>
resP@gsnMaximize = True <br>
gsn_panel(wks,plot,(/4,4/),resP) ; now draw as
one plot<br>
<br>
<br>
end<br>
<br>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
ncl-talk mailing list
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br>
</div>
<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>
<br></blockquote></div><br></div>