ENH : Wiki for DiapOTB module authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
# SARDEMGrid
Computes deformation DEM grid.
## Description
This application creates a deformation grid related to the DEM with projections into Master and Slave SAR geometries.
The output grid is a VectorImage composed of three values : shift in range, shift in azimut and a number of DEM points for contribution. The inputs of this application are SAR images. This application can directly take the projected DEM as inputs.
## Parameters
**Input SAR Master image** `-insarmaster image` *Mandatory* <br />
Master SAR Image.
**Input SAR Slave image** `-insarslave image` *Mandatory* <br />
Slave SAR Image.
**Input DEM** `-indem image` *Mandatory* <br />
Input DEM.
**Input vector of DEM projected into SAR Master geometry** `-indemprojmaster image` <br />
Input vector of DEM projected into SAR Master geometry.
**Input vector of DEM projected into SAR Slave geometry** `-indemprojslave image` <br />
Input vector of DEM projected into SAR Slave geometry.
**Output DEM grid (Vector Image)** `-out image [dtype]` *Mandatory* <br />
Output DEM Grid Vector Image (Shift_ran, Shift_azi, NbDEMPts for contribution).
**MultiLook factor on distance** `-mlran int` *Default value: 3* <br />
MultiLook factor on distance.
**MultiLook factor on azimut** `-mlazi int` *Default value: 3* <br />
MultiLook factor on azimut.
**Grid step for range dimension (into SLC/SAR geometry)** `-gridsteprange int` *Default value: 150* <br />
Grid step for range dimension (into SLC/SAR geometry).
**Grid step for azimut dimension (into SLC/SAR geometry)** `-gridstepazimut int` *Default value: 150* <br />
Grid step for azimut dimension (into SLC/SAR geometry).
**Available RAM (MB)** `-ram int` *Default value: 256* <br />
Available memory for processing (in MB).
## Examples
From the command-line:
```
otbcli_SARDEMGrid -indem ./S21E055.hgt -insarmaster s1a-s4-slc-vv-20160818t014650-20160818t014715-012648-013db1-002_ML.tiff -insarslave s1b-s4-slc-vv-20160929t014610-20160929t014634-002277-003d71-002_ML.tiff -out demGrid.tif
```
From Python:
```
import otbApplication
app = otbApplication.Registry.CreateApplication("SARDEMGrid")
app.SetParameterString("indem", "./S21E055.hgt")
app.SetParameterString("insarmaster", "s1a-s4-slc-vv-20160818t014650-20160818t014715-012648-013db1-002_ML.tiff")
app.SetParameterString("insarslave", "s1b-s4-slc-vv-20160929t014610-20160929t014634-002277-003d71-002_ML.tiff")
app.SetParameterString("out", "demGrid.tif")
app.ExecuteAndWriteOutput()
```
## Limitations
Only Sentinel 1 products are supported for now.