Skip to content

build a general position object from: r_vec, v_vec, time epoch, and gm #1049

Answered by brandon-rhodes
beluej123 asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a better workflow to build a general position object to get the osculating elements of a transfer orbit.

I don't see any immediate improvements to what you're doing, the code is easy to read and I understand both the numbers that are pulled from Skyfield for use by the other library, and then the numbers that get plugged back in. This will be a fun example for other folks to look at who might be interested in the same kind of problem solving. One tweak I might make is to say center=0 on the position you build so that Skyfield knows it's centered at the SSB — or, even better, you could use Barycentric instead of ICRF and then the SSB is the default center without you needing to …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by beluej123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants