14 double lat = 27.99,
lon0 = 86.93,
h = 8820,
t = 2012;
18 for (
int i = -5;
i <= 5; ++
i) {
21 mag(
t, lat, lon,
h, Bx, By, Bz);
22 cout << lon <<
" " << Bx <<
" " << By <<
" " << Bz <<
"\n";
29 for (
int i = -5;
i <= 5; ++
i) {
32 circ(lon, Bx, By, Bz);
33 cout << lon <<
" " << Bx <<
" " << By <<
" " << Bz <<
"\n";
37 catch (
const exception&
e) {
38 cerr <<
"Caught exception: " << e.what() <<
"\n";
Header for GeographicLib::MagneticCircle class.
Model of the earth's magnetic field.
Geomagnetic field on a circle of latitude.
MagneticCircle Circle(real t, real lat, real h) const
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Header for GeographicLib::MagneticModel class.