Skip to content

preproc decimation

Guillaume W. Bres edited this page Nov 19, 2023 · 5 revisions

Decimation (subsampling)

The preprocessor (-P) allows decimation (subsampling) of diffrent forms.

Decimation filter

One preprocessing algorithm is record decimation to reduce data quantity or increase sampling interval. It is described with decim:.

Decimate by a ratio

Decimate an entire record to reduce the data quantity.

For example, decimate by 4 and zoom on a portion of the day: we now have 2 minutes in between two data points.

./target/release/rinex-cli \
    -f test_resources/CRNX/V3/ESBC00DNK_R_20201770000_01D_30S_MO.crx.gz \
    -P decim:4 \
    -P ">2020-06-25T08:00:00 UTC" \
    -P "<=2020-06-25T10:00:00 UTC"

Decimate to match a duration

Decimate this record to increase the epoch interval (reduce the sample rate) to it matches 10 minutes. In this example, this will apply to only a specific time frame:

rinex-cli \
    --fp test_resources/CRNX/V3/ESBC00DNK_R_20201770000_01D_30S_MO.gz \
    -P "decim:10 min" \ # whitespace, to describe a valid duration
    -P ">2020-06-25T08:00:00 UTC" \
    -P "<=2020-06-25T10:00:00 UTC"
Clone this wiki locally