IcgemParseError
このコンテンツはまだ日本語訳がありません。
Defined in: icgem.rs:91
Available on crate feature
alloconly.
pub enum IcgemParseError { MissingEndOfHead, MissingHeader(&'static str), DuplicateHeader(&'static str), InvalidHeader(&'static str, alloc::string::String), NotAGravityField(alloc::string::String), UnsupportedNormalization(alloc::string::String), DegreeUnavailable { requested: usize, available: usize }, TimeVariableUnsupported { line: usize, kind: alloc::string::String }, UnknownRecord { line: usize, kind: alloc::string::String }, MalformedRecord { line: usize, reason: alloc::string::String }, IndexOutOfRange { line: usize, degree: usize, order: usize }, DuplicateCoefficient { line: usize, degree: usize, order: usize }, NonFiniteCoefficient { line: usize, degree: usize, order: usize }, UnexpectedC00(f64), NonZeroDegreeOne { degree: usize, order: usize }, MissingCoefficient { degree: usize, order: usize },}Why an ICGEM text could not be parsed into
SphericalHarmonicCoefficients(super::SphericalHarmonicCoefficients).
Reading a file adds I/O failures on top; that is
IcgemFileError(super::IcgemFileError).
Variants
Section titled “Variants”MissingEndOfHead
Section titled “MissingEndOfHead”end_of_head never appeared.
MissingHeader
Section titled “MissingHeader”MissingHeader(&‘static str)
A required header keyword is absent.
DuplicateHeader
Section titled “DuplicateHeader”DuplicateHeader(&‘static str)
A header keyword the parser uses appeared twice.
InvalidHeader
Section titled “InvalidHeader”InvalidHeader(&‘static str, alloc::string::String)
A header value did not parse (keyword, value).
NotAGravityField
Section titled “NotAGravityField”NotAGravityField(alloc::string::String)
product_type was present but not gravity_field.
UnsupportedNormalization
Section titled “UnsupportedNormalization”UnsupportedNormalization(alloc::string::String)
norm was something other than fully_normalized.
DegreeUnavailable
Section titled “DegreeUnavailable”requested: usize available: usize
The caller asked for a degree above the file’s max_degree.
TimeVariableUnsupported
Section titled “TimeVariableUnsupported”line: usize kind: alloc::string::String
A time-variable record kind (gfct, trnd, dot, asin, acos).
UnknownRecord
Section titled “UnknownRecord”line: usize kind: alloc::string::String
A data record kind this parser does not know.
MalformedRecord
Section titled “MalformedRecord”line: usize reason: alloc::string::String
A gfc record with the wrong number of columns or an unparsable field.
IndexOutOfRange
Section titled “IndexOutOfRange”line: usize degree: usize order: usize
n > max_degree or m > n.
DuplicateCoefficient
Section titled “DuplicateCoefficient”line: usize degree: usize order: usize
The same (n, m) appeared twice.
NonFiniteCoefficient
Section titled “NonFiniteCoefficient”line: usize degree: usize order: usize
A coefficient value was NaN or infinite.
UnexpectedC00
Section titled “UnexpectedC00”UnexpectedC00(f64)
C̄00 was present and not 1 (the point-mass term is modelled separately).
NonZeroDegreeOne
Section titled “NonZeroDegreeOne”degree: usize order: usize
A degree-1 coefficient was non-zero: that encodes an offset between the coordinate origin and the centre of mass, which this evaluator does not model (it starts at degree 2).
MissingCoefficient
Section titled “MissingCoefficient”degree: usize order: usize
A coefficient with 2 ≤ n ≤ max_degree never appeared.