imap_processing.idex.idex_l2a.analyze_peaks#

imap_processing.idex.idex_l2a.analyze_peaks(tof_high: DataArray, high_sampling_time: DataArray, mass_scale: DataArray, event_num: int, peaks_2d: ndarray) tuple[ndarray[tuple[int, ...], dtype[_ScalarType_co]], ndarray[tuple[int, ...], dtype[_ScalarType_co]], ndarray[tuple[int, ...], dtype[_ScalarType_co]], ndarray[tuple[int, ...], dtype[_ScalarType_co]]]#

Fit an EMG curve to the Time of Flight data around each peak.

Parameters:
Returns:

  • params (numpy.ndarray) – Array of the EMG fit parameters (mu, sigma, lambda) at the corresponding mass. Empty mass slots contain zeros.

  • area_under_emg (numpy.ndarray) – Array of the area under the EMG curve at that mass. Empty mass slots contain zeros.