Parameters.put('imgResamplingMethod', 'BILINEAR_INTERPOLATION') Output = GPF.createProduct('Speckle-Filter', parameters, source)ĭef do_terrain_correction(source, proj, downsample): Output = GPF.createProduct('Calibration', parameters, source) Parameters.put('outputImageScaleInDb', False) Parameters.put('selectedPolarisations', pols) Parameters.put('sourceBands', 'Intensity_VV') Parameters.put('sourceBands', 'Intensity_HH') Parameters.put('sourceBands', 'Intensity_VH,Intensity_VV')Įlif polarization = 'SH' or polarization = 'HH':
Parameters.put('sourceBands', 'Intensity_HH,Intensity_HV') Output = GPF.createProduct('ThermalNoiseRemoval', parameters, source)ĭef do_calibration(source, polarization, pols): Parameters.put('removeThermalNoise', True) Output = GPF.createProduct('Apply-Orbit-File', parameters, source) Python 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) on win32,įor folder in os.listdir(path): gc.enable() gc.collect() sentinel_1 = ProductIO.readProduct(path + '\\' + folder + '\\manifest.safe') print(sentinel_1)