blob: 3ac2fbc44a9797c34502d899fbecc3de785d770f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
# ARGT -- Replace if greater than. If A[i] is greater than CEIL replace by
# NEWVAL.
procedure argt$t (a, npix, ceil, newval)
PIXEL a[ARB]
int npix
PIXEL ceil, newval
int i
$if (datatype == x)
real abs_ceil
$endif
begin
$if (datatype == x)
abs_ceil = abs (ceil)
$endif
do i = 1, npix
$if (datatype == x)
if (abs (a[i]) > abs_ceil)
$else
if (a[i] > ceil)
$endif
a[i] = newval
end
|