Better Error Messages

From OTBWiki
Jump to: navigation, search

This page is an annex to Request_for_Changes-91:_Better_error_messages. It contains the full output of the error messages test script.


IO Errors

Input file does not exist (Convert)

$ otbcli_Convert -in blabla.tif -out /tmp/out.tif

   2017-06-13 13:38:13 (FATAL): Cannot open image blabla.tif. The file does not exist.

In debug:

   2017-06-13 13:38:14 (FATAL): Cannot open image blabla.tif. The file does not exist.

On release-6.0:

   2017 Jun 13 13:38:14  :  Application.logger  (CRITICAL) Invalid image filename blabla.tif.
   2017 Jun 13 13:38:14  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x1272710): No input image or filename detected...

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.IN = 'blabla.tif'
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image blabla.tif. The file does not exist.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image blabla.tif. The file does not exist.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x2a95920): No input image or filename detected...

Input file does not exist (ReadImageInfo)

$ otbcli_ReadImageInfo -in blabla.tif

   2017-06-13 13:38:14 (FATAL): Cannot open image blabla.tif. The file does not exist.

In debug:

   2017-06-13 13:38:14 (FATAL): Cannot open image blabla.tif. The file does not exist.

On release-6.0:

   2017 Jun 13 13:38:14  :  Application.logger  (CRITICAL) Invalid image filename blabla.tif.
   2017 Jun 13 13:38:14  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x11fb2e0): No input image or filename detected...

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('ReadImageInfo')
   app.IN = 'blabla.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 4, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image blabla.tif. The file does not exist.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 4, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image blabla.tif. The file does not exist.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 4, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x2534a30): No input image or filename detected...

Input file does not exist, with extended filename (Convert)

$ otbcli_Convert -in 'blabla.tif&bands=1' -out /tmp/out.tif

   2017-06-13 13:38:15 (FATAL): Cannot open image blabla.tif&bands=1. The file does not exist.

In debug:

   2017-06-13 13:38:15 (FATAL): Cannot open image blabla.tif&bands=1. The file does not exist.

On release-6.0:

   2017 Jun 13 13:38:15  :  Application.logger  (CRITICAL) Invalid image filename blabla.tif&bands=1.
   2017 Jun 13 13:38:15  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x881720): No input image or filename detected...

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.IN = 'blabla.tif&bands=1'
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image blabla.tif&bands=1. The file does not exist.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image blabla.tif&bands=1. The file does not exist.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x2689920): No input image or filename detected...

One of the input files does not exist

$ otbcli_BandMath -il data/QB_1_ortho.tif blabla.tif -out /tmp/out.tif -exp '1'

   2017-06-13 13:38:16 (FATAL): Cannot open image blabla.tif. The file does not exist.

In debug:

   2017-06-13 13:38:16 (FATAL): Cannot open image blabla.tif. The file does not exist.

On release-6.0:

   2017 Jun 13 13:38:16  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Applications/AppMathParser/app/otbBandMath.cxx:175:
   itk::ERROR: BandMath(0xbbf4b0): No input Image set...; please set at least one input image

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('BandMath')
   app.SetParameterStringList('il', ['data/QB_1_ortho.tif', 'blabla.tif'])
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 3, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 896, in SetParameterStringList
       def SetParameterStringList(self, *args): return _otbApplication.Application_SetParameterStringList(self, *args)
   RuntimeError: Cannot open image blabla.tif. The file does not exist.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 3, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 896, in SetParameterStringList
       def SetParameterStringList(self, *args): return _otbApplication.Application_SetParameterStringList(self, *args)
   RuntimeError: Cannot open image blabla.tif. The file does not exist.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Applications/AppMathParser/app/otbBandMath.cxx:175:
   itk::ERROR: BandMath(0x24e9f30): No input Image set...; please set at least one input image

Unsupported input format

$ otbcli_Convert -in data/svm_model.svm -out /tmp/out.tif

   2017-06-13 13:38:16 (FATAL): Cannot open image data/svm_model.svm. Probably unsupported format or incorrect filename extension.

In debug:

   2017-06-13 13:38:16 (FATAL): Cannot open image data/svm_model.svm. Probably unsupported format or incorrect filename extension.

On release-6.0:

   2017 Jun 13 13:38:16  :  Application.logger  (CRITICAL) Invalid image filename data/svm_model.svm.
   2017 Jun 13 13:38:16  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x11e0720): No input image or filename detected...

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.IN = 'data/svm_model.svm'
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image data/svm_model.svm. Probably unsupported format or incorrect filename extension.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image data/svm_model.svm. Probably unsupported format or incorrect filename extension.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x22a1920): No input image or filename detected...

Unsupported output format

$ otbcli_Convert -in data/QB_1_ortho.tif -out /tmp/out.blabla

   2017-06-13 13:38:17 (FATAL): Cannot write image /tmp/out.blabla. Probably unsupported format or incorrect filename extension.

In debug:

   2017-06-13 13:38:17 (FATAL): Cannot write image /tmp/out.blabla. Probably unsupported format or incorrect filename extension.

On release-6.0:

   2017 Jun 13 13:38:17  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/IO/ImageIO/include/otbImageFileWriter.txx:449:
    Could not create IO object for file /tmp/out.blabla
     Tried to create one of the following:
       RADImageIO
       BSQImageIO
       LUMImageIO
       TileMapImageIO
       GDALImageIO
       ONERAImageIO
       MSTARImageIO
     You probably failed to set a file suffix, or
       set the suffix to an unsupported type.
   

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.IN = 'data/QB_1_ortho.tif'
   app.OUT = '/tmp/out.blabla'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/cnes/dev/otb/Modules/IO/ImageIO/include/otbImageFileWriter.txx:449:
   Cannot write image /tmp/out.blabla. Probably unsupported format or incorrect filename extension.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/cnes/dev/otb/Modules/IO/ImageIO/include/otbImageFileWriter.txx:449:
   Cannot write image /tmp/out.blabla. Probably unsupported format or incorrect filename extension.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/IO/ImageIO/include/otbImageFileWriter.txx:449:
    Could not create IO object for file /tmp/out.blabla
     Tried to create one of the following:
       RADImageIO
       BSQImageIO
       LUMImageIO
       TileMapImageIO
       GDALImageIO
       ONERAImageIO
       MSTARImageIO
     You probably failed to set a file suffix, or
       set the suffix to an unsupported type.
   

Invalid input image (Convert)

$ otbcli_Convert -in data/notActuallyTif.tif -out /tmp/out.tif

   2017-06-13 13:38:18 (FATAL): Cannot open image data/notActuallyTif.tif. Probably unsupported format or incorrect filename extension.

In debug:

   2017-06-13 13:38:18 (FATAL): Cannot open image data/notActuallyTif.tif. Probably unsupported format or incorrect filename extension.

On release-6.0:

   2017 Jun 13 13:38:18  :  Application.logger  (CRITICAL) Invalid image filename data/notActuallyTif.tif.
   2017 Jun 13 13:38:18  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x133b720): No input image or filename detected...

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.IN = 'data/notActually.tif'
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image data/notActually.tif. The file does not exist.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image data/notActually.tif. The file does not exist.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x2357920): No input image or filename detected...

Permission denied (input)

$ otbcli_Convert -in noReadPermission.png -out /tmp/out.tif

   Warning 4: Failed to open noReadPermission.png, Permission denied.
   2017-06-13 13:38:19 (FATAL): Cannot open image noReadPermission.png. The file does not exist.

In debug:

   Warning 4: Failed to open noReadPermission.png, Permission denied.
   2017-06-13 13:38:19 (FATAL): Cannot open image noReadPermission.png. The file does not exist.

On release-6.0:

   Warning 4: Failed to open noReadPermission.png, Permission denied.
   2017 Jun 13 13:38:19  :  Application.logger  (CRITICAL) Invalid image filename noReadPermission.png.
   2017 Jun 13 13:38:19  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x243e720): No input image or filename detected...

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.IN = 'noReadPermission.png'
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Warning 4: Failed to open noReadPermission.png, Permission denied.
   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image noReadPermission.png. The file does not exist.

