<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Sorry, it has to be min(pi(i,:,:)) and max(p(i,:,:)).<div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 07.02.2016 um 14:42 schrieb Karin Meier-Fleischer <<a href="mailto:meier-fleischer@dkrz.de" class="">meier-fleischer@dkrz.de</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">What does min(p(i)) and max(p(i)) return?<br class=""><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">Am 05.02.2016 um 21:21 schrieb alesall <<a href="mailto:alesall@iri.columbia.edu" class="">alesall@iri.columbia.edu</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div 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 class=""><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=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class=""></div></blockquote></div><br class=""></div></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=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class=""></div></blockquote></div><br class=""><div apple-content-edited="true" class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">____________________________________</div></span><span style="font-size: 13px; font-family: 'Courier New';" class="">Dipl. Geophys. Karin Meier-Fleischer</span></div></span><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Visualisierung</span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Abteilung Anwendungen</span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class=""><br class=""></span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Deutsches Klimarechenzentrum GmbH (DKRZ)</span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Bundesstrasse 45a * D-</span></font><span style="font-size: 13px; font-family: 'Courier New'; text-align: -webkit-auto;" class="">20146 Hamburg </span></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Germany </span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class=""><br class=""></span></font></div><div class=""><span style="font-family: 'Courier New'; font-size: 13px;" class="">Phone:<span class="Apple-tab-span" style="white-space: pre;">        </span>+49 (0)40 460094 126</span></div><div class=""><div class=""><span style="font-family: 'Courier New'; font-size: 13px; text-align: -webkit-auto;" class="">Fax:<span class="Apple-tab-span" style="white-space: pre;">        </span>+49 (0)40 460094 270</span></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">E-Mail:<span class="Apple-tab-span" style="white-space: pre;">        </span></span></font><span style="font-size: 13px; font-family: 'Courier New'; text-align: -webkit-auto;" class=""><a href="mailto:meier-fleischer@dkrz.de" class="">meier-fleischer@dkrz.de</a></span></div></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">URL:<span class="Apple-tab-span" style="white-space: pre;">        </span></span></font><span style="text-align: -webkit-auto; font-size: 13px; font-family: 'Courier New';" class=""><a href="http://www.dkrz.de/" class="">http://www.dkrz.de/</a></span></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class=""><br class=""></span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Geschäftsführer: Prof. Dr. Thomas Ludwig</span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Sitz der Gesellschaft: Hamburg</span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Amtsgericht Hamburg HRB 39784</span></font></div><div class=""><br class=""></div></div></span></div></div></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></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 apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">____________________________________</div></span><span style="font-size: 13px; font-family: 'Courier New';" class="">Dipl. Geophys. Karin Meier-Fleischer</span></div></span><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Visualisierung</span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Abteilung Anwendungen</span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class=""><br class=""></span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Deutsches Klimarechenzentrum GmbH (DKRZ)</span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Bundesstrasse 45a * D-</span></font><span style="font-size: 13px; font-family: 'Courier New'; text-align: -webkit-auto;" class="">20146 Hamburg </span></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Germany </span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class=""><br class=""></span></font></div><div class=""><span style="font-family: 'Courier New'; font-size: 13px;" class="">Phone:<span class="Apple-tab-span" style="white-space: pre;">        </span>+49 (0)40 460094 126</span></div><div class=""><div class=""><span style="font-family: 'Courier New'; font-size: 13px; text-align: -webkit-auto;" class="">Fax:<span class="Apple-tab-span" style="white-space: pre;">        </span>+49 (0)40 460094 270</span></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">E-Mail:<span class="Apple-tab-span" style="white-space: pre;">        </span></span></font><span style="font-size: 13px; font-family: 'Courier New'; text-align: -webkit-auto;" class=""><a href="mailto:meier-fleischer@dkrz.de" class="">meier-fleischer@dkrz.de</a></span></div></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">URL:<span class="Apple-tab-span" style="white-space: pre;">        </span></span></font><span style="text-align: -webkit-auto; font-size: 13px; font-family: 'Courier New';" class=""><a href="http://www.dkrz.de/" class="">http://www.dkrz.de/</a></span></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class=""><br class=""></span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Geschäftsführer: Prof. Dr. Thomas Ludwig</span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Sitz der Gesellschaft: Hamburg</span></font></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Amtsgericht Hamburg HRB 39784</span></font></div><div class=""><br class=""></div></div></span></div></div></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>