Input file name Up to two inputs
One output file name
The size field is specified with four arguments: size=(sl,ss,nl,ns)
F2COMP is a special purpose VICAR program to handle arithmetic
operations on complex input data. It will take a most two input
data sets. The operations available are:
ADD (complex+complex, or complex+real)
SUB (complex-complex, or complex-real, or real-complex)
MULT (complex*complex, or complex*real, or real*complex)
DIV (complex/complex, or complex/real, or real/complex)
CABS (absolute value of complex input, output=real*4)
CONJ (complex conjugate of complex input, output=complex)
COMP (1st data set will be real, 2nds data set will be complex)
REAL2COMPREAL
(turns a real data set into a complex real data set)
REAL2COMPIMAG
(turns a real data set into a complex imaginary data set)
COMP2REAL
(extracts the real part of the complex data set and
stores it as a real data set)
COMP2IMAG
(extracts the imaginary part of the complex data set
and stores it as a real data set)
This keyword, if specified along with div or mult option will perform a scalar division or multiplication instead of a complex operation. Input data sets should be complex [*,/] real. In mixed real and complex operations, the output will always be COMPLEX*8. In mixed operations, real values are coverted to complex with zero imaginary part before the operation is carried out. Divide by zero protection is accomplished by setting the result of an attempted divide-by-zero to zero on output.