Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rugged
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
Container Registry
Model registry
Operate
Environments
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
Orekit
Rugged
Commits
b37bd156
Commit
b37bd156
authored
10 years ago
by
Luc Maisonobe
Browse files
Options
Downloads
Patches
Plain Diff
Added dateLocalization.
parent
4aa917e8
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
core/src/main/java/org/orekit/rugged/api/Rugged.java
+47
-0
47 additions, 0 deletions
core/src/main/java/org/orekit/rugged/api/Rugged.java
with
47 additions
and
0 deletions
core/src/main/java/org/orekit/rugged/api/Rugged.java
+
47
−
0
View file @
b37bd156
...
@@ -604,6 +604,52 @@ public class Rugged {
...
@@ -604,6 +604,52 @@ public class Rugged {
return
inverseLocalization
(
sensorName
,
groundPoint
,
minLine
,
maxLine
);
return
inverseLocalization
(
sensorName
,
groundPoint
,
minLine
,
maxLine
);
}
}
/** Find the date at which sensor sees a ground point.
* <p>
* This method is a partial {@link #inverseLocalization(String,
* GeodeticPoint, int, int) inverse localization} focusing only on date.
* </p>
* @param sensorName name of the line sensor
* @param point point to localize
* @param minLine minimum line number
* @param maxLine maximum line number
* @return date at which ground point is seen by line sensor
* @exception RuggedException if line cannot be localized, or sensor is unknown
* @see #inverseLocalization(String, GeodeticPoint, int, int)
*/
public
AbsoluteDate
dateLocalization
(
final
String
sensorName
,
final
GeodeticPoint
point
,
final
int
minLine
,
final
int
maxLine
)
throws
RuggedException
{
final
LineSensor
sensor
=
getLineSensor
(
sensorName
);
SensorMeanPlaneCrossing
planeCrossing
=
finders
.
get
(
sensorName
);
if
(
planeCrossing
==
null
||
planeCrossing
.
getMinLine
()
!=
minLine
||
planeCrossing
.
getMaxLine
()
!=
maxLine
)
{
// create a new finder for the specified sensor and range
planeCrossing
=
new
SensorMeanPlaneCrossing
(
sensor
,
scToBody
,
minLine
,
maxLine
,
lightTimeCorrection
,
aberrationOfLightCorrection
,
MAX_EVAL
,
COARSE_INVERSE_LOCALIZATION_ACCURACY
);
// store the finder, in order to reuse it
// (and save some computation done in its constructor)
finders
.
put
(
sensorName
,
planeCrossing
);
}
// find approximately the sensor line at which ground point crosses sensor mean plane
final
Vector3D
target
=
ellipsoid
.
transform
(
point
);
final
SensorMeanPlaneCrossing
.
CrossingResult
crossingResult
=
planeCrossing
.
find
(
target
);
if
(
crossingResult
==
null
)
{
// target is out of search interval
return
null
;
}
else
{
return
sensor
.
getDate
(
crossingResult
.
getLine
());
}
}
/** Inverse localization of a point.
/** Inverse localization of a point.
* @param sensorName name of the line sensor
* @param sensorName name of the line sensor
* @param point point to localize
* @param point point to localize
...
@@ -612,6 +658,7 @@ public class Rugged {
...
@@ -612,6 +658,7 @@ public class Rugged {
* @return sensor pixel seeing point, or null if point cannot be seen between the
* @return sensor pixel seeing point, or null if point cannot be seen between the
* prescribed line numbers
* prescribed line numbers
* @exception RuggedException if line cannot be localized, or sensor is unknown
* @exception RuggedException if line cannot be localized, or sensor is unknown
* @see #dateLocalization(String, GeodeticPoint, int, int)
*/
*/
public
SensorPixel
inverseLocalization
(
final
String
sensorName
,
final
GeodeticPoint
point
,
public
SensorPixel
inverseLocalization
(
final
String
sensorName
,
final
GeodeticPoint
point
,
final
int
minLine
,
final
int
maxLine
)
final
int
minLine
,
final
int
maxLine
)
...
...
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