geospace-code / georinex

Python RINEX 2 / 3 NAV / OBS / sp3 reader & batch convert to HDF5 with C-like speed
MIT License
220 stars 91 forks source link

Avoid exception when Number of Observation does not match TYPES OF OBSERV #50

Closed serioca closed 5 years ago

serioca commented 5 years ago

i have submitted to georinex.rinexheader a rinex file, attached, that have the following line: 5 C1 P2 L1 L2 D1 D2 # / TYPES OF OBSERV Should be possible do not raise exception?

scivision commented 5 years ago

This was fixed in ca82ffb

There may still be cases where this fails, but it attempts to adapt to the actual number of observations specified even when the first digit is wrong 5 in your example.