aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/fitpsf/appsfshow.x
blob: 3317bd2254cbba2f79cb43ccb9fee3c6e2b3469f (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
include "../lib/display.h"
include "../lib/fitpsf.h"

# AP_PSFSHOW -- Procedure to print the fitpsf parameters on the standard output.

procedure ap_psfshow (ap)

pointer	ap		# pointer to the apphot structure

begin
	call ap_nshow (ap)
	call printf ("\n")
	call ap_pfshow (ap)
end


# AP_PFSHOW -- Procedure to print out the fitting parameters on the standard
# output.

procedure ap_pfshow (ap)

pointer	ap		# pointer to apphot structure

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

begin
	# Print the PSF fitting parameters.
	call smark (sp)
	call salloc (str, SZ_LINE, TY_CHAR)

	call printf ("Psf Modelling Parameters\n")
	call apstats (ap, PSFSTRING, Memc[str], SZ_FNAME)
	call printf ("    %s = %s\n")
	    call pargstr (KY_PSFSTRING)
	    call pargstr (Memc[str])

	call printf ("    %s = %g %s    %s = %d\n")
	    call pargstr (KY_PSFAPERT)
	    call pargr (2.0 * apstatr (ap, PSFAPERT))
	    call pargstr (UN_PSFSCALEUNIT)
	    call pargstr (KY_PMAXITER)
	    call pargi (apstati (ap, PMAXITER))

	call printf ("    %s = %g %s    %s = %d\n")
	    call pargstr (KY_PK2)
	    call pargr (apstatr (ap, PK2))
	    call pargstr (UN_PSFSIGMA)
	    call pargstr (KY_PNREJECT)
	    call pargi (apstati (ap, PNREJECT))

	call printf ("    %s = %b\n")
	    call pargstr (KY_MKPSFBOX)
	    call pargb (itob (apstati (ap, MKPSFBOX)))

	call sfree (sp)
end