rect - subroutine to convert a complex signal from polar to rectangular form.
call rect( npts, xr, xi, amp, phz )
Basic Seismic
Utilities (BSU) converts a complex signal from polar to
rectangular form. The phase must be in radians. The complex
signal is in two real signals.
Fortran Version.
Arguments
npts (int)
Number of samples in a trace
xr (float)
Real part of signal returned by the subroutine.
xi (float)
Imaginary part of signal returned by the subroutine.
amp (float)
Amplitude signal input to the subroutine.
phz (float)
Phase signal input to the subroutine.
polar(3)
No known bugs.
Copyright © 2017 by Paul Michaels
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
P. Michaels, PE. <pm@cgiss.boisestate.edu>