Average value over a month for each location

Viewed 5

I have a numpy array of precipitation values with dimensions (366, 120, 300) where

dimension 1 - time (366 represents each day of year 2021) dimension 2 - latitude dimension 3 - longitude

I want to calculate average precipitation value over the month of January for each location. I am not able to figure out the dimensions. Would appreciate any help

I have done something like this -

np.mean(array[:31, :, :], axis =(1,2))

Please let me know if I have done it correctly?

0 Answers
Related