<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Atul,<br>
    <br>
    your data has pr_wtr(time,lat,lon).<br>
    <br>
    The plot line has to be change to something like <br>
    <br>
    <span style="color:rgb(0,0,255)"><b> plot =
        gsn_csm_time_lat(wks,ad(:,:,{30}), res ) <br>
        <br>
      </b></span>-Karin<br>
    <span style="color:rgb(0,0,255)"></span><br>
    <div class="moz-cite-prefix">Am 01.07.19 um 10:04 schrieb Atul Saini
      via ncl-talk:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACqmUarAPAD1GnqG8wSdr-4v0rYcF8v+6bhipw8cpF-DKvgP3Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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"
                moz-do-not-send="true">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)"></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"
moz-do-not-send="true" 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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>