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
d756eed2
Commit
d756eed2
authored
8 years ago
by
sesteves
Browse files
Options
Downloads
Patches
Plain Diff
minor
parent
ec4d62bf
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/test/java/org/orekit/rugged/atmosphericrefraction/MultiLayerModelTest.java
+16
-2
16 additions, 2 deletions
...kit/rugged/atmosphericrefraction/MultiLayerModelTest.java
with
16 additions
and
2 deletions
src/test/java/org/orekit/rugged/atmosphericrefraction/MultiLayerModelTest.java
+
16
−
2
View file @
d756eed2
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
package
org.orekit.rugged.atmosphericrefraction
;
package
org.orekit.rugged.atmosphericrefraction
;
import
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
;
import
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
;
import
org.apache.commons.math3.util.FastMath
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.orekit.bodies.GeodeticPoint
;
import
org.orekit.bodies.GeodeticPoint
;
import
org.orekit.bodies.OneAxisEllipsoid
;
import
org.orekit.bodies.OneAxisEllipsoid
;
...
@@ -25,7 +26,9 @@ import org.orekit.frames.FramesFactory;
...
@@ -25,7 +26,9 @@ import org.orekit.frames.FramesFactory;
import
org.orekit.rugged.errors.RuggedException
;
import
org.orekit.rugged.errors.RuggedException
;
import
org.orekit.rugged.intersection.AbstractAlgorithmTest
;
import
org.orekit.rugged.intersection.AbstractAlgorithmTest
;
import
org.orekit.rugged.intersection.IntersectionAlgorithm
;
import
org.orekit.rugged.intersection.IntersectionAlgorithm
;
import
org.orekit.rugged.intersection.duvenhage.DuvenhageAlgorithm
;
import
org.orekit.rugged.intersection.duvenhage.MinMaxTreeTile
;
import
org.orekit.rugged.intersection.duvenhage.MinMaxTreeTile
;
import
org.orekit.rugged.intersection.duvenhage.MinMaxTreeTileFactory
;
import
org.orekit.rugged.raster.TileUpdater
;
import
org.orekit.rugged.raster.TileUpdater
;
import
org.orekit.rugged.utils.ExtendedEllipsoid
;
import
org.orekit.rugged.utils.ExtendedEllipsoid
;
import
org.orekit.rugged.utils.NormalizedGeodeticPoint
;
import
org.orekit.rugged.utils.NormalizedGeodeticPoint
;
...
@@ -54,8 +57,8 @@ public class MultiLayerModelTest extends AbstractAlgorithmTest {
...
@@ -54,8 +57,8 @@ public class MultiLayerModelTest extends AbstractAlgorithmTest {
// check mayon volcano tiles
// check mayon volcano tiles
setUpMayonVolcanoContext
();
setUpMayonVolcanoContext
();
final
IntersectionAlgorithm
algorithm
=
createAlgorithm
(
updater
,
8
);
final
IntersectionAlgorithm
algorithm
=
createAlgorithm
(
updater
,
8
);
Vector3D
position
=
new
Vector3D
(-
3787079.6453602533
,
5856784.405679551
,
1655869.0582939098
);
Vector3D
position
=
new
Vector3D
(-
3787079.6453602533
,
5856784.405679551
,
1655869.0582939098
);
Vector3D
los
=
new
Vector3D
(
0.5127552821932051
,
-
0.8254313129088879
,
-
0.2361041470463311
);
Vector3D
los
=
new
Vector3D
(
0.5127552821932051
,
-
0.8254313129088879
,
-
0.2361041470463311
);
...
@@ -64,10 +67,21 @@ public class MultiLayerModelTest extends AbstractAlgorithmTest {
...
@@ -64,10 +67,21 @@ public class MultiLayerModelTest extends AbstractAlgorithmTest {
MultiLayerModel
model
=
new
MultiLayerModel
();
MultiLayerModel
model
=
new
MultiLayerModel
();
final
double
latitude
=
FastMath
.
toRadians
(
13.27
);
final
double
longitude
=
FastMath
.
toRadians
(
123.68
);
MinMaxTreeTile
tile
=
new
MinMaxTreeTileFactory
().
createTile
();
updater
.
updateTile
(
latitude
,
longitude
,
tile
);
double
altitude
=
tile
.
interpolateElevation
(
latitude
,
longitude
);
final
GeodeticPoint
groundGP
=
new
GeodeticPoint
(
latitude
,
longitude
,
altitude
);
Vector3D
groundP
=
earth
.
transform
(
groundGP
);
// Vector3D initialPos, Vector3D initialLos, Vector3D initialZenith, double altitude, Tile tile
// Vector3D initialPos, Vector3D initialLos, Vector3D initialZenith, double altitude, Tile tile
// model.getPointOnGround();
// model.getPointOnGround();
...
@@ -77,6 +91,6 @@ public class MultiLayerModelTest extends AbstractAlgorithmTest {
...
@@ -77,6 +91,6 @@ public class MultiLayerModelTest extends AbstractAlgorithmTest {
@Override
@Override
protected
IntersectionAlgorithm
createAlgorithm
(
TileUpdater
updater
,
int
maxCachedTiles
)
{
protected
IntersectionAlgorithm
createAlgorithm
(
TileUpdater
updater
,
int
maxCachedTiles
)
{
return
n
ull
;
return
n
ew
DuvenhageAlgorithm
(
updater
,
maxCachedTiles
,
false
)
;
}
}
}
}
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