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

Microseconds Error in sp3 Reader #64

Closed Shaylah-Maria closed 2 years ago

Shaylah-Maria commented 4 years ago

The time in the file is: 2018 9 23 0 2 37.63292462

Georinex is saving datetime as: 2018-9-23T00:02:37.063292 (incorrect)

instead of: 2018-9-23T00:02:37.63292 (correct)

See first data point entry:

Screen Shot 2020-03-23 at 1 20 30 PM

What is stored inside georinex.to_datetime(data.time[ii]) (first element of the saved dates in sp3 file). this should equal the first date point in file above: image

To fix, must multiply what is saved in microseconds by 10.

-Shaylah Mutschler

scivision commented 4 years ago

Thank you I seem to have overlooked this. I have flagged this so I can examine and fix. Thanks for your patience and kindly feedback.

mauriciodev commented 2 years ago

It seems that line 145 of sp3.py should have "ln[23:29]" instead of "ln[23:28]"

    microsecond=int(ln[23:29]),

I have already made a pull request to the sp3 file today to address sp3-a data. Should I add this fix to that?