Gamma DISPLAY: Reference Manual


cpx_to_real

ANSI-C program: cpx_to_real.c

NAME
cpx_to_real - Calculate real part, imaginary part, intensity, magnitude, or phase from complex data.

SYNOPSIS
cpx_to_real <cpx> <real> <width> <type>

<cpx> comple-valued input data file (fcomplex)
<real> real-valued output data file (float)
<width> samples per line of the input fcomplex data
[type] output data type
           0: real part
           1: imaginary part
           2: intensity (re*re + im*im)
           3: magnitude (sqrt(re*re + im*im))
           4: phase (atan2(im, re))

EXAMPLES
cpx_to_real 1352_1610.offs 1352.offs.re 128 0

extracts estimated range offsets (=real part) from complex valued offsets file.

cpx_to_real 1352_1610.offs 1352.offs.im 128 1

extracts estimated azimuth offsets (=imaginary part) from complex valued offsets file.

cpx_to_real 1352.slc 1352.mli 2500 2

calculates single look backscatter intensity from SLC image in fcomplex format.

cpx_to_real 1352_1610.flt 1352_1610.cc 2500 3

the magnitude of complex valued interferograms corresponds to a coherence estimate.

cpx_to_real 1352_1610.flt 1352_1610.phase 2500 4

calculates the wrapped interferometric phase of a complex valued interferogram

DESCRIPTION
cpx_to_real reads a file of complex valued data (fcomplex) such provided in an interferogram (*.int, *.flt), an offset estimation file (*.offs), or a SLC image in fcomplex format and calculates for each pixel either the real part, the imaginary part, the intensity, the magnitude, or the phase, and writes out these data as a data file in float format.

The magnitude is defined as the square root of the intensity; i.e. intensity = re*re + im*im and magnitude = sqrt(re*re + im*im).

The calculated phase values are expressed in radian in the interval (-PI, +PI) and are equal to atan(imaginary/real)

SEE ALSO
typedef_ISP.h.


© Copyrights for Documentation, Users Guide and Reference Manual by Gamma Remote Sensing, 2006.
TS, UW, CW, last change 11-Apr-2006.