Skip to main content

Crate arcsec_io

Crate arcsec_io 

Source
Expand description

Image input and output for the arcsec plate solver.

arcsec_core solves pixels; this crate gets them out of files. It reads six formats, telling them apart by their first bytes rather than the extension (image_io::detect_format):

FormatReader
FITS (also gzip/bzip2/compress-compressed)fits_io, via CFITSIO (rsfitsio)
XISF (PixInsight)xisf_io, via the xisf crate
ASDF (Roman, astropy)asdf_io, via the asdf-rs crate
JPEG, PNG, TIFFraster_io, via zune-jpeg, png and tiff

Each supplies the pixels as an arcsec_core::ImageBuffer and what the header says about pointing and pixel scale; image_io dispatches between them and holds the keyword interpretation they share, and header applies the same rules to FITS header text an application already has in memory.

It also writes ASTAP’s .wcs and .ini sidecar files and updates a FITS header in place (fits_io).

The arcsec command line and the arcsec C library (libarcsec) both read images through this crate. Its API follows their needs and may change between minor versions.

Modules§

asdf_io
ASDF input, via the asdf-rs crate.
fits_io
header
FITS header text held in memory.
image_io
Format dispatch for input images.
raster_io
JPEG, PNG and TIFF input, via zune-jpeg, png and tiff.
xisf_io
XISF input, via the xisf crate.