Skip to content

crx2rnx

Guillaume W. Bres edited this page Nov 19, 2023 · 1 revision

CRX2RNX

This tutorial demonstrated how to use our crx2rnx application and how it can be integrated to your worflow.

crx2rnx expects one Hatanaka compressed Observation file, given with -f.
Like our other tools, it will generate data into your workspace, possibly customized with -w.

The output file is then readable. It can be used to decompress such a file so it can be passed to other tools like Matlab or Python scripts. You can skip Hatanaka decompression if you're working with our processing tools.

CRNX (V3) decompression

Example: decompress CRNX/V3/KMS300DNK_R_20221591000_01H_30S_MO.crx.gz

crx2rnx \
    -f test_resources/CRNX/V3/KMS300DNK_R_20221591000_01H_30S_MO.crx.gz

When the output file name is not defined, the output product is named after the input file.
In this example, `$WORKSPACE/KMS300DNK_R_20221591000_01H_30S_MO/KMS300DNK_R_20221591000_01H_30S_MO.rnx" was generated.

CRX2RNX does not have the ability to maintain GZ compression at the moment.

Use -o to define the output file's name yourself:

crx2rnx \
    -f test_resources/CRNX/V3/KMS300DNK_R_20221591000_01H_30S_MO.crx.gz \
    -o custom.txt

$WORKSPACE/KMS300DNK_R_20221591000_01H_30S_MO/custom.txt was generated.

CRNX (V1) decompression

Example: decompress CRNX/V1/AJAC3550.21D

CRX2RNX supports both revisions of the compression algorithm

crx2rnx \
    -f test_resources/CRNX/V1/AJAC3550.21D
Clone this wiki locally