Skip to content

vacuum_to_air

Convert the wavelength axis from vacuum to air wavelengths.

Category Corrections
Backend numpy - implemented here on top of numpy primitives
Version 1.0.1
Reads ctx.spectrum (a Spectrum1D)
Writes spectrum

n(λ_vac) = 1 + 8.34254e-5 + 2.406147e-2/(130 - s²) + 1.5998e-4/(38.9 - s²), s = 1e4/λ[Å] (Morton 2000). Valid above ~2000 Å.

Parameters

This algorithm takes no parameters.

Use it

from spectro_kernel import run_algorithm

output = run_algorithm("vacuum_to_air", ctx, {})
spectro run vacuum_to_air --input spectrum.fits
{
  "tool": "vacuum_to_air",
  "arguments": {
    "session_id": "<session_id>",
    "params": {}
  }
}

Every algorithm is an MCP tool of the same name; describe_algorithm returns this page's metadata as JSON.

References

  • Morton 2000, ApJS 130, 403 — air/vacuum dispersion relation n(λ_vac).