mioXpektron.recalibrate.calibrate_spectrum
Functions
|
Calibrate a ToF-SIMS spectrum. |
|
Returns the centroid (intensity-weighted mean) of the peak nearest target within ±window_ppm. |
- mioXpektron.recalibrate.calibrate_spectrum.local_centroid(mz, intensity, target, window_ppm=50.0)[source]
Returns the centroid (intensity-weighted mean) of the peak nearest target within ±window_ppm. Returns None if no peak is found.
- mioXpektron.recalibrate.calibrate_spectrum.calibrate_spectrum(mz, intensity, standards, mode='tof', window_ppm=50.0)[source]
Calibrate a ToF-SIMS spectrum.
- Parameters:
mz (1-D numpy arrays of equal length)
intensity (1-D numpy arrays of equal length)
standards (iterable of reference masses (monoisotopic, in u))
mode ("tof" (default) – empirical TOF correction model) – “poly” – 2nd-order polynomial
window_ppm (search window for peak matching (±ppm))
- Returns:
mz_cal (calibrated mass axis)
fit (scipy OptimizeResult)
report (pandas DataFrame with residual statistics)