adapted from Egerton's matlab code at the back of his book. Is able to determine the effective collection angle, Bethe-Ridge Angle, and a few different forms of mean free path lengths depending on the experimental conditions.
Sums spectra over the range given in an SI. similar hyperspy function already exists but it sums across the entire axes. This code can sum a region of interest within the SI
Added two functions
adapted from Egerton's matlab code at the back of his book. Is able to determine the effective collection angle, Bethe-Ridge Angle, and a few different forms of mean free path lengths depending on the experimental conditions.
Sums spectra over the range given in an SI. similar hyperspy function already exists but it sums across the entire axes. This code can sum a region of interest within the SI