<div dir="ltr">That does sound odd. 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. By that I mean, <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="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 31, 2013 at 8:27 PM, juan pablo sierra perez <span dir="ltr"><<a href="mailto:elviejojuanpi@hotmail.com" target="_blank">elviejojuanpi@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hello everyone <div><br></div><div>I have found differences in the results in this two ways to proceed:</div><div><br></div><div>First one: </div><div>n2=14</div><div><span style="font-size:12pt">'define s=ave('var', t='n2'-11, t='n2'-9)'</span> </div>
<div><br></div><div>Second one:</div><div><span style="font-size:12pt">'define s=ave('var', t=3, t=5)'</span> </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="HOEnZb"><font color="#888888"><div><br></div><div>Juan </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>