blob: c0d17deb742c0a5a663d5fd008e3a94248ae723f (
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
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
# ALOV -- Compute the low value (minimum) of a vector.
complex procedure alovx (a, npix)
complex a[ARB]
int npix
complex low, pixval
real abs_low
int i
begin
low = a[1]
abs_low = abs (low)
do i = 1, npix {
pixval = a[i]
if (abs (pixval) < abs_low) {
low = pixval
abs_low = abs (low)
}
}
return (low)
end
|