<div>I have a script to produce compound variables:</div>
<div> </div>
<div>'sdfopen <a href="http://uwnd.2001.nc">uwnd.2001.nc</a>'<br>'set gxout shaded'<br>'set t 1'<br>'define U=uwnd'<br>i=1<br>count=1<br>While(i<5)<br> count=count+1<br> say count<br>
'set t 'i<br> U.count=uwnd<br> i=i+1<br>endwhile<br></div>
<div>the compound variable is U.count. How do I go about producing and displaying compound variables?</div>
<div>What modifications must I make to the script.</div>
<div> </div>
<div>What I want to make a formula that would be like this U(t)=U(t)+U(t-1)+U(t-2). Where t-1 is a time step earlier than t and t-2 is two timesteps earlier than t. I want to have this formula work for steptimes from 1 to say 5 (set t 1 5) How do I go about doing this? Are compound variables event the answer?</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Jason</div>
<div> </div>
<div> </div>