| Environments | PYTHON :: EASI :: MODELER |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example :: Algorithm :: Related |
| Back to top |
| Back to top |
fcont(fili, filo, dbic, dboc, dbiw, dbow, zl, filb)
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| FILI * | str | Input file name | 1 - | |
| FILO * | str | Output file name | 1 - | |
| DBIC * | List[int] | Input potential field channels | 1 - 1 | |
| DBOC * | List[int] | Output filtered image channel | 1 - 1 | |
| DBIW | List[int] | Raster input window | 0 - 4 | Xoffset, Yoffset, Xsize, Ysize |
| DBOW | List[int] | Raster output window | 0 - 4 | Xoffset, Yoffset, Xsize, Ysize |
| ZL * | List[float] | Height (Z level) | 1 - 1 | |
| FILB | str | Buffer file name | 0 - |
| Back to top |
FILI
Specifies the name of the PCIDSK file from which image data is read.
FILO
Specifies the name of the PCIDSK file receive the transformed image data.
The output file can be the same as the input file. The specified output file must exist running FCONT.
DBIC
Specifies the input channels containing the potential fields to use in the transformation.
DBOC
Specifies the output channel to receive the filtered image data.
DBIW
Specifies the raster window (Xoffset, Yoffset, Xsize, Ysize) read from the input image. If this parameter is not specified, the entire image is processed by default.
Xoffset, Yoffset define the upper-left starting pixel coordinates of the window. Xsize is the number of pixels that define the window width. Ysize is the number of lines that define the window height.
DBOW
Specifies the raster window (Xoffset, Yoffset, Xsize, Ysize) to be output. If this parameter is not specified, the entire layer is output by default.
Xoffset, Yoffset define the upper-left starting pixel coordinates of the window. Xsize is the number of pixels that define the window width. Ysize is the number of lines that define the window height.
ZL
Specifies the height at which to stop the transformation. Positive and negative values for this parameter correspond to upward and downward continuation, respectively. Values must be provided in the same units as the pixel size (usually meters).
FILB
Optionally specifies the name of the temporary buffer file.
Because this function uses large amounts of RAM, a temporary buffer file is automatically created for large images. This parameter records the name of the buffer file created by FCONT. Typically, no user interaction is required for this parameter.
| Back to top |
FCONT computes upward/downward continuation of a potential field in the input file. The filter is applied in the frequency domain. A 2-D Fourier transformation is first applied to the image. After filtering, the image is transformed back to the spatial domain.
Because this function does not require the entire image to be loaded into memory, there is no limit on the size of input image. If necessary, the function automatically creates a buffer file, if FILB is not specified. The buffer file name is recorded in FILB for efficiently reusing the buffer in another run.
This function is most efficient if the input window has dimensions of a power of 2; otherwise, FCONT must pad extra rows and columns to force the image dimensions a power of 2.
| Back to top |
In the following example, channel 1 in the file 'irvine.pix' contains the measurement at ground level. FCONT computes an upward continuation of 100 meters. The output image stored to channel 8 will be the measurement at 100 meters above the ground level.
from pci.fcont import fcont fili = "irvine.pix" # input file filo = "irvine.pix" # output file dbic = [1] # input channel dboc = [8] # output channel dbiw = [] # process entire image dbow = [] zl = [100] # height of 100m filb = "" # no buffer file specified fcont( fili, filo, dbic, dboc, dbiw, dbow, zl, filb )
| Back to top |
The input image is first transformed to the frequency domain using a 2-D Fast Fourier transformation (FFT). The dimensions of the transformed image are a power of 2 and are at least as large as the input image dimensions. After applying the filter, the frequency image is transformed back to the spatial domain and truncated to the input image size.
The upward/downward continuation filter has the following form:
exp(-2 PI sqrt(u*u + v*v) ZL)
where u, v are the frequency components. The resolution of u, v are given as:
Delta_u = 1/(SizeU * Delta_x)
Delta_v = 1/(SizeV * Delta_y)
Due to a limitation in the theory, the computed continuation may differ from the actual field measurement at the desired level by a factor which is close to 1. This factor is a constant for the entire potential field at the given level. But if multiple sources with different depths exist, the factor varies.
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.