Skip to main content

Crate fitscube_rs

Crate fitscube_rs 

Source
Expand description

Combine single-frequency (or single-time) FITS images into a FITS cube.

A Rust port of the fitscube Python package. Also available as a Python package (fitscube_rs) and a CLI tool (fitscubers).

§Overview

  • combine_fits: stack a list of images into a cube along the frequency or time axis (combine module), handling uneven spacing, blank-channel interpolation, per-channel beams, and bounding-box trimming.
  • extract_plane_from_cube: pull one channel/timestep back out of a cube (extract module).

Assumptions (inherited from the original): all inputs share the same WCS and pixel grid, and the frequency/time of each image is available either as a WCS axis, the REFFREQ keyword, or the DATE-OBS keyword (time mode).

Re-exports§

pub use beams::Beam;
pub use bounding_box::BoundingBox;
pub use bounding_box::create_bound_box_plane;
pub use bounding_box::extract_common_bounding_box;
pub use combine::CombineOptions;
pub use combine::combine_fits;
pub use error::FitsCubeError;
pub use error::Result;
pub use extract::ExtractOptions;
pub use extract::extract_plane_from_cube;

Modules§

beams
Per-channel restoring-beam handling.
bounding_box
Bounding-box geometry for trimming blank padding from images.
combine
Combine single-plane FITS images into a cube.
error
Error types for fitscube-rs.
extract
Extract a single plane (channel or timestep) from a FITS cube.
fits_io
Low-level FITS helpers shared by the combine and extract pipelines.
progress
Progress bars and spinners for long-running CLI work.
specs
Spectral/temporal axis parsing (“spequency” = frequency or time).