.. _add_spot_rpc:
add_spot_rpc
------------
The ``add_spot_rpc`` tool creates an RPC model to approximate a SPOT5
sensor model. The RPC model can be appended to the end of a SPOT5
metadata file, allowing it to be used with the RPC session type in other
ASP tools. The most important application is to map project SPOT5
images, then to perform stereo on the map projected images with the
``spot5maprpc`` session type.
If the output file does not exist, a new file is created containing the
RPC model. Otherwise the RPC model is appended to an existing file. When
an existing SPOT5 metadata file is the output file, the new RPC model is
properly inserted into the file so that it is ready to use.
An example for how to use this tool is given in :numref:`spot5`.
Usage::
add_spot_rpc -o