Adding Spice Object makes position vector incorrect #749
Unanswered
natasha-proteus
asked this question in
Q&A
Replies: 1 comment
-
I had a similar problem recently. I solved it by adding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some code that prints the position vector of a satellite, based on the scenarioBasicOrbit.py . I need to add a spice object because I am going to be getting eclipse times of the satellite. My code without the spice object is below:
When running this, what's printed is: [-2816801.60102349 5248174.84691615 3677157.2646773 ]
However, when I replace that line that says
# ****** where spice stuff goes *****
with
spiceObject = gravFactory.createSpiceInterface(time=epoch) scenarioSim.AddModelToTask(taskName, spiceObject)
what's printed is [ 6.48448729e+10 -1.25834874e+11 -5.45126724e+10] which is incorrect. How do I fix this?
This is the plot of positions over time for one period without the spice object
This is the plot of positions over time for one period with the spice object
Beta Was this translation helpful? Give feedback.
All reactions