Cosmo Skymed Orthorectification

hi,
I am doing elaborations on Cosmo Skymed images (.h5 file format) and I have found problems with orthorectification in Geometry tab. Could anyone tell me all the steps or option you need to get to a good orthorectification with otb tools? I tried all Parameters estimation modes but the the log dialog give errors every time. Thank you for your availability.

I am not sure Orthorectification is available for CosmoSkymed products with OTB 7.4. It is not listed in the CookBook.

The future OTB 8.0 should fix this. You may want to give it a try.

Hello,
I tested OTB 8.0 but the output using my SCK stripmap image is stretched and deformed. Here is an example:


Even if I set the correct sizeX/Y and pixel spacing my output doesn’t overlap correctly to Google maps (for example). I tried all Parameters estimation modes but the output is always the same.
Could someone help me?
Thanks!

I don’t see where the problem comes from. Can you share with us the command line you entered and the output logs?

Hello!
Here is the output log where you can find also the command line.

2022-03-11 10:51:32 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:51:32 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:51:35 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:51:35 (INFO) OrthoRectification: Output X ground spacing in meter = 1.6409

2022-03-11 10:51:35 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:51:35 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.67754e-05 degrees

2022-03-11 10:51:35 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:51:35 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:51:54 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:51:54 (INFO) OrthoRectification: Output X ground spacing in meter = 1.6409

2022-03-11 10:51:54 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:51:54 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.67754e-05 degrees

2022-03-11 10:51:54 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:51:54 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:51:56 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:51:56 (INFO) OrthoRectification: Output X ground spacing in meter = 1.6409

2022-03-11 10:51:56 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:51:56 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.67754e-05 degrees

2022-03-11 10:51:56 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:51:56 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:11 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:11 (INFO) OrthoRectification: Output X ground spacing in meter = 1.6409

2022-03-11 10:52:11 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:52:11 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.67754e-05 degrees

2022-03-11 10:52:11 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:52:11 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:14 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:14 (INFO) OrthoRectification: Output X ground spacing in meter = 1.63933

2022-03-11 10:52:14 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:52:14 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68201e-05 degrees

2022-03-11 10:52:14 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:52:14 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:28 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:28 (INFO) OrthoRectification: Output X ground spacing in meter = 1.63933

2022-03-11 10:52:28 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:52:28 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68201e-05 degrees

2022-03-11 10:52:28 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:52:28 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:30 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:30 (INFO) OrthoRectification: Output X ground spacing in meter = 1.63933

2022-03-11 10:52:30 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:52:30 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68201e-05 degrees

2022-03-11 10:52:30 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:52:30 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:36 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:36 (INFO) OrthoRectification: Output X ground spacing in meter = 1.63933

2022-03-11 10:52:36 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:52:36 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68201e-05 degrees

2022-03-11 10:52:36 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:52:36 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:41 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:41 (INFO) OrthoRectification: Output X ground spacing in meter = 1.6437

2022-03-11 10:52:41 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:52:41 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.66956e-05 degrees

2022-03-11 10:52:41 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:52:41 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:44 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:44 (INFO) OrthoRectification: Output X ground spacing in meter = 1.6437

2022-03-11 10:52:44 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:52:44 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.66956e-05 degrees

2022-03-11 10:52:44 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:52:44 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:46 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:46 (INFO) OrthoRectification: Output X ground spacing in meter = 1.6437

2022-03-11 10:52:46 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:52:46 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.66956e-05 degrees

2022-03-11 10:52:46 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:52:46 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:48 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:48 (INFO) OrthoRectification: Output X ground spacing in meter = 1.97244

2022-03-11 10:52:48 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:52:48 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68375e-05 degrees

2022-03-11 10:52:48 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:52:48 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:50 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:50 (INFO) OrthoRectification: Output X ground spacing in meter = 1.97244

2022-03-11 10:52:50 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.12087

2022-03-11 10:52:50 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68375e-05 degrees

2022-03-11 10:52:50 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.61897e-05 degrees

2022-03-11 10:52:50 (INFO) OrthoRectification: Setting grid spacing to 3.61897e-05

2022-03-11 10:52:53 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:53 (INFO) OrthoRectification: Output X ground spacing in meter = 1.97356

2022-03-11 10:52:53 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.54505

2022-03-11 10:52:53 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68111e-05 degrees

2022-03-11 10:52:53 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.62996e-05 degrees

2022-03-11 10:52:53 (INFO) OrthoRectification: Setting grid spacing to 3.62996e-05

2022-03-11 10:52:57 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:52:57 (INFO) OrthoRectification: Output X ground spacing in meter = 1.97356

2022-03-11 10:52:57 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.54505

2022-03-11 10:52:57 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68111e-05 degrees

2022-03-11 10:52:57 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.62996e-05 degrees

2022-03-11 10:52:57 (INFO) OrthoRectification: Setting grid spacing to 3.62996e-05

