Hi, You can set the output encoding with :
https://www.orfeo-toolbox.org/PythonDoc/stubs/otbApplication.Application.html#otbApplication.Application.SetParameterOutputImagePixelType SetParameterOuptutImagePixelType(“out”, 2) should set it to unsigned int (16 bits). Regards, Julien De : [email protected] <[email protected]> De la part de Gabrielle Hoelzle Envoyé : vendredi 11 janvier 2019 16:31 À : otb-users <[email protected]> Objet : Re: [otb-users] introduction of negative DNs in otb I have not been using command line but a script. I will attach. On Friday, January 11, 2019 at 10:11:54 AM UTC-5, Julien Michel wrote: Hi, Can you post more details, such as command-lines ? Regards, Julien De : [email protected]<javascript:> <[email protected]<javascript:>> De la part de Gabrielle Hoelzle Envoyé : vendredi 11 janvier 2019 16:05 À : otb-users <[email protected]<javascript:>> Objet : [otb-users] introduction of negative DNs in otb I am having an issue with both Worldview and Pleaides when I run (at minimuim) any of these steps : superimpose, pansharpening, orthorectification. During the process, the 16bit float raw inputs are being upgraded 32 bit and negative values are being introduced. I am hoping someone is aware of a workaround for this. Or an explanation of why this is happening. Thanks -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected]<javascript:> To unsubscribe from this group, send email to [email protected]<javascript:> For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- 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 [email protected]<javascript:>. For more options, visit https://groups.google.com/d/optout. -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected]<mailto:[email protected]> To unsubscribe from this group, send email to [email protected]<mailto:[email protected]> For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
