12 #include <corsika/framework/geometry/PhysicalGeometry.hpp> 15 #include <boost/filesystem.hpp> 33 struct ParameterLine {
50 corsika::corsika_data(
"GeoMag/WMM.COF"));
67 double const latitude,
double const longitude);
71 std::map<int, std::vector<ParameterLine>> parameters_;
75 #include <corsika/detail/media/GeomagneticModel.inl>
Import and extend the phys::units package.
GeomagneticModel(Point const ¢er, boost::filesystem::path const path=corsika::corsika_data("GeoMag/WMM.COF"))
Construct a new World Magnetic Model object.
MagneticFieldVector getField(double const year, LengthType const altitude, double const latitude, double const longitude)
Calculates the value of the magnetic field.
A magnetic field calculated with the WMM or IGRF model.
`, since they are used everywhere as integral part of the framework.
returns the full path of the file filename within the CORSIKA_DATA directory.