Using Orekit Python, I want to determine if a spacecraft has line-of-sight (LoS) access to a given Earth Station, and if so what the range is. In pseudo code:
Define a FieldLine with the SC position and ES location points
Use the closestPoint() method to get the line’s point closest to the center of the Earth.
Use the Ellipsoid.isInside() method to determine if the closest point is inside the Earth. If not, then we have line-of-sight access.
This seems pretty straight forward, but it is such a common problem that I was wondering if there is a built-in method like “hasAccess” to do this already? Thanks!