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/arlt.gx | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sys/vops/arlt.gx (limited to 'sys/vops/arlt.gx') diff --git a/sys/vops/arlt.gx b/sys/vops/arlt.gx new file mode 100644 index 00000000..8edce34a --- /dev/null +++ b/sys/vops/arlt.gx @@ -0,0 +1,27 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# ARLT -- Replace if less than. If A[i] is less than FLOOR replace by NEWVAL. + +procedure arlt$t (a, npix, floor, newval) + +PIXEL a[ARB] +int npix +PIXEL floor, newval +int i +$if (datatype == x) +real abs_floor +$endif + +begin + $if (datatype == x) + abs_floor = abs (floor) + $endif + + do i = 1, npix + $if (datatype == x) + if (abs (a[i]) < abs_floor) + $else + if (a[i] < floor) + $endif + a[i] = newval +end -- cgit