DUNE: Uniform Navigational Environment  2.3.2
DUNE::Coordinates::WMM Class Reference

Detailed Description

World-magnetic model 2005-2010 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)
 

Constructor & Destructor Documentation

DUNE::Coordinates::WMM::WMM ( void  )

Constructor.

By default it looks up WMM 2010 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'.

Parameters
[in]rootroot path for searching WMM 2010 data files
DUNE::Coordinates::WMM::~WMM ( void  )

Destructor.

Member Function Documentation

double DUNE::Coordinates::WMM::declination ( double  lat,
double  lon,
double  height = 0 
)

Get magnetic declination for given latitude and longitude (in radians).

Parameters
[in]latWGS84 latitude
[in]lonWGS84 longitude
[in]heightoptional height argument (defaults to 0)
Returns
magnetic declination

Referenced by DUNE::Navigation::BasicNavigation::checkDeclination().

double DUNE::Coordinates::WMM::height ( double  lat,
double  lon 
)

Get geod height for given latitude and longitude (in radians).

Parameters
[in]latWGS84 latitude
[in]lonWGS84 longitude
Returns
geoid height
Collaboration diagram for DUNE::Coordinates::WMM:
Collaboration graph