Skip to content

Commit f5e7637

Browse files
committed
adds test to check for observation codes
1 parent 378f569 commit f5e7637

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/parsers/test_rinex_obs.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,12 @@ def test_z_tracking(root_path):
254254

255255
assert len(rinex_navdata) == 210
256256
assert rinex_navdata.shape == (10,210)
257+
258+
# expected observation codes come from z_tracking.rnx header
259+
# header also lists the 3Q measurements for glonass but none exist
260+
# in this shortened version of the file
261+
expected_observation_codes = ['1C','1W','2W','2L','5Q','7Q','2P',
262+
'2C','2I','7I']
263+
264+
parsed_observation_codes = np.unique(rinex_navdata["observation_code"])
265+
assert sorted(expected_observation_codes) == sorted(parsed_observation_codes)

0 commit comments

Comments
 (0)