blob: 4f8c32bb21f3a58e776041a1733c9b45ca631d16 (
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
29
30
31
32
|
include "../lib/center.h"
# AP_CERRORS -- Procedure to print the centering task error messages.
procedure ap_cerrrors (ap, ier)
pointer ap # apphot pointer (unused)
int ier # centering error code
begin
switch (ier) {
case AP_CTR_NOAREA:
call printf ("There are no pixels in the centering box.\n")
case AP_CTR_OUTOFBOUNDS:
call printf (
"The centering region is partially outside the image.\n")
case AP_CTR_NTOO_SMALL:
call printf ("The centering box has too few points.\n")
case AP_CTR_SINGULAR:
call printf ("The centering solution is singular.\n")
case AP_CTR_NOCONVERGE:
call printf ("The centering algorithm does not converge.\n")
case AP_CTR_BADSHIFT:
call printf ("The center shift is large.\n")
case AP_CTR_LOWSNRATIO:
call printf ("The signal to noise ratio is low.\n")
case AP_CTR_BADDATA:
call printf ("Bad data in the centering subraster.\n")
default:
call printf ("")
}
end
|