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 {
- modelDegree :: Int
- referenceRadius :: a
- gCoeffs :: [(a, a)]
- hCoeffs :: [(a, a)]
- igrf11 :: Floating a => MagneticModel a
- fieldInLocalTangentPlane :: (Floating a, Ord a) => MagneticModel a -> a -> a -> a -> a -> (a, a, a)
- gradientOfScalarPotential :: (Floating a, Ord a) => MagneticModel a -> a -> a -> a -> a -> (a, a, a)
- scalarPotential :: (Floating a, Ord a) => MagneticModel 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.
fieldInLocalTangentPlane Source
:: (Floating a, Ord a) | |
=> MagneticModel a | Magnetic field model |
-> a | Time since model epoch (year) |
-> a | Geocentric radius (kilometer) |
-> a | Geocentric colatitude (radian) |
-> a | Geocentric longitude (radian) |
-> (a, a, a) | North, East, and down components of magnetic field (nanoTesla) |
Computes the field strength of the magnetic field model at a specified time and geocentric position, in Cartesian coordinates. The result is expressed in a reference frame locally tangent to the specified geocentric position.
gradientOfScalarPotential Source
:: (Floating a, Ord a) | |
=> MagneticModel a | Magnetic field model |
-> a | Time since model epoch (year) |
-> a | Geocentric radius (kilometer) |
-> a | Geocentric colatitude (radian) |
-> a | Geocentric longitude (radian) |
-> (a, a, a) | Radial, colatitudinal, and longitudinal components of gradient (nT, nT km, nT km) |
Computes the gradient of the scalar potential of the magnetic field model, in spherical coordinates, at a specified time and geocentric position.
:: (Floating a, Ord a) | |
=> MagneticModel a | Magnetic field model |
-> a | Time since model epoch (year) |
-> a | Geocentric radius (kilometer) |
-> a | Geocentric colatitude (radian) |
-> a | Geocentric longitude (radian) |
-> a | Model field strength (nanoTesla) |
Computes the scalar potential of the magnetic field model at a specified time and geocentric position.