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
2e0fcfc2
Commit
2e0fcfc2
authored
8 years ago
by
Jonathan Guinet
Browse files
Options
Downloads
Patches
Plain Diff
PleiadesViewingModel is more parametrizable
parent
f67ff991
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
src/tutorials/java/AffinagePleiades/PleiadesViewingModel.java
+36
-18
36 additions, 18 deletions
...tutorials/java/AffinagePleiades/PleiadesViewingModel.java
with
36 additions
and
18 deletions
src/tutorials/java/AffinagePleiades/PleiadesViewingModel.java
+
36
−
18
View file @
2e0fcfc2
...
...
@@ -42,27 +42,53 @@ import org.orekit.rugged.errors.RuggedException;
import
org.orekit.errors.OrekitException
;
/**
* PleiadesViewingModel class definition
* @author Jonathan Guinet, Lucie LabatAllee
*
*/
public
class
PleiadesViewingModel
{
/** intrinsic Pleiades parameters */
public
double
fov
=
1.65
;
// 20km - alt 694km
public
double
angle
=
0.0
;
public
int
dimension
=
40000
;
private
final
double
linePeriod
=
1
e
-
4
;
public
double
angle
;
public
LineSensor
lineSensor
;
public
int
dimension
=
40000
;
public
String
date
=
"2016-01-01T12:00:00.0"
;
private
final
double
linePeriod
=
1
e
-
4
;
public
String
date
;
private
String
sensorName
;
/** Simple constructor.
* <p>
*
* initialize PleiadesViewingModel with
* sensorName="line", incidenceAngle = 0.0, date = "2016-01-01T12:00:00.0"
* </p>
*/
public
PleiadesViewingModel
()
throws
RuggedException
,
OrekitException
{
sensorName
=
"line"
;
this
.
createLineSensor
();
this
(
"line"
,
0.0
,
"2016-01-01T12:00:00.0"
);
}
/** PleiadesViewingModel constructor
* @param sensorName sensor name
* @param incidenceAngle incidence angle
* @param referenceDate reference date
* @throws RuggedException
* @throws OrekitException
*/
public
PleiadesViewingModel
(
final
String
sensorName
,
final
double
incidenceAngle
,
final
String
referenceDate
)
throws
RuggedException
,
OrekitException
{
this
.
sensorName
=
sensorName
;
this
.
date
=
referenceDate
;
this
.
angle
=
incidenceAngle
;
this
.
createLineSensor
();
}
public
LOSBuilder
rawLOS
(
Vector3D
center
,
Vector3D
normal
,
double
halfAperture
,
int
n
)
{
...
...
@@ -77,22 +103,14 @@ public class PleiadesViewingModel {
return
new
LOSBuilder
(
list
);
}
public
TimeDependentLOS
buildLOS
()
{
// one line sensor
// position: 1.5m in front (+X) and 20 cm above (-Z) of the S/C center of mass
// los: swath in the (YZ) plane, looking at 50° roll, 2.6" per pixel
{
LOSBuilder
losBuilder
=
rawLOS
(
new
Rotation
(
Vector3D
.
PLUS_I
,
FastMath
.
toRadians
(
angle
),
FastMath
.
toRadians
(
this
.
angle
),
RotationConvention
.
VECTOR_OPERATOR
).
applyTo
(
Vector3D
.
PLUS_K
),
Vector3D
.
PLUS_I
,
FastMath
.
toRadians
(
fov
/
2
),
dimension
);
losBuilder
.
addTransform
(
new
FixedRotation
(
"roll"
,
Vector3D
.
MINUS_I
,
0.00
));
losBuilder
.
addTransform
(
new
FixedRotation
(
"pitch"
,
Vector3D
.
MINUS_J
,
0.00
));
losBuilder
.
addTransform
(
new
FixedZHomothety
(
"factor"
,
1.0
));
...
...
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