2.1. empix.abs_sq
- abs_sq(input_signal, title=None)[source]
The modulus squared of a given input
hyperspysignal.- Parameters:
- input_signal
hyperspy._signals.signal1d.Signal1D|hyperspy._signals.complex_signal1d.ComplexSignal1D|hyperspy._signals.signal2d.Signal2D|hyperspy._signals.complex_signal2d.ComplexSignal2D The input
hyperspysignal.- titlestr | None, optional
If
titleis set toNone, then the title of the output signaloutput_signalis set to"Modulus Squared of " + input_signal.metadata.General.title, whereinput_signalis the inputhyperspysignal. Otherwise, iftitleis a str, then theoutput_signal.metadata.General.titleis set to the value oftitle.
- input_signal
- Returns:
- output_signal
hyperspy._signals.signal1d.Signal1D|hyperspy._signals.signal2d.Signal2D The output
hyperspysignal that stores the modulus squared of the input signalinput_signal. Note that the metadata of the input signal is copied over to the output signal, with the title being overwritten.
- output_signal