I'm trying to write an otb quicklook function on Python, it works fine until I 
have to set the channel parameter:  "-cl", both with the old and new way of 
setting it. In red, all the differents tests I've done, unsuccessfully.

quicklook = otbApplication.Registry_CreateApplication('Quicklook')
quicklook.IN = 'image.tif'
quicklook.SR = 8
quicklook.OUT = 'image_quicklook.tif'
quicklook.CL = [4,3,2]
quicklook.CL = '[4,3,2]'
quicklook.CL = '4,3,2'
==> Attribute Error

quicklook.SetParameterStringList('cl', '[4,3,2]')
quicklook.SetParameterStringList('cl', '4,3,2')
==> RuntimeError: Exception thrown in otbApplication 
         itk::ERROR: ListViewParameter(0x22abb80): Value 4 not found in the 
list of choices


What is the right way to write it ? Notice that it doesn't work anymore with 
only one selected band.
In advance, thank you for your help.

Best regards,

Baptiste Meylheuc

Check the OTB FAQ at

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to otb-users@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group at
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to