Skip to content

Commit

Permalink
Cli improvements (#198)
Browse files Browse the repository at this point in the history
* improving Cli with subcommands
* bump cggtts
* add substract opmode
* run clippy

---------

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
  • Loading branch information
gwbres and lnicola authored Dec 28, 2023
1 parent 9fcc663 commit 6fc9190
Show file tree
Hide file tree
Showing 59 changed files with 3,134 additions and 3,414 deletions.
53 changes: 23 additions & 30 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
cargo install cargo-audit
cargo audit
tests:
name: Tests
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -46,20 +46,29 @@ jobs:
with:
toolchain: stable
override: true

- name: UBX2RNX dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev
- uses: actions-rs/cargo@v1
name: Test
with:
command: test
args: --verbose

- uses: actions-rs/cargo@v1
name: Test (all features)
with:
command: test
args: --verbose --all-features

- uses: actions-rs/cargo@v1
name: Build (all features)
with:
command: build
args: --all-features --release

windows-build:
runs-on: windows-latest
Expand All @@ -70,26 +79,18 @@ jobs:
with:
toolchain: stable
override: true

- uses: actions-rs/cargo@v1
name: RINEXCLI
name: Build (default)
with:
command: build
args: -p rinex-cli --all-features --release --verbose
- uses: actions-rs/cargo@v1
name: RNX2CGGTS
with:
command: build
args: -p rnx2cggtts --all-features --release --verbose
args: --release --verbose

- uses: actions-rs/cargo@v1
name: RNX2CRNX
name: Build (all features)
with:
command: build
args: -p rnx2crx --all-features --release --verbose
- uses: actions-rs/cargo@v1
name: CRX2RNX
with:
command: build
args: -p crx2rnx --all-features --release --verbose
args: --all-features --release --verbose

macos-build:
runs-on: macos-latest
Expand All @@ -100,23 +101,15 @@ jobs:
with:
toolchain: stable
override: true

- uses: actions-rs/cargo@v1
name: RINEXCLI
with:
command: build
args: -p rinex-cli --all-features --release --verbose
- uses: actions-rs/cargo@v1
name: RNX2CGGTS
name: Build (default)
with:
command: build
args: -p rnx2cggtts --all-features --release --verbose
args: --release --verbose

- uses: actions-rs/cargo@v1
name: RNX2CRNX
name: Build (all features)
with:
command: build
args: -p rnx2crx --all-features --release --verbose
- uses: actions-rs/cargo@v1
name: CRX2RNX
with:
command: build
args: -p crx2rnx --all-features --release --verbose
args: --all-features --release --verbose
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ members = [
"rinex",
"rinex-qc",
"rinex-cli",
"rnx2cggtts",
"rnx2crx",
"sinex",
"sp3",
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ You can also contact us [on our Discord channel](https://discord.gg/Fp2aape)
- RINEX V4 full support
- Meteo RINEX full support
- IONEX 2D support. Partial IONEX 3D support.
- Clock RINEX partial support: to be concluded soon
- Partial ANTEX support
- Parial Clock RINEX support
- Several pre processing operations:
- File merging
- Time beaning
Expand Down Expand Up @@ -60,15 +61,14 @@ your improvements

* [`rinex`](rinex/) is the core library
* [`rinex-cli`](rinex-cli/) : an application dedicated to RINEX post processing.
It supports some of `teqc` operations.
It supports some of `teqc` operations.
It integrates a position solver and can format CGGTTS tracks for clock comparison.
The application is auto-generated for a few architectures, download it from the
[release portal](https://github.com/gwbres/rinex/releases)

* [`sp3`](sp3/) High Precision Orbits (by IGS)
* [`rnx2crx`](rnx2crx/) is a RINEX compressor (RINEX to Compact RINEX)
* [`crx2rnx`](crx2rnx/) is a CRINEX decompresor (Compact RINEX to RINEX)
* [`rnx2cggtts`](rnx2cggtts/) post processes RINEX data and resolves PVT that we
wrap in CGGTTS format which is dedicated to (remote) clock comparison
* [`rinex-qc`](rinex-qc/) is a library dedicated to RINEX files analysis
* [`qc-traits`](qc-traits/) declares Traits that are shared between `rinex` and `rinex-qc`
* [`sinex`](sinex/) SNX dedicated core library
Expand Down
2 changes: 1 addition & 1 deletion crx2rnx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ readme = "README.md"

[dependencies]
clap = { version = "4.4.10", features = ["derive", "color"] }
rinex = { path = "../rinex", version = "=0.15.2", features = ["serde"] }
rinex = { path = "../rinex", version = "=0.15.3", features = ["serde"] }
13 changes: 9 additions & 4 deletions rinex-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rinex-cli"
version = "0.9.7"
version = "0.10.0"
license = "MIT OR Apache-2.0"
authors = ["Guillaume W. Bres <guillaume.bressaix@gmail.com>"]
description = "Command line tool parse and analyze RINEX data"
Expand Down Expand Up @@ -28,11 +28,11 @@ map_3d = "0.1.5"
# ndarray = "0.15"
colorous = "1.0"
horrorshow = "0.8"
clap = { version = "4.4.10", features = ["derive", "color"] }
clap = { version = "4.4.11", features = ["derive", "color"] }
hifitime = { version = "3.8.4", features = ["serde", "std"] }
gnss-rs = { version = "2.1.2" , features = ["serde"] }
rinex = { path = "../rinex", version = "=0.15.2", features = ["full"] }
rinex-qc = { path = "../rinex-qc", version = "=0.1.7", features = ["serde"] }
rinex = { path = "../rinex", version = "=0.15.3", features = ["full"] }
rinex-qc = { path = "../rinex-qc", version = "=0.1.8", features = ["serde"] }
sp3 = { path = "../sp3", version = "=1.0.6", features = ["serde", "flate2"] }
serde = { version = "1.0", default-features = false, features = ["derive"] }

Expand All @@ -44,3 +44,8 @@ plotly = "0.8.4"
gnss-rtk = { version = "0.4.1", features = ["serde"] }
# gnss-rtk = { git = "https://github.com/rtk-rs/gnss-rtk", branch = "develop", features = ["serde"] }
# gnss-rtk = { path = "../../rtk-rs/gnss-rtk", features = ["serde"] }

# cggtts
cggtts = { version = "4.1.2", features = ["serde", "scheduler"] }
# cggtts = { git = "https://github.com/gwbres/cggtts", branch = "develop", features = ["serde", "scheduler"] }
# cggtts = { path = "../../cggtts/cggtts", features = ["serde", "scheduler"] }
2 changes: 1 addition & 1 deletion rinex-cli/src/analysis/sampling.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::plot::PlotContext;
use crate::graph::PlotContext;
use itertools::Itertools;
use plotly::Histogram; //.sorted()
use rinex::prelude::RnxContext;
Expand Down
Loading

0 comments on commit 6fc9190

Please sign in to comment.