![]() |
DUNE: Uniform Navigational Environment
2017.01.0
|
World-magnetic model 2010-2015 interface class.
Public Member Functions | |
| WMM (void) | |
| WMM (const FileSystem::Path &root) | |
| ~WMM (void) | |
| double | height (double lat, double lon) |
| double | declination (double lat, double lon, double height=0) |
| DUNE::Coordinates::WMM::WMM | ( | void | ) |
Constructor.
By default it looks up WMM 2015 data files in the '../etc/wmm' directory relative to the location of the current executable.
References DUNE::FileSystem::Path::applicationFile().
| DUNE::Coordinates::WMM::WMM | ( | const FileSystem::Path & | root | ) |
| DUNE::Coordinates::WMM::~WMM | ( | void | ) |
Destructor.
References DUNE::Coordinates::WMMData::geoid, DUNE::Coordinates::WMMData::mm, and DUNE::Coordinates::WMMData::timed_mm.
| double DUNE::Coordinates::WMM::declination | ( | double | lat, |
| double | lon, | ||
| double | height = 0 |
||
| ) |
Get magnetic declination for given latitude and longitude (in radians).
| [in] | lat | WGS84 latitude |
| [in] | lon | WGS84 longitude |
| [in] | height | optional height argument (defaults to 0) |
References DUNE::Math::Angles::degrees(), DUNE::Coordinates::WMMData::ellip, DUNE::Math::Angles::radians(), and DUNE::Coordinates::WMMData::timed_mm.
Referenced by DUNE::Navigation::BasicNavigation::checkDeclination().
| double DUNE::Coordinates::WMM::height | ( | double | lat, |
| double | lon | ||
| ) |
Returns the height of the EGM96 geoid above or below the WGS84 ellipsoid, at the specified geodetic coordinates.
References DUNE::Math::Angles::degrees(), and DUNE::Coordinates::WMMData::geoid.
