Skip to content

file gen

Guillaume W. Bres edited this page Feb 25, 2024 · 1 revision

File Generation

Using --filegen (for the lack of a better term), we can specify that the want to generate RINEX data (preserving input format), with possibly some preprocessing happening in between.

This mode is typically used to decimate GNSS signals observations in the form of OBS RINEX, or meteo sensor measurements, in the form of Meteo RINEX.

--filegen only works well when a single filetype has been loaded.

Example : record decimation

Loading a single RINEX file (24h of observations), we can reduce the data quantity by 50% for example and preserve this format. Refer to the Preprocessor section

rinex-cli \
    -f test_resources/CRNX/V3/ESBC00DNK_R_20201770000_01D_30S_MO.crx.gz \
	-P decim:3h --filegen

An observation file is generated, with 3h "sample rate".

The same kind of application can apply to most RINEX types, like Meteo RINEX for example:

rinex-cli \
    -f test_resources/MET/V3/POTS00DEU_R_20232540000_01D_05M_MM.rnx.gz \
	-P decim:1h --filegen

Although it is rarely intended, Navigation RINEX decimation is possible:

rinex-cli \
    -f test_resources/NAV/V3/ESBC00DNK_R_20201770000_01D_MN.rnx.gz \
	-P decim:1h --filegen

Complex scenarios

--filegen still applies to more complex contexts combining several files.
The only problem here is to determine the output filename and the output fileformat.
Therefore, you are limited to loading a unique file format, for example OBS RINEX.

In this example, we take advantage of RINEX-Cli file loader, to load a 48h context and rework it to a "3h sampling rate"

rinex-cli \
    -f test_resources/CRNX/V3/ESBC00DNK_R_20201770000_01D_30S_MO.crx.gz \
    -f test_resources/CRNX/V3/MOJN00DNK_R_20201770000_01D_30S_MO.crx.gz \
	-P decim:1h --filegen

Complex contexts

--filgen in its current form, does not really apply to complex contexts, like PPP compliant contexts.
We recommend using RINEX-Cli on each individual file separately, and then proceed to another operation.

Clone this wiki locally