Displaying Compound Variables
Jason Snyder
jmssnyder at UCDAVIS.EDU
Mon Feb 1 19:55:55 EST 2010
I have a script to produce compound variables:
'sdfopen uwnd.2001.nc'
'set gxout shaded'
'set t 1'
'define U=uwnd'
i=1
count=1
While(i<5)
count=count+1
say count
'set t 'i
U.count=uwnd
i=i+1
endwhile
the compound variable is U.count. How do I go about producing and
displaying compound variables?
What modifications must I make to the script.
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?
Thanks,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100201/e92a8740/attachment.html
More information about the gradsusr
mailing list