<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi, is it complaining that the spacing is too fine compared to the wide range between min and max values, and reverting to doing what it thinks best?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div class="">-- <br class="">Alessandra Giannini<br class="">IRI for Climate and Society - The Earth Institute at Columbia University<br class="">P.O. Box 1000, Palisades NY 10964-8000<br class="">phone/fax: +1 845 680-4473/4864 - email: <a href="mailto:alesall@iri.columbia.edu" class="">alesall@iri.columbia.edu</a></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Feb 5, 2016, at 3:19 PM, Xi Chang <<a href="mailto:xi.chang01@gmail.com" class="">xi.chang01@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Karin,,<div class=""><br class=""></div><div class="">I did, but it doesnt work for gsn_csm_vector_scalar_map, no idea why..</div><div class=""><br class=""></div><div class="">Chang.</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Feb 5, 2016 at 7:53 PM, Karin Meier-Fleischer <span dir="ltr" class=""><<a href="mailto:meier-fleischer@dkrz.de" target="_blank" class="">meier-fleischer@dkrz.de</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000" class="">
Hi Xi,<br class="">
<br class="">
have you taken a look at the first example of the vector examples
page<br class="">
<a href="http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl" target="_blank" class="">http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl</a><br class="">
<br class="">
When you want to control the minimum/maximum and interval of the
contour lines use<br class="">
<pre class=""> 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 class="">
Karin<br class="">
<br class="">
<div class="">Am 05.02.16 um 19:00 schrieb Xi Chang:<br class="">
</div>
<blockquote type="cite" class=""><div class=""><div class="h5">
<div dir="ltr" class="">
<div class="">
<div class="">Hello...<br class="">
<br class="">
</div>
Could you please tell me how to control the contour interval
for color shading once im using this function <b class="">gsn_csm_vector_scalar_map</b>.<br class="">
</div>
<br class="">
;===========PLOT=================<br class="">
<br class="">
wks = gsn_open_wks("png","overlay")<br class="">
<br class="">
res = True ; plot mods
desired<br class="">
plot = new(16,graphic)<br class="">
<br class="">
res@gsnDraw = False ; don't draw<br class="">
res@gsnFrame = False ; don't advance
frame<br class="">
<br class="">
; vector rescoures<br class="">
res@vcRefLengthF = 0.045<br class="">
res@vcRefMagnitudeF = 20.0<br class="">
res@vcRefAnnoOrthogonalPosF = -0.12<br class="">
res@vcRefAnnoParallelPosF = 0.997<br class="">
res@vcRefAnnoFontHeightF = 0.015<br class="">
res@vcMinDistanceF = 0.03<br class="">
res@lbLabelBarOn = False <br class="">
<br class="">
res@mpProjection = "AzimuthalEquidistant" ; choose map
projection<br class="">
res@mpLimitMode = "LatLon" ; use lat/lon
coordinates to limit area<br class="">
res@mpMinLatF = 25.<br class="">
res@mpMaxLatF = 75.<br class="">
res@mpMinLonF = -80.<br class="">
res@mpMaxLonF = 20.<br class="">
res@gsnMaximize = True <br class="">
<br class="">
<b class=""> res@gsnScalarContour = True<br class="">
res@cnFillOn = True<br class="">
res@cnFillPalette = "gui_default" ; set color
map<br class="">
res@cnLinesOn = False ; turn off
contour lines<br class="">
</b><br class="">
<br class="">
<br class="">
do i=0,15<br class="">
plot(i) = gsn_csm_vector_scalar_map(wks,u(i,:,:),v(i,:,:), \<br class="">
p(i,:,:),res)<br class="">
end do<br class="">
<br class="">
resP = True ; modify the
panel plot<br class="">
resP@gsnMaximize = True <br class="">
gsn_panel(wks,plot,(/4,4/),resP) ; now draw as
one plot<br class="">
<br class="">
<br class="">
end<br class="">
<br class="">
<br class="">
</div>
<br class="">
<fieldset class=""></fieldset>
<br class="">
</div></div><pre class="">_______________________________________________
ncl-talk mailing list
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br class="">
</div>
<br class="">_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>