<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 Jeff, it solved my problem, yes that is weird but it is true that errors appears operating directly in the&nbsp;<div>average commmand.</div><div><br></div><div>thanks again</div><div><br></div><div>Juan Sierra<br><br><div><hr id="stopSpelling">Date: Thu, 31 Oct 2013 21:21:51 -0500<br>From: jeffduda319@gmail.com<br>To: gradsusr@gradsusr.org<br>Subject: Re: [gradsusr] Unknown source of errors<br><br><div dir="ltr">That does sound odd. &nbsp;Try using a separate script variable to store the final value of each time index and use those index values in the expression instead of computing the math within the expression. &nbsp;By that I mean,&nbsp;<div>
<br></div><div>n2 = 14</div><div>T1 = n2-11</div><div>T2 = n2-9</div><div>'define s = ave('var',t='T1',t='T2')</div><div><br></div><div>See if that relieves the ambiguity.</div><div><br></div><div>
Jeff Duda</div></div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Thu, Oct 31, 2013 at 8:27 PM, juan pablo sierra perez <span dir="ltr">&lt;<a href="mailto:elviejojuanpi@hotmail.com" target="_blank">elviejojuanpi@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">Hello everyone&nbsp;<div><br></div><div>I have found differences in the results in this two ways to proceed:</div><div><br></div><div>First one:&nbsp;</div><div>n2=14</div><div><span style="font-size:12pt;">'define s=ave('var', t='n2'-11, t='n2'-9)'</span>&nbsp;</div>
<div><br></div><div>Second one:</div><div><span style="font-size:12pt;">'define s=ave('var', t=3, t=5)'</span>&nbsp;</div><div><br></div><div>How can I use the "average" command with a math expression used to define the times values avoiding the errors?</div>
<div>Why is this error produced?</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Regrets</div><span class="ecxHOEnZb"><font color="#888888"><div><br></div><div>Juan&nbsp;</div>                                               </font></span></div>
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</div>
<br>_______________________________________________
gradsusr mailing list
gradsusr@gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr</div></div>                                               </div></body>
</html>