@@ -12,9 +12,9 @@ def test_satellite_events_on_several_satellites():
12
12
# 3) No double rises or double sets
13
13
14
14
def run_sat (name , line1 , line2 , number_events_expected ):
15
- print (name )
16
15
sat = EarthSatellite (line1 , line2 , name )
17
16
t , y = sat .find_events (topos , t0 , t1 , horizon )
17
+ print ('{}: {} events' .format (name , len (t )))
18
18
19
19
assert len (t ) == len (y )
20
20
assert len (t ) == number_events_expected
@@ -116,7 +116,20 @@ def run_sat(name, line1, line2, number_events_expected):
116
116
90 ,
117
117
)
118
118
119
- # Issue #996: should detect rising without needing a culmination
119
+ # Issue #996: detect setting even if we missed the culmination
120
+
121
+ t0 = ts .utc (2022 , 1 , 2 , 3 , 15 )
122
+ t1 = ts .utc (2022 , 1 , 2 , 3 , 45 )
123
+ topos = wgs84 .latlon (- 24.626331 , - 70.403964 , 2369.34 )
124
+ horizon = 30.0
125
+ run_sat (
126
+ 'O3B PFM' ,
127
+ '1 39191U 13031D 21365.68950013 -.00000013 00000-0 00000-0 0 9995' ,
128
+ '2 39191 000.0397 004.0913 0002586 278.0623 077.8173 05.00115674155430' ,
129
+ 1 ,
130
+ )
131
+
132
+ # Issue #996 (comment): detect rising without a culmination
120
133
121
134
t0 = ts .utc (2024 , 8 , 26 , 8 , 38 )
122
135
t1 = t0 + 5.0 / 24.0
0 commit comments