RFMODEL

Generate Rational Function Model


EnvironmentsPYTHON :: EASI :: MODELER
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Examples :: Related

Back to top

Description


RFMODEL calculates the mathematical models required for orthorectification using rational functions, and stores the result in a segment.
Back to top

Parameters


Name Type Caption Length Value range
MFILE* String Input file name, directory, or text file 1 - 192  
DBGC Integer Input GCP segment or layer 0 - 1  
MMSEG Integer Math model segment or layer 0 - 1  
ADJORDER Integer RPC adjustment order (0, 1, 2) 0 - 1 0 - 2
NUMCOEFF Integer Number of coefficients (3 to 20) 0 - 1 3 - 20
MAPUNITS String Map units 0 - 192 PIXEL, UTM, METER, and others
REPORT String Report mode 0 - 192 Quick links

* Required parameter
Back to top

Parameter descriptions

MFILE

Specifies the name of a folder, image file, or text file that contains the input images. Wildcards (*) can be used.

MFILE can be set using any of the following options:

If the text file option is used, the following general rules apply:

If MFILE is a directory name or if multiple file names are entered, then all images in MFILE should be processed using the parameters set for RFMODEL.

If a directory is specified, then the DBGC, MMSEG, ADJORDER, and NUMCOEFF parameters are set to a single value for all input images. If a text file is specified, the DBGC, MMSEG, ADJORDER, and NUMCOEFF parameters are read from the text file for each image, and those parameters can be empty.

If one file is specified for MFILE, the model computed will be an independent model (one image).

If a text file is specified for MFILE, the listed files in the text file are processed with the listed parameters.

DBGC

Specifies the ground control point (GCP) segment or layer to use to compute the model.

If a directory is specified for MFILE, then this segment number will be applied to all images. If a text file is specified, DBGC is read from the text file, and this parameter can be empty.

MMSEG

Specifies the math model segment or layer that stores the model.

If a directory is specified for MFILE, then this segment number will be applied to all images. If a text file is specified, MMSEG is read from the text file, and this parameter can be empty. If no value is specified, a new segment is created.

ADJORDER

If RPC data is supplied with the data, this value specifies the RPC adjustment order to be used in the RPC model refinement. Valid values are 0, 1 or 2.

NUMCOEFF

If RPC data is not supplied with the data, this value specifies the number of coefficients to be used to calculate the rational function. Valid values are 3 to 20.

MAPUNITS

Specifies the projection string for the output model.

The standard definitions are as follows:

For a complete list of supported projections and Earth models, see Understanding map projections. The format of the map units string is described in Output units.

If this parameter is not specified, the map units of the GCP segment are used.

REPORT

Specifies where to direct the generated report.

Available options are:

Back to top

Details

RFMODEL calculates the mathematical model required for orthorectification using rational functions. It computes an updated rational functions solution, based on provided GCPs or rational function coefficients, or both.

There are several use scenarios for RFMODEL:
Note: If you have RPCs but no GCPs, RFMODEL need not run. ORTHO and other functions interpret the RPC model transparently from the original raw image files (NITF, TIFF with TXT).
Note: When run with EASI the function sets the parameter named IMSTAT to the values that are returned by the Python version.
Back to top

Examples

You have an IKONOS image and would like to correct it using rational functions.

EASI>MFILE="ikonos.pix"	! input image file
EASI>DBGC=1		! use GCP segment 2
EASI>MMSEG=		! create a new math model segment
EASI>ADJORDER=0		! use 0 order RPC adjustment
EASI>NUMCOEFF=		! leave none for RPC coefficient number
EASI>MAPUNITS="UTM 11 d0"	! output projection
EASI>r RFMODEL
			

You have an image without existing RPC math model and would like to generate a new RPC segment.

EASI>MFILE="17029_pan.pix"	! input image file
EASI>DBGC=3		! use GCP segment 3
EASI>MMSEG=		! create a new math model segment
EASI>ADJORDER=		! leave none for RPC adjustment order
EASI>NUMCOEFF=20		! use 20 for RPC coefficient number
EASI>MAPUNITS=	! output projection
EASI>r RFMODEL
			

© PCI Geomatics Enterprises, Inc.®, 2024. All rights reserved.