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
1b08df16
Commit
1b08df16
authored
10 years ago
by
Luc Maisonobe
Browse files
Options
Downloads
Patches
Plain Diff
Prepared API for LOS calibration.
parent
f4826b03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/orekit/rugged/los/LOSBuilder.java
+22
-1
22 additions, 1 deletion
src/main/java/org/orekit/rugged/los/LOSBuilder.java
src/main/java/org/orekit/rugged/los/TimeDependentLOS.java
+16
-0
16 additions, 0 deletions
src/main/java/org/orekit/rugged/los/TimeDependentLOS.java
with
38 additions
and
1 deletion
src/main/java/org/orekit/rugged/los/LOSBuilder.java
+
22
−
1
View file @
1b08df16
...
@@ -19,6 +19,8 @@ package org.orekit.rugged.los;
...
@@ -19,6 +19,8 @@ package org.orekit.rugged.los;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
org.apache.commons.math3.analysis.differentiation.DerivativeStructure
;
import
org.apache.commons.math3.geometry.euclidean.threed.FieldVector3D
;
import
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
;
import
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
;
import
org.orekit.time.AbsoluteDate
;
import
org.orekit.time.AbsoluteDate
;
...
@@ -115,7 +117,7 @@ public class LOSBuilder {
...
@@ -115,7 +117,7 @@ public class LOSBuilder {
private
static
class
FixedLOS
implements
TimeDependentLOS
{
private
static
class
FixedLOS
implements
TimeDependentLOS
{
/** Fixed direction for los. */
/** Fixed direction for los. */
private
final
Vector3D
[]
los
;
private
final
Vector3D
[]
los
;
/** Simple constructor.
/** Simple constructor.
* @param raw raw directions
* @param raw raw directions
...
@@ -146,6 +148,15 @@ public class LOSBuilder {
...
@@ -146,6 +148,15 @@ public class LOSBuilder {
return
los
[
index
];
return
los
[
index
];
}
}
/** {@inheritDoc} */
public
FieldVector3D
<
DerivativeStructure
>
getLOS
(
final
int
index
,
final
AbsoluteDate
date
,
final
double
[]
parameters
)
{
// fixed LOS do not depend on any parameters
return
new
FieldVector3D
<
DerivativeStructure
>(
new
DerivativeStructure
(
parameters
.
length
,
1
,
los
[
index
].
getX
()),
new
DerivativeStructure
(
parameters
.
length
,
1
,
los
[
index
].
getY
()),
new
DerivativeStructure
(
parameters
.
length
,
1
,
los
[
index
].
getZ
()));
}
}
}
/** Implement time-dependent LOS by applying all registered transforms at runtime. */
/** Implement time-dependent LOS by applying all registered transforms at runtime. */
...
@@ -194,6 +205,16 @@ public class LOSBuilder {
...
@@ -194,6 +205,16 @@ public class LOSBuilder {
return
los
.
normalize
();
return
los
.
normalize
();
}
}
/** {@inheritDoc} */
public
FieldVector3D
<
DerivativeStructure
>
getLOS
(
final
int
index
,
final
AbsoluteDate
date
,
final
double
[]
parameters
)
{
// non-adjustable LOS do not depend on any parameters
final
Vector3D
los
=
getLOS
(
index
,
date
);
return
new
FieldVector3D
<
DerivativeStructure
>(
new
DerivativeStructure
(
parameters
.
length
,
1
,
los
.
getX
()),
new
DerivativeStructure
(
parameters
.
length
,
1
,
los
.
getY
()),
new
DerivativeStructure
(
parameters
.
length
,
1
,
los
.
getZ
()));
}
}
}
}
}
This diff is collapsed.
Click to expand it.
src/main/java/org/orekit/rugged/los/TimeDependentLOS.java
+
16
−
0
View file @
1b08df16
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
*/
*/
package
org.orekit.rugged.los
;
package
org.orekit.rugged.los
;
import
org.apache.commons.math3.analysis.differentiation.DerivativeStructure
;
import
org.apache.commons.math3.geometry.euclidean.threed.FieldVector3D
;
import
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
;
import
org.apache.commons.math3.geometry.euclidean.threed.Vector3D
;
import
org.orekit.time.AbsoluteDate
;
import
org.orekit.time.AbsoluteDate
;
...
@@ -37,4 +39,18 @@ public interface TimeDependentLOS {
...
@@ -37,4 +39,18 @@ public interface TimeDependentLOS {
*/
*/
Vector3D
getLOS
(
int
index
,
AbsoluteDate
date
);
Vector3D
getLOS
(
int
index
,
AbsoluteDate
date
);
/** Get the line of sight and its partial derivatives for a given date.
* <p>
* This method is used for LOS calibration purposes. It allows to compute
* the Jacobian matrix of the LOS with respect to the parameters, which
* are typically polynomials coefficients representing rotation angles.
* These polynomials can be used for example to model thermo-elestic effects.
* </p>
* @param index los pixel index
* @param date date
* @param parameters current estimate of the adjusted parameters
* @return line of sight, and its first partial derivatives with respect to the parameters
*/
FieldVector3D
<
DerivativeStructure
>
getLOS
(
int
index
,
AbsoluteDate
date
,
double
[]
parameters
);
}
}
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