Skip to main content

Crate fitsio_pure

Crate fitsio_pure 

Source
Expand description

Pure Rust FITS file reader/writer.

Parse FITS files with hdu::parse_fits, then read image pixels via image::read_image_data or table columns via bintable and table. Tile-compressed images (RICE_1 / GZIP_1) are handled transparently through the tiled module.

The core library is no_std-compatible (requires alloc). Enable the compat feature for a drop-in replacement of the fitsio crate API.

Re-exports§

pub use block::BLOCK_SIZE;
pub use block::CARDS_PER_BLOCK;
pub use block::CARD_SIZE;
pub use error::Error;
pub use error::Result;

Modules§

bintable
Binary table (BINTABLE) column parsing and data extraction. FITS binary table extension reading and writing.
block
FITS 2880-byte block utilities and constants.
checksum
HDU checksum computation and encoding (CHECKSUM/DATASUM). FITS CHECKSUM and DATASUM keyword support.
endian
Big-endian byte conversion helpers for FITS data types. Big-endian byte conversion for FITS data.
error
Error types used throughout the crate.
extension
Extension HDU (IMAGE/TABLE/BINTABLE) header parsing.
hdu
Top-level FITS parsing: HDU discovery and metadata extraction.
header
Header card parsing and serialization. FITS header card parsing, writing, and validation.
image
Image pixel data reading and type conversion. Image data reading for FITS HDUs.
io
Minimal Read/Write/Seek traits for no_std environments. Trait abstractions for reading/writing FITS data in both std and no_std contexts.
primary
Primary HDU header parsing and construction. Primary HDU header parsing and construction.
table
ASCII table (TABLE) column parsing and data extraction. ASCII table HDU reading and writing for FITS files.
tiled
Tile-compressed image decompression (RICE_1, GZIP_1). Tile-compressed image decompression for FITS.
value
FITS header value representation (integer, float, string, logical).