<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Kunal,<br>
    <br>
    the error message tells you exactly what the problem is:<br>
    <br>
    <tt><font color="#cc0000">--&gt; in line 12 you are using 3
        dimensions but the variable <br>
              seems to have only 2 dimensions.</font></tt><br>
    <br>
    You are using:  <br>
    <tt>   u = a-&gt;U(0,:,:)     but it seems to be    u = a-&gt;U(:,:)</tt><tt><br>
    </tt><tt>   v = a-&gt;V(0,:,:)     but it seems to be    v =
      a-&gt;V(:,:)</tt><br>
       <br>
    Do the following printVarSummary calls to see the number of <br>
    dimensions of the variables:<br>
    <font color="#000099"><tt>   printVarSummary(a-&gt;U)</tt><tt><br>
      </tt><tt>   printVarSummary(a-&gt;U)</tt></font><br>
    <br>
    Bye,<br>
    Karin<br>
    <br>
    <div class="moz-cite-prefix">Am 21.05.15 um 14:37 schrieb Kunal
      Bali:<br>
    </div>
    <blockquote
cite="mid:CAOiHCtSiWPpuPo2GJT2t0yqkUq4j0SSuJM9SO14DUMezE-FPGQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Dear NCL users<br>
            <br>
            <br>
          </div>
          i am trying to plot the wind vector data using attached script
          but getting errors (below the scripts )<br>
          <br>
        </div>
        variables are U and V <br>
        <div><br>
;----------------------------------------------------------------------<br>
          <br>
          load
          "/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>
          load "/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>
          load
          "/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/shea_util.ncl"<br>
          <br>
          begin<br>
          ;---Read data <br>
            a   = addfile("/home/kunal/Pictures/NCL_Scripts/plot/<a
            moz-do-not-send="true" href="http://wind.nc">wind.nc</a>","r")<br>
          <br>
          ;---Read in zonal [u] and meridional [v] winds <br>
             u = a-&gt;U(0,:,:) <br>
             v = a-&gt;V(0,:,:)   <br>
            <br>
          <br>
          ;---Create plot<br>
            wks_type = "pdf"                       <br>
            wks_type@wkPaperSize = "A4"<br>
            wks = gsn_open_wks(wks_type, "wind")<br>
          <br>
            cmap = read_colormap_file("BlAqGrYeOrReVi200")<br>
          <br>
            res                                  = True<br>
            res@vcMinFracLengthF    = 1.0                 ;-- length of
          min vector as <br>
            res@vcRefMagnitudeF      = 3.0                 ;-- make
          vectors larger<br>
            res@vcRefLengthF          = 0.045               ;-- ref vec
          length<br>
            res@vcGlyphStyle            = "CurlyVector"       ;-- turn
          on curly vectors<br>
            res@vcMinDistanceF        = 0.01              ;-- thin out
          vectors<br>
            res@tiMainString               = "DKRZ NCL Workshop: vector
          curly"<br>
            <br>
          <br>
            plot=gsn_csm_vector(wks,u,v,res)  ; create plot<br>
          <br>
          <br>
          end<br>
          <br>
          <br>
          <br>
          <br>
          <b><span style="color:rgb(255,0,0)">fatal:Number of subscripts
              do not match number of dimensions of variable, (3)
              subscripts used, (2) subscripts expected<br>
              fatal:["Execute.c":8567]:Execute: Error occurred at or
              near line 12 in file wind.ncl<br>
              <br>
              <br clear="all">
            </span></b>
          <div>
            <div>
              <div>
                <div class="gmail_signature">
                  <div dir="ltr">
                    <div><span style="color:rgb(0,0,0)"><b>Kunal Bali</b></span><br>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>