hello ,
I want to to use SNAP python API using Rayleigh correction tools .but i takes errors.
First i need help how to define inputs parameters to use nappy.GPF.createProduct('RayleighCorrection', parameters, s)
i don’t find some manual about this
here my code :
outfile_snappy='foldername'
s=ProductIO.readProduct('/folder_inp_name.SAFE')
HashMap = snappy.jpy.get_type('java.util.HashMap')
snappy.GPF.getDefaultInstance().getOperatorSpiRegistry().loadOperatorSpis()
parameters = HashMap()
parameters.put('ComputeRayleighopticalthicknessbands', True)
parameters.put('ComputebottomofRayleighreflecncebands', True)
parameters.put('ComputegaseousabsorptioncorrectedTOAreflectancebands', True)
parameters.put('ComputeTOAreflectancebands', True)
parameters.put('Addairmass', True)
parameters.put('imageresoluoninmintargetproduct.Resamplingisonlyifsourceproductisnotresampledyet(S2MSIonly)', '10')
parameters.put('SealevelpressureinhPa(S@MSIonly)', '1000')
parameters.put('OzoneinDU(SSIonly)', '300.0')
parameters.put('Sourcebands', 'B4')
target=snappy.GPF.createProduct('RayleighCorrection', parameters, s)
ProductIO.writeProduct(target, outfile_snappy, 'GeoTIFF')
and i take this error :
target=snappy.GPF.createProduct('RayleighCorrection', parameters, s)
RuntimeError: org.esa.snap.core.gpf.OperatorException: Please select at least one source band.
e.g. i want to use this for all bands .
thanks you