Wave averaging from specific index depending on another wave

Hi all,

I'd like to average a time-dependant wave over several timestamps (seasons, months, diurnal, etc). Back in the time, I coded a Python script that does it nicely, but would like to transpose it on Igor.
On Python, one can easily handle arrays (waves) with numpy:

"march_avg=mean(wave_to_avg[where(month==3)])" averages wave_to_avg only where month=3. Is there something similarly straight forward on Igor?

Thanks!
J-E
My approach to this would be to write a procedure that goes through the month wave row by row and if month==3 then place into a new wave the ith value from whichever wave you're interested in. At the end, wavestats on your new wave will give the average. Hope that makes sense! There's probably a better way though.
Perhaps you could use the Extract function to subset your wave_to_avg data.
DisplayHelpTopic("Extract")
HTH,
Kurt