GPT Terrain Correction using Copernicus 30m dem fails

I looked to see if this problem was already addressed in this forum. I was not quite sure so I will go ahead and post it.

When doing terrain correction with gpt and Copernicus DEM, a java.lang.NullPointerException results (edited for readability):

gpt Terrain-Correction -t S1A_IW_GRDH_…OB_CAL_TC -Ssource=S1A_IW_GRDH…_OB_CAL.dim -PpixelSpacingInMeter=10.0 -PmapProjection=“WGS84(DD)” -PdemName=“Copernicus 30m Global DEM”
INFO: org.esa.snap.python.gpf.PyOperatorSpi: Python operator ‘py_sambuca_snap_op’ registered (Python module: ‘sambuca_snap_op’, class: ‘sambuca_snap_op’, root:

Executing operator…
20%…30%…40%…50%…java.lang.NullPointerException
java.lang.NullPointerException
99%java.lang.NullPointerException
done.

Simply, changing the DEM to “SRTM 1Sec HGT” and the process runs to completion

Regards,
Paul

1 Like

Well, I seemed to have fixed this. I deleted all the previously downloaded Copernicus DEM files and ran the process again. It seems to work now.