Bigger next-pass panel with brightness on the ISS view, deploy on push
The map leaves out the polar caps (75° N to 60° S at the same scale) so the next visible pass gets a 100 px panel: the time in 48 px type, the date, and height, direction, estimated magnitude and clouds in 24 px. The magnitude is the brightest moment of the pass by Matson's formula (standard magnitude -1.8). A Gitea webhook now makes Coolify deploy every push to main, and Coolify 4.5.3 re-reads docker-compose.yml on each deploy, so no buttons are needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
0de68bfce0
commit
517f0868db
7 files changed
+136
-27
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import math
|
||||
from datetime import datetime, timedelta
|
||||
from pathlib import Path
|
||||
|
||||
@@ -85,6 +86,18 @@ def test_next_visible_iss_pass():
|
||||
assert (direction(p.az_from), direction(p.az_to)) == ("Z", "JV")
|
||||
|
||||
|
||||
def test_pass_brightness_is_that_of_a_typical_iss_pass():
|
||||
p = astro.next_visible_pass(TLE, EVENING)
|
||||
assert -4.2 < p.mag < -2.5 # a 40° pass: brighter than any star, short of the best overhead passes
|
||||
|
||||
|
||||
def test_magnitude_formula():
|
||||
assert astro.magnitude(1000, math.pi / 2) == pytest.approx(astro.ISS_STD_MAG)
|
||||
assert astro.magnitude(500, math.pi / 2) == pytest.approx(astro.ISS_STD_MAG - 5 * math.log10(2))
|
||||
assert astro.magnitude(1000, 0) == pytest.approx(astro.ISS_STD_MAG - 2.5 * math.log10(math.pi)) # fully lit
|
||||
assert astro.magnitude(1000, math.pi) > 10 # only the dark side faces us: invisible, not an error
|
||||
|
||||
|
||||
def test_no_visible_pass_within_the_window():
|
||||
assert astro.next_visible_pass(TLE, EVENING, within_hours=6) is None
|
||||
|
||||
|
||||
Reference in new issue
Block a user