2022-03-11 10:53:02 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:53:02 (INFO) OrthoRectification: Output X ground spacing in meter = 1.97356

2022-03-11 10:53:02 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.54505

2022-03-11 10:53:02 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68111e-05 degrees

2022-03-11 10:53:02 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.62996e-05 degrees

2022-03-11 10:53:02 (INFO) OrthoRectification: Setting grid spacing to 3.62996e-05

2022-03-11 10:53:02 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:53:02 (INFO) OrthoRectification: Output X ground spacing in meter = 1.97356

2022-03-11 10:53:02 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.54505

2022-03-11 10:53:02 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68111e-05 degrees

2022-03-11 10:53:02 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.62996e-05 degrees

2022-03-11 10:53:02 (INFO) OrthoRectification: Setting grid spacing to 3.62996e-05

2022-03-11 10:53:10 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:53:10 (INFO) OrthoRectification: Elevation management: using DEM directory ('myfolder_dem_10m_wgs84')

2022-03-11 10:53:10 (INFO) OrthoRectification: Output X ground spacing in meter = 1.97356

2022-03-11 10:53:10 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.54505

2022-03-11 10:53:10 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68111e-05 degrees

2022-03-11 10:53:10 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.62996e-05 degrees

2022-03-11 10:53:10 (INFO) OrthoRectification: Setting grid spacing to 3.62996e-05

2022-03-11 10:53:22 (INFO) OrthoRectification: Default RAM limit for OTB is 256 MB

2022-03-11 10:53:22 (INFO) OrthoRectification: GDAL maximum cache size is 1634 MB

2022-03-11 10:53:22 (INFO) OrthoRectification: OTB will use at most 8 threads

2022-03-11 10:53:22 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 10:53:22 (INFO) OrthoRectification: Elevation management: using DEM directory ('myfolder_dem_10m_wgs84')

2022-03-11 10:53:22 (INFO) OrthoRectification: Output X ground spacing in meter = 1.97356

2022-03-11 10:53:22 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.54505

2022-03-11 10:53:22 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68111e-05 degrees

2022-03-11 10:53:22 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.62996e-05 degrees

2022-03-11 10:53:22 (INFO) OrthoRectification: Setting grid spacing to 3.62996e-05

2022-03-11 10:53:22 (INFO) OrthoRectification: Generating output with size = [22333, 20334]

2022-03-11 10:53:22 (INFO) OrthoRectification: Generating output with pixel spacing = [2.30961e-05, -2.30961e-05]

2022-03-11 10:53:22 (INFO) OrthoRectification: Generating output with origin = [8.86821, 39.3889]

2022-03-11 10:53:22 (INFO) OrthoRectification: Area outside input image bounds will have a pixel value of [0]

2022-03-11 10:53:22 (INFO) OrthoRectification: Using a deformation grid with a physical spacing of 3.62996e-05

2022-03-11 10:53:22 (INFO) OrthoRectification: Using a deformation grid of size [14209.7, 12937.8]

2022-03-11 10:53:25 (INFO) OrthoRectification: otbcli_OrthoRectification.bat -io.in 'my_input_file' -io.out 'my_output_file' int16 -map wgs -outputs.ulx 8.868199 -outputs.uly 39.38895 -outputs.sizex 22333 -outputs.sizey 20334 -outputs.spacingx 2.30961e-05 -outputs.spacingy -2.30961e-05 -elev.dem 'myfolder_dem_10m_wgs84' -opt.ram 256 
2022-03-11 10:55:24 (INFO) OrthoRectification: otbcli_OrthoRectification.bat -io.in 'my_input_file' -io.out 'my_output_file' int16 -map wgs -outputs.ulx 8.868199 -outputs.uly 39.38895 -outputs.sizex 22333 -outputs.sizey 20334 -outputs.spacingx 2.30961e-05 -outputs.spacingy -2.30961e-05 -elev.dem 'myfolder_dem_10m_wgs84' -opt.ram 256 
2022-03-11 11:00:44 (INFO) OrthoRectification: Elevation management: setting default height above ellipsoid to 0 meters

2022-03-11 11:00:44 (INFO) OrthoRectification: Elevation management: using DEM directory ('myfolder_dem_10m_wgs84')

2022-03-11 11:00:44 (INFO) OrthoRectification: Output X ground spacing in meter = 1.97356

2022-03-11 11:00:44 (INFO) OrthoRectification: Output Y ground spacing in meter = 2.54505

2022-03-11 11:00:44 (INFO) OrthoRectification: 4 meters in X direction correspond roughly to 4.68111e-05 degrees

2022-03-11 11:00:44 (INFO) OrthoRectification: 4 meters in Y direction correspond roughly to -3.62996e-05 degrees

2022-03-11 11:00:44 (INFO) OrthoRectification: Setting grid spacing to 3.62996e-05

2022-03-11 11:00:44 (INFO) OrthoRectification: Execution took 442.023 sec

Thanks!