ftmwpipeline Documentation

ftmwpipeline processes Fourier transform microwave (FTMW) spectroscopy data, from a raw free-induction decay to a calibrated table of fitted spectral lines. Each experiment is one self-contained, portable .ftmw file that progresses through a sequence of stages — import, Fourier transform, noise estimation, decay-time calibration, peak detection, window assignment, peak fitting, and review — with every stage’s result and its provenance recorded in the file.

The pipeline is built for spectroscopists who need to know not only how to run an analysis but what each stage does and why its results can be trusted. The stage pages describe the algorithms, the assumptions behind them, and the statistical basis for the reported peak parameters and uncertainties.

Where to start

  • Overview — the purpose and design philosophy, the .ftmw file model, the three user-facing interfaces, and the stage pipeline at a glance.

  • Installation — install the package and its dependencies.

  • Quickstart — process an experiment end to end.

  • Settings and presets — how stage parameters are resolved across keyword arguments, presets, and the values persisted in the file.

  • Input Formats — bring data from any instrument into the pipeline: the native HDF5 and CSV input formats, the metadata sidecar, and declaring instrument clock sources.

The pipeline stages, in the order an experiment moves through them:

Methods and validation notes go deeper on why specific algorithmic choices can be trusted, with figures and numbers regenerated from the example data:

  • Noise estimation at high signal-to-noise — why naive noise estimation fails on high signal-to-noise, line-dense spectra, and how the scatter estimator is validated.

  • Matched filter as a peak detector — why the weak-line gap pass detects with an exponentially-apodized transform, derived and validated on synthetic ground truth and the example experiment.

  • Complex-edge coherence statistic — the phase-coherent edge test behind window assignment: its closed-form null, threshold calibration, and the active-FT frame it must be scored in.

  • Stage 5 fitting: gates, blends, and SNR-aware acceptance — the peak-fitting acceptance gate: why it is window-size invariant, how it handles blends, and the SNR-aware health check validated across the example experiments.

  • Timebase self-calibration — measuring the digitizer scale error from the clock spurs’ phase, its Cramér–Rao precision bound, and how the frequency correction reaches the line list.

Indices and tables