Skip to content

Commit d5de43c

Browse files
Nikos Kanistrasscivision
authored andcommitted
Retrieve time-system corrections from RINEX 3
all time-system corrections reported by the RINEX 3 header are retrieved as list elements, similar to the ionospheric corrections
1 parent 2b305ae commit d5de43c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/georinex/nav3.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,19 @@ def navheader3(f: T.TextIO) -> dict[str, T.Any]:
485485
rinex_string_to_float(content[5 + i * 12 : 5 + (i + 1) * 12]) for i in range(N)
486486
]
487487
hdr[kind][coeff_kind] = coeff
488+
elif kind == "TIME SYSTEM CORR":
489+
if kind not in hdr:
490+
hdr[kind] = {}
491+
492+
coeff_kind = content[:4].strip()
493+
# RINEX 3.04 table A5 page A20
494+
coeff = [
495+
rinex_string_to_float(content[5:22]),
496+
rinex_string_to_float(content[22:38]),
497+
int(content[38:45]),
498+
int(content[45:50])
499+
]
500+
hdr[kind][coeff_kind] = coeff
488501
else:
489502
hdr[kind] = content
490503

0 commit comments

Comments
 (0)