rinex-cli 0.1.0

Command line tool parse and analyze RINEX data
rinex-cli-0.1.0 is not a library.

RINEX Cli

Command line tool to handle, manage and analyze RINEX files

crates.io License License crates.io
Rust crates.io

This command line interface implements the latest Rinex crate and allows easy RINEX files manipulation.

Getting started

Run with cargo

cargo run

Filepath : -fp or --filepath, to select local RINEX files

cargo run --filepath /tmp/amel010.21g
cargo run --filepath /tmp/amel010.21g,/mnt/CBW100NLD_R_20210010000_01D_MN.rnx

Compressed OBS are natively supported.

⚠ for V > 2 RINEX OBS, this parser expects single line epochs (resulting from RNX2CRX compression).

This tool currently has 3 opmodes:

  • -e will print encountered epochs (sampling timestamps)
  • -o can be combined to -e, will print encountered OBS codes, useful to determine which data we can filter out

Otherwise (nominal op), -e and/or -o are not requested.

Example :

# determine available data
cargo run -- --fp /tmp/data.obs -e > info.txt
cargo run -- --fp /tmp/data.obs -o -e > info.txt
# nominal use
cargo run -- --fp /tmp/data.obs > data.txt

Epoch filter

  • --epoch-ok : will retain only valid epoch, ie., epochs that have an Epoch::Flag::Ok attached to them

  • --epoch-nok : will retain only non valid epoch, ie., epochs that have an !Epoch::Flag::Ok attached to them

Epoch filter only makes sense on OBS data (meteo or obs).

Satellite vehicule filter

  • --sv with a comma separated list of satellite vehicule to retain

Example:

cargo run -- --filepath /tmp/data.obs --epoch-ok --sv G01,G2,E06,E24,R24 > data.txt

Will only retain data from GPS 1+2, GAL 6+24 and GLO 24 vehicules.

Constellation filter

Constellation filter is not feasible at the moment

Data filter

We use the -c or --code argument to filter data out and only retain data of interest.

  • Observation / meteo data: we use the OBS code directly
  • Navigation data: we use the official identification keyword, refero to the known Refer to the known NAV fields database

Example:

# Retain Carrier phase + Carrier power 
cargo run -fp CBW100NLD_R_20210010000_01D_MN.rnx -c L1C,S1P 

Cumulated filter

All arguments can be cummulated, for example:

# Retain Carrier phase + Carrier power 
cargo run -fp CBW100NLD_R_20210010000_01D_MN.rnx \
    -c C1C,C2C,C1X --sv G01,E06,G24,E24

will only retain pseudo range measurements for given satellite of interest.