ENH : Wiki for DiapOTB module authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
# SARFineMetadata
SAR metadata correction.
## Description
This application corrects two metadata : the time of the first line and the slant near range.
## Parameters
**Input correlation grid** `-ingrid image` *Mandatory* <br />
Correlation grid with shifts for the two dimensions and associated correlation rate between two images (for instance : ML Master and simulated amplitude image).
**Input SAR image** `-insar image` *Mandatory* <br />
SAR Image to extract initial metadata.
**Output file to store new metadata values** `-outfile filename [dtype]` <br />
Output file to store new metadata values.
**Max step for histogram** `-stepmax float` *Default value: 0.1* <br />
Max step for histogram.
**Threshold on correlation rate** `-threshold float` *Default value: 0.3* <br />
Threshold on correlation rate.
**Time of the first line (output of this application)** `-timefirstline string` *Mandatory* <br />
Time of the first line (output of this application).
**Slant near range (output of this application)** `-slantrange float` *Mandatory* <br />
Slant near range (output of this application).
**Output image with precise metadata** `-out image [dtype]` *Mandatory* <br />
Output image with precise metadata.
**Available RAM (MB)** `-ram int` *Default value: 256* <br />
Available memory for processing (in MB).
## Examples
From the command-line:
```
otbcli_SARFineMetadata -ingrid corGrid.tiff -outfile fine_metadata.txt
```
From Python:
```
import otbApplication
app = otbApplication.Registry.CreateApplication("SARFineMetadata")
app.SetParameterString("ingrid", "corGrid.tiff")
app.SetParameterString("outfile", "fine_metadata.txt")
app.ExecuteAndWriteOutput()
```
## Limitations
Only Sentinel 1 products are supported for now.