Running RRINGG¶
Overview¶
The RRINGG program is executed from the command line. It requires input InSAR products (velocity fields or time series) and GNSS data (velocities or displacements), and produces corrected or referenced outputs.
Two main operations are supported:
Correction of the InSAR velocity field
Referencing of InSAR time series in a global frame
Preprocessing (EPOS TCS only)¶
Note
Data from EPOS TCS are not directly usable in RRINGG. They must first be converted into an admissible format using the helper script ``csv2raster.py``.
The script takes a CSV file containing InSAR and GNSS parameters (e.g., mean velocity, temporal coherence, topography, LOS vector, and time series) and rasterizes them into a georeferenced grid.
Minimal usage example:
python src/tools/csv2raster.py \
--time_series_csv_path input_data.csv \
--output_path ./rasterized_output/
Main arguments of csv2raster.py:
Argument |
Description |
Choices / Type |
Default |
|---|---|---|---|
|
Path to LOS Displacement Time Series (CSV) |
|
— |
|
Pixel size in X (decimal degree) |
|
None |
|
Pixel size in Y (decimal degree) |
|
None |
|
Value for no-data pixels |
|
NaN |
|
Directory where rasters will be generated |
|
— |
Warning
During the CSV to raster conversion, an auxiliary file RRINGG_[NAME]_COORDINATES.txt is created.
This file lists the geographic coordinates of the centers of all generated pixels.
Purpose:
It is intended to verify that the raster resolution has been set correctly.
If the resolution is correct, each coordinate will correspond to the center of a unique pixel in the raster.
If the resolution is incorrect, you may observe mismatches: * Too many or too few pixels compared to the CSV input. * Pixel centers not aligned with the expected grid.
Recommended Quality Check:
Always load the generated raster together with the RRINGG_[NAME]_COORDINATES.txt file into a GIS software (e.g., QGIS) and perform a visual overlay check.
A systematic quality control at this stage is strongly advised before proceeding with correction or referencing steps.
General Command Syntax¶
The basic syntax is:
python src/rringg.py [options]
Available options control the operation type, input/output files, geometry type, referencing method, and other processing details.
Input Parameters¶
The table below lists all command-line parameters.
Argument |
Description |
Choices / Type |
Default |
|---|---|---|---|
|
Operation to perform |
|
|
|
Input geometry |
|
|
|
Path to LOS mean velocity raster (GeoTIFF) |
|
— |
|
Path to LOS displacement time series raster (GeoTIFF) |
|
— |
|
Path to custom LOS vector file (ASCII or GeoTIFF) |
|
— |
|
Radar→ground geometry LUT (GeoTIFF, required if |
|
None |
|
Ground→radar geometry LUT (GeoTIFF, required if |
|
None |
|
Reference date ( |
|
None |
|
Referencing method |
|
|
|
Working directory |
|
From config file |
|
Output directory |
|
From config file |
|
Cache directory for intermediate files |
|
From config file |
|
Bounding-box scale factor |
|
Config project |
|
Plane fitting method |
|
From config project |
|
GNSS station codes to exclude |
|
None |
|
Directory containing additional GNSS time series |
|
None |
|
CSV file with station velocity data |
|
None |
|
Method to determine convex hull of InSAR coverage |
|
|
|
Convert LOS vector raster from NEU to ENU |
flag |
None |
Example Workflows¶
1. Correction of Velocity Field (Ground Geometry)¶
python src/rringg.py \
-po correction \
-gt ground \
-vr data/velocity.tiff \
-lo data/los_vectors.tiff \
-ou results/correction
Explanation:
- -po correction → operation is velocity field correction
- -gt ground → inputs are in ground geometry
- -vr → velocity raster input
- -lo → LOS vector file
- -ou → directory where corrected raster is saved
Only these arguments are strictly necessary. Others can be specified if custom behavior is desired.
2. Referencing Time Series (Radar Geometry)¶
python src/rringg.py \
-po referencing \
-gt radar \
-ts data/series.tiff \
-lo data/los_vectors.tiff \
-lr data/lut_radar.tiff \
-lg data/lut_ground.tiff \
-rd 2021-08-15 \
-rm differential \
-ou results/referencing
Explanation:
- -po referencing → referencing of time series
- -gt radar → input in radar geometry (requires LUT files)
- -ts → displacement time series raster
- -rd → reference date for mean velocity referencing
- -rm differential → use differential referencing method
- -ou → results are written to output folder
Notes and Best Practices¶
Coordinate systems: Ensure all rasters (velocity, time series, LUTs) are in the same projection (typically geographic WGS84).
LOS vectors: Must be consistent with InSAR data (satellite orbit, incidence angle).
GNSS stations: Exclude noisy or discontinuous stations using
--remove_stations.Referencing method: -
mean_velocity→ efficient, assumes linear motion. -differential→ more accurate in presence of non-linear deformation.Performance: Plane fitting can be accelerated using
ransacfor outlier-robustness.