From 38441a47cffdcd8d0092ec01b8dd0031015d02c9 Mon Sep 17 00:00:00 2001 From: reinieroost <32200550+reinieroost@users.noreply.github.com> Date: Fri, 22 Sep 2017 16:47:52 +0200 Subject: [PATCH] Add a flag to allow for Geoid-height on NaN points in DEM generation --- .../src/main/java/org/esa/snap/dem/gpf/AddElevationOp.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snap-dem/src/main/java/org/esa/snap/dem/gpf/AddElevationOp.java b/snap-dem/src/main/java/org/esa/snap/dem/gpf/AddElevationOp.java index ea8589d9e3e..5bbccac9c2e 100644 --- a/snap-dem/src/main/java/org/esa/snap/dem/gpf/AddElevationOp.java +++ b/snap-dem/src/main/java/org/esa/snap/dem/gpf/AddElevationOp.java @@ -78,6 +78,9 @@ public final class AddElevationOp extends Operator { @Parameter(description = "The elevation band name.", defaultValue = "elevation", label = "Elevation Band Name") private String elevationBandName = "elevation"; + @Parameter(description = "Fill nodata values by geod values", defaultValue = "false", label = "Fill Nodata with Geod") + private Boolean fillWithGeoid = false; + private boolean isElevationModelAvailable = false; private ElevationModel dem = null; private double demNoDataValue = 0; // no data value for DEM @@ -176,7 +179,7 @@ public void computeTile(Band targetBand, Tile targetTile, ProgressMonitor pm) th final boolean valid = DEMFactory.getLocalDEM( dem, demNoDataValue, demResamplingMethod, tileGeoRef, x0, y0, w, h, - sourceProduct, true, localDEM); + sourceProduct, !fillWithGeoid, localDEM); if (!valid) return;