S1A product Terrain correction

Hello,

I have a problem similar to these to S1A product Terrain correction frustration and RuntimeError: java.lang.ArithmeticException: / by zero

Running:

def terrain_correction(product,prj) :
    parameters = HashMap()
    parameters.put('sourceBandNames', 'Amplitude_VV')
    parameters.put('demResamplingMethod', 'CUBIC_CONVOLUTION') 
    parameters.put('imgResamplingMethod', 'CUBIC_CONVOLUTION') 
    parameters.put('demName', 'SRTM 3Sec') 
    parameters.put('pixelSpacingInMeter', 10.0)
    parameters.put('saveSelectedSourceBand', True)
    parameters.put('mapProjection', prj)
    parameters.put('nodataValueAtSea',False)
    parameters.put('maskOutAreaWithoutElevation',False)
    return GPF.createProduct("Terrain-Correction",parameters,product)

It returns

return GPF.createProduct("Terrain-Correction",parameters,product)
RuntimeError: java.lang.ArithmeticException: / by zero

The code below worked using snappy v7. However, we suddenly had the error below as infinite loop and we updated to snap v 8 to solve the below encountering to the error above.

INFO: org.esa.snap.core.dataop.dem.ElevationFile: http retrieving http://cgiar-csi-srtm.openterrain.org.s3.amazonaws.com/source/srtm_44_18.zip
SEVERE: org.esa.snap.core.dataop.dem.ElevationFile: error in opening zip file

Thanks a lot for your help

Best,

enemni

there have been issues with downloading DEM files and that error message is indicating that.
@ABraun - any ideas por this particular use-case? Python processing.

have you seen this? SRTM ZIP-files are corrupted or not found