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

No TOC Parameter? #75

Closed Hahne29 closed 2 years ago

Hahne29 commented 3 years ago

Hi, I don't see a TOC parameter when I load a nav file. Is that not implemented?

Thanks.

JulieTls commented 2 years ago

I think TOC parameter is stored in the time index of georinex.load output. The following code permits to store it in a dedicated column (in addition to index).

xarray_data_nav = georinex.load(filename) df_data_nav = xarray_data_nav.to_dataframe() toc = df_data_nav.index.get_level_values(1) df_data_nav['Toc'] = toc

scivision commented 2 years ago

The "Time of Clock" UTC in RINEX 3.x NAV messages is simply obtained by:

nav = georinex.load(filename) toc = nav.time.values

I note this now in Readme_NAV.md