ENH : Wiki for DiapOTB module authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
# SARCorrelationGrid
Computes SAR correlation shift (into temporal domain).
## Description
This application computes correlation shifts between two images : shift in range and shift in azimut. The inputs of this application are MultiLooked images (real images).
## Parameters
**Input Master image (real image)** `-inmaster image` *Mandatory* <br />
Master Image (real image).
**Input Slave image (real image)** `-inslave image` *Mandatory* <br />
Slave Image (real image).
**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).
**Set 0 to offset of first Line and Colunm of output grid** `-nooffset int` *Default value: 0* <br />
If 1, then no offset for the first L/C if output grid.
**Output Correlation grid (Vector Image)** `-out image [dtype]` *Mandatory* <br />
Output Correlation Grid Vector Image (Shift_ran, Shift_azi, Correlation_rate).
**Available RAM (MB)** `-ram int` *Default value: 256* <br />
Available memory for processing (in MB).
## Examples
From the command-line:
```
otbcli_SARCorrelationGrid -inmaster s1a-s4-slc-vv-20160818t014650-20160818t014715-012648-013db1-002_ML.tiff -inslave s1b-s4-slc-vv-20160929t014610-20160929t014634-002277-003d71-002_ML.tiff -out out_CorrelationGrid.tiff
```
From Python:
```
import otbApplication
app = otbApplication.Registry.CreateApplication("SARCorrelationGrid")
app.SetParameterString("inmaster", "s1a-s4-slc-vv-20160818t014650-20160818t014715-012648-013db1-002_ML.tiff")
app.SetParameterString("inslave", "s1b-s4-slc-vv-20160929t014610-20160929t014634-002277-003d71-002_ML.tiff")
app.SetParameterString("out", "out_CorrelationGrid.tiff")
app.ExecuteAndWriteOutput()
```
## Limitations
Only Sentinel 1 products and Cosmo are supported for now.