Trying to run the following code in Python 3.4 in order to calibrate a GRD sentinel-1 product:
polarisation = ‘VV’
data_path = r’C:\Users\DMZ\shipdetection\mask’
s1_identifier = ‘S1B_IW_GRDH_1SDV_20161207T170908_20161207T170933_003293_0059D9_A666’
s1meta = “manifest.safe”
s1prd = os.path.join(data_path, s1_identifier, s1_identifier + ‘.SAFE’, s1meta)
reader = ProductIO.getProductReader(“SENTINEL-1”)
product = reader.readProductNodes(s1prd, None)
parameters = HashMap()
parameters.put(‘auxFile’, ‘Product Auxiliary File’)
parameters.put(‘outputImageInComplex’, ‘false’)
parameters.put(‘outputImageScaleInDb’, ‘false’)
parameters.put(‘createGammaBand’, ‘false’)
parameters.put(‘createBetaBand’, ‘false’)
parameters.put(‘selectedPolarisations’, polarisation)
parameters.put(‘outputSigmaBand’, ‘true’)
parameters.put(‘outputGammaBand’, ‘false’)
parameters.put(‘outputBetaBand’, ‘false’)
calibration = GPF.createProduct(‘Calibration’, parameters)
filepath = os.path.join(data_path, ‘cal_’ + s1_identifier + ‘_’ + polarisation +’.tif’)
ProductIO.writeProduct(calibration, filepath, ‘GeoTIFF’)
Unexpectedly I get the following output:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.esa.snap.runtime.Engine (file:/C:/Program%20Files/snap/s3tbx/modules/ext/org.esa.s3tbx.s3tbx-c2rcc/org-esa-snap/snap-runtime.jar) to field java.lang.ClassLoader.sys_paths
WARNING: Please consider reporting this to the maintainers of org.esa.snap.runtime.Engine
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
SEVERE: org.esa.s1tbx.io.SARReader: org.esa.s1tbx.io.sentinel1.Sentinel1ProductReader
Is there problems with the JDK or Java version?