Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rugged-MOD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
youngcle
Rugged-MOD
Commits
0f9adbe6
Commit
0f9adbe6
authored
8 years ago
by
sesteves
Browse files
Options
Downloads
Patches
Plain Diff
minor
parent
a4f4850d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/orekit/rugged/atmosphericrefraction/MultiLayerModel.java
+4
-4
4 additions, 4 deletions
.../orekit/rugged/atmosphericrefraction/MultiLayerModel.java
with
4 additions
and
4 deletions
src/main/java/org/orekit/rugged/atmosphericrefraction/MultiLayerModel.java
+
4
−
4
View file @
0f9adbe6
...
...
@@ -79,7 +79,7 @@ public class MultiLayerModel implements AtmosphericRefraction {
Vector3D
pos
=
satPos
;
Vector3D
los
=
satLos
.
normalize
();
double
previousRefracti
on
Index
=
-
1
;
double
previousRefracti
ve
Index
=
-
1
;
GeodeticPoint
gp
=
ellipsoid
.
transform
(
satPos
,
ellipsoid
.
getBodyFrame
(),
null
);
for
(
ConstantRefractionLayer
refractionLayer
:
refractionLayers
)
{
...
...
@@ -88,12 +88,12 @@ public class MultiLayerModel implements AtmosphericRefraction {
continue
;
}
if
(
previousRefracti
on
Index
>
0
)
{
if
(
previousRefracti
ve
Index
>
0
)
{
// get new los by applying Snell's law at atmosphere layers interfaces
// we avoid computing sequences of inverse-trigo/trigo/inverse-trigo functions
// we just use linear algebra and square roots, it is faster and more accurate
final
double
n1On2
=
previousRefracti
on
Index
/
refractionLayer
.
getRefractiveIndex
();
final
double
n1On2
=
previousRefracti
ve
Index
/
refractionLayer
.
getRefractiveIndex
();
final
double
k
=
n1On2
*
Vector3D
.
dotProduct
(
los
,
gp
.
getZenith
());
los
=
new
Vector3D
(
n1On2
,
los
,
-
k
-
FastMath
.
sqrt
(
1
+
k
*
k
-
n1On2
*
n1On2
),
gp
.
getZenith
());
...
...
@@ -108,7 +108,7 @@ public class MultiLayerModel implements AtmosphericRefraction {
pos
=
ellipsoid
.
pointAtAltitude
(
pos
,
los
,
refractionLayer
.
getLowestAltitude
());
gp
=
ellipsoid
.
transform
(
pos
,
ellipsoid
.
getBodyFrame
(),
null
);
previousRefracti
on
Index
=
refractionLayer
.
getRefractiveIndex
();
previousRefracti
ve
Index
=
refractionLayer
.
getRefractiveIndex
();
}
final
NormalizedGeodeticPoint
newGeodeticPoint
=
...
...
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