blob: ca9430f5675f3d0baf84dbc0e8d73fb957cfd572 (
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
84
85
86
|
# APPHOT header file
# phot errors (# 301 - 400)
define AP_OK 0 # no error
define AP_APERT_NOAPERT 301 # no aperture area
define AP_APERT_OUTOFBOUNDS 302 # 1 or more apertures out of bounds
define AP_APERT_NOSKYMODE 303 # INDEF valued sky
define AP_APERT_NEGMAG 304 # 0 or -ve magnitude
define AP_APERT_BADDATA 305 # bad pixels in aperture
# phot parameters and answers (# 301 - 400)
define ZMAG 301
define APERTS 302
define NAPERTS 303
define MAGS 304
define MAGERRS 305
define PXCUR 306
define PYCUR 307
define OPXCUR 308
define OPYCUR 309
define AREAS 310
define SUMS 311
define PWEIGHTS 312
define PWSTRING 313
define APSTRING 314
# define the phot keywords
define KY_ZMAG "zmag"
define KY_PWSTRING "weighting"
define KY_APERTS "apertures"
# define the phot units
#define UN_ZMAG "zeropoint"
#define UN_PWSTRING "model"
#define UN_APERTS "scaleunit"
define UN_PZMAG "zeropoint"
define UN_PMODEL "model"
define UN_PSCALEUNIT "scaleunit"
# define the weighting functions
define AP_PWCONSTANT 1 # uniform weighting
define AP_PWCONE 2 # a cone of given fwhm is used
define AP_PWGAUSS 3 # a Gaussian of given fwhm is used
# phot strings
define PCMDS "|apertures|zmag|mkapert|weighting|"
define PSHOWARGS "|center|sky|phot|data|"
define PWFUNCS "|constant|cone|gauss|"
define QCMDS "|show|cboxwidth|annulus|dannulus|apertures|zmag|epadu|exposure|radplots|image|output|coords|airmass|filter|obstime|"
define PCMD_APERTURES 1
define PCMD_ZMAG 2
define PCMD_MKAPERT 3
define PCMD_WEIGHTING 4
define PCMD_CENTER 1
define PCMD_SKY 2
define PCMD_PHOT 3
define PCMD_DATA 4
define QCMD_SHOW 1
define QCMD_CBOXWIDTH 2
define QCMD_ANNULUS 3
define QCMD_DANNULUS 4
define QCMD_APERTURES 5
define QCMD_ZMAG 6
define QCMD_EPADU 7
define QCMD_EXPOSURE 8
define QCMD_RADPLOTS 9
define QCMD_IMAGE 10
define QCMD_OUTPUT 11
define QCMD_COORDS 12
define QCMD_AIRMASS 13
define QCMD_FILTER 14
define QCMD_OBSTIME 15
# miscellaneous
define MAX_NAPERTS 100
|