test_dop module
Test for DOP calculations and manipulations.
- test_dop.fixture_simple_sat_expected_dop()[source]
The expected dop values for the simple satellite scenario.
- test_dop.fixture_simple_sat_expected_enu_unit_vectors()[source]
The expected ENU unit vectors for the simple satellite scenario.
- test_dop.fixture_singularity_sat_scenario()[source]
A simple set of satellites that will cause a singularity in the DOP matrix.
- test_dop.fixture_too_few_sat_scenario()[source]
A simple set of too few satellites that will cause a singularity in the DOP matrix.
- test_dop.test_dop_across_time(navdata)[source]
Test DOP calculation across time is properly added to NAV data.
- Parameters:
navdata (NavData) – A NavData with multiple timesteps (i.e., as in real data).
- test_dop.test_dop_across_time_with_selection(navdata, which_dop)[source]
Test DOP calculation across time is properly added to NAV data.
- Parameters:
navdata (NavData) – A NavData with multiple timesteps (i.e., as in real data).
which_dop (dict) – A dictionary specifying which DOP values to calculate.
- test_dop.test_simple_dop(navdata, expected_dop)[source]
A simple set of satellites for DOP calculation.
- Parameters:
navdata (NavData) – A NavData with only one time entry of a simple satellite scenario.
expected_dop (dict) – The expected dop values for the simple satellite scenario.
- test_dop.test_simple_enu_unit_vectors(navdata, expected_los_vectors)[source]
A simple set of satellites for ENU unit vector calculation.
- Parameters:
navdata (NavData) – A NavData with only one time entry of a simple satellite scenario.
expected_los_vectors (np.ndarray) – The expected ENU unit vectors for the simple satellite scenario.
- test_dop.test_simple_get_dop(navdata, expected_dop, which_dop)[source]
Test that the get_dop function works correctly forms the DOP navdata.
- Parameters:
navdata (NavData) – A NavData with only one time entry of a simple satellite scenario.
expected_dop (dict) – The expected dop values for the simple satellite scenario.
- test_dop.test_simple_get_dop_default(navdata, expected_dop)[source]
Test that the get_dop function works correctly forms the DOP navdata under default selection of the dop entries (i.e., HDOP and VDOP only).
- Parameters:
navdata (NavData) – A NavData with only one time entry of a simple satellite scenario.
expected_dop (dict) – The expected dop values for the simple satellite scenario.
- test_dop.test_singularity_dop(navdata)[source]
Testing that the singularity error is raised and handled correctly.
- Parameters:
navdata (NavData) – A NavData with only one time entry of a singular satellite scenario.
- test_dop.test_splat_dop_matrix(navdata, expected_dop)[source]
Test that the splat_dop_matrix function works correctly.
- Parameters:
navdata (NavData) – A NavData with only one time entry of a simple satellite scenario.
expected_dop (dict) – The expected dop values for the simple satellite scenario.
- test_dop.test_splat_unsplat_dop_matrix_across_time(navdata)[source]
Test that we can splat and unsplat the DOP matrix across time.
- Parameters:
navdata (NavData) – A NavData with multiple timesteps (i.e., as in real data).
- test_dop.test_unsplat_dop_matrix(navdata, expected_dop)[source]
Test that the unsplat_dop_matrix function works correctly.
- Parameters:
navdata (NavData) – A NavData with only one time entry of a simple satellite scenario.
expected_dop (dict) – The expected dop values for the simple satellite scenario.