aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/phot/appshow.x
blob: 5e52b42ddf00f0ed5398e52f898c8059f471a917 (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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
include "../lib/display.h"
include "../lib/phot.h"

# AP_PSHOW -- Procedure to print the photometry parameters.

procedure ap_pshow (ap)

pointer	ap	# pointer to the apphot strucuture

bool	itob()
int	apstati()

begin
	call ap_nshow (ap)
	call printf ("\n")
	call ap_cpshow (ap)
	call printf ("\n")
	call ap_spshow (ap)
	call printf ("\n")
	call ap_mpshow (ap)
	call printf ("    %s = %b\n")
	    call pargstr (KY_RADPLOTS)
	    call pargb (itob (apstati (ap, RADPLOTS)))
end


# AP_MSHOW -- Procedure to print the photometry parameters on the standard
# output.

procedure ap_mshow (ap)

pointer	ap		# pointer to apphot structure

bool	itob()
int	apstati()
begin
	call ap_nshow (ap)
	call printf ("\n")
	call ap_mpshow (ap)
	call printf ("    %s = %b\n")
	    call pargstr (KY_RADPLOTS)
	    call pargb (itob (apstati (ap, RADPLOTS)))
end


# AP_MPSHOW -- Procedure to print the photometry parameters on the standard
# output.

procedure ap_mpshow (ap)

pointer	ap		# pointer to apphot structure

pointer	sp, str
bool	itob()
int	apstati()
real	apstatr()

begin
	# Write out the image and cursor position.
	call smark (sp)
	call salloc (str, SZ_LINE, TY_CHAR)

	# Write out the phot parameters.
	call printf ("Photometry Parameters\n")
	call apstats (ap, PWSTRING, Memc[str], SZ_LINE)
	call printf ("    %s = %s %s\n")
	    call pargstr (KY_PWSTRING)
	    call pargstr (Memc[str])
	    call pargstr (UN_PMODEL)
	call apstats (ap, APERTS, Memc[str], SZ_LINE)
	call printf ("    %s = %s %s\n")
	    call pargstr (KY_APERTS)
	    call pargstr (Memc[str])
	    call pargstr (UN_PSCALEUNIT)
	call printf ("    %s = %g\n")
	    call pargstr (KY_ZMAG)
	    call pargr (apstatr (ap, ZMAG))
	call printf ("    %s = %b\n")
	    call pargstr (KY_MKAPERT)
	    call pargb (itob (apstati (ap, MKAPERT)))

	call sfree (sp)
end