<div dir="ltr">Hello,<div><br></div><div>I have a mulibanded raster and I am wondering if I can apply any of the raster processing functions (min, max, mean, stdev) to multibanded rasters. Specifically, I am wondering if these functions will be able to applied to the z-axis. </div><div><br></div><div>Here is an example, I have worked up in python starting with two 2d arrays.</div><div>x = [[1,4,5,6], [3,5,6,2]]</div><div>z = [[2,7,8,9], [8,3,5,9]]</div><div>convert to np.array</div><div>y = np.dstack((np.array(x), np.array(z)))<br></div><div><div>>>> y.sum(2)</div><div>array([[ 3, 11, 13, 15],</div><div>       [11,  8, 11, 11]])</div></div><div><br></div><div>I want to apply the raster processing functions to the z-axis and I am wondering if I can do it in PostGIS? It seems like the mapalgebra call back functions could do this, but I am having difficulty finding an example.</div></div>