Has someone managed to run SliceAssembly in Snappy?
I can’t get it to work no matter what I do, and the NullPointerException error is too generic for me to debug.
Currently I am trying to run slice assembly and then apply-orbit. I don’t have enough local memory to test the scenes on my local PC and I have not been able to apply the command line GPT SliceAssembly graph either to error check.
product_list - []
product_list.append(“S1A_IW_SLC__1SDV_20180911T172539_20180911T1726…zip”)
product_list.append(“S1A_IW_SLC__1SDV_20180911T172604_20180911T1726…zip”)
products = snappy.jpy.array(‘org.esa.snap.core.datamodel.Product’, len(product_list))
for count in range(len(product_list)):
products[count] = snappy.ProductIO.readProduct(str(product_list[count]))
parameters = HashMap()
parameters.put(“selectedPolarisations”, “VV”)
result_SA = snappy.GPF.createProduct(“SliceAssembly”, parameters, products)
If anyone has working code I would love a snippet showing which hashmap parameters you provide and how you input two (or more) scenes. In my code I only use the parameter selectedPolarisation and use the jpy.array snap.core.datamodel method to input two products that after they are read by productIO.read.