<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Xi,<br>
    <br>
    have you taken a look at the first example of the vector examples
    page<br>
        <a class="moz-txt-link-freetext" href="http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl">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>
    <meta http-equiv="content-type" content="text/html;
      charset=windows-1252">
    <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 class="moz-cite-prefix">Am 05.02.16 um 19:00 schrieb Xi Chang:<br>
    </div>
    <blockquote
cite="mid:CAGfRhtc-GNUoWF_DZZj2m2BzTLQPFu_3biCbbaiUH-HWpvu+NA@mail.gmail.com"
      type="cite">
      <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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>