pub struct WCS { /* private fields */ }
Expand description
World Coordinates
The implementation of this structure is experimental.
Implementations
sourceimpl WCS
impl WCS
sourcepub fn new(hdu: &Hdu) -> Self
pub fn new(hdu: &Hdu) -> Self
Read how to convert pixel to real world coordinates from HDU header.
sourcepub fn pix2world(&self, pixel: [f32; 4]) -> [f32; 4]
pub fn pix2world(&self, pixel: [f32; 4]) -> [f32; 4]
Convert from pixel to world coordinates
Currently only works with CDn_m values and assume there is no rotation in coordinates conversions.
pub fn slice(self, indices: &[usize]) -> Self
pub fn transform(self, index: usize, pix: f32, factor: f32) -> Self
Trait Implementations
impl Copy for WCS
impl StructuralPartialEq for WCS
Auto Trait Implementations
impl RefUnwindSafe for WCS
impl Send for WCS
impl Sync for WCS
impl Unpin for WCS
impl UnwindSafe for WCS
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more