fits-rs 0.2.0

FITS encoder and decoder in Rust
Documentation

fits-rs Build Status Crate

FITS encoder and decoder in Rust.

Make sure to check out the documentation of this crate.

FITS

The Flexible Image Transport System (FITS) is

an open standard defining a digital file format useful for storage, transmission and processing of scientific and other images.

The reference documentation on the FITS standard can be found an NASA's FITS pages. You can get a copy by executing the following command:

wget --output-document=fits-reference.pdf "https://www.aanda.org/articles/aa/pdf/2010/16/aa15362-10.pdf"

Reading Primary Header

The headers of FITS files are in ASCII. This means they can be read. The following command will output the primary header for the FITS file in the repository.

head --bytes=5760 assets/images/k2-trappist1-unofficial-tpf-long-cadence.fits | sed -e "s/.\{80\}/&\n/g"

Unfortunately, some extensions are in binary.