<div dir="ltr"><div>Hello NCL Talk,</div><div>                           I am trying to plot the figure 'Time vs Longitude' , but there is some problem with NCL while plotting and its says-</div><div><br></div><div> <span style="color:rgb(153,0,255)">"fatal:Number of subscripts do not match number of dimensions of variable,(2) Subscripts used, (3) Subscripts expected<br>fatal:["Execute.c":8638]:Execute: Error occurred at or near line 31</span></div><div><b><br><span style="color:rgb(153,0,255)"></span></b></div><div><span style="color:rgb(153,0,255)"><b>Please help to resolve the issue, I am attaching the script and data file herewith this mail.</b></span></div><div><span style="color:rgb(153,0,255)"><b><br></b></span></div><div><span style="color:rgb(0,0,255)"><b>Script-</b></span></div><div><span style="color:rgb(0,0,255)"><b><br></b></span></div><div><span style="color:rgb(0,0,255)"><b>;*********************************************<br>; time_lat_2.ncl<br>;*********************************************<br>;<br>; These files are loaded by default in NCL V6.2.0 and newer<br>; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br><br><br>begin<br> f  = addfile ("<a href="http://1951_2017_masked.nc">1951_2017_masked.nc</a>" , "r"); add file<br> ad = f->pr_wtr<br>;*************************<br>; plotting parameters<br>;*************************<br> wks   = gsn_open_wks ("png", "time_lat" )  ; send graphics to PNG file <br><br><br> res                  = True                ; plot mods desired<br> res@tiMainString     = "color example"     ; title<br> res@tmXBLabelStride  = 2                   ; tick mark label stride<br> res@tiYAxisString    = "time"              ; y axis title<br><br> res@cnFillOn         = True                ; color on<br> res@cnFillMode             = "CellFill"<br> res@lbLabelStride    = 2                   ; every other label<br> res@lbOrientation    = "Vertical"          ; vertical label bar<br> res@cnLinesOn        = False               ; turn off contour lines<br> res@cnFillPalette    = "ViBlGrWhYeOrRe"    ; set color map<br> res@cnLevelSpacingF  = 5                   ; contour spacing<br><br> plot = gsn_csm_time_lat(wks,ad(:,{30}), res ) <br><br>end</b></span></div><div><span style="color:rgb(153,0,255)"><b></b></span><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4">Regards,</font></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=1flpEpH50fxgPRxFvuyiLu2A70K0UoFx-&revid=0Byj9ykpbAx3od3R4N016WWh0MnlGQ1JHUTg4Nk5HVmVMS2ZNPQ" width="304" height="116"><br></div><div>                           <br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>