BundleToPerfectSensor needs default mode for some PHR images
Description
The application BundleToPerfectSensor needs to be in default mode when running on orthorectified PHR images. If we don't set this mode, there are two messages :
- a warning : OTB does not recognize sensor -> use default mode
- the extents of PAN and XS images do not match
When we add the default mode, it works fine.
It had been reproduced with PHR extracts from OTB Workshop dataset, and also from official PHR products (using either the DIMAP or the orthorectified PAN and XS images from the DIMAP).
Steps to reproduce
These commands were run to obtain a pansharpened orthorectified image : the second way to obtain it needs the default mode to be set.
#!/bin/sh
VER=$1
mkdir -p Workshop_Results/Tests_OTB_${VER}/step5_BDS_sensor
mkdir -p Workshop_Results/Tests_OTB_${VER}/step6_ortho
mkdir -p Workshop_Results/Tests_OTB_${VER}/step7_ortho
mkdir -p Workshop_Results/Tests_OTB_${VER}/step8_BDS_ortho
otbcli_BundleToPerfectSensor -inp WorkshopData/preprocessing/phr_pan_osr_mipy.tif -inxs WorkshopData/preprocessi
ng/phr_xs_osr_mipy.tif -out Workshop_Results/Tests_OTB_${VER}/step5_BDS_sensor/PXS_sensor.tif
otbcli_OrthoRectification -io.in Workshop_Results/Tests_OTB_${VER}/step5_BDS_sensor/PXS_sensor.tif -io.out Works
hop_Results/Tests_OTB_${VER}/step6_ortho/PXS_ortho_1.tif
otbcli_OrthoRectification -io.in WorkshopData/preprocessing/phr_pan_osr_mipy.tif -io.out Workshop_Results/Tests_
OTB_${VER}/step7_ortho/pan_ortho.tif
otbcli_OrthoRectification -io.in WorkshopData/preprocessing/phr_xs_osr_mipy.tif -io.out Workshop_Results/Tests_O
TB_${VER}/step7_ortho/xs_ortho.tif
otbcli_BundleToPerfectSensor -inp Workshop_Results/Tests_OTB_${VER}/step7_ortho/pan_ortho.tif -inxs Workshop_Res
ults/Tests_OTB_${VER}/step7_ortho/xs_ortho.tif -out Workshop_Results/Tests_OTB_${VER}/step8_BDS_ortho/PXS_ortho_
default_mode.tif -mode default
Configuration information
OTB 8.1rc2