Skip to content

export_votable

Export ctx.spectrum to a VOTable file (IVOA exchange format).

Category Export
Backend astropy - wraps the domain-standard astropy implementation
Version 1.0.0
Reads ctx.spectrum (a Spectrum1D)
Writes exports.votable

Parameters

Parameter Default Required Description
path None - Destination file path; null keeps the result in memory only.

Use it

from spectro_kernel import run_algorithm

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

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

References

  • astropy.io.votable
  • IVOA VOTable 1.4 — Ochsenbein et al. 2019