test_sp3 module
Tests for SP3 data loader.
- test_sp3.fixture_load_sp3data(sp3_path)[source]
Load instance of sp3 data.
- Parameters:
sp3_path (pytest.fixture) – String with location for the unit_test sp3 measurements
- Returns:
sp3data – Instance of Sp3 class.
- Return type:
gnss_lib_py.parsers.sp3.Sp3
- test_sp3.fixture_sp3_path(root_path)[source]
Filepath of valid .sp3 measurements
- Parameters:
root_path (string) – Folder location containing measurements
- Returns:
sp3_path – String with location for the unit_test sp3 measurements
- Return type:
string
Notes
Downloaded the relevant .sp3 files from either CORS website [1] or CDDIS website [2]
References
- test_sp3.fixture_sp3_path_missing(root_path)[source]
Invalid filepath for .sp3 measurements
- Parameters:
root_path (string) – Folder location containing measurements
- Returns:
sp3_path_missing – String with location for the unit_test sp3 measurements
- Return type:
string
- test_sp3.fixture_sp3_path_nodata(root_path)[source]
Filepath for .sp3 measurements with no data
- Parameters:
root_path (string) – Folder location containing measurements
- Returns:
sp3_path_nodata – String with location for the unit_test sp3 measurements
- Return type:
string
- test_sp3.test_load_sp3data_missing(sp3_path_missing)[source]
Load instance of sp3 for GPS constellation from missing file
- Parameters:
sp3_path_missing (pytest.fixture) – String with invalid location for unit_test sp3 measurements
- test_sp3.test_load_sp3data_nodata(sp3_path_nodata)[source]
Load sp3 instance from file with no data
- Parameters:
sp3_path_nodata (pytest.fixture) – String with no available data for unit_test sp3 measurements
- test_sp3.test_sp3gps_value_check(sp3data, prn, row_name, index, exp_value)[source]
Check array of Sp3 entries for GPS against known values
- Parameters:
sp3data (pytest.fixture) – Instance of Sp3 class
prn (int) – Satellite PRN for test example
row_name (string) – Row key for test example
index (int) – Index to query data at
exp_value (float/datetime) – Expected value at queried indices