<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>You can do it by many ways, combine the two file using <br><br>cat file1 file 2 outputfile<br><br>than open output file and use<br><br>ave(var,t=1,t=n)<br><br>or <br>open file 1<br><br>define a=ave(var,t=1,t=n)<br>close 1<br>open second file<br>define b=ave(var,t=1,t=n)<br><br>define c=(a+b)/2<br><br>draw&nbsp; c<br><br>hope this will help you.<br><br>Sajjad<br><br><br><br><br><br><hr id="stopSpelling">Date: Wed, 10 Jun 2009 22:28:05 +0800<br>From: sh.maeam@GMAIL.COM<br>Subject: how to make a average in two data files<br>To: GRADSUSR@LIST.CINECA.IT<br><br>Dear All,<br><br>I have two output data files, one is "March" output data, another is "April" output, I want to make a average of "t" ( temperature) during Mar and Apr, I just can open one output data at a time, please tell me how to do that.<br>
<br>When do a average , there are two method that I know, one is use " sum(t,t=1, t=N)",&nbsp; another is " do while", Is there any difference? Are they the same?&nbsp;&nbsp; <br><br>Thank you.<br clear="all"><br>-- <br>
<br>Shenghui &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; Student<br>Major: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Physics<br>HuNan University &nbsp; &nbsp; &nbsp; &nbsp; China<br><br /><hr />Windows Live™: Keep your life in sync. <a href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009' target='_new'>Check it out!</a></body>
</html>