Skip to content

read_echelle_fits

Read a multi-order échelle FITS file into ctx.spectra.

Category Input / output
Backend astropy - wraps the domain-standard astropy implementation
Version 1.0.0
Reads -
Writes spectra

Each order is loaded with full sample count; no resampling happens here. Set flux_column and wavelength_column to override the column-name auto-detection when needed.

Parameters

Parameter Default Required Description
path None yes FITS file path (local).
flux_column None - Name of the flux column for the table layout (auto-detected when null).
wavelength_column None - Name of the wavelength column (auto-detected when null).
wavelength_unit 'Angstrom' - Unit label written on each Spectrum1D.

Use it

from spectro_kernel import run_algorithm

output = run_algorithm("read_echelle_fits", ctx, {
    "path": "<value>",
    "flux_column": None,
    "wavelength_column": None,
    "wavelength_unit": "Angstrom"
})
spectro run read_echelle_fits --input spectrum.fits \
  --param path=<value> \
  --param flux_column=none \
  --param wavelength_column=none \
  --param wavelength_unit=Angstrom
{
  "tool": "read_echelle_fits",
  "arguments": {
    "session_id": "<session_id>",
    "params": {
      "path": "<value>",
      "flux_column": null,
      "wavelength_column": null,
      "wavelength_unit": "Angstrom"
    }
  }
}

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

References

  • astropy.io.fits.
  • Common amateur échelle FITS layouts (eShel, Lhires-III echelle reductions).
  • read_ascii_spectrum - Read a 1D spectrum from a two- or three-column text file.
  • read_fits - Read a 1D spectrum from a FITS file (local path or http(s) URL).
  • read_sdss_spectrum - Read an SDSS-format spectrum (spec-*.fits) into ctx.spectrum.
  • read_votable_spectrum - Read a 1D spectrum from a VOTable file (the IVOA Virtual Observatory format).