I am working on a script that downloads RINEX observation data from NASA (https://cddis.nasa.gov/Data_and_Derived_Products/GNSS/daily_30second_data.html) and I can't decompress it with the gzip module.
However, I can successfully decompress it by running gzip -d <file>
in the shell.
The error message seems to point that the file's magic number is invalid:
OSError: Not a gzipped file (b'\x1f\x9d')
I am using subprocess
right now to invoke gzip but it would be very nice if I could just use the gzip module. Does anyone knows if it is a problem with the data or just a limitation of the module?