aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/ak/afftxr.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/vops/ak/afftxr.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/vops/ak/afftxr.x')
-rw-r--r--sys/vops/ak/afftxr.x27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/vops/ak/afftxr.x b/sys/vops/ak/afftxr.x
new file mode 100644
index 00000000..b09ae0f5
--- /dev/null
+++ b/sys/vops/ak/afftxr.x
@@ -0,0 +1,27 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# AFFTXR -- Forward fourier transform (complex transform, real arrays).
+# The fourier transform of the real arrays SR and SI containing complex data
+# pairs is computed and the complex transform coefficients are returned in
+# the real arrays FR and FI. The transformation may be performed in place if
+# desired. NPIX must be a power of 2.
+
+procedure afftxr (sr, si, fr, fi, npix)
+
+real sr[ARB], si[ARB] # data, spatial domain (input)
+real fr[ARB], fi[ARB] # transform, frequency domain (output)
+int npix
+int ier
+
+begin
+ # The following are no-ops if the transform is being performed
+ # in place.
+
+ call amovr (sr, fr, npix)
+ call amovr (si, fi, npix)
+
+ # Compute the forward transform.
+ call fft842 (0, npix, fr, fi, ier)
+ if (ier == 1)
+ call fatal (1, "afftxr: npix not a power of 2")
+end