Closed valgur closed 3 years ago
Hi Martin! Thanks so much for that! You're the first pull requester! Yes, it's really good to have a default Hatanaka (de)compression written in Python, so that LEOGPS can be run in the Linux and Mac OS's where the EXE file can't have to be used. Thanks for sharing your work!
I'll make some minor edits tomorrow to the file copy-pasting from the Bern FTP (I think the ephemeris files get duplicated in the main directory but I'll fix that tomorrow), and I will also write the credits for your Hatanaka library in the documentation tomorrow. Cheers!
Hi! I recently created a carefully packaged and wrapped version of the RNXCMP tools in Python as the Hatanaka library. It simplifies the installation and usage of the tools and also makes sure any errors are raised as proper exceptions and warnings as Python warnings. In addition to the Hatanaka decompression it can also take care of the .gz/.Z compression usually applied on top of Hatanaka compression.
I thought you might find the library useful as well. It should make sharing using of this library quite a bit simpler, I hope, as it gets rid of the need to bundle the
crx2rnx
andgzip
executable. One caveat, though, is that it sets the minimum Python version to 3.6+, but I doubt it's an issue since Python 2 has been EOL-ed for a while now.