I do not have experience with Python (just Shell scripting and Matlab…), but started to work with Snappy today in order to enhance the capabilities of my SAR applications.
So, I am facing a BASIC problem to save an ALOS-1 scene after Deskewing it.
Here is the simple script:
import sys from snappy import ProductIO from snappy import GPF from snappy import jpy file = sys.argv product = ProductIO.readProduct(file) HashMap = jpy.get_type('java.util.HashMap') params_desk = HashMap() params_desk.put('PdemName', "SRTM 1Sec HGT") final = GPF.createProduct('ALOS-Deskewing', params_desk, product) ProductIO.writeProduct(final, "/home/oceano/mestrado/ALOS1/L1.1/20110419/teste_p/snappy_output.dim", "BEAM-DIMAP")
So, when the ‘writeProduct’ is running appears the error message : “
RuntimeError: org.esa.snap.core.gpf.OperatorException: Cannot construct DataBuffer”
Please, may someone help me?