<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="">--&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><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="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>