4.4.5 Generate a RPC sensor model

Generate a RPC sensor model from a list of Ground Control Points.

Detailed description

This application generates a RPC sensor model from a list of Ground Control Points. At least 20 points are required for estimation wihtout elevation support, and 40 points for estimation with elevation support. Elevation support will be automatically deactivated if an insufficient amount of points is provided. The application can optionnaly output a file containing accuracy statistics for each point, and a vector file containing segments represening points residues. The map projection parameter allows defining a map projection in which the accuracy is evaluated.

Parameters

This section describes in details the parameters available for this application. Table 4.54, page 537 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is GenerateRPCSensorModel.





Parameter key

Parameter type

Parameter description




outgeom

Output File name

Output geom file

inpoints

Input File name

Input file containing tie points

outstat

Output File name

Output file containing output precision statistics

outvector

Output File name

Output vector file with residues

map

Choices

Output Cartographic Map Projection

map utm

Choice

Universal Trans-Mercator (UTM)

map lambert2

Choice

Lambert II Etendu

map lambert93

Choice

Lambert93

map wgs

Choice

WGS 84

map epsg

Choice

EPSG Code

map.utm.zone

Int

Zone number

map.utm.northhem

Boolean

Northern Hemisphere

map.epsg.code

Int

EPSG Code

elev

Group

Elevation management

elev.dem

Directory

DEM directory

elev.geoid

Input File name

Geoid File

elev.default

Float

Default elevation

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.54: Parameters table for Generate a RPC sensor model.

Output geom file Geom file containing the generated RPC sensor model

Input file containing tie points Input file containing tie points. Points are stored in following format: col row lon lat. Line beginning with # are ignored.

Output file containing output precision statistics 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)

Output vector file with residues File containing segments representing residues

Output Cartographic Map Projection Parameters of the output map projection to be used. Available choices are:

Elevation management This group of parameters allows managing elevation values. Supported formats are SRTM, DTED or any geotiff. DownloadSRTMTiles application could be a useful tool to list/download tiles related to a product.

Load otb application from xml file Load otb application from xml file

Save otb application to xml file Save otb application to xml file

Example

To run this example in command-line, use the following:

otbcli_GenerateRPCSensorModel -outgeom output.geom -inpoints points.txt -map epsg -map.epsg.code 32631

To run this example from Python, use the following code snippet:

#!/usr/bin/python 
 
# Import the otb applications package 
import otbApplication 
 
# The following line creates an instance of the GenerateRPCSensorModel application 
GenerateRPCSensorModel = otbApplication.Registry.CreateApplication("GenerateRPCSensorModel") 
 
# The following lines set all the application parameters: 
GenerateRPCSensorModel.SetParameterString("outgeom", "output.geom") 
 
GenerateRPCSensorModel.SetParameterString("inpoints", "points.txt") 
 
GenerateRPCSensorModel.SetParameterString("map","epsg") 
 
GenerateRPCSensorModel.SetParameterInt("map.epsg.code", 32631) 
 
# The following line execute the application 
GenerateRPCSensorModel.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.

See also

These additional ressources can be useful for further information: