[Thread Prev][Thread Next][Index]

Re: Follow up: Averaging Data for 4 Months



Hello,

It has come to my attention that I made a minor error in the script I
posted yesterday.  For a 4 month average it should read as follows:

	! my_script.jnl
	let lo = $1    ! start month
	let hi = lo + 3
	list hgt[l=`lo`:`hi`@ave]

	yes? REPEAT/L=12:xxx:12 go my_script L

In the 3rd line I originally had "let hi = lo + 4", which would give 5
months instead of 4.

-Amy


On Mon, 21 Feb 2000, Amy Sundquist wrote:

> 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,
> 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