Skip to content
Advertisement

Numpy Mean element wise over 3D arrays

I want to take the mean of 9 arrays element wise so to have one

I need something fast. The first bit of code takes forever. And with numpy mean without specifying an axis I get one value. I dont want to specify an axis. I want to take the mean element by element.

with output: juneMean[‘wind’][:,:,:] how do I do this?

Advertisement

Answer

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement