Specific problems writing a .cel script
Posted: 19.11.2003, 10:46
Don and others (Chris himself may be!)
Don, I appreciated a lot your version of Sun vs Planets script , initially written by Christoria.
However,my point relates to some technical aspect. I began, some time ago to write a .cel script
on the Galileo trip (also triggered by the recent accurate xyz trajectories provided by )
For this purpose I "prepared" each starting step from a adequate spot that I created in favorite.cel.
as an example:
"Galileo_launch 10 89" {
isFolder false
parentFolder "Galileo"
base [ 0.003275837369038961 4.223817707317069e-009 -6.857289016768809e-006 ]
offset [ -1.371903892571913e-013 -2.710505431213761e-019 -2.879098869035257e-016 ]
axis [ 0.612721 -0.596664 -0.518232 ]
angle 1.0249
time 2447818.616593328
selection "#0/Galileo"
coordsys "ecliptical"
}
This allows to get and galileo on the same screen. Then I copy and paste the hence found position and orientation in the .cel as :
(partial script)
{
cancel {}
time {jd 2447818.616593328}
wait { duration 1.00 }
timerate { rate 0 }
select { object "#0/Galileo" }
setframe { ref "#0/Galileo" target "#0/Galileo" coordsys "universal"}
setposition {
base [ 0.003275837369038961 4.223817707317069e-009 -6.857289016768809e-006 ]
offset [ -1.371903892571913e-013 -2.710505431213761e-019 -2.879098869035257e-016 ]
}
setorientation { angle 1.0249
axis [ 0.612721 -0.596664 -0.518232 ]
}
print { text "lancement Galileo le le 19 octobre 1989 ?.2H 47 min . .\nPress ESC to end." row -5 column 2 duration 5 }
wait { duration 40.00 }
}
Surprisingly (for me) the position and orintation is not well reproduced despite of the same data. The orientation is wrong and the position is off by several hundreds of Km (no problem for planets, but inacceptable for Galileo. I was almost giving uu this approach when I read your thread.
Looking at the large number of digits found in your setposition and setorientation, , l guessed that you use a similar approach, this is the reason of my call.
I tried to modify the setframe { and the coordsys posibut without any effect. Position and orientation stay inchanged.
Before entering more deeply in the code, I look for any help, may be I made a big mistake.
Thanks in advance.
MB
Don, I appreciated a lot your version of Sun vs Planets script , initially written by Christoria.
However,my point relates to some technical aspect. I began, some time ago to write a .cel script
on the Galileo trip (also triggered by the recent accurate xyz trajectories provided by )
For this purpose I "prepared" each starting step from a adequate spot that I created in favorite.cel.
as an example:
"Galileo_launch 10 89" {
isFolder false
parentFolder "Galileo"
base [ 0.003275837369038961 4.223817707317069e-009 -6.857289016768809e-006 ]
offset [ -1.371903892571913e-013 -2.710505431213761e-019 -2.879098869035257e-016 ]
axis [ 0.612721 -0.596664 -0.518232 ]
angle 1.0249
time 2447818.616593328
selection "#0/Galileo"
coordsys "ecliptical"
}
This allows to get and galileo on the same screen. Then I copy and paste the hence found position and orientation in the .cel as :
(partial script)
{
cancel {}
time {jd 2447818.616593328}
wait { duration 1.00 }
timerate { rate 0 }
select { object "#0/Galileo" }
setframe { ref "#0/Galileo" target "#0/Galileo" coordsys "universal"}
setposition {
base [ 0.003275837369038961 4.223817707317069e-009 -6.857289016768809e-006 ]
offset [ -1.371903892571913e-013 -2.710505431213761e-019 -2.879098869035257e-016 ]
}
setorientation { angle 1.0249
axis [ 0.612721 -0.596664 -0.518232 ]
}
print { text "lancement Galileo le le 19 octobre 1989 ?.2H 47 min . .\nPress ESC to end." row -5 column 2 duration 5 }
wait { duration 40.00 }
}
Surprisingly (for me) the position and orintation is not well reproduced despite of the same data. The orientation is wrong and the position is off by several hundreds of Km (no problem for planets, but inacceptable for Galileo. I was almost giving uu this approach when I read your thread.
Looking at the large number of digits found in your setposition and setorientation, , l guessed that you use a similar approach, this is the reason of my call.
I tried to modify the setframe { and the coordsys posibut without any effect. Position and orientation stay inchanged.
Before entering more deeply in the code, I look for any help, may be I made a big mistake.
Thanks in advance.
MB