diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/vops/lz/asels.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/vops/lz/asels.x')
-rw-r--r-- | sys/vops/lz/asels.x | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/vops/lz/asels.x b/sys/vops/lz/asels.x new file mode 100644 index 00000000..b2118ba8 --- /dev/null +++ b/sys/vops/lz/asels.x @@ -0,0 +1,21 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# ASEL -- Vector select element. The output vector is formed by taking +# successive pixels from either of the two input vectors, based on the value +# of the integer (boolean) selection vectors. Used to implement vector +# conditional expressions. + +procedure asels (a, b, c, sel, npix) + +short a[ARB], b[ARB], c[ARB] +int sel[ARB] # IF sel[i] THEN a[i] ELSE b[i] +int npix +int i + +begin + do i = 1, npix + if (sel[i] != 0) + c[i] = a[i] + else + c[i] = b[i] +end |