[Thread Prev][Thread Next][Index]
Follow up: Averaging Data for 4 Months
Hi all,
On February 16, 2000 I posted a question with regards to finding the
average height for a 4 month period (i.e. Dec. - Mar.) when the data set
has monthly heights for a record of 582 months. I was looking for the
average height of the four months for each consecutive year.
Thanks to Steve Hankin I was able to accomplish this task. I hope this is
helpful to someone else out there!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Create a script to do the calculation for any single year and then call it
repeatedly with the REPEAT command
! my_script.jnl
let lo = $1 ! start month
let hi = lo + 4
list hgt[l=`lo`:`hi`@ave]
yes? REPEAT/L=12:xxx:12 go my_script L
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Thanks again Steve,
Amy
____________________________________________
UC Davis Atmospheric Science Graduate Group
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement