<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>If you want to plot all the panels for one time, then do the same
      thing for the next time, the "i loop" should be outside the "p
      loop".  Alternately if you want all the time plots in each panel,
      put the "i loop" within the "p loop".  Either way you want two
      nested while loops.<br>
    </p>
    <div class="moz-cite-prefix">On 3/6/19 4:46 PM, Yazeed Alsubhi
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAgw0v0F1HAyLk3KR49a7FnU0TrqNov4JaUKfO4pNs1R99TR-Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Jim,
        <div><br>
        </div>
        <div>Should I add this new loop in the same loop for the panel
          plots (while(p<=ptot)? Thanks for your help</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Yazeed</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, Mar 6, 2019 at 6:40 PM
          James T. Potemra <<a href="mailto:jimp@hawaii.edu"
            moz-do-not-send="true">jimp@hawaii.edu</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF">
            <p>Hi Yazeed,</p>
            <p>You have two problems.  First, you have a single while
              loop (while (p <= ptot)), presumably for the different
              panels.  You will need another while loop over "i"
              (forecast time?).</p>
            <p>Second, the file names have 4-character strings (0000,
              0600, 1200, and 1800).  Your variable "i" is an integer,
              so it will be 0, 6, 12 and 18. In other words, the script
              will be looking for files of the form <a
                href="http://ggap200806080.nc" target="_blank"
                moz-do-not-send="true">ggap200806080.nc</a> <a
                href="http://ggap200806086.nc" target="_blank"
                moz-do-not-send="true">ggap200806086.nc</a> <a
                href="http://ggap2008060812.nc" target="_blank"
                moz-do-not-send="true">ggap2008060812.nc</a> and <a
                href="http://ggap200806081800.nc" target="_blank"
                moz-do-not-send="true">ggap200806081800.nc</a>.  You can
              either pad this out, or just explicitly give the file
              name:</p>
            i = 1<br>
            while ( i <=4 )<br>
              if ( i = 1 ); 'sdfopen C:\Users\yalsubhi\Desktop
            \EraInterim\cases\Case1\<a href="http://ggap200806080000.nc"
              target="_blank" moz-do-not-send="true">ggap200806080000.nc</a>';
            endif<br>
              if ( i = 2 ); 'sdfopen C:\Users\yalsubhi\Desktop
            \EraInterim\cases\Case1\<a href="http://ggap200806080600.nc"
              target="_blank" moz-do-not-send="true">ggap200806080600.nc</a>';
            endif<br>
              if ( i = 3 ); 'sdfopen C:\Users\yalsubhi\Desktop
            \EraInterim\cases\Case1\<a href="http://ggap200806081200.nc"
              target="_blank" moz-do-not-send="true">ggap200806081200.nc</a>';
            endif<br>
              if ( i = 4 ); 'sdfopen C:\Users\yalsubhi\Desktop
            \EraInterim\cases\Case1\<a href="http://ggap200806081800.nc"
              target="_blank" moz-do-not-send="true">ggap200806081800.nc</a>';
            endif<br>
              i = i + 1<br>
            endwhile
            <p>or,</p>
            i = 1<br>
            while ( i <= 18 )<br>
              infile = 'ggap200806080'i'<a href="http://00.nc"
              target="_blank" moz-do-not-send="true">00.nc</a>'<br>
              if ( i > 9 ); infile = 'ggap20080608'i'<a
              href="http://00.nc" target="_blank" moz-do-not-send="true">00.nc</a>';
            endif<br>
              'sdfopen C:\Users\yalsubhi\Desktop
            \EraInterim\cases\Case1\'infile<br>
              i = i + 6<br>
            endwhile<br>
            <p><br>
            </p>
            <p>Jim<br>
            </p>
            <div class="gmail-m_1023475974744866841moz-cite-prefix">On
              3/6/19 11:14 AM, Yazeed Alsubhi wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span
style="font-size:12pt;font-family:Arial,sans-serif;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">Hello
                    James,</span><span></span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> </span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">I
                    am struggling with my GrADS scripts and I really
                    need your help. I have tried to draw multi-panel
                    plots using GrADS and I got the correct script, as
                    following:</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">'reinit'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">rc
                    = gsfallow("on")</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">nrows=2</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">ncols=2</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">args=nrows%'
                    '%ncols</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">'sdfopen <a
                      href="http://air.2008.nc/" target="_blank"
                      moz-do-not-send="true">air.2008.nc</a>'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">'set
                    mproj scaled'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">panels(args)</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">*p
                    is the panels number, p=1 means the first panel</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">p
                    = 1</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">*ptot
                    indicates the total number of panels (or virtual
                    pages)</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">ptot
                    = nrows * ncols</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">*here
                    is the loop, draw panel one by one</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">while
                    (p <= ptot)</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">*_vpg.p</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       _vpg.p</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set parea 1 9.8 1 7.5'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set t 'p</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set grads off'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set mpdset hires'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set lat 10 45'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set lon -60 65'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set lev 850'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set gxout shaded'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set cint 2' </span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'd air'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'q time'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       res=subwrd(result,3)</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       hh=substr(res,1,3)</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       dd=substr(res,4,2)</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       mm=substr(res,6,3)</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       yy=substr(res,9,4)</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'run cbar'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set font 0'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set strsiz 0.15 0.15'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'draw title ('hh' 'dd'/'mm'/'yy')'     </span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">p
                    = p + 1</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">endwhile</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> 
                       'set vpage off'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">'set
                    strsiz 0.15'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">'draw
                    string 5.3 8.3 Air Temperature'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">'printim
                    AirTemperature.png x800 y600 white'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> </span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">And
                    the problem is that I am trying to do this for more
                    than on files in the same folder. And I am trying to
                    implement a while loop that will automatically
                    insert each file (0000, 0600, 1200, and 1800) and
                    the names of these files are: <a
                      href="http://ggap200806080000.nc/" target="_blank"
                      moz-do-not-send="true">ggap200806080000.nc</a> <a
                      href="http://ggap200806080600.nc/" target="_blank"
                      moz-do-not-send="true">ggap200806080600.nc</a> <a
                      href="http://ggap200806081200.nc/" target="_blank"
                      moz-do-not-send="true">ggap200806081200.nc</a> and <a
                      href="http://ggap200806081800.nc/" target="_blank"
                      moz-do-not-send="true">ggap200806081800.nc</a></span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">So
                    I tried the same code but I added some lines:</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">'reinit'<br>
                    rc = gsfallow("on")<br>
                    nrows=2<br>
                    ncols=2<br>
                    args=nrows%' '%ncols</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">*This
                    is the direction of these netcdf files:<br>
                    *'sdfopen C:\Users\yalsubhi\Desktop
                    \EraInterim\cases\Case1\<a
                      href="http://ggap200806080000.nc/" target="_blank"
                      moz-do-not-send="true">ggap200806080000.nc</a>'<br>
                    *'sdfopen C:\Users\yalsubhi\Desktop
                    \EraInterim\cases\Case1\<a
                      href="http://ggap200806080600.nc/" target="_blank"
                      moz-do-not-send="true">ggap200806080600.nc</a>'<br>
                    *'sdfopen C:\Users\yalsubhi\Desktop
                    \EraInterim\cases\Case1\<a
                      href="http://ggap200806081200.nc/" target="_blank"
                      moz-do-not-send="true">ggap200806081200.nc</a>'<br>
                    *'sdfopen C:\Users\yalsubhi\Desktop
                    \EraInterim\cases\Case1\<a
                      href="http://ggap200806081800.nc/" target="_blank"
                      moz-do-not-send="true">ggap200806081800.nc</a>'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">'set
                    mproj scaled'<br>
                    panels(args)<br>
                    *p is the panels number, p=1 means the first panel<br>
                    p = 1<br>
                    i = 0000<br>
                    *ptot indicates the total number of panels (or
                    virtual pages)<br>
                    ptot = nrows * ncols<br>
                    *here is the loop, draw panel one by one<br>
                    while (p <= ptot)<br>
                    *_vpg.p<br>
                         _vpg.p<br>
                         'set parea 1 9.8 1 7.5'<br>
                         'set t 'p<br>
                         'set grads off'<br>
                         'set mpdset hires'<br>
                         'set lat 10 45'<br>
                         'set lon -60 65'<br>
                         'set lev 850'<br>
                         'set gxout shaded'<br>
                         'set cint 2' <br>
                         'sdfopen C:\Users\yalsubhi\Desktop
                    \EraInterim\cases\Case1\ggap20080608'i'.nc'<br>
                         'd t'<br>
                         'q time'<br>
                         res=subwrd(result,3)<br>
                         hh=substr(res,1,3)<br>
                         dd=substr(res,4,2)<br>
                         mm=substr(res,6,3)<br>
                         yy=substr(res,9,4)<br>
                         'run cbar'<br>
                         'set font 0'<br>
                         'set strsiz 0.15 0.15'<br>
                         'draw title ('hh' 'dd'/'mm'/'yy')' <br>
                         'reinit'    <br>
                    i = i + 0600<br>
                    p = p + 1<br>
                    endwhile<br>
                         'set vpage off'<br>
                    'set strsiz 0.15'<br>
                    'draw string 5.3 8.3 Air Temperature'<br>
                    'printim AirTemperature.png x800 y600 white'</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> </span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">Thanks
                    in advance for your time and cooperation on this
                    matter</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> </span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif"> </span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">Thanks,</span></p>
                <p class="MsoNormal" style="margin:0in 0in
0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;font-size:11pt;font-family:Calibri,sans-serif"><span
                    style="font-size:12pt;font-family:Arial,sans-serif">Yazeed</span></p>
                <p class="MsoNormal" style="margin:0in 0in
                  8pt;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"> </p>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>