pub enum ObsErrorModel {
FCCT14,
CBM10,
VFCC17,
}Expand description
Supported astrometric error model variants.
Each variant corresponds to a published astrometric bias/RMS model
distributed as a bundled reference file. Call
ObsErrorModel::read_error_model_file to parse the file for the
selected variant into an ErrorModelData map.
Variants§
FCCT14
Farnocchia, Chesley, Chamberlin & Tholen (2014).
CBM10
Chesley, Baer & Monet (2010).
VFCC17
Vereš, Farnocchia, Chesley & Chamberlin (2017).
Implementations§
Source§impl ObsErrorModel
impl ObsErrorModel
Sourcepub fn read_error_model_file(
&self,
) -> Result<ErrorModelData, ErrorModelParseError>
pub fn read_error_model_file( &self, ) -> Result<ErrorModelData, ErrorModelParseError>
Load the internal RMS/bias table for this astrometric error model.
Parses the reference file for the selected variant and returns an
ErrorModelData map ready to be queried with get_bias_rms.
§Returns
An ErrorModelData map containing all (MpcCode, CatalogCode) →
(rms_ra, rms_dec) entries from the bundled reference file.
§Errors
Returns ErrorModelParseError if any line in the reference file
cannot be parsed (this should never happen with the bundled files).
§Examples
let data = ObsErrorModel::FCCT14.read_error_model_file().unwrap();
println!("{} entries", data.len());Trait Implementations§
Source§impl Clone for ObsErrorModel
impl Clone for ObsErrorModel
Source§fn clone(&self) -> ObsErrorModel
fn clone(&self) -> ObsErrorModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObsErrorModel
impl Debug for ObsErrorModel
Source§impl<'de> Deserialize<'de> for ObsErrorModel
impl<'de> Deserialize<'de> for ObsErrorModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for ObsErrorModel
impl Display for ObsErrorModel
Source§impl FromStr for ObsErrorModel
Parse an ObsErrorModel from its canonical string name.
impl FromStr for ObsErrorModel
Parse an ObsErrorModel from its canonical string name.
Recognised names (case-sensitive): "FCCT14", "CBM10", "VFCC17".
§Arguments
s— the string to parse (e.g."FCCT14").
§Returns
Ok(ObsErrorModel) for a recognised name.
§Errors
Returns ErrorModelParseError::NomParsingError if s does not match
any known model name.
Source§impl Hash for ObsErrorModel
impl Hash for ObsErrorModel
Source§impl PartialEq for ObsErrorModel
impl PartialEq for ObsErrorModel
Source§fn eq(&self, other: &ObsErrorModel) -> bool
fn eq(&self, other: &ObsErrorModel) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ObsErrorModel
impl Serialize for ObsErrorModel
Source§impl TryFrom<&str> for ObsErrorModel
Infallible conversion from &str to ObsErrorModel by delegating to FromStr.
impl TryFrom<&str> for ObsErrorModel
Infallible conversion from &str to ObsErrorModel by delegating to FromStr.
Recognised names (case-sensitive): "FCCT14", "CBM10", "VFCC17".
§Arguments
value— the string slice to convert (e.g."VFCC17").
§Returns
Ok(ObsErrorModel) for a recognised name.
§Errors
Returns ErrorModelParseError::NomParsingError if value is not a
recognised model name.
impl Copy for ObsErrorModel
impl Eq for ObsErrorModel
impl StructuralPartialEq for ObsErrorModel
Auto Trait Implementations§
impl Freeze for ObsErrorModel
impl RefUnwindSafe for ObsErrorModel
impl Send for ObsErrorModel
impl Sync for ObsErrorModel
impl Unpin for ObsErrorModel
impl UnsafeUnpin for ObsErrorModel
impl UnwindSafe for ObsErrorModel
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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 moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more