<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Giacomo,<br>
    <br>
    I'm now confused as to what you are trying to do.  You originally
    wanted to combine two GrADS data descriptor files, so I presumed you
    wanted to use the template option whereby you have one control file
    for many binary files.  It now appears that you want to do some sort
    of time integration (or summing?).  It might help if you give more
    information on your descriptor files (ctl files) and binary files,
    for example how is time defined in the ctl file and how do you
    define the data file (DSET)? The message below suggests you might be
    trying to access a time that is not defined.<br>
    <br>
    Jim<br>
    <br>
    <div class="moz-cite-prefix">On 10/21/15 9:10 AM, giacomo tricarico
      wrote:<br>
    </div>
    <blockquote cite="mid:DUB117-W85BE452CA08B5CD83BB1969A380@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">Thanks Jennifer :)<br>
        <br>
        I've put this:<br>
        <div>'clear'</div>
        <div>'set gxout fwrite'</div>
        <div>'set fwrite -ap 'provafile</div>
        <div>t=3</div>
        <div>while (t&lt;=tlast)</div>
        <div>'set t 't</div>
        <div>'d APCPsfc+APCPsfc(t-1)'</div>
        <div>t=t+2</div>
        <div>endwhile</div>
        <div>'disable fwrite'</div>
        <div><br>
        </div>
        <div>but I get:<br>
          <div>Data Request Warning:  Request is completely outside file
            limits</div>
          <div>Data Request Warning:  Request is completely outside file
            limits</div>
          <div>Data Request Warning:  Request is completely outside file
            limits</div>
          <div>Data Request Warning:  Request is completely outside file
            limits</div>
          <div>Data Request Warning:  Request is completely outside file
            limits</div>
          <div>Data Request Warning:  Request is completely outside file
            limits</div>
          <div>Data Request Warning:  Request is completely outside file
            limits</div>
          <div>Data Request Warning:  Request is completely outside file
            limits</div>
        </div>
        <div>....</div>
        <br>
        <div>
          <hr id="stopSpelling">From: <a class="moz-txt-link-abbreviated" href="mailto:jma@cola.iges.org">jma@cola.iges.org</a><br>
          Date: Wed, 21 Oct 2015 11:14:38 -0400<br>
          To: <a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
          Subject: Re: [gradsusr] How to combine ctl files in grads?<br>
          <br>
          It sounds like what you want to do is change a 3-hourly time
          series to a 6-hourly time series. And that you have to do with
          brute-force coding by writing out a new file, one time step at
          a time, that adds two 3hr accumulations to get the 6hr
          accumulation. Something generally like this:
          <div><br>
          </div>
          <div><font face="Courier"><span style="font-size:14px;">’set
                gxout fwrite’</span></font></div>
          <div><font face="Courier"><span style="font-size:14px;">‘set
                fwrite -ap 'outfilename</span></font></div>
          <div><font face="Courier"><span style="font-size:14px;">*
                don’t forget to remove the outfile before you begin,
                otherwise you’ll append to an existing file</span></font></div>
          <div><font face="Courier"><span style="font-size:14px;">t=3</span></font></div>
          <div><font face="Courier"><span style="font-size:14px;">while
                (t&lt;=tlast)</span></font></div>
          <div><font face="Courier"><span style="font-size:14px;">  ‘set
                t ‘t</span></font></div>
          <div><font face="Courier"><span style="font-size:14px;">  'd
                p+p(t-1)’</span></font></div>
          <div><font face="Courier"><span style="font-size:14px;"> 
                t=t+2</span></font></div>
          <div><font face="Courier"><span style="font-size:14px;">endwhile</span></font></div>
          <div><font face="Courier"><span style="font-size:14px;">‘disable
                fwrite’</span></font></div>
          <div><font face="Courier"><span style="font-size:14px;"><br>
              </span></font></div>
          <div>—Jennifer</div>
          <div><br>
            <div><br>
            </div>
            <div><br>
              <div><br>
                <div>
                  <div>On Oct 20, 2015, at 3:46 PM, giacomo tricarico
                    &lt;<a moz-do-not-send="true"
                      href="mailto:mino-98@hotmail.it">mino-98@hotmail.it</a>&gt;
                    wrote:</div>
                  <br class="ecxApple-interchange-newline">
                  <blockquote>
                    <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
                    <div class="ecxhmmessage">
                      <div dir="ltr">Hi, since in my GRADS's files
                        (produced by WRF-NMM Unipost) rain is in 3h
                        steps, I would like to combine for example 2 ctl
                        files, so that in one I have 6h rain:
                        <div>how could I do this?<br>
                          <br>
                          Thanks,</div>
                        <div>Giacomo</div>
                      </div>
                    </div>
                    _______________________________________________<br>
                    gradsusr mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
                    <a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
                  </blockquote>
                </div>
                <br>
                <div>
                  <span class="ecxApple-style-span"
                    style="border-collapse:separate;color:rgb(0, 0,
0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><span
                      class="ecxApple-style-span"
                      style="border-collapse:separate;color:rgb(0, 0,
0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;orphans:2;white-space:normal;widows:2;word-spacing:0px;">
                      <div>--</div>
                      <div>Jennifer M. Adams<br>
                        Center for Ocean-Land-Atmosphere Studies (COLA)<br>
                        111 Research Hall, Mail Stop 2B3<br>
                        George Mason University<br>
                        4400 University Drive<br>
                        Fairfax, VA 22030 <br>
                        <br>
                      </div>
                      <div><br class="ecxkhtml-block-placeholder">
                      </div>
                      <br class="ecxApple-interchange-newline">
                    </span></span><br
                    class="ecxApple-interchange-newline">
                </div>
                <br>
              </div>
            </div>
          </div>
          <br>
          _______________________________________________
          gradsusr mailing list
          <a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
          <a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>