<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><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: &nbsp;Request is completely outside file limits</div><div>Data Request Warning: &nbsp;Request is completely outside file limits</div><div>Data Request Warning: &nbsp;Request is completely outside file limits</div><div>Data Request Warning: &nbsp;Request is completely outside file limits</div><div>Data Request Warning: &nbsp;Request is completely outside file limits</div><div>Data Request Warning: &nbsp;Request is completely outside file limits</div><div>Data Request Warning: &nbsp;Request is completely outside file limits</div><div>Data Request Warning: &nbsp;Request is completely outside file limits</div></div><div>....</div><br><div><hr id="stopSpelling">From: jma@cola.iges.org<br>Date: Wed, 21 Oct 2015 11:14:38 -0400<br>To: gradsusr@gradsusr.org<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;">&nbsp; ‘set t ‘t</span></font></div><div><font face="Courier"><span style="font-size:14px;">&nbsp; 'd p+p(t-1)’</span></font></div><div><font face="Courier"><span style="font-size:14px;">&nbsp; 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 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 href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<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&nbsp;<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
gradsusr@gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr</div>                                               </div></body>
</html>