To read a RINEX 2 or 3 NAV file:
nav = gr.load('tests/demo_MN.rnx')
Returns an xarray.Dataset of the data within the RINEX 3 or RINEX 2 Navigation file. Indexed by time x quantity
Assume the NAV data is loaded in variable nav
.
Select satellite(s) (here, G13
) by
nav.sel(sv='G13')
Pick any parameter (say, M0
) across all satellites and time (or index by that first) by:
nav['M0']
Print start, stop times and measurement interval:
python -m georinex.time ~/my.rnx
Print start, stop times and measurement interval for all files in a directory:
python -m georinex.time ~/data *.rnx
Get vector of datetime.datetime
in RINEX file:
times = gr.gettimes('~/my.rnx')
The "times" variable is the Epoch / ToC (Time of Clock).