h5analysis.datautil.mca_roi

h5analysis.datautil.mca_roi(mca, idx_start, idx_end, sumaxis, scale=None, ind_axis=None)

Reduce 2d MCA data to 1d

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

  • idx_start (int) – index

  • idx_end (int) – index

  • sumaxis (int) – 0,1 for summation direction

  • scale (numpy array) – scale corresponding to dim 1

  • ind_axis (numpy array) – independent axis corresponding to dim 0

Returns:

reduced – summed and reduced 1d data

Return type:

numpy array