Beispiel #1
0
def test_sat_pass_alt_az():
    tle_file = f"{test_data}/sat_utils/TLE/25986.txt"
    sats, epochs = load_tle(tle_file)
    epoch_range = epoch_ranges(epochs)
    t_arr, index_epoch = epoch_time_array(epoch_range, index_epoch=0, cadence=10)
    data = sat_pass(sats, t_arr, 0, location=(-26.703319, 116.670815, 337.83))
    assert type(data[1]) == type(data[2])
Beispiel #2
0
def test_sat_pass_alt_err():
    tle_file = f"{test_data}/sat_utils/TLE/44387.txt"
    sats, epochs = load_tle(tle_file)
    epoch_range = epoch_ranges(epochs)
    t_arr, index_epoch = epoch_time_array(epoch_range, index_epoch=0, cadence=10)
    data = sat_pass(sats, t_arr, 0, location=(-26.703319, 116.670815, 337.83))
    assert data is None
Beispiel #3
0
def test_sat_pass_passes_2():
    tle_file = f"{test_data}/sat_utils/TLE/25986.txt"
    sats, epochs = load_tle(tle_file)
    epoch_range = epoch_ranges(epochs)
    t_arr, index_epoch = epoch_time_array(epoch_range, index_epoch=1, cadence=10)
    data = sat_pass(sats, t_arr, 1, location=(-26.703319, 116.670815, 337.83))
    assert data[0][0][0] == 0
Beispiel #4
0
def test_ephem_data_alt():
    tle_file = f"{test_data}/sat_utils/TLE/25986.txt"
    sats, epochs = load_tle(tle_file)
    epoch_range = epoch_ranges(epochs)
    t_arr, index_epoch = epoch_time_array(epoch_range, index_epoch=0, cadence=10)
    data = sat_pass(sats, t_arr, 0, location=(-26.703319, 116.670815, 337.83))
    passes, alt, az = data
    time_array, sat_alt, sat_az = ephem_data(t_arr, passes[0], alt, az)
    assert sat_alt.shape[0] == 98