I’ve tried to use os.environ[“JAVA_OPTS”] = “-Xmx8g” to increase my heap size but I still get OOM exceptions thrown. Is there a way to do this correctly? It’s all a bit funny dealing with Java inside a non java environment.
For reference I’m trying to radiometrically calibrate and terrain correct an SAR GRD dataset in Python.
I can do this on small subsets of a file but unlike SNAP, I cant do a whole one.