IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
a5b8a120
Commit
a5b8a120
authored
3 years ago
by
André Schmidt
Committed by
ralfulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
changed int inl file
parent
e6ea1d97
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
corsika/media/WMM.hpp
+41
-0
41 additions, 0 deletions
corsika/media/WMM.hpp
with
41 additions
and
0 deletions
corsika/media/WMM.hpp
+
41
−
0
View file @
a5b8a120
<<<<<<<
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment