pub struct Solution {
pub wcs: Wcs,
pub center: RaDec,
pub fov_width_deg: f64,
pub fov_height_deg: f64,
pub rotation_deg: f64,
pub pixel_scale_arcsec: f64,
pub rms_arcsec: f64,
pub num_matched_stars: usize,
pub log_odds: f64,
pub matched_stars: Vec<(usize, CatalogStar)>,
}Expand description
A successful plate solve solution.
Fields§
§wcs: WcsThe WCS transformation.
center: RaDecCenter of the image in sky coordinates.
fov_width_deg: f64Field of view width in degrees.
fov_height_deg: f64Field of view height in degrees.
rotation_deg: f64Rotation angle (position angle of +Y axis) in degrees.
pixel_scale_arcsec: f64Pixel scale in arcseconds per pixel.
rms_arcsec: f64RMS residual of the fit in arcseconds.
num_matched_stars: usizeNumber of stars matched.
log_odds: f64Log-odds confidence measure.
matched_stars: Vec<(usize, CatalogStar)>Matched stars (detected index, catalog star).
Implementations§
Source§impl Solution
impl Solution
Sourcepub fn new(
wcs: Wcs,
image_width: u32,
image_height: u32,
rms_arcsec: f64,
log_odds: f64,
matched_stars: Vec<(usize, CatalogStar)>,
) -> Self
pub fn new( wcs: Wcs, image_width: u32, image_height: u32, rms_arcsec: f64, log_odds: f64, matched_stars: Vec<(usize, CatalogStar)>, ) -> Self
Create a new solution from WCS and metadata.
Sourcepub fn pixel_to_sky(&self, x: f64, y: f64) -> RaDec
pub fn pixel_to_sky(&self, x: f64, y: f64) -> RaDec
Get the sky position of a pixel.
Sourcepub fn sky_to_pixel(&self, radec: &RaDec) -> (f64, f64)
pub fn sky_to_pixel(&self, radec: &RaDec) -> (f64, f64)
Get the pixel position of a sky coordinate.
Sourcepub fn to_fits_header(&self) -> String
pub fn to_fits_header(&self) -> String
Generate a FITS WCS header.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnsafeUnpin for Solution
impl UnwindSafe for Solution
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