h5analysis.datautil.stack_roi
- h5analysis.datautil.stack_roi(stack, idxLowI, idxHighI, idxLow1, idxHigh1, idxLow2, idxHigh2, integration_axes, scale1=None, scale2=None, ind_axis=None)
Reduce 3d MCA data to 2d or 1d
- Parameters:
stack (numpy array) – 3d data
idxLowI (int) – index low independent axis
idxHighI (int) – index high independent axis
idxLow1 (int) – index low scale 1
idxHigh1 (int) – index high scale 1
idxLow2 (int) – index low scale 2
idxHigh2 (int) – index high scale 2
integration_axes (tuple) – 0,1,2 for summation direction (max. 2)
scale1 (numpy array) – scale corresponding to dim 1
scale2 (numpy array) – scale corresponding do dim 2
ind_axis (numpy array) – independent axis corresponding to dim 0
- Returns:
reduced – summed and reduced 2d/1d data
- Return type:
numpy array