IAP GITLAB

Skip to content
Snippets Groups Projects
Commit a5b8a120 authored by André Schmidt's avatar André Schmidt Committed by ralfulrich
Browse files

changed int inl file

parent e6ea1d97
No related branches found
No related tags found
No related merge requests found
<<<<<<< Updated upstream
/*
* (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
*
......@@ -102,3 +103,43 @@ namespace corsika {
return MagneticFieldVector{Cs, magneticfield_geo[0] * 1_nT, magneticfield_geo[1] * 1_nT, magneticfield_geo[2] * -1_nT};
}
}
=======
/*
* (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#include <boost/filesystem.hpp>
#include <boost/math/special_functions/factorials.hpp>
#include <boost/math/special_functions/legendre.hpp>
#include <cmath>
#include <corsika/framework/core/Logging.hpp>
#include <corsika/framework/utility/CorsikaData.hpp>
#include <fstream>
namespace corsika {
/**
* A magnetic field calculated with the WMM model
*
* @param year Year of the evaluation, between 2020 and 2025.
* @param altitude Height of the location to evaluate the field at,
in km between -1 and 850.
* @param latitude Latitude of the location to evaluate the field at,
in degrees between -90 and 90 (negative for southern hemisphere).
* @param longitute Longitude of the location to evaluate the field at,
in degrees between -180 and 180 (negative for western hemisphere).
*
* @returns The magnetic field vector in nT.
*
*/
inline MagneticFieldVector get_wmm(const CoordinateSystemPtr Cs, const double year,
const LengthType altitude, const double latitude, const double longitude);
} // namespace corsika
#include <corsika/detail/media/WMM.inl>
>>>>>>> Stashed changes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment