I am working with a large array of data (2160, 4320, 46), and I want to use trapezoidal integration over the third dimension of the array (each matrix point down through the 46