shashwatak / satellite-js

Modular set of functions for SGP4 and SDP4 propagation of TLEs.
MIT License
902 stars 145 forks source link

Does satellite.js provide a way to determine if a satellite is above a ground station? #100

Closed stupideveloper closed 8 months ago

stupideveloper commented 2 years ago

I'm trying to predict when a satellite will cross some coordinates, is there a way to know if it's visible from said coordinates?

Thanks, Lachlan

davidcalhoun commented 2 years ago

Yes! See the readme, basically the ground station coordinates is the "observer". You'd be most interested in computing the "look angles" - azimuth is the compass direction of the satellite from the perspective of the ground station (observer) and elevation is degrees above the horizon (90 degrees is overhead). Note that elevation above 0 degrees doesn't guarantee that the ground station can connect to the satellite - e.g. mountains or trees on the horizon which obstruct.

thkruz commented 2 years ago

@ezze Recommend closing this since the questions has been answered.