From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/vops/abge.gx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sys/vops/abge.gx (limited to 'sys/vops/abge.gx') diff --git a/sys/vops/abge.gx b/sys/vops/abge.gx new file mode 100644 index 00000000..76f842dc --- /dev/null +++ b/sys/vops/abge.gx @@ -0,0 +1,23 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# ABGE -- Vector boolean greater than or equals. C[i], type INT, is set to 1 +# if A[i] is greater than B[i], else C[i] is set to zero. + +procedure abge$t (a, b, c, npix) + +PIXEL a[ARB], b[ARB] +int c[ARB] +int npix +int i + +begin + do i = 1, npix + $if (datatype == x) + if (abs (a[i]) >= abs (b[i])) + $else + if (a[i] >= b[i]) + $endif + c[i] = 1 + else + c[i] = 0 +end -- cgit