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: f64,
pub beams: Vec<Option<Beam>>,
pub is_4d: bool,
pub unit: BrightnessUnit,
pub dtype: PixelType,
}Expand description
Metadata of a FITS spectral cube.
Fields§
§path: PathBuf§nx: usizeNAXIS1 (RA).
ny: usizeNAXIS2 (Dec).
nfreq: usize§nstokes: usize§dx_deg: f64|CDELT1| in degrees.
dy_deg: f64|CDELT2| in degrees.
crpix_freq: f64CRPIX of the spectral axis, truncated to a whole pixel as racs_tools
does. Picks the channel whose beam goes in the output header; may lie
outside 1..=nfreq.
beams: Vec<Option<Beam>>Per-channel beams; None for a masked channel.
is_4d: bool§unit: BrightnessUnit§dtype: PixelTypeImplementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more