Skip to content

file split

Guillaume W. Bres edited this page May 26, 2024 · 6 revisions

File splitting

rinex-cli supports --split (-s) to split data at a desired Epoch easily.
It expects a valid Epoch descriptor.

Demonstration

Let's start with a quick time frame analysis to determine a valid Epoch for the split operation:

rinex-cli \
	-f test_resources/OBS/V3/ACOR00ESP_R_20213550000_01D_30S_MO.rnx \
	-i -e

["ACOR00ESP_R_20213550000_01D_30S_MO.rnx"]
EpochReport {
    first: "2021-12-20T23:59:23 UTC",
    last: "2021-12-21T00:11:23 UTC",
    system: "GPST",
    sampling: {
        "dt=30s": 24,
    },
}

So this file contains 24 Epochs separated by 30s each, starting on 2021-12-20T23:59:23 UTC (midnight GPST), ending on 2021-12-21T00:11:23 UTC.

Let's split it in equal halves:

rinex-cli \
   -f test_resources/OBS/V3/ACOR00ESP_R_20213550000_01D_30S_MO.rnx \
   -s "2021-12-21T00:05:23 UTC"
[2023-12-27T14:46:45Z INFO  rinex_cli::fops] "WORKSPACE/ACOR00ESP_R_20213550000_01D_30S_MO/ACOR00ESP_R_20213550000_01D_30S_MO-20211220_235923GPST.rnx" has been generated
[2023-12-27T14:46:45Z INFO  rinex_cli::fops] "WORKSPACE/ACOR00ESP_R_20213550000_01D_30S_MO/ACOR00ESP_R_20213550000_01D_30S_MO-20211221_0523GPST.rnx" has been generated

rinex-cli \
	-f WORKSPACE/ACOR00ESP_R_20213550000_01D_30S_MO/ACOR00ESP_R_20213550000_01D_30S_MO-20211221_0523GPST.rnx \
	-i -e

Filenaming conventions

This toolbox can operate on files that do not follow naming conventions, and can also help generate files that do follow conventions. Read more on this topic, right here.

Next step

Read about other types of file operations we support

Clone this wiki locally