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:
PixelType/CubeElem— precision + monomorphic section I/O.keys— update-in-place keyword editing (ffuky*, not the duplicatingffpky*) and convenience readers.header—HeaderGeomand WCSfind_target_axislookup.image— image-HDU creation/resize and header-only copying, includingcreate_cube_open(the single-open-handle pattern that avoids a doubled zero-fill pass on close).mem_header— build a cube header in memory (create_mem_cube) and serialise it (extract_header_layout) so a tool can write the data unit with raw I/O and skip cfitsio’s zero-fill entirely.output_path— output-path construction.
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.