h5analysis.readutil.stack_norm

h5analysis.readutil.stack_norm(detector_stack, norm_by)

Normalize the stack data by mesh current.

Parameters:
  • detector_stack (numpy array) – 2d data

  • norm_by (numpy array) – 1d data, with length equal to first axis of detector_stack

Return type:

Division of detector_mca and norm_by array