<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>&#39;define s = ave(&#39;var&#39;,t=&#39;T1&#39;,t=&#39;T2&#39;)</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">&lt;<a href="mailto:elviejojuanpi@hotmail.com" target="_blank">elviejojuanpi@hotmail.com</a>&gt;</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">&#39;define s=ave(&#39;var&#39;, t=&#39;n2&#39;-11, t=&#39;n2&#39;-9)&#39;</span> </div>
<div><br></div><div>Second one:</div><div><span style="font-size:12pt">&#39;define s=ave(&#39;var&#39;, t=3, t=5)&#39;</span> </div><div><br></div><div>How can I use the &quot;average&quot; 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>