# RefineSensorModel

## Brief Description

Perform least-square fit of a sensor model to a set of tie points

## Tags

Geometry

## Long Description

This application reads a geom file containing a sensor model and a text file containing a list of ground control point, and performs a least-square fit of the sensor model adjustable parameters to these tie points. It produces an updated geom file as output, as well as an optional ground control points based statistics file and a vector file containing residues. The output geom file can then be used to ortho-rectify the data more accurately. Plaease note that for a proper use of the application, elevation must be correctly set (including DEM and geoid file). The map parameters allows choosing a map projection in which the accuracy will be estimated in meters.

## Parameters

- [param] -ingeom <string> Geom file containing the sensor model to refine. Mandatory: True. Default Value: ""
- [param] -outgeom <string> Geom file containing the refined sensor model. Mandatory: True. Default Value: ""
- [param] -inpoints <string> Input file containing tie points. Points are stored in following format: row col lon lat. Line beginning with # are ignored.. Mandatory: True. Default Value: ""
- [param] -outstat <string> Output file containing the following info: ref_lon ref_lat elevation predicted_lon predicted_lat x_error_ref(meters) y_error_ref(meters) global_error_ref(meters) x_error(meters) y_error(meters) overall_error(meters). Mandatory: False. Default Value: ""
- [param] -outvector <string> File containing segments representing residues. Mandatory: False. Default Value: ""
- [param] -elev <string> This group of parameters allows managing elevation values. Supported formats are SRTM, DTED or any geotiff processed by the DEM import application. Mandatory: True. Default Value: "0"
[choice] -map Parameters of the output map projection to be used. utm,lambert2,lambert93,wgs,epsg. Mandatory: True. Default Value: "utm"

- [group] -utm

- [param] -map.utm.zone <int32> The zone number ranges from 1 to 60 and allows defining the transverse mercator projection (along with the hemisphere). Mandatory: True. Default Value: "31"
- [param] -map.utm.northhem <boolean> The transverse mercator projections are defined by their zone number as well as the hemisphere. Activate this parameter if your image is in the northern hemisphere.. Mandatory: False. Default Value: "True"

- [group] -lambert2

- [group] -lambert93

- [group] -wgs

- [group] -epsg

- [param] -map.epsg.code <int32> See www.spatialreference.org to find which EPSG code is associated to your projection. Mandatory: True. Default Value: "4326"

## Limitations

None

## Authors

OTB-Team

## See Also

OrthoRectification,HomologousPointsExtraction

## Example of use

- ingeom: input.geom

- outgeom: output.geom

- inpoints: points.txt

- map: epsg

- map.epsg.code: 32631