Skip to main content

RinexParser

Python scripts to analyse Rinex data. Supports Rinex 2 and Rinex 3

Install

python -m pip install RinexParser

Within your program you can then import the package.

Datastructure

After parsing the data is stored in a dictionary. I tried to use Xarray, netCDF4, pickles, etc. but the parsing and storing took either very long or consumed a lot of storage. That's why i sticked with a classic dictionary.

The rnx_parser.datadict shows the following structure:

d: {
    "epochs": [
        {
            "id": "YYYY-mm-ddTHH:MM:SSZ",
            "satellites": [
                {
                    "id": "G01",
                    "observations": {
                        "C1P_value": ...,
                        "C1P_lli": ...,
                        "C1P_ssi": ...,
                        ...
                    }
                }, 
                { ... }
            ]            
        }
    ]
}

Known Issues

  • Epoch dates are zero-padded ("2025 02 01 00 00 00.000000 0 35")
  • Doppler values for example are also zero padded (-0.124 vs -.124)
  • RinexHeader values are different sorted compared to input file

Examples

Example to parse and write Rinex

#!/usr/bin/python

from rinex_parser.obs_parser import RinexParser

input_file = "full_path_to_your.rnx"

rnx_parser = RinexParser(rinex_file=RINEX3_FILE, rinex_version=3, sampling=30)
rnx_parser.run()

out_file = os.path.join(
    os.path.dirname(input_file),
    rnx_parser.get_rx3_long()
)

# Output Rinex File
with open(out_file, "w") as rnx:
    logger.info(f"Write to file: {rnx_parser.get_rx3_long()}")
    rnx.write(rnx_parser.rinex_reader.header.to_rinex3())
    rnx.write("\n")
    rnx.write(rnx_parser.rinex_reader.to_rinex3())
    rnx.write("\n")

There is an entry point that allows you to use it from the command line:

usage: ridah-main [-h] [--fout FOUT] [--smp SMP] [--country COUNTRY] [--rnx-version {2,3}] finp
ridah-main: error: the following arguments are required: finp

Notice

This code is currently under active development and is provided as-is. The author makes no warranties, express or implied, regarding the functionality, reliability, or safety of this code. By using this code, you assume all risks associated with its use. The author is not liable for any damages, loss of data, or other issues that may arise from the use of this code. Please use at your own discretion.

Release files for rinexparser 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rinexparser 1.1.2
File Size Uploaded
rinexparser-1.1.2.tar.gz 56.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rinexparser 1.1.2
File Interpreter ABI Platform
rinexparser-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 126.6 kB

Release files / rinexparser-1.1.2.tar.gz

Download URL rinexparser-1.1.2.tar.gz
Size 56.4 kB
Tags Source
SHA-256 checksum
How to use checksums
65ff9d849d51edefb2f97f3562725dee720dc4a104ac74b7c753d61f5da4830a
BLAKE2b-256 checksum
How to use checksums
b7734dbfea3631a2fabb2bbea4916db7d8968adabfbe99cf8d71796c434d86bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / rinexparser-1.1.2-py3-none-any.whl

Download URL rinexparser-1.1.2-py3-none-any.whl
Size 70.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f29e3803004439243f337da680fc3885536e3b1f084c48ab29d4b48d17d2fec
BLAKE2b-256 checksum
How to use checksums
293f373ebaa521c817c849b638e716b65db83ffddb8dfaa3193f4a00c7c326d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page