(ANSWERED) Calculate phase angle for a satellite #607
-
Hi! I'm working on a code to calculate the apparent magnitude of a satellite, and for this I need to calculate the phase angle between the observer location, satellite and sun. Is there an obvious way to do this using Skyfield? I have seen that there is a |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Hi! If I understand correctly you are looking for the angle between the sun and the earth as observed by a satellite. Here is an example which does that for the International Space Station using the
Outputs:
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone! I am interested in the same thing, to compute the phase angle between the observer location, satellite and sun, but as seen from the Earth! From what I understand from your comments (@brandon-rhodes), the above code is used to compute the phase angle, but from the point of view of the satellite. Can you help me with the code that computes the phase angle between the observer-satellite-sun as seen from the observer's point of view? Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
Sure, I did that and it worked very nice, I have obtained the angle very easy, but I was not sure if the angle was obtained for the observer's or the satellite's point of view. Thanks a lot for the code (and answer), it's very helpful for those of us that are not that skilled in programming! |
Beta Was this translation helpful? Give feedback.
-
Sorry for the misunderstanding. The right angle is observer-satellite-sun with the satellite as the vertex of the angle, as you said. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Is there any difference between using the separation_from() method vs using phase_angle() method? |
Beta Was this translation helpful? Give feedback.
Hi! If I understand correctly you are looking for the angle between the sun and the earth as observed by a satellite. Here is an example which does that for the International Space Station using the
separation_from
method. I hope it helps!