Post-process existing results¶
Re-run the outlier filters on results you already have, without repeating the correlation. You point a filter at the output files of an earlier run, change the thresholds, and get a new filtered GeoPackage that you can load into QGIS or export to Google Earth.
It is the last section of the Processing page, below Advanced options. It is collapsed by default. Both filters work on their own and do not depend on the Processing run that is set up above.

Each filter has the same three sections: the input, the filter parameters and the export options. At the bottom are the buttons that run the filter and use the result.
| Filter | Input | Algorithm |
|---|---|---|
| Neighbourhood Coherence Filter | HDF5 grid | Single pass, radius-based coherence filter |
| Iterative Neighbour Filter | Sparse GeoPackage | Several passes, N-nearest-neighbour similarity filter |
Works on the interpolated displacement grid in the HDF5 files. For each vector, all neighbours within a search radius of skip_factor × RadiusMult are found. A vector is rejected if it deviates from the neighbourhood mean beyond the direction or amplitude threshold. A global amplitude range and a hard magnitude cap are applied on top. The filter runs in a single pass.
This is the same algorithm as in Outlier Filtering. Here you can re-run it with other parameters on a finished run.
1 · Input HDF5 Files. Add the HDF5 result files of a previous run:
| Button | Action |
|---|---|
| Add File(s)… | Select individual .h5 or .hdf5 files |
| Add from Folder… | Scan a folder recursively and add all HDF5 files found |
| Remove Selected | Remove the highlighted entries from the list |
Current limitation
The filter currently processes only the first file in the list. Batch processing of several files is planned.
2 · Filter Parameters. Click a letter to see what a parameter does.

| Parameter | Default | What it does |
|---|---|---|
| ThrMin (m) | −100 m | Lower amplitude bound. Vectors with a smaller magnitude are excluded from all outputs. |
| ThrMax (m) | 100 m | Upper amplitude bound. Vectors with a larger magnitude are excluded from all outputs. |
| MaxMagnitude (m) | 10 m | A cap applied after the neighbourhood comparison, together with ThrMin and ThrMax. Vectors above it are removed from the outputs. |
| ColorMax (m) | 10 m | The upper limit of the colour bar in the plot. It does not change which vectors are exported. |
| DirThr (°) | 180° | Direction coherence threshold. Vectors that deviate more than this from the circular mean direction of their neighbours are rejected. 180° turns the direction filtering off. |
| AmpThr (m) | 5 m | Amplitude coherence threshold. Vectors that deviate more than this from the mean amplitude of their neighbours are rejected. |
| RadiusMult | 5 | Sets the search radius: radius = skip_factor × RadiusMult. A larger value includes more distant neighbours. |
| Downsample | 1 | Keep every N-th vector in all outputs. It does not change the filtering, only the density of the output. |
3 · Export Options. Choose which files are written and how the arrows are styled.
| Option | What it does |
|---|---|
| Export GeoPackage (.gpkg) | Writes the filtered vectors as a georeferenced layer. Needed for loading into QGIS and for the Google Earth export. On by default. |
| Export text (.txt) | Writes the filtered vectors as a plain-text table. |
| Save plot (.png) | Renders the filtered displacement field over a hillshade and saves it as a PNG. |
| Arrow style | Black arrows are uniform and good for overviews. Colored by field grades the arrows by the 2D or 3D magnitude. |
The output is written next to the input HDF5 file, as DIC_coherence_filter{run_tag}.gpkg.
Many vectors and Google Earth
Google Earth Pro can become slow with more than a few thousand arrows. Use Downsample to thin the output before exporting. A value of 2 to 5 usually keeps the KMZ responsive and still shows the pattern.
Works on the sparse point layer in the GeoPackage. For each vector, the N nearest neighbours within a maximum search distance are compared. A vector is rejected if it deviates from the neighbourhood mean beyond the magnitude or direction threshold. Points with fewer than the minimum number of neighbours are always removed. The vectors with the highest magnitude are processed first, and several passes can be made, each one using only the survivors of the previous one.
This is the same algorithm as in Outlier Filtering. Here you can re-run it on an existing GeoPackage without running the DIC again.
1 · Input. Browse to the sparse GeoPackage and choose the field used for the magnitude comparison:
| Field | What it is |
|---|---|
| GPKG file | The sparse GeoPackage written by the DIC run. It must contain the fields az and xy, and optionally xyz. |
| Magnitude field | xy is the 2D horizontal magnitude. xyz is the 3D magnitude with the restored Z component, in DEM mode only. |
2 · Filter Parameters. Click a letter to see what a parameter does.

| Parameter | Default | What it does |
|---|---|---|
| Magnitude threshold | 10 m | The largest allowed magnitude deviation from the neighbourhood mean. |
| Direction threshold | 15° | The largest allowed azimuth deviation from the neighbourhood circular mean. |
| Min neighbours | 4 | Vectors with fewer neighbours within the maximum distance are removed, whatever their magnitude or direction. |
| Max distance | 50 m | The search radius for neighbours. It should match the point spacing of the sparse layer (skip_factor × resolution). |
| Iterations | 1 | The number of passes. Each pass uses only the survivors of the previous one. More passes remove more outliers but can over-thin a dense field. |
| Real-time deletion | off | Rejected points are removed from the search index at once. Without it, all decisions of a pass use the same snapshot. The real-time mode depends on the order of the points and is slower. |
3 · Export Options. Control how the arrows are styled when you load the result into QGIS or export it to Google Earth.
| Option | What it does |
|---|---|
| Arrow style | Black arrows are uniform. Colored by field grades the arrows by the selected magnitude field. |
| Color by field | xy (2D magnitude) or xyz (3D magnitude, DEM mode only). It sets the arrow colour in QGIS and in Google Earth. |
The output is written next to the input GeoPackage, as {input_name}_neighbour.gpkg.
Dense fields and Google Earth
Google Earth Pro can become slow with dense displacement fields. Raise Min neighbours, reduce Max distance, or add a pass to get a sparser result before you export.
Running and loading the result¶
Click ▶ Run Filter to start. The progress is streamed to the log panel. When the run has finished:
- ▶ Load in QGIS loads the output GeoPackage as a vector arrow layer into the layer tree, coloured by the selected field.
- 🌍 Export to Google Earth… saves the output as a KMZ with scaled displacement arrows. You are asked for an arrow scale factor: 1 is the true length in map units, and a larger value makes short displacements visible.