Pansharpen and Orthorectification fails for PLEIADES data
Description
I have a PLEIADES data set (Pan and MS) and a DEM (in UTM zone 34) which was created from Lidar Data. I am trying to Pansharpen and OrthoRectify the data in a workflow by linking both processes as given below in the code via appOrtho.ConnectImage.
I used OTB through Python in Ubuntu and seeing the following termination error:
ERROR 1: PROJ: utm: Invalid longitude
Also, even though I have provided the DEM, I am getting the following message:
(INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters
NOTE: If I run the process independently, the BundleToPerfectSensor runs successfully and I get a Pansharpened image. Then if I input the Pansharpened output from BundleToPerfectSensor into the next OrthoRectification process, I get the same error message.
IMPORTANT: If I pass the .JP2 files for PLEIADES instead of .xml, the process runs successfully.
Moreover, I also tried by first translating input MS and PAN to .tif via GDAL, and tried the process, I get the same error message.
Steps to reproduce
Here are the steps: ` inxs = "/home/user/data/input/6954017101/IMG_PHR1B_MS_002/DIM_PHR1B_MS_202403250848099_SEN_6954017101-2.XML" inp = "/home/user/data/input//6954017101/IMG_PHR1B_P_001/DIM_PHR1B_P_202403250848099_SEN_6954017101-1.XML" output = "/home/user/data/output/ortho_img.tiff" dem_dir = "/home/user/data/dem"
pspram = { "inp":inp, "inxs":inxs, "out":"inmem_PXS.tif" }
prm_ortho = { "io.out": output, "elev.dem": dem_dir, "map.utm.zone": 34, }
appPXS= otb.Registry.CreateApplication("BundleToPerfectSensor")
appPXS.SetParameters(pspram)
appOrtho= otb.Registry.CreateApplication("OrthoRectification") appOrtho.ConnectImage("io.in", appPXS, "out") appOrtho.SetParameters(prm_ortho)
appOrtho.ExecuteAndWriteOutput()
Configuration information
OS: Ubuntu OTB: OTB-9.0.0