Add ground-station-based satellite availability generation - #78
Open
Nova-David wants to merge 1 commit into
Open
Add ground-station-based satellite availability generation#78Nova-David wants to merge 1 commit into
Nova-David wants to merge 1 commit into
Conversation
Nova-David
commented
Aug 12, 2026
Collaborator
- Adds generate_ground_stations.py: places N ground stations (default 8) at uniform-random points on the globe.
- Adds sat_availability.py: computes real elevation-angle geometry (from each satellite's ECEF position and each ground station's coordinates) to determine, per satellite per timestep, whether it's above a station's horizon.
- A satellite counts as available only once it's stayed visible for a configurable minimum window (90s default), not from the moment it's geometrically visible, since a round needs time to actually complete.
- Each ground station's visibility is truncated to that minimum window independently, before being combined across stations (|=), not on the union of raw visibility. Prevents crediting a satellite with time that would require an impossible handoff between two physically separate stations.
- Output is a per-satellite (timestamp, state) trace in the same AVL_TRAIN/UN_AVL format as the existing syn_0/syn_20 traces, keyed by trainer_###, so it's a drop-in replacement by format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.