RINEX-cli
Command line tool to parse, analyze and manage RINEX files.
The main purpose of this tool is to expose the library capabilities, in a high level and easy to use interface.
RINEX files
Several RINEX files exist, this tool supports already quite a few.
Refer to the
main table
to understand what is doable.
File naming conventions
File names are disregarded by this tool, you can parse & analyze files that do not follow naming conventions.
Compressed data
CRINEX (V1 and V3) are natively supported.
This tool supports gzip compressed files but the file name must be terminated by .gz.
Analysis and report files
Reports and plots are rendered in HTML in the rinex/rinex-cli/workspace directory.
Analysis is named after the primary RINEX file.
teqc operations
teqc is a well known application to process RINEX files.
Unlike teqc, this application is not capable of processing Binary RINEX ("BINEX") and
proprietary formats in general.
Some teqc operations are supported:
- merge: Merge two RINEX files together
- split: Split a RINEX file into two
- resampling: Resampling operations can be performed if you know how to operate the preprocessing toolkit
- quality check: RINEX data quality analysis (mainly statistics and only on OBS RINEX at the moment)
- other advanced operations are documented in the processing suite
Data analysis
This tool can perform several data analysis. Feasible operations
are highly dependent on the context provided by the user.
Refer to this page to understand
what minimal context should be provided, for the analysis you want to perform.
Getting started
Download the latest release for your architecture from the release portal.
Or compile the application manually:
cargo build --all-features --release
The program is located in "target/release/rinex-cli",
which we might simply refer in some examples as rinex-cli.
All examples depicted in this documentation suite uses our
test data.
That means you have everything to reproduce the provided examples on your side.
Command line interface
Refer to the help menu which provides extensive explanations:
File paths always have to be absolute.
Arguments order does not matter to this application:
Use the RUST_LOG environment variable to setup the logger.
Set the sensitivy as desired, "trace" being the most sensitive,
"info" the standard value:
RUST_LOG=trace
Here's an example of traces you might get on a complex run:
)
antenna position: WGS (x, y, z) was located in the provided context: some advanced operations are feasible.
A few preprocessing operations were requested with -P, you get a trace
for every operation that did apply (correct command line description).
> record analysis means the analysis is starting at this point.
The location of the graphs that were rendered (if any) is given.
rinex-cli/workspace is where all analysis reports
get generated. It is named after the main RINEX file (-fp) which
allows preserving sessions for different files.
Analysis are stacked to one another, and order does not matter.
For example, when providing OBS RINEX data, one plot per physic is to be generated. In this example, we also stack two more analysis, both of them are graphical, so two more graphs are rendered.
HTML content
The analysis report is generated in HTML.
In the future, we will allow other formats to be generated
(like JSON).
When the analysis is concluded, the report
is opened in the default web browser. This is turned off
if the quiet option (-q) is active.
The HTML content is self-sufficient, all Javascript
and other dependencies are integrated .
This results in a large file whose rendering is quick.
To change that behavior, the --tiny-html option is there.
The resulting report gets reduced (about 8 times smaller), but
graphical views (if any) are longer to render in the browser.
This is actually only true if the javascript has not been cached
by the web browser.
Data identification
Basic Identification consists in extracting high level information to understand which
data is contained in a given RINEX.
Examples of such information would be Epoch or Sv enumerations.
For example:
The --pretty option is there to make the datasets more readable (json format):
Data analysis
Several analysis can be stacked to the generated report,
like --sv-epoch or sample rate analysis with --epoch-hist.
Refer to their dedicated page documentation.
File generation
Like input files, output files do not have to follow RINEX naming conventions.
Eventually, this tool might have a file creation helper, to help the user
follow naming conventions, but it is currenly under development.
File generation applies to all the following operations
- preprocessing: create a new RINEX from the stripped RINEX content that results from preprocessing algorithms
- merge: merge two files into a single RINEX
- split: split a file into two.
For example, create a file that is only made of G08 data originally contained in this file:
Header section is simply copied and maintained.
File generation and compression
It is possible compress data to .gz directly, if the specified --output
is terminated by .gz.
It is also possible to convert Observation Data to CRINEX directly
- to CRINX1 if the specified
--outputis terminated by a standard YYd termination - to CRINX3 if the specified
--outputis termined by.crx
In cases where CRINEX conversion is feasible,
it is possible to stack the .gz compression on top of it
- YYd.gz to specify a CRNX1 + gz
- crx.gz to specify a CRNX3 + gz
Likewise, the mirror operations are feasible:
- extract
.gzcompressed data and dump it as readable - extract a CRINEX and dump it as a readable RINEX
File Header customization
A header section customization interface is currently under development.
It is possible to pass custom header fields, one per --output flag,
to customize such section of the RINEX to be generated.
The custom-header flag accepts either a direct JSON description
of the Rinex::Header structure, or a local file containing
such a description.