geospace-code / georinex

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

Update obs2.py #69

Closed izzydrewlynn closed 3 years ago

izzydrewlynn commented 3 years ago

compatibility for early rinex where a space in SSI position is assumed to be GPS

per RINEX 2 docs:

        snn                  s:    satellite system identifier
                                   G or blank : GPS
                                   R          : GLONASS
                                   T          : Transit
                            nn:    PRN (GPS), almanac number (GLONASS)
                                   or two-digit Transit satellite number

        Note: G is mandatory in mixed GPS/GLONASS files

                                   (blank default modified in April 1997)

Currently obs2 returns no data on files with blank SSI in SV SNN format because there are no SV's with SSI matching the indicated System ('G'). This change addresses this by checking for spaces when the SV list is generated, and replacing them with the assumed SSI indicator ('G'), aligning with any downstream comparisons to SSI.

scivision commented 3 years ago

Thank you!