<div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">Hi Karin Sir, </span><div dir="auto" style="font-family:sans-serif;font-size:12.8px">             I tried it, earlier but result remail same . Please help.</div><div style="color:purple;font-family:sans-serif;font-size:12.8px" dir="auto"><div dir="auto"><br></div><div dir="auto"><b style="color:rgb(0,0,255)">plot = gsn_csm_time_lat(wks,ad(:,:,{30}), res ) </b></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 1, 2019, 14:40 Karin Meier-Fleischer via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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="m_-222281606250366914moz-cite-prefix">Am 01.07.19 um 10:04 schrieb Atul Saini
      via ncl-talk:<br>
    </div>
    <blockquote type="cite">
      
      <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" target="_blank" rel="noreferrer">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="m_-222281606250366914gmail_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>
      <br>
      <fieldset class="m_-222281606250366914mimeAttachmentHeader"></fieldset>
      <pre class="m_-222281606250366914moz-quote-pre">_______________________________________________
ncl-talk mailing list
<a class="m_-222281606250366914moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="m_-222281606250366914moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="noreferrer">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank" rel="noreferrer">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>