<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 href="http://wind.nc">wind.nc</a>","r")<br><br>;---Read in zonal [u] and meridional [v] winds <br>   u = a->U(0,:,:) <br>   v = a->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><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>