[Thread Prev][Thread Next][Index]
recursive definitions
Dear Ferreteers,
I'm struggling trying to define a variable which is the sum of a
number of others:
potemp = temp1 + temp2 + temp3 + ... + temp20
Ferret doesn't like recursive loops:
REPEAT/K=1:20 (potemp = temp`K` + potemp)
And there are too many data sets to be entering them each time by hand.
Does anybody know of a way around this?
Thanks in advance,
Jeff Polton
________________________________________________________________________
Dept of Meteorology,Reading University,Earley Gate,Reading. RG6 6BB
Office tel: (0118) 9875123 4338 http://www.met.rdg.ac.uk/~swp98jap
------------------------------------------------------------------------
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement