gnsskit 0.4.3__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gnsskit-0.4.3 → gnsskit-0.6.0}/PKG-INFO +36 -41
- {gnsskit-0.4.3 → gnsskit-0.6.0}/README.md +35 -40
- {gnsskit-0.4.3 → gnsskit-0.6.0}/pyproject.toml +4 -1
- {gnsskit-0.4.3 → gnsskit-0.6.0}/pyproject.toml.orig +4 -1
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/__init__.py +17 -1
- gnsskit-0.6.0/src/gnsskit/export/__init__.py +5 -0
- gnsskit-0.6.0/src/gnsskit/export/move3.py +401 -0
- gnsskit-0.6.0/src/gnsskit/plot/__init__.py +12 -0
- gnsskit-0.6.0/src/gnsskit/plot/_map.py +233 -0
- gnsskit-0.6.0/src/gnsskit/plot/occupations.py +268 -0
- gnsskit-0.6.0/src/gnsskit/plot/solutions.py +422 -0
- gnsskit-0.6.0/src/gnsskit/plot/visibility.py +130 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/refsys.py +25 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/rinex.py +249 -123
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/rtklib/config.py +2 -2
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/static/__init__.py +0 -2
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/static/baseline.py +26 -55
- gnsskit-0.6.0/src/gnsskit/static/closure.py +61 -0
- gnsskit-0.4.3/src/gnsskit/static/closure.py +0 -79
- {gnsskit-0.4.3 → gnsskit-0.6.0}/LICENSE +0 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/kinematic/__init__.py +0 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/kinematic/trajectory.py +0 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/ppp/__init__.py +0 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/py.typed +0 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/rtklib/__init__.py +0 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/rtklib/pos.py +0 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/rtklib/runner.py +0 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/static/network.py +0 -0
- {gnsskit-0.4.3 → gnsskit-0.6.0}/src/gnsskit/static/solve.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gnsskit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: RTKLIB-based GNSS post-processing toolkit: RINEX tools, RTKLIB wrappers, static baselines and network adjustment, kinematic trajectories
|
|
5
5
|
Keywords: gnss,gps,rtklib,ppk,surveying,least-squares
|
|
6
6
|
Author: Francesco Ioli
|
|
@@ -43,18 +43,12 @@ Shared tools for post-processing GNSS data with [RTKLIB](https://www.rtklib.com/
|
|
|
43
43
|
> command-line program `rnx2rtkp` (the CLI of RTKPOST) for the GNSS processing; `pip`/`uv` do
|
|
44
44
|
> not install it. See [RTKLIB](#rtklib-required-separately) below.
|
|
45
45
|
|
|
46
|
-
- **RTKLIB
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
- **
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- **Static** (`gnsskit.static`): `solve_static` (one solution over a time window), `process_baseline`
|
|
53
|
-
(static baselines with covariance), baseline IO and `loop_closures` (misclosure of every triangle of baselines); least-squares adjustment of a redundant baseline
|
|
54
|
-
network in `gnsskit.static.network` (needs the `network` extra).
|
|
55
|
-
- **Kinematic** (`gnsskit.kinematic`): trajectory interpolation and averaging.
|
|
56
|
-
- **Reference systems** (`gnsskit.refsys`): GPST/UTC, ellipsoids, ECEF/geodetic conversions and
|
|
57
|
-
`ENUFrame`, a local east-north-up frame at a point (points, vectors and covariances, both ways).
|
|
46
|
+
- **RTKLIB**: typed `RtkConfig`, `run_rnx2rtkp`, `read_pos`.
|
|
47
|
+
- **RINEX**: inspect, trim and decimate observation files; survey occupations.
|
|
48
|
+
- **Static**: baselines with covariance, loop closures, least-squares network adjustment.
|
|
49
|
+
- **Kinematic**: trajectory interpolation and averaging.
|
|
50
|
+
- **Reference systems and plots**: GPST/UTC, ECEF/geodetic/ENU; visibility, occupation, baseline and `.pos` plots.
|
|
51
|
+
- **Export**: MOVE3 projects.
|
|
58
52
|
|
|
59
53
|
## Install
|
|
60
54
|
|
|
@@ -63,7 +57,7 @@ With [uv](https://docs.astral.sh/uv/) (recommended), in your project:
|
|
|
63
57
|
```sh
|
|
64
58
|
uv add gnsskit # library
|
|
65
59
|
uv add "gnsskit[network]" # + network adjustment (scipy, pyproj)
|
|
66
|
-
uv add "gnsskit[network,plot]" # +
|
|
60
|
+
uv add "gnsskit[network,plot]" # + visibility plots and occupation maps (matplotlib)
|
|
67
61
|
uv add "gnsskit[all]" # every extra
|
|
68
62
|
uv add git+https://github.com/franioli/gnsskit # development version
|
|
69
63
|
```
|
|
@@ -99,15 +93,29 @@ reference systems) is pure Python and works without RTKLIB, e.g. on baselines co
|
|
|
99
93
|
|
|
100
94
|
## Example
|
|
101
95
|
|
|
102
|
-
|
|
103
|
-
from gnsskit import RtkConfig, read_pos, run_rnx2rtkp
|
|
96
|
+
Baselines of a static network with RTKLIB, then a least-squares adjustment with one fixed point:
|
|
104
97
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
98
|
+
```python
|
|
99
|
+
from gnsskit import RtkConfig, process_baseline
|
|
100
|
+
from gnsskit.static.network import adjust_network, coordinate_table
|
|
101
|
+
|
|
102
|
+
conf = RtkConfig(posmode="static", navsys="GRE", solformat="xyz", base_postype="rinexhead")
|
|
103
|
+
baselines = [
|
|
104
|
+
process_baseline(rover, base, f"{rover}.26o", f"{base}.26o", ["nav.26n"], conf, f"{base}-{rover}.pos")
|
|
105
|
+
for base, rover in [("MIL3", "A1"), ("MIL3", "A2"), ("A1", "A2")]
|
|
106
|
+
]
|
|
107
|
+
adj = adjust_network(baselines, fixed={"MIL3": (4421979.9187, 718518.3650, 4524921.2364)})
|
|
108
|
+
print(coordinate_table(adj))
|
|
108
109
|
```
|
|
109
110
|
|
|
110
|
-
|
|
111
|
+
## Documentation
|
|
112
|
+
|
|
113
|
+
- [docs/](https://github.com/franioli/gnsskit/tree/main/docs): one short guide per module (RINEX,
|
|
114
|
+
RTKLIB, static baselines and adjustment, kinematic, reference systems, plots, MOVE3 export).
|
|
115
|
+
- [scripts/](https://github.com/franioli/gnsskit/tree/main/scripts): command-line tools for RINEX
|
|
116
|
+
statistics, occupation maps and trimming.
|
|
117
|
+
- [example/](https://github.com/franioli/gnsskit/tree/main/example): complete worked examples
|
|
118
|
+
(static, kinematic, static network with data).
|
|
111
119
|
|
|
112
120
|
## Contributing
|
|
113
121
|
|
|
@@ -131,30 +139,17 @@ Issues are welcome on [GitHub](https://github.com/franioli/gnsskit/issues). To c
|
|
|
131
139
|
|
|
132
140
|
## Releasing a new version
|
|
133
141
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
which checks that the tag matches the version, runs the tests, builds and uploads to PyPI:
|
|
142
|
+
Maintainers only. Publishing a GitHub release runs
|
|
143
|
+
[`publish.yml`](.github/workflows/publish.yml), which checks the tag against the version, builds
|
|
144
|
+
and uploads to PyPI (Trusted Publishing: publisher `franioli/gnsskit`, workflow `publish.yml`,
|
|
145
|
+
environment `pypi`):
|
|
139
146
|
|
|
140
147
|
```sh
|
|
141
|
-
uv version --bump patch # or minor / major: updates pyproject.toml
|
|
142
148
|
uv run pytest
|
|
149
|
+
uv version --bump patch # or minor / major
|
|
143
150
|
git commit -am "Release $(uv version --short)" && git push
|
|
144
|
-
gh release create "v$(uv version --short)" --generate-notes
|
|
151
|
+
gh release create "v$(uv version --short)" --generate-notes
|
|
145
152
|
```
|
|
146
153
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
on GitHub. PyPI never accepts the same version twice.
|
|
150
|
-
|
|
151
|
-
One-time setup of the automatic upload (PyPI Trusted Publishing, no token): on pypi.org, project
|
|
152
|
-
gnsskit -> Settings -> Publishing -> add a GitHub publisher with owner `franioli`, repository
|
|
153
|
-
`gnsskit`, workflow `publish.yml` and environment `pypi`.
|
|
154
|
-
|
|
155
|
-
Manual upload, if needed, with a project-scoped token kept outside the repository:
|
|
156
|
-
|
|
157
|
-
```sh
|
|
158
|
-
rm -rf dist && uv build
|
|
159
|
-
UV_PUBLISH_TOKEN=$(cat ~/.config/pypi/gnsskit.token) uv publish
|
|
160
|
-
```
|
|
154
|
+
PyPI never accepts the same version twice. Manual upload, if needed:
|
|
155
|
+
`rm -rf dist && uv build && UV_PUBLISH_TOKEN=<project token> uv publish`.
|
|
@@ -9,18 +9,12 @@ Shared tools for post-processing GNSS data with [RTKLIB](https://www.rtklib.com/
|
|
|
9
9
|
> command-line program `rnx2rtkp` (the CLI of RTKPOST) for the GNSS processing; `pip`/`uv` do
|
|
10
10
|
> not install it. See [RTKLIB](#rtklib-required-separately) below.
|
|
11
11
|
|
|
12
|
-
- **RTKLIB
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
- **
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- **Static** (`gnsskit.static`): `solve_static` (one solution over a time window), `process_baseline`
|
|
19
|
-
(static baselines with covariance), baseline IO and `loop_closures` (misclosure of every triangle of baselines); least-squares adjustment of a redundant baseline
|
|
20
|
-
network in `gnsskit.static.network` (needs the `network` extra).
|
|
21
|
-
- **Kinematic** (`gnsskit.kinematic`): trajectory interpolation and averaging.
|
|
22
|
-
- **Reference systems** (`gnsskit.refsys`): GPST/UTC, ellipsoids, ECEF/geodetic conversions and
|
|
23
|
-
`ENUFrame`, a local east-north-up frame at a point (points, vectors and covariances, both ways).
|
|
12
|
+
- **RTKLIB**: typed `RtkConfig`, `run_rnx2rtkp`, `read_pos`.
|
|
13
|
+
- **RINEX**: inspect, trim and decimate observation files; survey occupations.
|
|
14
|
+
- **Static**: baselines with covariance, loop closures, least-squares network adjustment.
|
|
15
|
+
- **Kinematic**: trajectory interpolation and averaging.
|
|
16
|
+
- **Reference systems and plots**: GPST/UTC, ECEF/geodetic/ENU; visibility, occupation, baseline and `.pos` plots.
|
|
17
|
+
- **Export**: MOVE3 projects.
|
|
24
18
|
|
|
25
19
|
## Install
|
|
26
20
|
|
|
@@ -29,7 +23,7 @@ With [uv](https://docs.astral.sh/uv/) (recommended), in your project:
|
|
|
29
23
|
```sh
|
|
30
24
|
uv add gnsskit # library
|
|
31
25
|
uv add "gnsskit[network]" # + network adjustment (scipy, pyproj)
|
|
32
|
-
uv add "gnsskit[network,plot]" # +
|
|
26
|
+
uv add "gnsskit[network,plot]" # + visibility plots and occupation maps (matplotlib)
|
|
33
27
|
uv add "gnsskit[all]" # every extra
|
|
34
28
|
uv add git+https://github.com/franioli/gnsskit # development version
|
|
35
29
|
```
|
|
@@ -65,15 +59,29 @@ reference systems) is pure Python and works without RTKLIB, e.g. on baselines co
|
|
|
65
59
|
|
|
66
60
|
## Example
|
|
67
61
|
|
|
68
|
-
|
|
69
|
-
from gnsskit import RtkConfig, read_pos, run_rnx2rtkp
|
|
62
|
+
Baselines of a static network with RTKLIB, then a least-squares adjustment with one fixed point:
|
|
70
63
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
64
|
+
```python
|
|
65
|
+
from gnsskit import RtkConfig, process_baseline
|
|
66
|
+
from gnsskit.static.network import adjust_network, coordinate_table
|
|
67
|
+
|
|
68
|
+
conf = RtkConfig(posmode="static", navsys="GRE", solformat="xyz", base_postype="rinexhead")
|
|
69
|
+
baselines = [
|
|
70
|
+
process_baseline(rover, base, f"{rover}.26o", f"{base}.26o", ["nav.26n"], conf, f"{base}-{rover}.pos")
|
|
71
|
+
for base, rover in [("MIL3", "A1"), ("MIL3", "A2"), ("A1", "A2")]
|
|
72
|
+
]
|
|
73
|
+
adj = adjust_network(baselines, fixed={"MIL3": (4421979.9187, 718518.3650, 4524921.2364)})
|
|
74
|
+
print(coordinate_table(adj))
|
|
74
75
|
```
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
## Documentation
|
|
78
|
+
|
|
79
|
+
- [docs/](https://github.com/franioli/gnsskit/tree/main/docs): one short guide per module (RINEX,
|
|
80
|
+
RTKLIB, static baselines and adjustment, kinematic, reference systems, plots, MOVE3 export).
|
|
81
|
+
- [scripts/](https://github.com/franioli/gnsskit/tree/main/scripts): command-line tools for RINEX
|
|
82
|
+
statistics, occupation maps and trimming.
|
|
83
|
+
- [example/](https://github.com/franioli/gnsskit/tree/main/example): complete worked examples
|
|
84
|
+
(static, kinematic, static network with data).
|
|
77
85
|
|
|
78
86
|
## Contributing
|
|
79
87
|
|
|
@@ -97,30 +105,17 @@ Issues are welcome on [GitHub](https://github.com/franioli/gnsskit/issues). To c
|
|
|
97
105
|
|
|
98
106
|
## Releasing a new version
|
|
99
107
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
which checks that the tag matches the version, runs the tests, builds and uploads to PyPI:
|
|
108
|
+
Maintainers only. Publishing a GitHub release runs
|
|
109
|
+
[`publish.yml`](.github/workflows/publish.yml), which checks the tag against the version, builds
|
|
110
|
+
and uploads to PyPI (Trusted Publishing: publisher `franioli/gnsskit`, workflow `publish.yml`,
|
|
111
|
+
environment `pypi`):
|
|
105
112
|
|
|
106
113
|
```sh
|
|
107
|
-
uv version --bump patch # or minor / major: updates pyproject.toml
|
|
108
114
|
uv run pytest
|
|
115
|
+
uv version --bump patch # or minor / major
|
|
109
116
|
git commit -am "Release $(uv version --short)" && git push
|
|
110
|
-
gh release create "v$(uv version --short)" --generate-notes
|
|
117
|
+
gh release create "v$(uv version --short)" --generate-notes
|
|
111
118
|
```
|
|
112
119
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
on GitHub. PyPI never accepts the same version twice.
|
|
116
|
-
|
|
117
|
-
One-time setup of the automatic upload (PyPI Trusted Publishing, no token): on pypi.org, project
|
|
118
|
-
gnsskit -> Settings -> Publishing -> add a GitHub publisher with owner `franioli`, repository
|
|
119
|
-
`gnsskit`, workflow `publish.yml` and environment `pypi`.
|
|
120
|
-
|
|
121
|
-
Manual upload, if needed, with a project-scoped token kept outside the repository:
|
|
122
|
-
|
|
123
|
-
```sh
|
|
124
|
-
rm -rf dist && uv build
|
|
125
|
-
UV_PUBLISH_TOKEN=$(cat ~/.config/pypi/gnsskit.token) uv publish
|
|
126
|
-
```
|
|
120
|
+
PyPI never accepts the same version twice. Manual upload, if needed:
|
|
121
|
+
`rm -rf dist && uv build && UV_PUBLISH_TOKEN=<project token> uv publish`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "gnsskit"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.6.0"
|
|
4
4
|
description = "RTKLIB-based GNSS post-processing toolkit: RINEX tools, RTKLIB wrappers, static baselines and network adjustment, kinematic trajectories"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -46,6 +46,9 @@ all = [
|
|
|
46
46
|
"matplotlib",
|
|
47
47
|
]
|
|
48
48
|
|
|
49
|
+
[project.scripts]
|
|
50
|
+
gnsskit-move3 = "gnsskit.export.move3:main"
|
|
51
|
+
|
|
49
52
|
[project.urls]
|
|
50
53
|
Repository = "https://github.com/franioli/gnsskit"
|
|
51
54
|
Issues = "https://github.com/franioli/gnsskit/issues"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "gnsskit"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.6.0"
|
|
4
4
|
description = "RTKLIB-based GNSS post-processing toolkit: RINEX tools, RTKLIB wrappers, static baselines and network adjustment, kinematic trajectories"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -26,6 +26,9 @@ network = ["scipy", "pyproj"]
|
|
|
26
26
|
plot = ["matplotlib"]
|
|
27
27
|
all = ["scipy", "pyproj", "matplotlib"] # every extra above
|
|
28
28
|
|
|
29
|
+
[project.scripts]
|
|
30
|
+
gnsskit-move3 = "gnsskit.export.move3:main"
|
|
31
|
+
|
|
29
32
|
[project.urls]
|
|
30
33
|
Repository = "https://github.com/franioli/gnsskit"
|
|
31
34
|
Issues = "https://github.com/franioli/gnsskit/issues"
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from importlib.metadata import version
|
|
4
4
|
|
|
5
|
+
from .export import write_move3, write_starnet
|
|
5
6
|
from .kinematic import interpolate
|
|
7
|
+
from .plot import plot_baselines, plot_occupations, plot_pos, plot_visibility
|
|
6
8
|
from .refsys import (
|
|
7
9
|
GPS_EPOCH,
|
|
8
10
|
GPST_UTC_OFFSET_S,
|
|
@@ -12,16 +14,20 @@ from .refsys import (
|
|
|
12
14
|
ENUFrame,
|
|
13
15
|
enu_diff,
|
|
14
16
|
gpst_to_local,
|
|
17
|
+
to_gpst,
|
|
15
18
|
utc_to_gpst,
|
|
16
19
|
)
|
|
17
20
|
from .rinex import (
|
|
18
21
|
find_rinex_obs,
|
|
22
|
+
flag_stale_headers,
|
|
19
23
|
header_llh,
|
|
24
|
+
header_xyz,
|
|
20
25
|
obs_summary,
|
|
21
|
-
|
|
26
|
+
read_occupations,
|
|
22
27
|
read_visibility,
|
|
23
28
|
rinex_span,
|
|
24
29
|
satellite_stats,
|
|
30
|
+
sessions_from_overlap,
|
|
25
31
|
signal_stats,
|
|
26
32
|
trim_rinex,
|
|
27
33
|
)
|
|
@@ -54,23 +60,33 @@ __all__ = [
|
|
|
54
60
|
"df_to_baselines",
|
|
55
61
|
"enu_diff",
|
|
56
62
|
"find_rinex_obs",
|
|
63
|
+
"flag_stale_headers",
|
|
57
64
|
"gpst_to_local",
|
|
58
65
|
"header_llh",
|
|
66
|
+
"header_xyz",
|
|
59
67
|
"interpolate",
|
|
60
68
|
"loop_closures",
|
|
61
69
|
"navsys_mask",
|
|
62
70
|
"obs_summary",
|
|
71
|
+
"plot_baselines",
|
|
72
|
+
"plot_occupations",
|
|
73
|
+
"plot_pos",
|
|
63
74
|
"plot_visibility",
|
|
64
75
|
"process_baseline",
|
|
65
76
|
"read_header",
|
|
77
|
+
"read_occupations",
|
|
66
78
|
"read_pos",
|
|
67
79
|
"read_ref_pos",
|
|
68
80
|
"read_visibility",
|
|
69
81
|
"rinex_span",
|
|
70
82
|
"run_rnx2rtkp",
|
|
71
83
|
"satellite_stats",
|
|
84
|
+
"sessions_from_overlap",
|
|
72
85
|
"signal_stats",
|
|
73
86
|
"solve_static",
|
|
87
|
+
"to_gpst",
|
|
74
88
|
"trim_rinex",
|
|
75
89
|
"utc_to_gpst",
|
|
90
|
+
"write_move3",
|
|
91
|
+
"write_starnet",
|
|
76
92
|
]
|