DUNE: Uniform Navigational Environment
2019.02.1
|
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 | ) |
Constructor.
WMM 2010 files will be searched within 'root/wmm'.
[in] | root | root path for searching WMM 2010 data files |
References DUNE::FileSystem::Path::c_str(), DUNE::Time::BrokenDown::day, DUNE::FileSystem::Path::isFile(), DUNE::Time::BrokenDown::month, DUNE::FileSystem::Path::str(), and DUNE::Time::BrokenDown::year.
DUNE::Coordinates::WMM::~WMM | ( | void | ) |
Destructor.
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(), and DUNE::Math::Angles::radians().
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().