pub struct Field { /* private fields */ }Expand description
The angular extent of a frame.
Implementations§
Source§impl Field
impl Field
Sourcepub fn from_optics(o: Optics) -> Result<Self>
pub fn from_optics(o: Optics) -> Result<Self>
Derive a field from full optics.
Effective pixel size = pixel size × binning (per axis); pixel scale (arcsec/px) = effective pixel size (mm) / focal length (mm) × arcsec/radian; field extent = pixel scale × pixel count.
§Errors
Error::InvalidOptics if any input is non-positive or non-finite.
Sourcepub fn from_pixel_scale(
scale_arcsec_px: (f64, f64),
pixels: (u32, u32),
) -> Result<Self>
pub fn from_pixel_scale( scale_arcsec_px: (f64, f64), pixels: (u32, u32), ) -> Result<Self>
Build a field from a directly supplied pixel scale (arcsec/px, per axis) and sensor pixel counts.
§Errors
Error::InvalidOptics if any input is non-positive or non-finite.
Sourcepub fn from_fov(width: Angle, height: Angle) -> Result<Self>
pub fn from_fov(width: Angle, height: Angle) -> Result<Self>
Build a field directly from its angular width and height (no optics; pixel scale is unknown).
§Errors
Error::InvalidOptics if width or height is non-positive or non-finite.
Sourcepub fn pixel_scale(self) -> Option<(f64, f64)>
pub fn pixel_scale(self) -> Option<(f64, f64)>
Per-axis pixel scale (arcsec/px), if this field was built with a scale.
Sourcepub fn radius(self, policy: RadiusPolicy) -> Angle
pub fn radius(self, policy: RadiusPolicy) -> Angle
Compute a search radius from this field under policy.