polar

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

NAME

polar - E. A. Robinson’s subroutine to convert from rectangular to polar coordinates

SYNOPSIS

call polar( npts, xr, xi, amp, phz )

DESCRIPTION

Basic Seismic Utilities (BSU) subroutine originally published by Robinson (1967) which converts a complex signal from rectangular (real and imaginary) to polar (amplitude and phase) form. Minor modifications were made in converting from Fortran IV to fortran 77. Although the signal is complex, the components have been separated into two signals of real type.
Fortran Version
.

Arguments
npts (int)

Number of samples in signal.
xr (float)

Real part of the complex signal.

xi (float)

Imaginary part of the complex signal.

amp (float)

Amplitude part of the complex signal.

phz (float)

Phase part of the complex signal.

NOTE:
Phase must be in units of radians.

SEE ALSO

rect(3), nrad2(3), flist(3), bfxt(1), nlogn(3)

Robinson, E.A., 1967, "Multichannel Time Series Analysis
with Digital Computer Programs", Holden-Day, 298p.

BUGS

No known bugs.

COPYRIGHT

Copyright © 1967 by Holden-Day Inc.

Holden-Day Inc., Liquidation Trust, 1259 S.W. 14th Street Boca Raton, FL 33486 Phone: 561.750.9229 Fax: 561.394.6809

This subroutine is included for distribution with Basic Seismic Utilities (BSU) by joint permission of the author, Enders Robinson, and Holden-Day Inc. Liquidation Trust, Frederick H. Murphy, Trustee. Being part of the BSU package, it is governed by the terms of the GPL license, and 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.

AUTHOR

E. A. Robinson