Help for RPCCORN

PURPOSE
     RPCINV reads the GeoTIFF label of an image with GeoTIFF label
containing RPC's and uses the label information to reverse solve the
image corners and put them in the label.  If the corners are already in
the label, they will be replaced.  Elevations will also be added to the
label.  The geographic center of the four corners will also be added 
with its elevation.  Finally, the GSD, ELEV_LOOK_ANG, AZIM, and UPISUP
are calculated for the center point.

     If the user supplies a grid calculated from a parent image and
the label contains CHIP_PARENT_OFFS_LINE and CHIP_PARENT_OFFS_SAMP
then calculations are much faster.  The grid is calculated with routine
RPC2GRID.  See an example in the chipper.pdf procedure.

CALL
     rpccorn INPUT THRESH
  WHERE:
     INPUT          is the GeoTIFF data set followed by the dted
     THRESH         is a (lon,lat) threshold to stop iteration
 
OPERATION

The corners are generated and passed to routine rpcinv which gives an
accurate (lon,lat,elev) according to the RPC's.  gtuplab is used to put
these in the label.  The geographic center is generated by averaging the
four corners and its elevation is looked up by getzval.

PERFORMANCE

Expect about 40 seconds.

Restrictions
------------

The first input must have a GeoTIFF label. The dted file must be referenced
by a geographic (lon,lat) GeoTIFF label.

Original Programmer: A. L. Zobrist, 02 Mar, 2005
Current Cognizant Programmer: A. L. Zobrist

2022-08-10 B. Crocco afids to opensource (untested)

.VARI GRID
If the user supplies a grid calculated from a parent image and
the label contains CHIP_PARENT_OFFS_LINE and CHIP_PARENT_OFFS_SAMP
then calculations are much faster.  The grid is calculated with routine
RPC2GRID.  See an example in the chipper.pdf procedure.
.VARI CORNONLY
If set to "y" will only calculate corners and centers, using the standard
NITF labels and ordering
.END

PARAMETERS:


INP

Input file with GeoTIFF, RPC DTED file

THRESH

RMS of (lon,lat) to stop itr

GRID

speedup grid from parent RPC

CORNONLY

If set to "y" will only calculate corners and centers

See Examples:


Cognizant Programmer: