Skip to main content

Crate atfits_rs

Crate atfits_rs 

Source
Expand description

atfits-rs — shared low-level cfitsio helpers for the at*-rs FITS tools (fitscube-rs, convolve-rs, …).

These are the project-agnostic mechanics that every tool needs and that are easy to get subtly wrong against cfitsio:

Domain logic (beams, combine/extract, convolution, spectral specs) stays in the individual crates.

Re-exports§

pub use error::AtfitsError;
pub use error::Result;
pub use header::HeaderGeom;
pub use header::TargetAxis;
pub use header::find_target_axis;
pub use image::bitpix_to_image_type;
pub use image::copy_header_only;
pub use image::copy_header_only_open;
pub use image::create_cube_open;
pub use image::is_structural_keyword;
pub use image::resize_image;
pub use keys::delete_key;
pub use keys::has_key;
pub use keys::read_key_f64;
pub use keys::read_key_string;
pub use keys::update_key_f64;
pub use keys::update_key_i64;
pub use keys::update_key_logical;
pub use keys::update_key_str;
pub use keys::write_comment;
pub use mem_header::CubeLayout;
pub use mem_header::create_mem_cube;
pub use mem_header::extract_header_layout;
pub use path::output_path;
pub use pixel::CubeElem;
pub use pixel::PixelType;

Modules§

error
Error type shared by the low-level cfitsio helpers.
header
Header geometry and WCS axis lookup.
image
Image-HDU creation, resizing, and header-only copying.
keys
Raw cfitsio header keyword editing and reading.
mem_header
Build a cube’s FITS header without touching disk, so the data unit is never zero-filled by cfitsio.
path
Output-path construction helpers.
pixel
Pixel precision and monomorphic cfitsio section I/O.