Skip to content

Commit

Permalink
NPI-3670 add more test data for gen_sp3_content() unit test - which i…
Browse files Browse the repository at this point in the history
…s not finished yet
  • Loading branch information
treefern committed Dec 24, 2024
1 parent 8a57bfc commit 6fe5183
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/test_datasets/sp3_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,26 @@
# TODO update with a proper source. Will do for now just to check exceptions on these flags being seen.


# Expected content output for gnssanalysis gen_sp3_content() when reading in then writing
# out sp3_test_data_igs_benchmark_null_clock:
expected_sp3_output_igs_benchmark_null_clock = b"""* 2007 4 12 0 0 0.00000000
PG01 -6114.801556 -13827.040252 22049.171610 999999.999999
VG01 27184.457428 -3548.055474 5304.058806 999999.999999
PG02 12947.223282 22448.220655 6215.570741 999999.999999
VG02 -7473.756152 -4355.288568 29939.333728 999999.999999
* 2007 4 12 0 15 0.00000000
PG01 -3659.032812 -14219.662913 22339.175481 123456.999999
VG01 27295.435569 -5170.061971 1131.227754 999999.999999
PG02 12163.580358 21962.803659 8849.429007 999999.999999
VG02 -9967.334764 -6367.969150 28506.683280 999999.999999
* 2007 4 12 0 30 0.00000000
PG01 -1218.171155 -14755.013599 22252.168480 999999.999999
VG01 26855.435366 -6704.236117 -3062.394499 999999.999999
PG02 11149.555664 21314.099837 11331.977499 123456.999999
VG02 -12578.915944 -7977.396362 26581.116225 999999.999999
"""
# NOTE 'EOF' is added in write_sp3() so we don't expect it here

# second dataset is a truncated version of file COD0OPSFIN_20242010000_01D_05M_ORB.SP3
sp3_test_data_truncated_cod_final = b"""#dP2024 7 19 0 0 0.00000000 2 d+D IGS20 FIT AIUB
## 2323 432000.00000000 300.00000000 60510 0.0000000000000
Expand Down
2 changes: 2 additions & 0 deletions tests/test_sp3.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from test_datasets.sp3_test_data import (
# first dataset is part of the IGS benchmark (modified to include non null data on clock):
sp3_test_data_igs_benchmark_null_clock as input_data,
# Expected content section we want gnssanalysis to write out
expected_sp3_output_igs_benchmark_null_clock,
# Test exception raising when encountering EP, EV rows
sp3_test_data_ep_ev_rows,
# second dataset is a truncated version of file COD0OPSFIN_20242010000_01D_05M_ORB.SP3:
Expand Down

0 comments on commit 6fe5183

Please sign in to comment.