astro_fits_write — FILEIO fits op

• Data kinds: any → any

• Call: import fullseye as fs; fs.ledger.astro_fits_write(image, *, header) (to call the implementation directly, import fileio; fileio.astro_fits_write(image, *, header); from the registry, opsfileio.get("astro_fits_write"))

• GPU: none (CPU reference implementation only)

Usage

Write a 2-D/3-D astronomical image and basic WCS as primary-HDU FITS bytes.

> The detailed description below is the original text — the summary and the headings are translated.

header は FITS の基本 WCS キー(CTYPE*, CRPIX*, CRVAL*, CDELT*, PC*_*, CD*_*, CUNIT* など)だけを持つ辞書。構造キーは配列から作り、uint16/uint32 は標準の BZERO 規約で保存する。呼び出し例:

payload = astro_fits_write(image, header={"CTYPE1": "RA---TAN"})。

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• fileio_scientific_roundtrip — py -3.11 examples/fileio_scientific_roundtrip.py

Ops the type connects to (they accept any as input)

table_write_csv · table_read_csv · mesh_write_ply · mesh_read_ply · mesh_write_stl · mesh_read_stl · mesh_write_obj · mesh_read_obj

Same category (fits)

astro_fits_read


*Provenance: fileio.py — FILEIO operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.