wavelength_calibrate_easyspec¶
Fit a wavelength polynomial via extraction.wavelength_calibration and apply it.
| Category | Wavelength calibration |
| Backend | easyspec - wraps the EasySpec reduction library (optional extra reduction) |
| Version | 1.0.1 |
| Reads | ctx.spectrum (a Spectrum1D) |
| Writes | spectrum, extras.wavelength_polynomial_coefficients |
Lamp peaks must be pre-identified — typically you run an arc-lamp through extract_spectrum_easyspec first, pick the line peaks (e.g. with detect_lines) and match them to a reference list (NIST, NeAr…). The matched (pixel, wavelength) pairs feed this algorithm.
Parameters¶
| Parameter | Default | Required | Description |
|---|---|---|---|
lamp_peak_positions |
None |
yes | List of identified peak pixel positions in the arc-lamp spectrum. |
corresponding_wavelengths |
None |
yes | Reference wavelengths (Å) for those peaks, same length. |
poly_order |
2 |
- | Polynomial order of the wavelength fit. |
data_type |
'target' |
- | easyspec data_type label (target / standard_star). |
Use it¶
{
"tool": "wavelength_calibrate_easyspec",
"arguments": {
"session_id": "<session_id>",
"params": {
"lamp_peak_positions": "<value>",
"corresponding_wavelengths": "<value>",
"poly_order": 2,
"data_type": "target"
}
}
}
Every algorithm is an MCP tool of the same name; describe_algorithm returns
this page's metadata as JSON.
References¶
- easyspec.extraction.extraction.wavelength_calibration.
Related algorithms¶
fit_emission_lines_gaussian- Measure sub-pixel centroids of several emission lines at once.match_lamp_lines- Auto-identify arc-lamp lines against the bundled NIST atlas.measure_arc_geometry- Measure smile_radius + slant_deg from an arc-lamp 2-D image.reidentify_arc_features- Re-anchor stored (pixel, λ) arc features onto a fresh arc exposure.wavelength_calibrate_polynomial- Fit a polynomial to (pixel → wavelength) pairs and apply it to the spectrum.wavelength_calibration_in_situ- Refine the wavelength zero-point from simultaneously-acquired sky lines.wavelength_calibration_solar- Calibrate a solar spectrum from built-in Fraunhofer line wavelengths.