I get different results using galpy' internal units and physical units. Which result should I trust? #597
Answered
by
jobovy
jiweiliao6
asked this question in
Q&A
-
l calculate the closest distance of a star's orbit to sgr dsph's orbit. ButI l get different results using galpy' internal units and physical units. Which result should I trust? Here is code:
|
Beta Was this translation helpful? Give feedback.
Answered by
jobovy
Aug 8, 2023
Replies: 1 comment 4 replies
-
@jobovy |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just looked at this more closely and it's exactly as I said before: the problem is that when you setup the orbit in internal units, you give phi in degree rather than in radian. That is, in these lines:
They should just be
Then both methods agree and the result is 13.4 kpc.