# Cosmo Skymed Orthorectification

**URL:** <https://forum.orfeo-toolbox.org/t/cosmo-skymed-orthorectification/1268>\
**Category:** OTB Usage\
**Created:** [February 28, 2022, 11:16am UTC](https://forum.orfeo-toolbox.org/t/cosmo-skymed-orthorectification/1268 "2022-02-28T11:16:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilapen](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/i/b487fb/32.png) [@ilapen](https://forum.orfeo-toolbox.org/u/ilapen)\
**Post date:** [February 28, 2022, 11:16am UTC](https://forum.orfeo-toolbox.org/t/cosmo-skymed-orthorectification/1268/1 "2022-02-28T11:16:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![julienosman](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@julienosman](https://forum.orfeo-toolbox.org/u/julienosman)\
**Post date:** [February 28, 2022, 1:52pm UTC](https://forum.orfeo-toolbox.org/t/cosmo-skymed-orthorectification/1268/2 "2022-02-28T13:52:01Z")

</div>

I am not sure Orthorectification is available for CosmoSkymed products with OTB 7.4. It is not listed in [the CookBook](https://www.orfeo-toolbox.org/CookBook/Applications/app_OrthoRectification.html#limitations).

The future OTB 8.0 [should fix this](https://www.orfeo-toolbox.org/CookBook/Applications/app_OrthoRectification.html#limitations). You may want to [give it a try](https://forum.orfeo-toolbox.org/t/otb-8-0-0-release-candidate-n-2/1246).

---

<div class="post-metadata">

**Author:** ![ilapen](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/i/b487fb/32.png) [@ilapen](https://forum.orfeo-toolbox.org/u/ilapen)\
**Post date:** [March 3, 2022, 2:04pm UTC](https://forum.orfeo-toolbox.org/t/cosmo-skymed-orthorectification/1268/3 "2022-03-03T14:04:01Z")

</div>

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

 ![Cattura](https://forum.orfeo-toolbox.org/uploads/default/original/1X/8ea4f4dbe85e81b2dbbeaa504d8de65d87a6fbae.jpeg)  
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!

---

<div class="post-metadata">

**Author:** ![julienosman](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@julienosman](https://forum.orfeo-toolbox.org/u/julienosman)\
**Post date:** [March 11, 2022, 7:38am UTC](https://forum.orfeo-toolbox.org/t/cosmo-skymed-orthorectification/1268/4 "2022-03-11T07:38:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ilapen](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/i/b487fb/32.png) [@ilapen](https://forum.orfeo-toolbox.org/u/ilapen)\
**Post date:** [March 11, 2022, 10:07am UTC](https://forum.orfeo-toolbox.org/t/cosmo-skymed-orthorectification/1268/5 "2022-03-11T10:07:52Z")

</div>

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

```auto
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!
