<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="">What does min(p(i)) and max(p(i)) return?<br class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 05.02.2016 um 21:21 schrieb alesall &lt;<a href="mailto:alesall@iri.columbia.edu" class="">alesall@iri.columbia.edu</a>&gt;:</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="">--&nbsp;<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:&nbsp;<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 &lt;<a href="mailto:xi.chang01@gmail.com" class="">xi.chang01@gmail.com</a>&gt; 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="">&lt;<a href="mailto:meier-fleischer@dkrz.de" target="_blank" class="">meier-fleischer@dkrz.de</a>&gt;</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="">
    &nbsp;&nbsp;&nbsp; <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&nbsp; <b class="">gsn_csm_vector_scalar_map</b>.<br class="">
        </div>
        <br class="">
        ;===========PLOT=================<br class="">
        <br class="">
        &nbsp; wks = gsn_open_wks("png","overlay")<br class="">
        <br class="">
        &nbsp; res&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; plot mods
        desired<br class="">
        &nbsp; plot = new(16,graphic)<br class="">
        <br class="">
        &nbsp; res@gsnDraw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; don't draw<br class="">
        &nbsp; res@gsnFrame&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; don't advance
        frame<br class="">
        <br class="">
        ; vector rescoures<br class="">
        &nbsp; res@vcRefLengthF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.045<br class="">
        &nbsp; res@vcRefMagnitudeF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 20.0<br class="">
        &nbsp; res@vcRefAnnoOrthogonalPosF&nbsp; = -0.12<br class="">
        &nbsp; res@vcRefAnnoParallelPosF&nbsp;&nbsp;&nbsp; =&nbsp; 0.997<br class="">
        &nbsp; res@vcRefAnnoFontHeightF&nbsp;&nbsp;&nbsp;&nbsp; = 0.015<br class="">
        &nbsp; res@vcMinDistanceF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.03<br class="">
        &nbsp; res@lbLabelBarOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp; <br class="">
        <br class="">
        &nbsp; res@mpProjection&nbsp;&nbsp; = "AzimuthalEquidistant"&nbsp; ; choose map
        projection<br class="">
        &nbsp; res@mpLimitMode&nbsp;&nbsp;&nbsp; = "LatLon"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; use lat/lon
        coordinates to limit area<br class="">
        &nbsp; res@mpMinLatF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 25.<br class="">
        &nbsp; res@mpMaxLatF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 75.<br class="">
        &nbsp; res@mpMinLonF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = -80.<br class="">
        &nbsp; res@mpMaxLonF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 20.<br class="">
        &nbsp; res@gsnMaximize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp; <br class="">
        <br class="">
        <b class="">&nbsp; res@gsnScalarContour&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br class="">
          &nbsp; res@cnFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br class="">
          &nbsp; res@cnFillPalette&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = "gui_default"&nbsp;&nbsp;&nbsp;&nbsp; ; set color
          map<br class="">
          &nbsp; res@cnLinesOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; turn off
          contour lines<br class="">
        </b><br class="">
        <br class="">
        <br class="">
        &nbsp; do i=0,15<br class="">
        &nbsp; plot(i)&nbsp; = gsn_csm_vector_scalar_map(wks,u(i,:,:),v(i,:,:), \<br class="">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p(i,:,:),res)<br class="">
        &nbsp; end do<br class="">
        <br class="">
        &nbsp; resP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; modify the
        panel plot<br class="">
        &nbsp; resP@gsnMaximize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp; <br class="">
        &nbsp; gsn_panel(wks,plot,(/4,4/),resP)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; 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="">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; 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; 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 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></div><div class=""><font face="Courier New" class=""><span style="font-size: 13px;" class="">Germany &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</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>