extraction.core.functions.distributors.reduce_z

reduce_z(trap_image, fun, axis=0)[source]

Reduce the trap_image to 2d.

Parameters
trap_image: array

Images for all the channels associated with a trap

fun: function

Function to execute the reduction

axis: int (default 0)

Axis in which we apply the reduction operation.