aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/wphot/apgwppars.x
blob: 91383169194f187d3c16026209b9e78f9743f8dc (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
include "../lib/display.h"
include "../lib/noise.h"
include "../lib/center.h"
include "../lib/fitsky.h"
include "../lib/phot.h"

# AP_GWPPARS -- Procedure to fetch the phot task parameters.

procedure ap_gwppars (ap)

pointer	ap		# pointer to apphot structure

bool	clgetb()
int	btoi()

begin
	# Initialize the photometry structure.
	call appinit (ap, AP_CENTROID1D, 2.5, AP_MODE, 10.0, 10.0, 3.0, 1,
	    AP_PWCONSTANT, 2.0, AP_NPOISSON)

	# Get the data dependent parameters.
	call ap_gdapars (ap)

	# Get the centering parameters.
	call ap_gcepars (ap)

	# Get the sky fitting parameters.
	call ap_gsapars (ap)

	# Get the photometry parameters.
	call ap_gwhpars (ap)

	# Set the radplot parameters.
	call apseti (ap, RADPLOTS, btoi (clgetb ("radplots")))
end