<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'>Hi all,<br><br>I've a regional model output file that contains data at 3-hr time interval i.e for one month we've <br>8*30days=240 so <br><br><b>set t 1 240</b>&nbsp;&nbsp;&nbsp; is the expression that defines one month.<br><br>My question is:-<br><br>How can I sum the variable precipitation (pr) for 30 days (individual day) and obtaining the output from fprintf to a single file so that I don't have to generate 30 files (one for each day) for a month....???<br><br><br><br><br><br><b>Best regards<br><br>Uzair Mannan<br>Cell: +923323489950<br>NED University of Engineering &amp; Technology</b><br><b>Karachi, Pakistan<br><br></b>                                               </div></body>
</html>