diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/vops/lz/arcpr.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/vops/lz/arcpr.x')
-rw-r--r-- | sys/vops/lz/arcpr.x | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/vops/lz/arcpr.x b/sys/vops/lz/arcpr.x new file mode 100644 index 00000000..f52a1651 --- /dev/null +++ b/sys/vops/lz/arcpr.x @@ -0,0 +1,24 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# ARCP -- Reciprocal of a constant divided by a vector. No divide by zero +# checking is performed. + +procedure arcpr (a, b, c, npix) + +real a # constant numerator +real b[ARB] # vector denominator +real c[ARB] # output vector +int npix +int i + +begin + if (a == 0.0) { + call aclrr (c, npix) + } else if (a == 1.0) { + do i = 1, npix + c[i] = 1.0 / b[i] + } else { + do i = 1, npix + c[i] = a / b[i] + } +end |