Snappy process the Sentinel-1A Runtimeerror error:17


#1

When I call the snappy.ProductIO.writeProduct(result, outputfile, ‘GeoTIFF-BigTIFF’), it has the runtimeerror:
org.esa.snap.core.gpf.OperatorException:17.

Does anyone what is going on with that? thank you.


#2

Have you tried a different output format?
Which operators do you invoke before you write the result and how do you configure them?


#3

Thank you for the quick reply. I think I have figured it out. The process I did before that is the Terrain-Correction, and it is due to the external DEM file is very big in Tiff format (almost 6 G). I use the ENVI format instead, then it works. Thank you.

Another question, when I use the python to call the snappy to batch process that data, how could I to release the memory allocated by each product after the processing ? as it occupies almost all my RAM. Thanks again.


#4

After processing and writing the product to disk you should call product.dispose(). This should release the memory.
You can also call explicitly the Java Garbage Collector.

Runtime = jpy.get_type(‘java.lang.Runtime’)
Runtime.getRuntime().gc()

But recently there was a general issue found with the S1 reader.


Maybe you have no chance to reduce the allocated memory at the moment.