Skip to content

read_votable_spectrum

Read a 1D spectrum from a VOTable file (the IVOA Virtual Observatory format).

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

Parameters

Parameter Default Required Description
path None yes Local path of the VOTable file to read.

Use it

from spectro_kernel import run_algorithm

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

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

References

  • IVOA VOTable 1.4 — Ochsenbein et al. 2019
  • astropy.io.votable
  • read_ascii_spectrum - Read a 1D spectrum from a two- or three-column text file.
  • read_echelle_fits - Read a multi-order échelle FITS file into ctx.spectra.
  • 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.