measure_line_offsets¶
Measured − reference wavelength of known emission lines, never applied.
| Category | Quality / SNR |
| Backend | scipy - implemented here on top of scipy primitives |
| Version | 1.0.0 |
| Reads | ctx.spectrum (a Spectrum1D) |
| Writes | metrics.n_lines_detected, metrics.mean_offset_angstrom, metrics.line_<λ>_detected, metrics.line_<λ>_snr, metrics.line_<λ>_offset_angstrom |
Per reference line (metric prefix line_
Parameters¶
| Parameter | Default | Required | Description |
|---|---|---|---|
reference_wavelengths |
None |
yes | Catalogue wavelengths (Å, same convention as the axis) of the lines to locate; non-empty list. Required. |
search_halfwidth_angstrom |
15.0 |
- | Half-width (Å) of the fit window around each line. |
min_snr |
5.0 |
- | Minimum amplitude / residual rms for a line to count as detected. |
initial_sigma_angstrom |
4.0 |
- | Seed of the Gaussian width (Å) for each fit. |
Use it¶
{
"tool": "measure_line_offsets",
"arguments": {
"session_id": "<session_id>",
"params": {
"reference_wavelengths": "<value>",
"search_halfwidth_angstrom": 15.0,
"min_snr": 5.0,
"initial_sigma_angstrom": 4.0
}
}
}
Every algorithm is an MCP tool of the same name; describe_algorithm returns
this page's metadata as JSON.
References¶
- Osterbrock, Fulbright, Martel, Keane, Trager & Basri 1996, PASP 108, 277, DOI 10.1086/133722 — night-sky emission lines as wavelength standards.
- Osterbrock, Fulbright & Bida 1997, PASP 109, 614, DOI 10.1086/133920 — night-sky OH line atlas II.
Related algorithms¶
compare_snr_methods- Run every SNR estimator onctx.spectrumand collect their numbers.measure_resolving_power- Resolving power R = λ/FWHM from Gaussian fits of the strongest isolated lamp / sky lines.snr_der- Derivative-based SNR estimator (DER_SNR, Stoehr et al. 2008).snr_edge- Estimate SNR from the flat, line-free regions at the spectrum's edges.snr_linear_fit- Estimate SNR from the scatter around a linear fit of a continuum region.validate_bess_header- Check a FITS header against the BeSS keyword contract.