aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/apphot/fitsky/apgspars.x
blob: 8ca7f52c0eb8be02d103100e40827f0f52730deb (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
include "../lib/display.h"
include "../lib/noise.h"
include "../lib/fitsky.h"

# AP_SGPARS -- Procedure to fetch the parameters for the fitsky task.

procedure ap_sgpars (ap)

pointer	ap		# pointer to apphot structure

bool	clgetb()
int	btoi()

begin
	# Open the apphot structure.
	call apsinit (ap, AP_MODE, 10.0, 10.0, 2.0, AP_NPOISSON)

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

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

	# Get radial plots.
	call apseti (ap, RADPLOTS, btoi (clgetb ("radplots")))
end