Linear to/ from db in python SNAPPY

Hi,
i had the same problem and found now the solution. It is described in detail at this post:

The solution is not to convert or save in the calibration step. You have to use the raster tool LinearToFromdB:

def convert_dB(source):
print(‘\converting to db…’)
parameters = HashMap()
parameters.put(‘sourceBands’, ‘Sigma0_VH,Sigma0_VV’)
output = GPF.createProduct(“LinearToFromdB”, parameters, source)
return output

1 Like