Skip to main content

MagneticModel

Trait MagneticModel 

Source
pub trait MagneticModel {
    // Required method
    fn field_at(
        &self,
        at: GeodeticPoint,
        when: Instant<Utc>,
    ) -> Result<MagneticField>;
}
Expand description

Earth’s magnetic field: WMM, IGRF, compass rose, constant.

Outside its validity interval an implementation returns KernelError::OutsideValidity rather than extrapolating. The point includes height because the field decreases with it.

Required Methods§

Source

fn field_at( &self, at: GeodeticPoint, when: Instant<Utc>, ) -> Result<MagneticField>

Field at at, time when.

§Errors

KernelError::OutsideValidity outside the model’s validity; any other error the model data raises.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§