<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 &quot;/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>load &quot;/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>load &quot;/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/shea_util.ncl&quot;<br><br>begin<br>;---Read data <br>  a   = addfile(&quot;/home/kunal/Pictures/NCL_Scripts/plot/<a href="http://wind.nc">wind.nc</a>&quot;,&quot;r&quot;)<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 = &quot;pdf&quot;                       <br>  wks_type@wkPaperSize = &quot;A4&quot;<br>  wks = gsn_open_wks(wks_type, &quot;wind&quot;)<br><br>  cmap = read_colormap_file(&quot;BlAqGrYeOrReVi200&quot;)<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            = &quot;CurlyVector&quot;       ;-- turn on curly vectors<br>  res@vcMinDistanceF        = 0.01              ;-- thin out vectors<br>  res@tiMainString               = &quot;DKRZ NCL Workshop: vector curly&quot;<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:[&quot;Execute.c&quot;: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><br><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div>
</div></div></div></div>