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

Keplerian orbits not being computed on datasets anymore #107

Open mauriciodev opened 3 months ago

mauriciodev commented 3 months ago

If you read the nav data using georinex and pass it to keplerian.py, the set comparison doesn't work because sv is a dataframe, not a string. I checked the test suit and it seems that it's using a dict instead of a xarray object, so that's why it passes. Code works as expected if we run: sed -i -e 's/sv["sv"] in {\"R\", \"S\"}/sv["sv"] in ("R", "S")/g' /usr/local/lib/python3.10/dist-packages/georinex/keplerian.py

Please revert commit c3644ad on src/georinex/keplerian.py>