00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "uvsim/navigation/GeoMag.h"
00020 #include <iostream>
00021 #include <string>
00022 int main (int argc, char const* argv[])
00023 {
00024 uvsim::GeoMag geo(std::string(DATADIR)+="/data/WMM.COF",12);
00025 geo.update(10.,0.,0.,2009.);
00026 double lat = 0., lon = 0., alt = 0., year = 2009.;
00027 std::cout << "Year: " << year << std::endl;
00028 std::cout << "Latitude: " << lat << std::endl;
00029 std::cout << "Longitude: " << lon << std::endl;
00030 std::cout << "Year: " << year << std::endl;
00031 std::cout << "Declination: " << geo.dec << std::endl;
00032 std::cout << "Inclination: " << geo.dip << std::endl;
00033 std::cout << "Strength: " << geo.ti << std::endl;
00034 return 0;
00035 }
00036
00037
00038