I’m trying to make a simple python script that takes in a Sentinel-1 product, does some SNAP toolbox operations on it and then produce an image from the product. The snap-python interface was pretty easy to understand, but I keep getting issues with what i’m guessing is the memory usage.
java.lang.OutOfMemoryError: Java heap space
RuntimeError: java.lang.OutOfMemoryError: GC overhead limit exceeded
I also get another error when generating the image.
You say that you program runs fine when you use PyCharm but not from the command line.
This makes me think that you have two (or more) python installations.
Please check which python is invoked from PyCharm and from the command line.
Maybe you have only configured the one but not the other installation.
This is how it look for me:
In PyCharm I use Python34
and on the command line my default Python is a Anaconda 2.7 Python
Thanks for the reply. I understand your thinking, and I probably should have specified this, since it’s a common mistake. However I have made sure that both PyCharm and the command line runs in the same interpreter (python27 in my case).
This is very frustrating since I need it to run without PyCharm when I’m going to implement the script into a project later.