pub struct CubeMeta {
pub path: PathBuf,
pub nx: usize,
pub ny: usize,
pub nfreq: usize,
pub nstokes: usize,
pub dx_deg: f64,
pub dy_deg: f64,
pub crpix_freq: i64,
pub beams: Vec<Option<Beam>>,
pub is_4d: bool,
pub unit: BrightnessUnit,
}Expand description
Metadata for a FITS spectral cube (3D or 4D).
Fields§
§path: PathBuf§nx: usizeFastest-varying spatial axis size (RA/x pixels).
ny: usizeSlower spatial axis size (Dec/y pixels).
nfreq: usizeNumber of frequency channels.
nstokes: usizeNumber of Stokes planes (1 for most ASKAP data).
dx_deg: f64|CDELT1| in degrees.
dy_deg: f64|CDELT2| in degrees.
crpix_freq: i64FITS 1-based CRPIX for the spectral axis (used as the header reference channel).
beams: Vec<Option<Beam>>Per-channel beams. None means the channel is masked / has no valid beam.
is_4d: boolTrue for 4D input (has a Stokes axis in the header).
unit: BrightnessUnitBrightness unit from BUNIT (defaults to Jy/beam if absent).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CubeMeta
impl RefUnwindSafe for CubeMeta
impl Send for CubeMeta
impl Sync for CubeMeta
impl Unpin for CubeMeta
impl UnsafeUnpin for CubeMeta
impl UnwindSafe for CubeMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more