[SciPy-user] sum / average of multidimensional arrays

John [H2O] washakie@gmail....
Fri Jul 18 01:39:49 CDT 2008


Hello, I have an array, with 20 days worth of global model output at three
layers (180,360,3) so my array is actually shape (180,360,3,20). 

I'm trying to produce a few new arrays:

1) The sum of the three layers for all 20 days, so shape (180,360,20)

and

2) The sum of all 20 days AND all three layers, so shape (180,360)

and

3) The average of all 20 days at each layer, so shape (180,360,3)

Anyone mind providing some insight? Thanks!
-- 
View this message in context: http://www.nabble.com/sum---average-of-multidimensional-arrays-tp18523480p18523480.html
Sent from the Scipy-User mailing list archive at Nabble.com.



More information about the SciPy-user mailing list