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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
include "../lib/center.h"
include "../lib/display.h"
# AP_CPSHOW -- Procedure to display the current centering algorithm
# parameters.
procedure ap_cpshow (ap)
pointer ap # pointer to the apphot strucuture
pointer sp, str
bool itob()
int apstati()
real apstatr()
begin
call smark (sp)
call salloc (str, SZ_LINE, TY_CHAR)
# Print the centering algorithm.
call printf ("Centering Parameters\n")
call apstats (ap, CSTRING, Memc[str], SZ_FNAME)
call printf (" %s = %s %s\n")
call pargstr (KY_CSTRING)
call pargstr (Memc[str])
call pargstr (UN_CALGORITHM)
# Print the rest of the centering parameters.
call printf (" %s = %g %s %s = %g %s %s = %g\n")
call pargstr (KY_CAPERT)
call pargr (2.0 * apstatr (ap, CAPERT))
call pargstr (UN_CSCALEUNIT)
call pargstr (KY_CTHRESHOLD)
call pargr (apstatr (ap, CTHRESHOLD))
call pargstr (UN_CSIGMA)
call pargstr (KY_MINSNRATIO)
call pargr (apstatr (ap, MINSNRATIO))
call printf (" %s = %d %s = %g %s\n")
call pargstr (KY_CMAXITER)
call pargi (apstati (ap, CMAXITER))
call pargstr (KY_MAXSHIFT)
call pargr (apstatr (ap, MAXSHIFT))
call pargstr (UN_CNUMBER)
call printf (" %s = %b %s = %g %s\n")
call pargstr (KY_CLEAN)
call pargb (itob (apstati (ap, CLEAN)))
call pargstr (KY_SIGMACLEAN)
call pargr (apstatr (ap, SIGMACLEAN))
call pargstr (UN_CSIGMA)
call printf (" %s = %g %s %s = %g %s\n")
call pargstr (KY_RCLEAN)
call pargr (apstatr (ap, RCLEAN))
call pargstr (UN_CSCALEUNIT)
call pargstr (KY_RCLIP)
call pargr (apstatr (ap, RCLIP))
call pargstr (UN_CSCALEUNIT)
call printf (" %s = %b\n")
call pargstr (KY_MKCENTER)
call pargb (itob (apstati (ap, MKCENTER)))
call sfree (sp)
end
|