Using StampsExport with an external dem

Hello,

I’ve noticed that StampsExport tries to download SRTM data, at least when it’s run through gpt. For example, if I run gpt StampsExport in a linux terminal while the internet connection is turned off I get:

INFO: org.esa.snap.core.dataop.dem.ElevationFile: http retrieving http://srtm.csi.cgiar.org/SRT-ZIP/SRTM_V41/SRTM_Data_GeoTiff/srtm_27_18.zip
INFO: org.esa.snap.core.dataop.dem.ElevationFile: http retrieving http://srtm.csi.cgiar.org/wp-content/uploads/files/srtm_5x5/TIFF/srtm_27_18.zip
INFO: org.esa.snap.core.dataop.dem.ElevationFile: http retrieving http://cgiar-csi-srtm.openterrain.org.s3.amazonaws.com/source/srtm_27_18.zip
SEVERE: org.esa.snap.core.dataop.dem.ElevationFile: Connection timed out

From looking at the source code in github I guess that it uses SRTM to make the files for the ‘dem’ output folder. This is inconvenient for me because a) when I process interferograms using an external DEM I don’t want to use SRTM at all and b) in general I’d like to minimise how much data my processing downloads.

Does anyone have any recommendations for how to get StampsExport to use my external DEM instead?

This question has already been brought up here https://forum.step.esa.int/t/workflow-between-snap-and-stamps/3211/369? but I don’t think it got resolved so forgive me for opening a new thread.

Thanks!