Hello @marpet, I applied the following code and tried to convert the intensity of the calibrated data from linear to decibel; however, it did not work. Can you please tell me what went wrong and whether I need to change the intensity to decibel as long as I perform other pre-processing operations on that data?
Blockquote
#radiometric calibration
parameters = HashMap()
parameters.put(‘sourceBands’, ‘Intensity_’ + polarisation)
parameters.put(‘selectedPolarisations’, polarisation)
parameters.put(‘outputSigmaBand’, True)
parameters.put(‘outputGammaBand’, False)
parameters.put(‘outputBetaBand’, False)
parameters.put(‘outputImageScaleInDb’, False)
calibration = snappy.GPF.createProduct(‘Calibration’, parameters, source_file)
print(“Radiometric Calibration Completed”)
snappy.ProductIO.writeProduct(calibration,‘processed/’+source_filename+“_cal”,“BEAM-DIMAP”)
print(“Radiometric Calibrated File Saved”)
print(list(source_file.getBandNames()))
calibration.getBand(‘Sigma0_VV’).setUnit(‘db’)
print(list(source_file.getBandNames()))
Printed Output
Radiometric Calibration Completed
Radiometric Calibrated File Saved
[‘Sigma0_VV’]
[‘Sigma0_VV’]
** I have also tried by setting parameters.put(‘outputImageScaleInDb’, False) to True but it didn’t work.
@Samira.h @josh09dmello @mengdahl @arnab @css @falahfakhri @antonio19812 @johngan