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/arlt.gx | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/vops/arlt.gx')
-rw-r--r-- | sys/vops/arlt.gx | 27 |
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 |