I discovered that within the ‘Help’ for calibration operator, there’s a full name provided which we need to execute this plugin from Python.
However, I have an issue with starting my sigma0 calculation
My current code:
file1 = '/home/someone/S1A_IW_GRDH_1SDV_20160509T043538_20160509T043603_011177_010E0F_2700.zip'
import os.path
import snappy
from snappy import ProductIO
from snappy import Product
from snappy import ProductData
from snappy import ProductUtils
jpy = snappy.jpy
if os.path.exists(file1):
# Read sourceProduct and get information needed to create target product:
sourceProduct = snappy.ProductIO.readProduct(file1)
width = sourceProduct.getSceneRasterWidth()
height = sourceProduct.getSceneRasterHeight()
#Create target product:
targetProduct = Product('FLH_Product', 'FLH_Type', width, height)
targetBand = targetProduct.addBand('FLH', ProductData.TYPE_FLOAT32)
ProductUtils.copyGeoCoding(sourceProduct, targetProduct)
targetProduct.setProductWriter(ProductIO.getProductWriter('GeoTIFF'))
# Use calibration operator - I've taken "org.esa.s1tbx.calibration.gpf.CalibrationOp" from the help window
CalibrationOp = jpy.get_type("org.esa.s1tbx.calibration.gpf.CalibrationOp")
CalOp = CalibrationOp()
CalOp.setSourceProduct(sourceProduct)
CalOp.setTargetProduct(targetProduct)
#### HERE I DO NOT KNOW HOW TO EXECUTE this operator
#### When I try to execute: 'doExecute' or 'execute' methods, I receive an error message
targetProduct.closeIO()