Skip to content

preproc decimation

gwbres edited this page Dec 9, 2024 · 5 revisions

Decimation (subsampling)

The preprocessor (-P) supports different resampling algorithms.

Record decimation (subsampling) is specified with the decim: prefix.

Decimate to new sampling interval

In this example, the original sampling period is reduced to 10 minutes.
You can either proceed with record analysis (no option), here we request output product synthesis, with filegen:

rinex-cli \
    --fp test_resources/MET/V3/POTS00DEU_R_20232540000_01D_05M_MM.rnx.gz \
    -P "decim:10 min" \
    --filegen

Like any preprocessing, you can stack it to other options, to create complex conditions:

rinex-cli \
    --fp test_resources/MET/V3/POTS00DEU_R_20232540000_01D_05M_MM.rnx.gz \
    -P "decim:10 min" \
    -P ">2020-06-25T08:00:00 UTC" \
    -P "<=2020-06-25T10:00:00 UTC"

Like any preprocessing operations, decimation may apply to any supported opmodes, for example ppp.

Modulo decimation

When passing a simple integer, we specify a decimation factor.

In this example, the 30s sampling period is reduced to 1 min:

./target/release/rinex-cli \
    --fp test_resources/CRNX/V3/ESBC00DNK_R_20201770000_01D_30S_MO.crx.gz \
    -P decim:2 \
    --filegen
Clone this wiki locally