Safe Haskell | None |
---|---|
Language | Haskell2010 |
An implementation of the International Geomagnetic Reference Field, as defined at http://www.ngdc.noaa.gov/IAGA/vmod/igrf.html.
- data MagneticModel a = MagneticModel {}
- igrf11 :: Floating a => MagneticModel a
- fieldAtTime :: (Num a, Eq a) => MagneticModel a -> a -> SphericalHarmonicModel a
- evaluateModelGradientInLocalTangentPlane :: (Floating a, Ord a) => SphericalHarmonicModel a -> a -> a -> a -> (a, a, a)
Documentation
data MagneticModel a Source
Represents a spherical harmonic model of a magnetic field.
MagneticModel | |
|
igrf11 :: Floating a => MagneticModel a Source
The International Geomagnetic Reference Field model, 11th edition. Model epoch is January 1st, 2010.
:: (Num a, Eq a) | |
=> MagneticModel a | Magnetic field model |
-> a | Time since model epoch (year) |
-> SphericalHarmonicModel a | Spherical harmonic model of magnetic field at specified time. Field in nT, reference radius in km |
Gets a spherical harmonic model of a magnetic field at a specified time offset from the model epoch.
evaluateModelGradientInLocalTangentPlane Source
:: (Floating a, Ord a) | |
=> SphericalHarmonicModel a | Spherical harmonic model |
-> a | Spherical radius |
-> a | Spherical colatitude (radian) |
-> a | Spherical longitude (radian) |
-> (a, a, a) | East, North, and up components of gradient |
Computes the gradient of the scalar value of the spherical harmonic model at a specified location, in Cartesian coordinates. The result is expressed in a reference frame locally tangent to the specified location.