Skip to main content

gnsskit

Shared tools for post-processing GNSS data with RTKLIB rnx2rtkp, used by djippk (drone PPK) and stopgo (stop-and-go surveys).

  • RTKLIB: typed RtkConfig, run_rnx2rtkp, read_pos.
  • RINEX: inspect, trim and decimate observation files; survey occupations.
  • Static: baselines with covariance, loop closures, least-squares network adjustment.
  • Kinematic: trajectory interpolation and averaging.
  • Reference systems and plots: GPST/UTC, ECEF/geodetic/ENU; visibility, occupation, baseline and .pos plots.
  • Export: MOVE3 projects.

Install

With uv (recommended), in your project:

uv add gnsskit                  # library
uv add "gnsskit[network]"       # + network adjustment (scipy, pyproj)
uv add "gnsskit[network,plot]"  # + visibility plots and occupation maps (matplotlib)
uv add "gnsskit[all]"           # every extra
uv add git+https://github.com/franioli/gnsskit   # development version

or in an existing environment, uv pip install gnsskit (same extras).

With pip:

pip install gnsskit
pip install "gnsskit[all]"   # with every extra

RTKLIB (required separately)

The processing functions (run_rnx2rtkp, process_baseline, solve_static) call the RTKLIB command-line program rnx2rtkp, which must be installed on your system and found on your PATH (or passed with exe=); trim_rinex(use_convbin=True) also needs RTKLIB convbin. The demo5 fork is recommended; gnsskit is developed with rnx2rtkp ver.EX 2.5.1.

  • Windows: download a demo5 release, unzip it and add the folder with rnx2rtkp.exe to your PATH.
  • Linux / macOS: build it from source:
    git clone https://github.com/rtklibexplorer/RTKLIB
    cd RTKLIB/app/consapp/rnx2rtkp/gcc && make && sudo make install
    

Check it with rnx2rtkp -?. If it is missing, run_rnx2rtkp raises an error with these instructions. The rest of gnsskit (RINEX tools, read_pos, loop closures, network adjustment, reference systems) is pure Python and works without RTKLIB, e.g. on baselines computed elsewhere.

Example

Baselines of a static network with RTKLIB, then a least-squares adjustment with one fixed point:

from gnsskit import RtkConfig, process_baseline
from gnsskit.static.network import adjust_network, coordinate_table

conf = RtkConfig(posmode="static", navsys="GRE", solformat="xyz", base_postype="rinexhead")
baselines = [
    process_baseline(rover, base, f"{rover}.26o", f"{base}.26o", ["nav.26n"], conf, f"{base}-{rover}.pos")
    for base, rover in [("MIL3", "A1"), ("MIL3", "A2"), ("A1", "A2")]
]
adj = adjust_network(baselines, fixed={"MIL3": (4421979.9187, 718518.3650, 4524921.2364)})
print(coordinate_table(adj))

Documentation

  • docs/: one short guide per module (RINEX, RTKLIB, static baselines and adjustment, kinematic, reference systems, plots, MOVE3 export).
  • scripts/: command-line tools for RINEX statistics, occupation maps and trimming.
  • example/: complete worked examples (static, kinematic, static network with data).

Contributing

Issues are welcome on GitHub. To contribute code:

  1. Fork the repository on GitHub and clone your fork:

    git clone https://github.com/<your-username>/gnsskit && cd gnsskit
    git checkout -b my-feature
    
  2. Set up the environment, make your changes and check them:

    uv sync                      # environment with the dev dependencies (incl. ruff)
    uv run pytest                # tests
    uv run ruff format .         # format the code
    uv run ruff check --fix .    # lint, fixing what can be fixed automatically
    
  3. Push the branch to your fork and open a pull request against main of franioli/gnsskit.

Releasing a new version

Maintainers only. Publishing a GitHub release runs publish.yml, which checks the tag against the version, builds and uploads to PyPI (Trusted Publishing: publisher franioli/gnsskit, workflow publish.yml, environment pypi):

uv run pytest
uv version --bump patch            # or minor / major
git commit -am "Release $(uv version --short)" && git push
gh release create "v$(uv version --short)" --generate-notes

PyPI never accepts the same version twice. Manual upload, if needed: rm -rf dist && uv build && UV_PUBLISH_TOKEN=<project token> uv publish.

Metadata

Release files for gnsskit 0.6.1

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

Source distribution (sdist)

Source distribution for gnsskit 0.6.1
File Size Uploaded Provenance Actions
gnsskit-0.6.1.tar.gz 65.5 kB Without provenance Details for gnsskit-0.6.1.tar.gz

Built distribution (wheel)

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

Total release size: 144.6 kB

Release files / gnsskit-0.6.1.tar.gz

Download URL gnsskit-0.6.1.tar.gz
Size 65.5 kB
Tags Source
SHA-256 checksum
How to use checksums
164d60bca20c7c39206c7bf22eb4d9e97d4fabf3ea18ec5195135fffa656b499
BLAKE2b-256 checksum
How to use checksums
31965dc7d7b74c9753ff6bc601965ad9121aaa0236f38d5d493cc496d2c9daaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / gnsskit-0.6.1-py3-none-any.whl

Download URL gnsskit-0.6.1-py3-none-any.whl
Size 79.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b0271a802d73987b915e7a604c950d0c87ca37d00e0e4a77f2c911e68591ed5
BLAKE2b-256 checksum
How to use checksums
9ca68acff226d74c462781419bf62bab5fa7b3862531c8e1907c6816927cf380
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for gnsskit 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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