aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/arlt.gx
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/arlt.gx
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/vops/arlt.gx')
-rw-r--r--sys/vops/arlt.gx27
1 files changed, 27 insertions, 0 deletions
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