‘GC overhead limit exceeded’ runtime error using 'Terrain-Correction' in python

If you call SNAP from Python you need to change the memory setting elsewhere. The pconvert.vmoptions is not used here.
You need to change snappy.ini in the snappy directory which you have probably copied into the site-packages directory.

Change the java_max_mem property to e.g. 6G. Also remove the ‘#’ from the beginning of the line.

1 Like