gnsskit
Shared tools for post-processing GNSS data with RTKLIB rnx2rtkp, used by
djippk (drone PPK) and stopgo
(stop-and-go surveys).
- RTKLIB wrappers (
gnsskit.rtklib):RtkConfig, a typed, immutable set ofrnx2rtkpoptions (from_file,updated,with_options,with_base_llh,write);run_rnx2rtkpandfind_rnx2rtkp;read_pos(llh, xyz and enu.posfiles). - RINEX (
gnsskit.rinex):rinex_span,header_llh,trim_rinex; inspection withobs_summary(span, sampling, gaps, satellites),read_visibilityandplot_visibility(RTKPLOT-style satellite visibility, needs theplotextra). - Static (
gnsskit.static):solve_static(one solution over a time window),process_baseline(static baselines with covariance), baseline IO andloop_closures(misclosure of every triangle of baselines); least-squares adjustment of a redundant baseline network ingnsskit.static.network(needs thenetworkextra). - Kinematic (
gnsskit.kinematic): trajectory interpolation and averaging. - Reference systems (
gnsskit.refsys): GPST/UTC, ellipsoids, ECEF/geodetic conversions andENUFrame, a local east-north-up frame at a point (points, vectors and covariances, both ways).
Install
With uv (recommended), in your project:
uv add gnsskit # library
uv add "gnsskit[network]" # + network adjustment (scipy, pyproj)
uv add "gnsskit[network,plot]" # + satellite visibility plots (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.exeto yourPATH. - 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
from gnsskit import RtkConfig, read_pos, run_rnx2rtkp
config = RtkConfig(posmode="static", navsys="GEC", solformat="llh").with_base_llh(46.2, 9.8, 2300.0)
pos_file = run_rnx2rtkp(rover_obs, base_obs, [nav], config, "out.pos")
pos = read_pos(pos_file)
See example/ for complete static, kinematic and network adjustment examples.
Contributing
Issues are welcome on GitHub. To contribute code:
-
Fork the repository on GitHub and clone your fork:
git clone https://github.com/<your-username>/gnsskit && cd gnsskit git checkout -b my-feature
-
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
-
Push the branch to your fork and open a pull request against
mainoffranioli/gnsskit.
Releasing a new version
For the current maintainers only (it needs write access to the repository and to the PyPI project).
Publishing a GitHub release runs .github/workflows/publish.yml,
which checks that the tag matches the version, runs the tests, builds and uploads to PyPI:
uv version --bump patch # or minor / major: updates pyproject.toml
uv run pytest
git commit -am "Release $(uv version --short)" && git push
gh release create "v$(uv version --short)" --generate-notes # tag + release -> PyPI
gh release create creates the tag on the pushed commit; without the GitHub CLI, push a tag
(git tag -a vX.Y.Z -m "gnsskit X.Y.Z" && git push origin vX.Y.Z) and create the release from it
on GitHub. PyPI never accepts the same version twice.
One-time setup of the automatic upload (PyPI Trusted Publishing, no token): on pypi.org, project
gnsskit -> Settings -> Publishing -> add a GitHub publisher with owner franioli, repository
gnsskit, workflow publish.yml and environment pypi.
Manual upload, if needed, with a project-scoped token kept outside the repository:
rm -rf dist && uv build
UV_PUBLISH_TOKEN=$(cat ~/.config/pypi/gnsskit.token) uv publish
Metadata
Release files for gnsskit 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gnsskit-0.4.1.tar.gz | 34.4 kB | Without provenance | Details for gnsskit-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gnsskit-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for gnsskit-0.4.1-py3-none-any.whl |
Total release size: 74.7 kB
Release files / gnsskit-0.4.1.tar.gz
| Download URL | gnsskit-0.4.1.tar.gz |
|---|---|
| Size | 34.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5e05a1cfa82f6de15f4d60447407b903a56a14a467a2296ec94bb949de45a1f
|
|
BLAKE2b-256 checksum How to use checksums |
3f500f4660389031528f5a8c462722f3c4b005c595631ffd47f43e0cb9862bea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"TUXEDO OS","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / gnsskit-0.4.1-py3-none-any.whl
| Download URL | gnsskit-0.4.1-py3-none-any.whl |
|---|---|
| Size | 40.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70538bfbb671da1cec0ae96d0fdf91cfc2178558d438183d7b949c1a149e84bb
|
|
BLAKE2b-256 checksum How to use checksums |
98460fc4cd57ae30bd49ef1707152200b7c92b680f2a5210fed1dfb1e4012cdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"TUXEDO OS","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for gnsskit 0.4.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.