ivert validate#
Validate one or more DEMs against ICESat-2 photon data downloaded to the local database.
For each input DEM, IVERT samples the nearest ICESat-2 photons within each grid cell, filters outliers, computes error statistics (bias, RMSE, NMAD, etc.), and writes plots and optionally GIS exports. Bathymetric and topographic DEMs are both supported.
Prerequisites#
You must have ICESat-2 data covering the DEM area already downloaded into the local database. If you haven’t done this yet, see ivert database.
Basic usage#
ivert validate mydem.tif
For a directory or glob pattern:
ivert validate /data/dems/survey_*.tif
ivert validate /data/dems/
Options#
Input / output#
Flag |
Default |
Description |
|---|---|---|
|
(required) |
One or more GeoTIFF paths, a directory, or a glob pattern |
|
DEM’s own directory |
Output directory for results files |
|
|
Raster band to validate (1-indexed) |
|
(from file) |
No-data value to exclude; use |
Vertical datum#
Flag |
Default |
Description |
|---|---|---|
|
(DEM’s embedded CRS) |
Vertical datum of the DEM. Accepts EPSG code ( |
|
— |
Print all recognized vertical datum names and EPSG codes, then exit |
ICESat-2 photons are stored either in WGS84 ‘ellipsoid’ (EPSG:4979) or EGM2008 ‘geoid’ (EPSG:3855) elevations, depending on the setting used (see ‘ivert options’ for more information). IVERT automatically transforms them to the DEM’s vertical datum before comparing. If the DEM’s CRS already encodes the vertical datum, -V is not needed.
Photon filtering#
Flag |
Default |
Description |
|---|---|---|
|
|
Slash-separated photon class codes to validate against (e.g. |
|
|
Minimum ATL03 signal confidence (1=low/keep all, 2=medium, 3=high, 4=very-high) |
|
|
Minimum ATL24 bathymetry confidence for bathy-floor photons (0.0–1.0) |
|
off |
Include building-classed photons (class 7) in validation, on top of |
|
|
Outlier threshold in standard deviations (use |
|
|
Minimum photons a grid cell must contain to be validated. Cells with fewer are omitted from the results entirely |
How per-cell statistics are computed#
Once a cell clears -mp/--min-photons, how its elevation is summarized depends on how many photons it holds:
Photons in cell |
Treatment |
|---|---|
1 |
The photon’s own height becomes the cell mean |
2–4 |
The mean of all photons in the cell; too few to identify outliers |
5 or more |
Photons outside the interdecile (10th–90th percentile) range are dropped as outliers, and the mean is taken over the rest |
The numphotons column always reports the raw photon count for the cell, while numphotons_intd reports how many were actually used in the statistics. The two are equal for cells that were not trimmed. Setting -mp 5 or higher guarantees every reported cell was interdecile-trimmed.
Output options#
Flag |
Default |
Description |
|---|---|---|
|
off |
Also write a point database of individual ICESat-2 photons used |
|
off |
Measure relative photon coverage per grid cell |
|
|
Comma-separated list of GIS error-export formats: |
Labeling#
Flag |
Default |
Description |
|---|---|---|
|
(DEM filename) |
Region name shown on plots |
Output files#
Per-DEM output files#
For a DEM named survey.tif, IVERT writes these files to the output directory:
File |
Description |
|---|---|
|
Full validation results (statistics, per-cell errors, photon matches) |
|
Multi-panel validation plot |
|
Human-readable summary statistics (see below) |
|
GeoTIFF raster of mean per-cell error (if |
|
GeoPackage point file of per-cell errors (if |
|
Shapefile of per-cell errors (if |
|
Whitespace-delimited |
|
Individual ICESat-2 photons used (if |
The _summary_stats.txt file contains:
Number of DEM cells validated
Total and mean number of ICESat-2 photons used
Mean bias error (DEM − ICESat-2) and RMSE
Full percentile breakdown of per-cell errors (0, 1, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 99, 100th percentiles)
Number of cells with bathymetry photons
Mean roughness (standard deviation of photon elevations within each cell)
Multi-DEM collection output files#
When validating multiple DEMs (a directory or glob pattern), IVERT also writes a set of collection-level summary files. These are named after the value passed to -n/--name; if no name is given, the prefix defaults to summary.
File |
Description |
|---|---|
|
Combined HDF5 file of all per-cell results across every DEM in the collection |
|
Per-DEM summary table: RMSE, mean bias, standard deviation, cell count, and mean photons per cell for each DEM |
|
Combined validation plot across all DEMs in the collection |
|
Same format as the per-DEM summary stats file, aggregated over all cells across all DEMs |
Examples#
Basic validation:
ivert validate mydem.tif
Specify vertical datum:
ivert validate mydem.tif -V navd88
Validate all DEMs in a directory, write results to a separate folder:
ivert validate /data/dems/ -o /data/results/
Export errors to all GIS formats:
ivert validate mydem.tif -ef tif,gpkg,shp,xyz
Disable error exports entirely:
ivert validate mydem.tif -ef none
List available vertical datum names:
ivert validate --list-vdatums