cpx2mag_phs

USAGE cpx2mag_phs infile outfile1 outfile2 width
infile: complex image
outfile1: amplitude image
outfile2: phase image
width: number of complex pixels
FUNCTION Splits infile into an amplitude file and a phase file
infile must be in cpx format, lines of width 2*width containing alternating real and imaginary pixels
PROCESS Reads in in_real and in_imag
amp = sqrt(in_real^2 + in_imag^2)
phs = atan(in_real, in_imag)

Prints amp to outfile1 and phs to outfile2
CALLED BY filtNcor.pl
FILES USED infile
FILES CREATED outfile1
outfile2


LAST UPDATE May 29, 1998
This software is part of the JPL/Caltech ROI_PAC suite.
Not for general distribution.
For more info:
roi_pac@gps.caltech.edu
roi_pac@jpl.nasa.gov