I am once again asking for help from this great community.
I am trying to run some code in snappy and the TOPSAR-Split gives me the following error:
topssplit = snappy.GPF.createProduct(‘TOPSAR-Split’, parameters, raster)
RuntimeError: org.esa.snap.core.gpf.OperatorException: -1
My input is the following:
import snappy
import jpy
HashMap = jpy.get_type('java.util.HashMap')
def topsar_split(raster):
parameters = snappy.HashMap()
parameters.put('subswath', 'IW2,IW3')
parameters.put('selectedPolarisations', 'VV,VH')
topssplit = snappy.GPF.createProduct('TOPSAR-Split', parameters, raster)
print("[INFO] TOPS-Split done")
return topssplit
image1 = snappy.ProductIO.readProduct(S1B_IW_SLC__1SDV_20210209T072955_20210209T073025_025526_030AA1_1D17.zip)
topsar_1 = topsar_split(image1)
Did I input the parameters wrong? Here’s the full error I get:
-1 Traceback (most recent call last): File "C:\Users\ET\.conda\envs\sar\lib\site-packages\IPython\core\interactiveshell.py", line 3343, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-11-dbccef726ac3>", line 1, in <module> topssplit = snappy.GPF.createProduct('TOPSAR-Split', parameters, raster) RuntimeError: org.esa.snap.core.gpf.OperatorException: -1
edit: this error only seems to happen when I select more than one swath, what’s the proper way to specify more than one?