Output on better_error_messages branch (in Debug):

   Warning 4: Failed to open noReadPermission.png, Permission denied.
   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image noReadPermission.png. The file does not exist.

Output on release-6.0:

   Warning 4: Failed to open noReadPermission.png, Permission denied.
   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0xfbf920): No input image or filename detected...

Permission denied (output)

$ otbcli_Convert -in data/QB_1_ortho.tif -out /root/out.tif -progress false

   ERROR 4: Attempt to create new tiff file `/root/out.tif' failed: Permission denied
   2017-06-13 13:38:19 (FATAL): itk::ERROR: GDALImageIO(0x19d77b0): Attempt to create new tiff file `/root/out.tif' failed: Permission denied

In debug:

   ERROR 4: Attempt to create new tiff file `/root/out.tif' failed: Permission denied
   2017-06-13 13:38:19 (FATAL): itk::ERROR: GDALImageIO(0x23e1a00): Attempt to create new tiff file `/root/out.tif' failed: Permission denied

On release-6.0:

   ERROR 4: Attempt to create new tiff file `/root/out.tif' failed: Permission denied
   2017 Jun 13 13:38:19  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/IO/IOGDAL/src/otbGDALImageIO.cxx:1669:
   itk::ERROR: GDALImageIO(0x1dd0df0): GDAL Writing failed : Impossible to create the image file name '/root/out.tif' : Attempt to create new tiff file `/root/out.tif' failed: Permission denied

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.IN = 'data/QB_1_ortho.tif'
   app.OUT = '/root/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   ERROR 4: Attempt to create new tiff file `/root/out.tif' failed: Permission denied
   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/cnes/dev/otb/Modules/IO/IOGDAL/src/otbGDALImageIO.cxx:1667:
   itk::ERROR: GDALImageIO(0x15d8460): Attempt to create new tiff file `/root/out.tif' failed: Permission denied

Output on better_error_messages branch (in Debug):

   ERROR 4: Attempt to create new tiff file `/root/out.tif' failed: Permission denied
   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/cnes/dev/otb/Modules/IO/IOGDAL/src/otbGDALImageIO.cxx:1667:
   itk::ERROR: GDALImageIO(0x2194ea0): Attempt to create new tiff file `/root/out.tif' failed: Permission denied

Output on release-6.0:

   ERROR 4: Attempt to create new tiff file `/root/out.tif' failed: Permission denied
   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/IO/IOGDAL/src/otbGDALImageIO.cxx:1669:
   itk::ERROR: GDALImageIO(0x199bca0): GDAL Writing failed : Impossible to create the image file name '/root/out.tif' : Attempt to create new tiff file `/root/out.tif' failed: Permission denied

Trying to open a directory

$ otbcli_Convert -in data/DEM_srtm -out /tmp/out.tif

   2017-06-13 13:38:20 (FATAL): Cannot open image data/DEM_srtm. Probably unsupported format or incorrect filename extension.

In debug:

   2017-06-13 13:38:20 (FATAL): Cannot open image data/DEM_srtm. Probably unsupported format or incorrect filename extension.

On release-6.0:

   2017 Jun 13 13:38:20  :  Application.logger  (CRITICAL) Invalid image filename data/DEM_srtm.
   2017 Jun 13 13:38:20  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x73a710): No input image or filename detected...

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.IN = 'data/DEM_srtm'
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image data/DEM_srtm. Probably unsupported format or incorrect filename extension.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Cannot open image data/DEM_srtm. Probably unsupported format or incorrect filename extension.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0xdaa920): No input image or filename detected...

Parameter errors

Too many dashes

$ otbcli_BandMath --il -out /tmp/out.tif -exp '1'

   ERROR: Parameters are set using "-", not "--".

In debug:

   ERROR: Parameters are set using "-", not "--".

On release-6.0:

   ERROR: Parameter keys have to set using "-", not "--"

Repeated parameter

$ otbcli_Convert -in data/QB_1_ortho.tif -in data/QB_1_ortho.tif -out /tmp/out.tif -progress false

   ERROR: At least one parameter is not unique in the expression.

In debug:

   ERROR: At least one parameter is not unique in the expression.

On release-6.0:

   ERROR: At least one key is not unique in the expression...

No parameter

$ otbcli_Convert

   ERROR: Waiting for at least one parameter.
   
   This is the Convert application, version 6.1.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
   MISSING -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
   MISSING -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

In debug:

   ERROR: Waiting for at least one parameter.
   
   This is the Convert application, version 6.1.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
   MISSING -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
   MISSING -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

On release-6.0:

   ERROR: Waiting for at least one parameter...
   This is the Convert application, version 6.0.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
   MISSING -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
   MISSING -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

Non existing parameter

$ otbcli_Convert -hello world

   ERROR: Parameter -hello does not exist in the application.

In debug:

   ERROR: Parameter -hello does not exist in the application.

On release-6.0:

   ERROR: option -hello does not exist in the application.
   This is the Convert application, version 6.0.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
   MISSING -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
   MISSING -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.HELLO = 'WORLD'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 3, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 1092, in __setattr__
       raise AttributeError("Parameter {} does not exist in the application.".format(attr.lower()))
   AttributeError: Parameter hello does not exist in the application.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 3, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 1092, in __setattr__
       raise AttributeError("Parameter {} does not exist in the application.".format(attr.lower()))
   AttributeError: Parameter hello does not exist in the application.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 3, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 1094, in __setattr__
       raise AttributeError
   AttributeError

Missing parameter (output)

$ otbcli_Convert -in data/QB_1_ortho.tif

   ERROR: Missing mandatory parameter -out.
   
   This is the Convert application, version 6.1.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
           -in                <string>         Input image  (mandatory, default value is data/QB_1_ortho.tif)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
   MISSING -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

In debug:

   ERROR: Missing mandatory parameter -out.
   
   This is the Convert application, version 6.1.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
           -in                <string>         Input image  (mandatory, default value is data/QB_1_ortho.tif)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
   MISSING -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

On release-6.0:

   ERROR: Missing mandatory parameter: out  0
   ERROR: Troubles loading parameter, please check your line argument...
   This is the Convert application, version 6.0.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
           -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
   MISSING -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.IN = 'data/QB_1_ortho.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   [no output]

Output on better_error_messages branch (in Debug):

   [no output]

Output on release-6.0:

   [no output]

Missing parameter (input)

$ otbcli_Convert -out /tmp/out.tif

   ERROR: Missing mandatory parameter -in.
   
   This is the Convert application, version 6.1.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
   MISSING -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
           -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory, default value is /tmp/out.tif)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

In debug:

   ERROR: Missing mandatory parameter -in.
   
   This is the Convert application, version 6.1.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
   MISSING -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
           -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory, default value is /tmp/out.tif)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

On release-6.0:

   ERROR: Missing mandatory parameter: in  0
   ERROR: Troubles loading parameter, please check your line argument...
   This is the Convert application, version 6.0.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
   MISSING -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
           -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 4, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/cnes/dev/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:72:
   itk::ERROR: InputImageParameter(0x2760c90): No input image or filename detected...

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 4, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/cnes/dev/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:72:
   itk::ERROR: InputImageParameter(0x16e7de0): No input image or filename detected...

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 4, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x18c5a20): No input image or filename detected...

Missing parameter value

$ otbcli_Convert -in -out /tmp/out.tif

   ERROR: No value associated to parameter -in.

In debug:

   ERROR: No value associated to parameter -in.

On release-6.0:

   ERROR: No value associated to the parameter : "in", invalid number of values 0
   ERROR: Troubles loading parameter, please check your line argument...
   This is the Convert application, version 6.0.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
           -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
           -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Convert')
   app.IN = 
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/cnes/dev/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:72:
   itk::ERROR: InputImageParameter(0xc9eca0): No input image or filename detected...

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/cnes/dev/otb/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:72:
   itk::ERROR: InputImageParameter(0x21fedf0): No input image or filename detected...

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x256b910): No input image or filename detected...

Empty input image list

$ otbcli_BandMath -il -out /tmp/out.tif -exp '1'

   ERROR: No value associated to parameter -il.

In debug:

   ERROR: No value associated to parameter -il.

On release-6.0:

   ERROR: No value associated to the parameter : "il", invalid number of values 0
   ERROR: Troubles loading parameter, please check your line argument...
   This is the BandMath application, version 6.0.0
   Perform a mathematical operation on monoband images
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/BandMath.html
   
   Parameters: 
           -progress <boolean>        Report progress 
           -il       <string list>    Input image list  (mandatory)
           -out      <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram      <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -exp      <string>         Expression  (mandatory)
           -inxml    <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_BandMath -il verySmallFSATSW_r.tif verySmallFSATSW_nir.tif verySmallFSATSW.tif -out apTvUtBandMathOutput.tif -exp "cos(im1b1) > cos(im2b1) ? im3b1 : im3b2"
   

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('BandMath')
   app.SetParameterStringList('il', [])
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/cnes/dev/otb/Modules/Applications/AppMathParser/app/otbBandMath.cxx:175:
   itk::ERROR: BandMath(0x1212df0): No input Image set...; please set at least one input image

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/cnes/dev/otb/Modules/Applications/AppMathParser/app/otbBandMath.cxx:175:
   itk::ERROR: BandMath(0x1678060): No input Image set...; please set at least one input image

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 5, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/otbval/Dashboard/src/OTB/Modules/Applications/AppMathParser/app/otbBandMath.cxx:175:
   itk::ERROR: BandMath(0x2323f70): No input Image set...; please set at least one input image

Missing input extension (Convert)

$ otbcli_Convert -in data/QB_1_ortho -out /tmp/out.tif

   2017-06-13 13:38:25 (FATAL): Cannot open image data/QB_1_ortho. The file does not exist.

In debug:

   2017-06-13 13:38:25 (FATAL): Cannot open image data/QB_1_ortho. The file does not exist.

On release-6.0:

   2017 Jun 13 13:38:25  :  Application.logger  (CRITICAL) Invalid image filename data/QB_1_ortho.
   2017 Jun 13 13:38:25  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x22d4710): No input image or filename detected...

Missing output extension (Convert)

$ otbcli_Convert -in data/QB_1_ortho.tif -out /tmp/out -progress false

   2017-06-13 13:38:25 (WARNING): Check filename: no extension detected, using TIF as default.

In debug:

   2017-06-13 13:38:25 (WARNING): Check filename: no extension detected, using TIF as default.

On release-6.0:

   2017 Jun 13 13:38:25  :  Application.logger  (WARNING) Check filename : no extension detected, using TIF as default.

Empty output filename

$ otbcli_BandMath -il data/QB_1_ortho.tif -out -exp '1'

   ERROR: No value associated to parameter -out.

In debug:

   ERROR: No value associated to parameter -out.

On release-6.0:

   ERROR: No value associated to the parameter : "out", invalid number of values 0
   ERROR: Troubles loading parameter, please check your line argument...
   This is the BandMath application, version 6.0.0
   Perform a mathematical operation on monoband images
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/BandMath.html
   
   Parameters: 
           -progress <boolean>        Report progress 
           -il       <string list>    Input image list  (mandatory)
           -out      <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram      <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -exp      <string>         Expression  (mandatory)
           -inxml    <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_BandMath -il verySmallFSATSW_r.tif verySmallFSATSW_nir.tif verySmallFSATSW.tif -out apTvUtBandMathOutput.tif -exp "cos(im1b1) > cos(im2b1) ? im3b1 : im3b2"
   

Invalid extended filename

$ otbcli_Convert -in data/'QB_1_ortho.tif?&bla=blabla' -out /tmp/out.tif -progress false

   WARNING: In /home/poughov/cnes/dev/otb/Modules/IO/ExtendedFilename/src/otbExtendedFilenameToReaderOptions.cxx, line 159
   ExtendedFilenameToReaderOptions (0x21936b0): Unknown option detected: bla.
   

In debug:

   WARNING: In /home/poughov/cnes/dev/otb/Modules/IO/ExtendedFilename/src/otbExtendedFilenameToReaderOptions.cxx, line 159
   ExtendedFilenameToReaderOptions (0x23bd660): Unknown option detected: bla.
   

On release-6.0:

   WARNING: In /home/otbval/Dashboard/src/OTB/Modules/IO/ExtendedFilename/src/otbExtendedFilenameToReaderOptions.cxx, line 159
   ExtendedFilenameToReaderOptions (0x1524f50): Unknown option detected: bla.
   
   WARNING: In /home/otbval/Dashboard/src/OTB/Modules/IO/ExtendedFilename/src/otbExtendedFilenameToReaderOptions.cxx, line 159
   ExtendedFilenameToReaderOptions (0x15932a0): Unknown option detected: bla.
   

Parameter syntax error (forgot '-in')

$ otbcli_Convert data/QB_1_ortho.tif -out /tmp/out.tif

   Invalid module path: /home/poughov/cnes/dev/otb-devutils/Scripts/data/QB_1_ortho.tif
   Invalid module path: /home/poughov/cnes/dev/otb-devutils/Scripts/data/QB_1_ortho.tif
   ERROR: Missing mandatory parameter -in.
   
   This is the Convert application, version 6.1.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
   MISSING -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
           -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory, default value is /tmp/out.tif)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

In debug:

   Invalid module path: /home/poughov/cnes/dev/otb-devutils/Scripts/data/QB_1_ortho.tif
   Invalid module path: /home/poughov/cnes/dev/otb-devutils/Scripts/data/QB_1_ortho.tif
   ERROR: Missing mandatory parameter -in.
   
   This is the Convert application, version 6.1.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
   MISSING -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
           -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory, default value is /tmp/out.tif)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

On release-6.0:

   Invalid module path: /home/poughov/cnes/dev/otb-devutils/Scripts/data/QB_1_ortho.tif
   Invalid module path: /home/poughov/cnes/dev/otb-devutils/Scripts/data/QB_1_ortho.tif
   ERROR: Missing mandatory parameter: in  0
   ERROR: Troubles loading parameter, please check your line argument...
   This is the Convert application, version 6.0.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
   MISSING -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
           -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

Parameter syntax error (forgot '-out')

$ otbcli_Convert -in data/QB_1_ortho.tif /tmp/out.tif

   ERROR: Missing mandatory parameter -out.
   
   This is the Convert application, version 6.1.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
           -in                <string>         Input image  (mandatory, default value is data/QB_1_ortho.tif /tmp/out.tif)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
   MISSING -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

In debug:

   ERROR: Missing mandatory parameter -out.
   
   This is the Convert application, version 6.1.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
           -in                <string>         Input image  (mandatory, default value is data/QB_1_ortho.tif /tmp/out.tif)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
   MISSING -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

On release-6.0:

   2017 Jun 13 13:38:26  :  Application.logger  (CRITICAL) Invalid image filename data/QB_1_ortho.tif /tmp/out.tif.
   ERROR: Missing mandatory parameter: out  0
   ERROR: Troubles loading parameter, please check your line argument...
   This is the Convert application, version 6.0.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
           -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
   MISSING -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

Progress value error

$ otbcli_Convert -in data/QB_1_ortho.tif -out /tmp/out.tif -progress false false true

   ERROR: Invalid value for parameter -progress. It must be 0, 1, false or true.

In debug:

   ERROR: Invalid value for parameter -progress. It must be 0, 1, false or true.

On release-6.0:

   ERROR: Invalid progress argument, must be unique value...

Progress value error 2

$ otbcli_Convert -in data/QB_1_ortho.tif -out /tmp/out.tif -progress blabla

   ERROR: Invalid value for parameter -progress. It must be 0, 1, false or true.

In debug:

   ERROR: Invalid value for parameter -progress. It must be 0, 1, false or true.

On release-6.0:

   ERROR: Invalid progress argument, must be 0, 1, false or true...
   This is the Convert application, version 6.0.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
           -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
           -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

Invalid output type

$ otbcli_Convert -in data/QB_1_ortho.tif -out /tmp/out.tif iunt8 -progress false

   ERROR: Invalid output type for parameter -out: iunt8.

In debug:

   ERROR: Invalid output type for parameter -out: iunt8.

On release-6.0:

   ERROR: Troubles loading parameter, please check your line argument...
   This is the Convert application, version 6.0.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
           -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
           -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

Type given to input image

$ otbcli_Convert -in data/QB_1_ortho.tif uint8 -out /tmp/out.tif -progress false

   2017-06-13 13:38:27 (FATAL): Cannot open image data/QB_1_ortho.tif uint8. The file does not exist.

In debug:

   2017-06-13 13:38:27 (FATAL): Cannot open image data/QB_1_ortho.tif uint8. The file does not exist.

On release-6.0:

   2017 Jun 13 13:38:27  :  Application.logger  (CRITICAL) Invalid image filename data/QB_1_ortho.tif uint8.
   2017 Jun 13 13:38:27  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x10537f0): No input image or filename detected...

Too many parameter values (-in)

$ otbcli_Convert -in data/QB_1_ortho.tif blabla.tif -out /tmp/out.tif -progress false

   2017-06-13 13:38:27 (FATAL): Cannot open image data/QB_1_ortho.tif blabla.tif. The file does not exist.

In debug:

   2017-06-13 13:38:27 (FATAL): Cannot open image data/QB_1_ortho.tif blabla.tif. The file does not exist.

On release-6.0:

   2017 Jun 13 13:38:27  :  Application.logger  (CRITICAL) Invalid image filename data/QB_1_ortho.tif blabla.tif.
   2017 Jun 13 13:38:27  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/include/otbWrapperInputImageParameter.txx:79:
   itk::ERROR: InputImageParameter(0x9be7f0): No input image or filename detected...

Too many parameter values (-out)

$ otbcli_Convert -in data/QB_1_ortho.tif -out /tmp/out.tif uint8 float double -progress false

   ERROR: Too many values for parameter -out (expected 2 or less, got 4).

In debug:

   ERROR: Too many values for parameter -out (expected 2 or less, got 4).

On release-6.0:

   ERROR: Invalid number of value for: "out", invalid number of values 4
   ERROR: Troubles loading parameter, please check your line argument...
   This is the Convert application, version 6.0.0
   Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/Convert.html
   
   Parameters: 
           -progress          <boolean>        Report progress 
           -in                <string>         Input image  (mandatory)
           -type              <string>         Rescale type [none/linear/log2] (mandatory, default value is none)
           -type.linear.gamma <float>          Gamma correction factor  (optional, on by default, default value is 1)
           -mask              <string>         Input mask  (optional, off by default)
           -hcp.high          <float>          High Cut Quantile  (optional, off by default, default value is 2)
           -hcp.low           <float>          Low Cut Quantile  (optional, off by default, default value is 2)
           -out               <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram               <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -inxml             <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_Convert -in QB_Toulouse_Ortho_XS.tif -out otbConvertWithScalingOutput.png uint8 -type linear
   

Module path errors

otbApplicationLauncherCommandLine without arguments

$ otbApplicationLauncherCommandLine

   Usage: otbApplicationLauncherCommandLine module_name [MODULEPATH] [arguments]

In debug:

   Usage: otbApplicationLauncherCommandLine module_name [MODULEPATH] [arguments]

On release-6.0:

   Usage : otbApplicationLauncherCommandLine module_name [MODULEPATH] [arguments]

No module available

$ OTB_APPLICATION_PATH=""; otbApplicationLauncherCommandLine Convert

   ERROR: Could not find application "Convert"
   ERROR: Module search path: none (check OTB_APPLICATION_PATH)
   ERROR: Available modules: none.

In debug:

   ERROR: Could not find application "Convert"
   ERROR: Module search path: none (check OTB_APPLICATION_PATH)
   ERROR: Available modules: none.

On release-6.0:

   ERROR: Could not find application "Convert"
   ERROR: Module search path: none (check OTB_APPLICATION_PATH)
   ERROR: Available modules : none.
   ERROR: No loaded application...

Application not available

$ otbApplicationLauncherCommandLine MakeCoffee

   ERROR: Could not find application "MakeCoffee"
   ERROR: Module search path: /home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/applications
   ERROR: Available modules:
   	BandMath
   	BandMathX
   	BinaryMorphologicalOperation
   	BlockMatching
   	BundleToPerfectSensor
   	ClassificationMapRegularization
   	ColorMapping
   	CompareImages
   	ComputeConfusionMatrix
   	ComputeImagesStatistics
   	ComputeModulusAndPhase
   	ComputeOGRLayersFeaturesStatistics
   	ComputePolylineFeatureFromImage
   	ConcatenateImages
   	ConcatenateVectorData
   	ConnectedComponentSegmentation
   	Convert
   	ConvertCartoToGeoPoint
   	ConvertSensorToGeoPoint
   	DEMConvert
   	DSFuzzyModelEstimation
   	Despeckle
   	DimensionalityReduction
   	DisparityMapToElevationMap
   	DomainTransform
   	DownloadSRTMTiles
   	EdgeExtraction
   	ExtractROI
   	FineRegistration
   	FusionOfClassifications
   	GeneratePlyFile
   	GenerateRPCSensorModel
   	GrayScaleMorphologicalOperation
   	GridBasedImageResampling
   	HaralickTextureExtraction
   	HomologousPointsExtraction
   	HooverCompareSegmentation
   	HyperspectralUnmixing
   	ImageClassifier
   	ImageEnvelope
   	KMeansClassification
   	KmzExport
   	LSMSSegmentation
   	LSMSSmallRegionsMerging
   	LSMSVectorization
   	LineSegmentDetection
   	LocalStatisticExtraction
   	ManageNoData
   	MeanShiftSmoothing
   	MorphologicalClassification
   	MorphologicalMultiScaleDecomposition
   	MorphologicalProfilesAnalysis
   	MultiImageSamplingRate
   	MultiResolutionPyramid
   	MultivariateAlterationDetector
   	OGRLayerClassifier
   	OSMDownloader
   	ObtainUTMZoneFromGeoPoint
   	OpticalCalibration
   	OrthoRectification
   	Pansharpening
   	PixelValue
   	PolygonClassStatistics
   	PredictRegression
   	Quicklook
   	RadiometricIndices
   	Rasterization
   	ReadImageInfo
   	RefineSensorModel
   	Rescale
   	RigidTransformResample
   	SARCalibration
   	SARDeburst
   	SARDecompositions
   	SARPolarMatrixConvert
   	SARPolarSynth
   	SFSTextureExtraction
   	SOMClassification
   	SampleExtraction
   	SampleSelection
   	Segmentation
   	Smoothing
   	SplitImage
   	StereoFramework
   	StereoRectificationGridGenerator
   	Superimpose
   	TestApplication
   	TileFusion
   	TrainImagesClassifier
   	TrainRegression
   	TrainVectorClassifier
   	VectorClassifier
   	VectorDataDSValidation
   	VectorDataExtractROI
   	VectorDataReprojection
   	VectorDataSetField
   	VectorDataTransform
   	VertexComponentAnalysis

In debug:

   ERROR: Could not find application "MakeCoffee"
   ERROR: Module search path: /home/poughov/build/SuperBuild-develop/install/lib/otb/applications
   ERROR: Available modules:
   	ApplicationExample
   	BandMath
   	BandMathX
   	BinaryMorphologicalOperation
   	BlockMatching
   	BundleToPerfectSensor
   	ClassificationMapRegularization
   	ColorMapping
   	CompareImages
   	ComputeConfusionMatrix
   	ComputeImagesStatistics
   	ComputeModulusAndPhase
   	ComputeOGRLayersFeaturesStatistics
   	ComputePolylineFeatureFromImage
   	ConcatenateImages
   	ConcatenateVectorData
   	ConnectedComponentSegmentation
   	Convert
   	ConvertCartoToGeoPoint
   	ConvertSensorToGeoPoint
   	DEMConvert
   	DSFuzzyModelEstimation
   	Despeckle
   	DimensionalityReduction
   	DisparityMapToElevationMap
   	DomainTransform
   	DownloadSRTMTiles
   	EdgeExtraction
   	ExtractROI
   	FineRegistration
   	FusionOfClassifications
   	GeneratePlyFile
   	GenerateRPCSensorModel
   	GrayScaleMorphologicalOperation
   	GridBasedImageResampling
   	HaralickTextureExtraction
   	HomologousPointsExtraction
   	HooverCompareSegmentation
   	HyperspectralUnmixing
   	ImageClassifier
   	ImageEnvelope
   	KMeansClassification
   	KmzExport
   	LSMSSegmentation
   	LSMSSmallRegionsMerging
   	LSMSVectorization
   	LineSegmentDetection
   	LocalStatisticExtraction
   	ManageNoData
   	MeanShiftSmoothing
   	MorphologicalClassification
   	MorphologicalMultiScaleDecomposition
   	MorphologicalProfilesAnalysis
   	MultiImageSamplingRate
   	MultiResolutionPyramid
   	MultivariateAlterationDetector
   	OGRLayerClassifier
   	OSMDownloader
   	ObtainUTMZoneFromGeoPoint
   	OpticalCalibration
   	OrthoRectification
   	Pansharpening
   	PixelValue
   	PolygonClassStatistics
   	PredictRegression
   	Quicklook
   	RadiometricIndices
   	Rasterization
   	ReadImageInfo
   	RefineSensorModel
   	Rescale
   	RigidTransformResample
   	SARCalibration
   	SARDeburst
   	SARDecompositions
   	SARPolarMatrixConvert
   	SARPolarSynth
   	SFSTextureExtraction
   	SOMClassification
   	SampleExtraction
   	SampleSelection
   	Segmentation
   	Smoothing
   	SplitImage
   	StereoFramework
   	StereoRectificationGridGenerator
   	Superimpose
   	TestApplication
   	TileFusion
   	TrainImagesClassifier
   	TrainRegression
   	TrainVectorClassifier
   	VectorClassifier
   	VectorDataDSValidation
   	VectorDataExtractROI
   	VectorDataReprojection
   	VectorDataSetField
   	VectorDataTransform
   	VertexComponentAnalysis

On release-6.0:

   ERROR: Could not find application "MakeCoffee"
   ERROR: Module search path: /home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/otb/applications
   ERROR: Available modules :
   	Aggregate
   	BandMath
   	BandMathX
   	BinaryMorphologicalOperation
   	BlockMatching
   	BundleToPerfectSensor
   	ClassificationMapRegularization
   	ColorMapping
   	CompareImages
   	ComputeConfusionMatrix
   	ComputeImagesStatistics
   	ComputeModulusAndPhase
   	ComputeOGRLayersFeaturesStatistics
   	ComputePolylineFeatureFromImage
   	ConcatenateImages
   	ConcatenateVectorData
   	ConnectedComponentSegmentation
   	Convert
   	ConvertCartoToGeoPoint
   	ConvertSensorToGeoPoint
   	DEMConvert
   	DSFuzzyModelEstimation
   	Despeckle
   	DimensionalityReduction
   	DisparityMapToElevationMap
   	DomainTransform
   	DownloadSRTMTiles
   	EdgeExtraction
   	ExtractROI
   	FineRegistration
   	FusionOfClassifications
   	GeneratePlyFile
   	GenerateRPCSensorModel
   	GenericRegionMerging
   	GrayScaleMorphologicalOperation
   	GridBasedImageResampling
   	HaralickTextureExtraction
   	HomologousPointsExtraction
   	HooverCompareSegmentation
   	HyperspectralUnmixing
   	ImageClassifier
   	ImageEnvelope
   	KMeansClassification
   	KmzExport
   	LSMSSegmentation
   	LSMSSmallRegionsMerging
   	LSMSVectorization
   	LineSegmentDetection
   	LocalStatisticExtraction
   	ManageNoData
   	MeanShiftSmoothing
   	MorphologicalClassification
   	MorphologicalMultiScaleDecomposition
   	MorphologicalProfilesAnalysis
   	Mosaic
   	MultiImageSamplingRate
   	MultiResolutionPyramid
   	MultivariateAlterationDetector
   	OGRLayerClassifier
   	OSMDownloader
   	ObjectsRadiometricStatistics
   	ObtainUTMZoneFromGeoPoint
   	OpticalCalibration
   	OrthoRectification
   	Pansharpening
   	PixelValue
   	PolygonClassStatistics
   	PredictGMMApp
   	PredictRegression
   	Quicklook
   	RadiometricIndices
   	Rasterization
   	ReadImageInfo
   	RefineSensorModel
   	Rescale
   	RigidTransformResample
   	SARCalibration
   	SARDeburst
   	SARDecompositions
   	SARPolarMatrixConvert
   	SARPolarSynth
   	SFSTextureExtraction
   	SOMClassification
   	SampleExtraction
   	SampleSelection
   	Segmentation
   	Smoothing
   	SplitImage
   	StereoFramework
   	StereoRectificationGridGenerator
   	Superimpose
   	TestApplication
   	TileFusion
   	TrainGMMApp
   	TrainGMMSelectionApp
   	TrainImagesClassifier
   	TrainRegression
   	TrainVectorClassifier
   	VectorClassifier
   	VectorDataDSValidation
   	VectorDataExtractROI
   	VectorDataReprojection
   	VectorDataSetField
   	VectorDataTransform
   	VertexComponentAnalysis
   ERROR: No loaded application...

Almost nothing (segfault)

$ otbApplicationLauncherCommandLine ''

   Usage: otbApplicationLauncherCommandLine module_name [MODULEPATH] [arguments]

In debug:

   Usage: otbApplicationLauncherCommandLine module_name [MODULEPATH] [arguments]

On release-6.0:

   terminate called after throwing an instance of 'itk::ExceptionObject'
     what():  /home/otbval/Dashboard/src/OTB/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx:99:
   itk::ERROR: CommandLineLauncher(0x10ae9f0): No expression specified...
   /bin/sh : ligne 1 :  2046 Abandon                 (core dumped)otbApplicationLauncherCommandLine 

A bit more than almost nothing

$ otbApplicationLauncherCommandLine /tmp

   ERROR: Invalid module name: /tmp.

In debug:

   ERROR: Invalid module name: /tmp.

On release-6.0:

   ERROR: LoadApplication, no module found...
   ERROR: No loaded application...

Application errors

RadiometricIndices

$ otbcli_RadiometricIndices -in data/QB_1_ortho.tif -out /tmp/out.tif -list blabla

   2017-06-13 13:38:29 (FATAL): itk::ERROR: ListViewParameter(0x1ac5ae0): Value blabla not found in the list of choices: Vegetation:NDVI, Vegetation:TNDVI, Vegetation:RVI, Vegetation:SAVI, Vegetation:TSAVI, Vegetation:MSAVI, Vegetation:MSAVI2, Vegetation:GEMI, Vegetation:IPVI, Vegetation:LAIFromNDVILog, Vegetation:LAIFromReflLinear, Vegetation:LAIFromNDVIFormo, Water:NDWI, Water:NDWI2, Water:MNDWI, Water:NDPI, Water:NDTI, Soil:RI, Soil:CI, Soil:BI, Soil:BI2.

In debug:

   2017-06-13 13:38:29 (FATAL): itk::ERROR: ListViewParameter(0x18e7a20): Value blabla not found in the list of choices: Vegetation:NDVI, Vegetation:TNDVI, Vegetation:RVI, Vegetation:SAVI, Vegetation:TSAVI, Vegetation:MSAVI, Vegetation:MSAVI2, Vegetation:GEMI, Vegetation:IPVI, Vegetation:LAIFromNDVILog, Vegetation:LAIFromReflLinear, Vegetation:LAIFromNDVIFormo, Water:NDWI, Water:NDWI2, Water:MNDWI, Water:NDPI, Water:NDTI, Soil:RI, Soil:CI, Soil:BI, Soil:BI2.

On release-6.0:

   ERROR: Troubles in parameter setting, please check your line argument...
   itk::ERROR: ListViewParameter(0x139ac20): Value blabla not found in the list of choices: Vegetation:NDVI, Vegetation:TNDVI, Vegetation:RVI, Vegetation:SAVI, Vegetation:TSAVI, Vegetation:MSAVI, Vegetation:MSAVI2, Vegetation:GEMI, Vegetation:IPVI, Vegetation:LAIFromNDVILog, Vegetation:LAIFromReflLinear, Vegetation:LAIFromNDVIFormo, Water:NDWI, Water:NDWI2, Water:MNDWI, Water:NDPI, Water:NDTI, Soil:RI, Soil:CI, Soil:BI, Soil:BI2.
   This is the RadiometricIndices application, version 6.0.0
   Compute radiometric indices.
   
   Complete documentation: http://www.orfeo-toolbox.org/Applications/RadiometricIndices.html
   
   Parameters: 
           -progress       <boolean>        Report progress 
           -in             <string>         Input Image  (mandatory)
           -out            <string> [pixel] Output Image  [pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) (mandatory)
           -ram            <int32>          Available RAM (Mb)  (optional, off by default, default value is 128)
           -channels.blue  <int32>          Blue Channel  (mandatory, default value is 1)
           -channels.green <int32>          Green Channel  (mandatory, default value is 1)
           -channels.red   <int32>          Red Channel  (mandatory, default value is 1)
           -channels.nir   <int32>          NIR Channel  (mandatory, default value is 1)
           -channels.mir   <int32>          Mir Channel  (mandatory, default value is 1)
           -list           <string list>    Available Radiometric Indices  (mandatory, default value is ndvi)
           -inxml          <string>         Load otb application from xml file  (optional, off by default)
   
   Examples: 
   otbcli_RadiometricIndices -in qb_RoadExtract.tif -list Vegetation:NDVI Vegetation:RVI Vegetation:IPVI -out RadiometricIndicesImage.tif
   

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('RadiometricIndices')
   app.IN = 'data/QB_1_ortho.tif'
   app.SetParameterStringList('list', 'blabla')
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 4, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 896, in SetParameterStringList
       def SetParameterStringList(self, *args): return _otbApplication.Application_SetParameterStringList(self, *args)
   RuntimeError: Exception thrown in otbApplication Application_SetParameterStringList: /home/poughov/cnes/dev/otb/Modules/Wrappers/ApplicationEngine/src/otbWrapperListViewParameter.cxx:194:
   itk::ERROR: ListViewParameter(0x2a1ce80): Value b not found in the list of choices: Vegetation:NDVI, Vegetation:TNDVI, Vegetation:RVI, Vegetation:SAVI, Vegetation:TSAVI, Vegetation:MSAVI, Vegetation:MSAVI2, Vegetation:GEMI, Vegetation:IPVI, Vegetation:LAIFromNDVILog, Vegetation:LAIFromReflLinear, Vegetation:LAIFromNDVIFormo, Water:NDWI, Water:NDWI2, Water:MNDWI, Water:NDPI, Water:NDTI, Soil:RI, Soil:CI, Soil:BI, Soil:BI2.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 4, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 896, in SetParameterStringList
       def SetParameterStringList(self, *args): return _otbApplication.Application_SetParameterStringList(self, *args)
   RuntimeError: Exception thrown in otbApplication Application_SetParameterStringList: /home/poughov/cnes/dev/otb/Modules/Wrappers/ApplicationEngine/src/otbWrapperListViewParameter.cxx:194:
   itk::ERROR: ListViewParameter(0x21652d0): Value b not found in the list of choices: Vegetation:NDVI, Vegetation:TNDVI, Vegetation:RVI, Vegetation:SAVI, Vegetation:TSAVI, Vegetation:MSAVI, Vegetation:MSAVI2, Vegetation:GEMI, Vegetation:IPVI, Vegetation:LAIFromNDVILog, Vegetation:LAIFromReflLinear, Vegetation:LAIFromNDVIFormo, Water:NDWI, Water:NDWI2, Water:MNDWI, Water:NDPI, Water:NDTI, Soil:RI, Soil:CI, Soil:BI, Soil:BI2.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 4, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 898, in SetParameterStringList
       def SetParameterStringList(self, *args): return _otbApplication.Application_SetParameterStringList(self, *args)
   RuntimeError: Exception thrown in otbApplication Application_SetParameterStringList: /home/otbval/Dashboard/src/OTB/Modules/Wrappers/ApplicationEngine/src/otbWrapperListViewParameter.cxx:194:
   itk::ERROR: ListViewParameter(0x156fe70): Value b not found in the list of choices: Vegetation:NDVI, Vegetation:TNDVI, Vegetation:RVI, Vegetation:SAVI, Vegetation:TSAVI, Vegetation:MSAVI, Vegetation:MSAVI2, Vegetation:GEMI, Vegetation:IPVI, Vegetation:LAIFromNDVILog, Vegetation:LAIFromReflLinear, Vegetation:LAIFromNDVIFormo, Water:NDWI, Water:NDWI2, Water:MNDWI, Water:NDPI, Water:NDTI, Soil:RI, Soil:CI, Soil:BI, Soil:BI2.

PixelValue

$ otbcli_PixelValue -in ~/cnes/dev/otb-data/Examples/QB_1_ortho.tif -coordx 50 -coordy -6

   2017-06-13 13:38:29 (FATAL): Requested region is (at least partially) outside the largest possible region.

In debug:

   2017-06-13 13:38:29 (FATAL): Requested region is (at least partially) outside the largest possible region.

On release-6.0:

   2017 Jun 13 13:38:29  :  Application.logger  (FATAL) The following error occurred during application execution : /home2/otbval/Dashboard/build/OTB-SuperBuild-stable/ITK/src/ITK/Modules/Core/Common/src/itkDataObject.cxx:393:
   Requested region is (at least partially) outside the largest possible region.

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('PixelValue')
   app.COORDX = 50
   app.IN = '/home/poughov/cnes/dev/otb-data/Examples/QB_1_ortho.tif'
   app.COORDY = -6
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   Traceback (most recent call last):
     File "<string>", line 6, in <module>
     File "/home/poughov/build/SuperBuild-develop-releasemode/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/build/SuperBuild-develop-releasemode/ITK/src/ITK/Modules/Core/Common/src/itkDataObject.cxx:393:
   Requested region is (at least partially) outside the largest possible region.

Output on better_error_messages branch (in Debug):

   Traceback (most recent call last):
     File "<string>", line 6, in <module>
     File "/home/poughov/build/SuperBuild-develop/install/lib/otb/python/otbApplication.py", line 872, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home/poughov/build/SuperBuild-develop/ITK/src/ITK/Modules/Core/Common/src/itkDataObject.cxx:393:
   Requested region is (at least partially) outside the largest possible region.

Output on release-6.0:

   Traceback (most recent call last):
     File "<string>", line 6, in <module>
     File "/home/poughov/Téléchargements/OTB-contrib-6.0.0-Linux64/lib/python/otbApplication.py", line 874, in ExecuteAndWriteOutput
       def ExecuteAndWriteOutput(self): return _otbApplication.Application_ExecuteAndWriteOutput(self)
   RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /home2/otbval/Dashboard/build/OTB-SuperBuild-stable/ITK/src/ITK/Modules/Core/Common/src/itkDataObject.cxx:393:
   Requested region is (at least partially) outside the largest possible region.

ConcatenateImage

$ otbcli_ConcatenateImages -il data/QB_1_ortho.tif data/Circle.png -out /tmp/out.tif

   2017-06-13 13:38:30 (FATAL): itk::ERROR: ConcatenateImages(0x107ecd0): Input Image size mismatch...

In debug:

   2017-06-13 13:38:30 (FATAL): itk::ERROR: ConcatenateImages(0x12c1be0): Input Image size mismatch...

On release-6.0:

   2017 Jun 13 13:38:30  :  Application.logger  (FATAL) The following error occurred during application execution : /home/otbval/Dashboard/src/OTB/Modules/Applications/AppImageUtils/app/otbConcatenateImages.cxx:123:
   itk::ERROR: ConcatenateImages(0x1cac160): Input Image size mismatch...

Correct parameters

ReadImageInfo

$ otbcli_ReadImageInfo -in data/QB_1_ortho.tif

   2017-06-13 13:38:30 (INFO): 
   Image general information:
   	Number of bands : 4
   	No data flags : Not found
   	Start index :  [0,0]
   	Size :  [512,512]
   	Origin :  [370588,4.83177e+06]
   	Spacing :  [2.55939,-2.76378]
   	Estimated ground spacing (in meters): [2.55293,2.76626]
   
   Image acquisition information:
   	Sensor : QB02
   	Image identification number: 02APR01105228-M1BS-000000128955_01_P001
   	Image projection : PROJCS["WGS 84 / UTM zone 31N",
       GEOGCS["WGS 84",
           DATUM["WGS_1984",
               SPHEROID["WGS 84",6378137,298.257223563,
                   AUTHORITY["EPSG","7030"]],
               AUTHORITY["EPSG","6326"]],
           PRIMEM["Greenwich",0,
               AUTHORITY["EPSG","8901"]],
           UNIT["degree",0.0174532925199433,
               AUTHORITY["EPSG","9122"]],
           AUTHORITY["EPSG","4326"]],
       PROJECTION["Transverse_Mercator"],
       PARAMETER["latitude_of_origin",0],
       PARAMETER["central_meridian",3],
       PARAMETER["scale_factor",0.9996],
       PARAMETER["false_easting",500000],
       PARAMETER["false_northing",0],
       UNIT["metre",1,
           AUTHORITY["EPSG","9001"]],
       AXIS["Easting",EAST],
       AXIS["Northing",NORTH],
       AUTHORITY["EPSG","32631"]]
   	Acquisition time : 2002-04-01T10:52:00
   	Country : France
   	Town : Rangueuil
   
   Image footprint coordinates:
   	Upper left corner (latitude, longitude) = [43.6635,1.35446]
   	Upper right corner (latitude, longitude) = [43.6638,1.57255]
   	Lower left corner (latitude, longitude) = [43.4877,1.35617]
   	Lower right corner (latitude, longitude) = [43.488,1.57224]
   
   Image default RGB composition:
   	[R, G, B] = [2,1,0]
   
   Ground control points information:
   	Number of GCPs = 0
   	GCPs projection = 
   
   Output parameters value:
   indexx: 0
   indexy: 0
   sizex: 512
   sizey: 512
   spacingx: 2.559390068
   spacingy: -2.763780117
   originx: 370587.5312
   originy: 4831766.5
   estimatedgroundspacingx: 2.552932024
   estimatedgroundspacingy: 2.76625824
   numberbands: 4
   sensor: QB02
   id: 02APR01105228-M1BS-000000128955_01_P001
   time: 2002-04-01T10:52:00
   ullat: 43.66353607
   ullon: 1.354463339
   urlat: 43.6638298
   urlon: 1.572546124
   lrlat: 43.487957
   lrlon: 1.57224226
   lllat: 43.48768997
   lllon: 1.356172442
   town: Rangueuil
   country: France
   rgb.r: 2
   rgb.g: 1
   rgb.b: 0
   projectionref: PROJCS["WGS 84 / UTM zone 31N",
       GEOGCS["WGS 84",
           DATUM["WGS_1984",
               SPHEROID["WGS 84",6378137,298.257223563,
                   AUTHORITY["EPSG","7030"]],
               AUTHORITY["EPSG","6326"]],
           PRIMEM["Greenwich",0,
               AUTHORITY["EPSG","8901"]],
           UNIT["degree",0.0174532925199433,
               AUTHORITY["EPSG","9122"]],
           AUTHORITY["EPSG","4326"]],
       PROJECTION["Transverse_Mercator"],
       PARAMETER["latitude_of_origin",0],
       PARAMETER["central_meridian",3],
       PARAMETER["scale_factor",0.9996],
       PARAMETER["false_easting",500000],
       PARAMETER["false_northing",0],
       UNIT["metre",1,
           AUTHORITY["EPSG","9001"]],
       AXIS["Easting",EAST],
       AXIS["Northing",NORTH],
       AUTHORITY["EPSG","32631"]]
   keyword: 
   gcp.count: 0
   gcp.proj: 
   gcp.ids: 
   gcp.info: 
   gcp.imcoord: 
   gcp.geocoord: 
   

In debug:

   2017-06-13 13:38:31 (INFO): 
   Image general information:
   	Number of bands : 4
   	No data flags : Not found
   	Start index :  [0,0]
   	Size :  [512,512]
   	Origin :  [370588,4.83177e+06]
   	Spacing :  [2.55939,-2.76378]
   	Estimated ground spacing (in meters): [2.55293,2.76626]
   
   Image acquisition information:
   	Sensor : QB02
   	Image identification number: 02APR01105228-M1BS-000000128955_01_P001
   	Image projection : PROJCS["WGS 84 / UTM zone 31N",
       GEOGCS["WGS 84",
           DATUM["WGS_1984",
               SPHEROID["WGS 84",6378137,298.257223563,
                   AUTHORITY["EPSG","7030"]],
               AUTHORITY["EPSG","6326"]],
           PRIMEM["Greenwich",0,
               AUTHORITY["EPSG","8901"]],
           UNIT["degree",0.0174532925199433,
               AUTHORITY["EPSG","9122"]],
           AUTHORITY["EPSG","4326"]],
       PROJECTION["Transverse_Mercator"],
       PARAMETER["latitude_of_origin",0],
       PARAMETER["central_meridian",3],
       PARAMETER["scale_factor",0.9996],
       PARAMETER["false_easting",500000],
       PARAMETER["false_northing",0],
       UNIT["metre",1,
           AUTHORITY["EPSG","9001"]],
       AXIS["Easting",EAST],
       AXIS["Northing",NORTH],
       AUTHORITY["EPSG","32631"]]
   	Acquisition time : 2002-04-01T10:52:00
   	Country : France
   	Town : Rangueuil
   
   Image footprint coordinates:
   	Upper left corner (latitude, longitude) = [43.6635,1.35446]
   	Upper right corner (latitude, longitude) = [43.6638,1.57255]
   	Lower left corner (latitude, longitude) = [43.4877,1.35617]
   	Lower right corner (latitude, longitude) = [43.488,1.57224]
   
   Image default RGB composition:
   	[R, G, B] = [2,1,0]
   
   Ground control points information:
   	Number of GCPs = 0
   	GCPs projection = 
   
   Output parameters value:
   indexx: 0
   indexy: 0
   sizex: 512
   sizey: 512
   spacingx: 2.559390068
   spacingy: -2.763780117
   originx: 370587.5312
   originy: 4831766.5
   estimatedgroundspacingx: 2.552932024
   estimatedgroundspacingy: 2.76625824
   numberbands: 4
   sensor: QB02
   id: 02APR01105228-M1BS-000000128955_01_P001
   time: 2002-04-01T10:52:00
   ullat: 43.66353607
   ullon: 1.354463339
   urlat: 43.6638298
   urlon: 1.572546124
   lrlat: 43.487957
   lrlon: 1.57224226
   lllat: 43.48768997
   lllon: 1.356172442
   town: Rangueuil
   country: France
   rgb.r: 2
   rgb.g: 1
   rgb.b: 0
   projectionref: PROJCS["WGS 84 / UTM zone 31N",
       GEOGCS["WGS 84",
           DATUM["WGS_1984",
               SPHEROID["WGS 84",6378137,298.257223563,
                   AUTHORITY["EPSG","7030"]],
               AUTHORITY["EPSG","6326"]],
           PRIMEM["Greenwich",0,
               AUTHORITY["EPSG","8901"]],
           UNIT["degree",0.0174532925199433,
               AUTHORITY["EPSG","9122"]],
           AUTHORITY["EPSG","4326"]],
       PROJECTION["Transverse_Mercator"],
       PARAMETER["latitude_of_origin",0],
       PARAMETER["central_meridian",3],
       PARAMETER["scale_factor",0.9996],
       PARAMETER["false_easting",500000],
       PARAMETER["false_northing",0],
       UNIT["metre",1,
           AUTHORITY["EPSG","9001"]],
       AXIS["Easting",EAST],
       AXIS["Northing",NORTH],
       AUTHORITY["EPSG","32631"]]
   keyword: 
   gcp.count: 0
   gcp.proj: 
   gcp.ids: 
   gcp.info: 
   gcp.imcoord: 
   gcp.geocoord: 
   

On release-6.0:

   2017 Jun 13 13:38:31  :  Application.logger  (INFO) 
   Image general information:
   	Number of bands : 4
   	No data flags : Not found
   	Start index :  [0,0]
   	Size :  [512,512]
   	Origin :  [370588,4.83177e+06]
   	Spacing :  [2.55939,-2.76378]
   	Estimated ground spacing (in meters): [2.55293,2.76626]
   
   Image acquisition information:
   	Sensor : QB02
   	Image identification number: 02APR01105228-M1BS-000000128955_01_P001
   	Image projection : PROJCS["WGS 84 / UTM zone 31N",
       GEOGCS["WGS 84",
           DATUM["WGS_1984",
               SPHEROID["WGS 84",6378137,298.257223563,
                   AUTHORITY["EPSG","7030"]],
               AUTHORITY["EPSG","6326"]],
           PRIMEM["Greenwich",0,
               AUTHORITY["EPSG","8901"]],
           UNIT["degree",0.0174532925199433,
               AUTHORITY["EPSG","9122"]],
           AUTHORITY["EPSG","4326"]],
       PROJECTION["Transverse_Mercator"],
       PARAMETER["latitude_of_origin",0],
       PARAMETER["central_meridian",3],
       PARAMETER["scale_factor",0.9996],
       PARAMETER["false_easting",500000],
       PARAMETER["false_northing",0],
       UNIT["metre",1,
           AUTHORITY["EPSG","9001"]],
       AXIS["Easting",EAST],
       AXIS["Northing",NORTH],
       AUTHORITY["EPSG","32631"]]
   	Acquisition time : 2002-04-01T10:52:00
   	Country : France
   	Town : Rangueuil
   
   Image footprint coordinates:
   	Upper left corner (latitude, longitude) = [43.6635,1.35446]
   	Upper right corner (latitude, longitude) = [43.6638,1.57255]
   	Lower left corner (latitude, longitude) = [43.4877,1.35617]
   	Lower right corner (latitude, longitude) = [43.488,1.57224]
   
   Image default RGB composition:
   	[R, G, B] = [2,1,0]
   
   Ground control points information:
   	Number of GCPs = 0
   	GCPs projection = 
   
   Output parameters value:
   indexx: 0
   indexy: 0
   sizex: 512
   sizey: 512
   spacingx: 2.559390068
   spacingy: -2.763780117
   originx: 370587.5312
   originy: 4831766.5
   estimatedgroundspacingx: 2.552932024
   estimatedgroundspacingy: 2.76625824
   numberbands: 4
   sensor: QB02
   id: 02APR01105228-M1BS-000000128955_01_P001
   time: 2002-04-01T10:52:00
   ullat: 43.66353607
   ullon: 1.354463339
   urlat: 43.6638298
   urlon: 1.572546124
   lrlat: 43.487957
   lrlon: 1.57224226
   lllat: 43.48768997
   lllon: 1.356172442
   town: Rangueuil
   country: France
   rgb.r: 2
   rgb.g: 1
   rgb.b: 0
   projectionref: PROJCS["WGS 84 / UTM zone 31N",
       GEOGCS["WGS 84",
           DATUM["WGS_1984",
               SPHEROID["WGS 84",6378137,298.257223563,
                   AUTHORITY["EPSG","7030"]],
               AUTHORITY["EPSG","6326"]],
           PRIMEM["Greenwich",0,
               AUTHORITY["EPSG","8901"]],
           UNIT["degree",0.0174532925199433,
               AUTHORITY["EPSG","9122"]],
           AUTHORITY["EPSG","4326"]],
       PROJECTION["Transverse_Mercator"],
       PARAMETER["latitude_of_origin",0],
       PARAMETER["central_meridian",3],
       PARAMETER["scale_factor",0.9996],
       PARAMETER["false_easting",500000],
       PARAMETER["false_northing",0],
       UNIT["metre",1,
           AUTHORITY["EPSG","9001"]],
       AXIS["Easting",EAST],
       AXIS["Northing",NORTH],
       AUTHORITY["EPSG","32631"]]
   keyword: 
   gcp.count: 0
   gcp.proj: 
   gcp.ids: 
   gcp.info: 
   gcp.imcoord: 
   gcp.geocoord: 
   

Convert

$ otbcli_Convert -in data/QB_1_ortho.tif -out /tmp/out.tif -progress false

   [no output]

In debug:

   [no output]

On release-6.0:

   [no output]

BandMath

$ otbcli_BandMath -il data/QB_1_ortho.tif -out /tmp/out.tif -exp '1' -progress false

   2017-06-13 13:38:31 (INFO): Image #1 has 4 components
   

In debug:

   2017-06-13 13:38:31 (INFO): Image #1 has 4 components
   

On release-6.0:

   2017 Jun 13 13:38:31  :  Application.logger  (INFO) Image #1 has 4 components
   

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('BandMath')
   app.SetParameterStringList('il', ['data/QB_1_ortho.tif'])
   app.OUT = '/tmp/out.tif'
   app.EXP = '1'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   [no output]

Output on better_error_messages branch (in Debug):

   [no output]

Output on release-6.0:

   [no output]

BandMathX

$ otbcli_BandMathX -il data/QB_1_ortho.tif -out /tmp/out.tif -exp '1' -progress false

   2017-06-13 13:38:32 (INFO): Image #1 has 4 components
   2017-06-13 13:38:32 (INFO): Using expression : 1

In debug:

   2017-06-13 13:38:32 (INFO): Image #1 has 4 components
   2017-06-13 13:38:32 (INFO): Using expression : 1

On release-6.0:

   2017 Jun 13 13:38:32  :  Application.logger  (INFO) Image #1 has 4 components
   2017 Jun 13 13:38:32  :  Application.logger  (INFO) Using expression : 1

Rescale

$ otbcli_Rescale -in data/QB_1_ortho.tif -out /tmp/out.tif -progress false

   [no output]

In debug:

   [no output]

On release-6.0:

   2017 Jun 13 13:38:33  :  Application.logger  (DEBUG) Starting Min/Max computation
   2017 Jun 13 13:38:33  :  Application.logger  (DEBUG) Min/Max computation done : min=[185.401, 224.62, 107.775, 99.3083] max=[1964.89, 1992.82, 1964.4, 2016.54]

Python API:

Code:

   import otbApplication
   app = otbApplication.Registry.CreateApplication('Rescale')
   app.IN = 'data/QB_1_ortho.tif'
   app.OUT = '/tmp/out.tif'
   app.ExecuteAndWriteOutput()

Output on better_error_messages branch:

   [no output]

Output on better_error_messages branch (in Debug):

   [no output]

Output on release-6.0:

   [no output]