Environments | PYTHON :: EASI :: MODELER |
Quick links | Description :: Parameters :: Parameter descriptions :: Return Value :: Details :: Example :: Related |
Back to top |
Back to top |
rsmodel(mfile, dbgc, orbit, mmseg)
Name | Type | Caption | Length | Value range |
---|---|---|---|---|
MFILE* | str | Input file name, directory, or text file | 1 - | |
DBGC | List[int] | Input GCP segment or layer | 0 - 1 | |
ORBIT | List[int] | Input orbit segment or layer | 0 - 1 | |
MMSEG | List[int] | Math model segment or layer | 0 - 1 |
Back to top |
MFILE
Specifies the name of a folder, image file, or text file that contains the input raw 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 RSMODEL.
If a directory is specified, then the DBGC, MMSEG, and ORBIT parameters are set to a single value for all input images. If a text file is specified, the DBGC, MMSEG, and ORBIT 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.
ORBIT
Specifies the orbit 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, ORBIT is read from the text file, and this parameter can be empty. If no value is specified, the last orbit segment is used automatically.
MMSEG
Specifies the math model segment or layer that stores the computed 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.
Back to top |
Returns: execution status
Type: PCI_INT
Back to top |
RSMODEL computes the math model of a satellite image using the ASAR/RADARSAT-specific model, and therefore only applies to those two sensors. The mathematical models are stored in a math model segment.
It is an independent model, not a bundle adjustment, but allows accurate solution of the model with few or no GCPs.
The input is a raw image with an orbit segment or layer, and can include GCPs. The output is an updated math model segment or layer for each of the input images.
Back to top |
You have a RADARSAT image and want to correct the data using the RADAR-specific model.
from pci.rsmodel import * mfile = "radarsat.pix" # input image file dbgc = [3] # gcp segment 3 orbit = [2] # orbit segment 2 mmseg = [] # create a new math model segment rsmodel (mfile, dbgc, orbit, mmseg)
© PCI Geomatics Enterprises, Inc.®, 2024. All rights reserved.