aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/radprof/aprferrors.x
blob: f72586f31479b8046f633b2e000703825aac8716 (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
include "../lib/phot.h"
include "../lib/radprof.h"

# AP_RFERRORS -- Procedure to print a short form of the output of radprof on
# the standard output.

procedure ap_rferrors (ap, cier, sier, pier, rier)

pointer	ap	# pointer to apphot structure
int	cier	# centering error
int	sier	# sky fitting error
int	pier	# photmetry error
int	rier	# photometric error

begin
	# Print the centering errors.
	call ap_cerrors (ap, cier)

	# Print the sky fitting errors.
	call ap_serrors (ap, sier)

	# Print the photometry errors.
	call ap_merrors (ap, pier)

	# Print the radial profile fitting errors.
	switch (rier) {
	case AP_RP_NOPROFILE:
	    call printf ("The profile fitting region is outside the image.\n")
	case AP_RP_OUTOFBOUNDS:
	    call printf (
	        "The profile fitting region is partially outside the image.\n")
	case AP_RP_NPTS_TOO_SMALL:
	    call printf (
	        "There are too few points in the profile fitting region.\n")
	case AP_RP_SINGULAR:
	    call printf ("The profile fit is singular.\n")
	default:
	    call printf ("")
	}
end