Find ISS passes that start or end in the earth's shadow
Visibility was only checked at the highest point, so passes that enter the shadow on the way up (or leave it on the way down) were dropped. Sample the whole pass and keep the part above 10°, sunlit, under a dark sky; times now match Clear Outside. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
70b02f865d
commit
581d12324d
3 files changed
+39
-27
No files matched your search
+10
-3
@@ -80,14 +80,21 @@ def test_iss_track_runs_east_minute_by_minute():
|
||||
|
||||
|
||||
def test_next_visible_iss_pass():
|
||||
p = astro.next_visible_pass(TLE, EVENING)
|
||||
assert near(p.start, datetime(2026, 10, 29, 5, 38), 2)
|
||||
p = astro.next_visible_pass(TLE, datetime(2026, 10, 29, 4, 30))
|
||||
assert near(p.start, datetime(2026, 10, 29, 5, 41), 1) # when it climbs past 10°, not when it rises
|
||||
assert 35 < p.max_alt < 45
|
||||
assert (direction(p.az_from), direction(p.az_to)) == ("Z", "JV")
|
||||
|
||||
|
||||
def test_pass_that_comes_out_of_the_earths_shadow_counts_from_there():
|
||||
p = astro.next_visible_pass(TLE, EVENING) # in the shadow at its highest, so easy to miss
|
||||
assert near(p.start, datetime(2026, 10, 29, 4, 8), 1)
|
||||
assert 35 < p.max_alt < 45
|
||||
assert (direction(p.az_from), direction(p.az_to)) == ("V", "V")
|
||||
|
||||
|
||||
def test_pass_brightness_is_that_of_a_typical_iss_pass():
|
||||
p = astro.next_visible_pass(TLE, EVENING)
|
||||
p = astro.next_visible_pass(TLE, datetime(2026, 10, 29, 4, 30))
|
||||
assert -4.2 < p.mag < -2.5 # a 40° pass: brighter than any star, short of the best overhead passes
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user