pub struct Group { /* private fields */ }Expand description
One group of a random-groups HDU.
The convention predates image extensions: rather than one array, the primary HDU holds a run of groups, each carrying a few parameters — a time, a baseline, a coordinate — followed by the array those parameters describe. It is mostly met in older radio interferometry data.
Implementations§
Source§impl Group
impl Group
Sourcepub fn parameters(&self) -> &[f64]
pub fn parameters(&self) -> &[f64]
This group’s parameters, in physical units.
PSCALn and PZEROn have already been applied, so these are the values the parameters stand for rather than the numbers stored.
Sourcepub fn parameter(&self, name: &str) -> Option<f64>
pub fn parameter(&self, name: &str) -> Option<f64>
The parameter named by a PTYPEn card.
The standard allows a parameter to be split across several entries that share a name, so that a value needing more precision than the array’s type offers can be summed from its parts. Those parts are added here.
Sourcepub fn parameter_names(&self) -> &[String]
pub fn parameter_names(&self) -> &[String]
The names of this group’s parameters, from the PTYPEn cards.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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