st_apply function

st_apply apply a function to one or more array dimensions