aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/photcal/lib/parser.h
blob: da88ffebaa40b7f05e043f519aaa546c2054975d (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# PARSER.H - Parser codes to use with the prget and prput procedures.


# Parser tables (pointer)

define	SYMTABLE	1		# symbol table
define	OBSTABLE	2		# observational variable table
define	CATTABLE	3		# catalog variable table
define	PARTABLE	4		# fitting and constant parameter table
define	EXTTABLE	5		# extinction equation table
define	TRNTABLE	6		# transformation equation table
define	SETTABLE	7		# set equation table
define	TRCATTABLE	8		# temporary ref. catalog var. table
define	TROBSTABLE	9		# temporary ref. obs. var. table
define	TFCATTABLE	10		# temporary fit catalog var. table
define	TFOBSTABLE	11		# temporary fit obs. var. table
define	TPARTABLE	12		# temporary parameter table


# Parser counters (int)

define	NERRORS		20		# errors
define	NWARNINGS	21		# warnings
define	NOBSVARS	22		# observational variables
define	NCATVARS	23		# catalog variables
define	NFITPARS	24		# fitting parameters
define	NTOTPARS	25		# parameters (fitting + constant)
define	NSETEQS		26		# set equations
define	NEXTEQS		27		# extinction equations
define	NTRNEQS		28		# transformation equations


# Parser column limit values (int)

define	MINCOL		30		# min. input column
define	MINOBSCOL	31		# min. observational column
define	MAXOBSCOL	32		# max. observational column
define	MINCATCOL	33		# max. catalog column
define	MAXCATCOL	34		# max. catalog column


# Parser flags (int)

define	FLAGEQSECT	40		# equation section
define	FLAGERRORS	41		# flag errors (YES/NO)


# Symbol types (int)

define	PTY_OBSVAR	50		# observation input variable
define	PTY_CATVAR	51		# catalog input variable
define	PTY_FITPAR	52		# fitting parameter
define	PTY_CONST	53		# constant parameter
define	PTY_SETEQ	54		# set equation
define	PTY_EXTEQ	55		# extinction equation
define	PTY_TRNEQ	56		# transformation equation


# Symbol attributes (int, pointer)

define	PSYMTYPE	60		# type         (int)
define	PSYMNUM		61		# number       (int)
define	PSYMSUB		62		# substructure (pointer)


# Input variable attributes (int)

define	PINPCOL		70		# column
define	PINPERRCOL	71		# error column
define	PINPWTSCOL	72		# error column
define	PINPSPARE	73		# spare flag


# Fitting parameter attributes (real)

define	PFITVALUE	80		# value
define	PFITDELTA	81		# delta


# Set equation character strings (int)

define	PSEQEQ		90		# equation
define	PSEQERROR	91		# error
define	PSEQERRMIN	92		# minimum error
define	PSEQERRMAX	93		# maximum error
define	PSEQWEIGHT	94		# weight
define	PSEQWTSMIN	95		# minimum weight
define	PSEQWTSMAX	96		# maximum weight


# Set equation code pointers (int)

define	PSEQRPNEQ	100		# equation
define	PSEQRPNERROR	101		# error
define	PSEQRPNERRMIN	102		# minimum error
define	PSEQRPNERRMAX	103		# maximum error
define	PSEQRPNWEIGHT	104		# weight
define	PSEQRPNWTSMIN	105		# minimum weight
define	PSEQRPNWTSMAX	106		# maximum weight


# Transformation equation counters (int)

define	PTEQNRCAT	110		# number of catalog var. (reference)
define	PTEQNROBS	111		# number of obs. variables (reference)
define	PTEQNRVAR	112		# number of variables (reference)
define	PTEQNFCAT	113		# number of catalog variables (fit)
define	PTEQNFOBS	114		# number of obs. variables (fit)
define	PTEQNFVAR	115		# number of variables (fit)
define	PTEQNVAR	116		# total number of variables (ref + fit)
define	PTEQNPAR	117		# number of parameters
define	PTEQNFPAR	118		# number of fitting parameters


# Transformation equation character strings (pointer)

define	PTEQFIT		120		# fit
define	PTEQREF		121		# reference
define	PTEQDER		122		# derivatives
define	PTEQERROR	123		# error
define	PTEQERRMIN	124		# minimum error
define	PTEQERRMAX	125		# maximum error
define	PTEQWEIGHT	126		# weight
define	PTEQWTSMIN	127		# minimum weight
define	PTEQWTSMAX	128		# maximum weight
define	PTEQXPLOT	129		# x plot
define	PTEQYPLOT	130		# y plot


# Transformation equation codes (pointer)

define	PTEQRPNFIT	140		# fitting
define	PTEQRPNREF	141		# reference
define	PTEQRPNDER	142		# derivatives
define	PTEQRPNERROR	143		# error
define	PTEQRPNERRMIN	144		# minimum error
define	PTEQRPNERRMAX	145		# maximum error
define	PTEQRPNWEIGHT	146		# weight
define	PTEQRPNWTSMIN	147		# minimum weight
define	PTEQRPNWTSMAX	148		# maximum weight
define	PTEQRPNXPLOT	149		# x plot
define	PTEQRPNYPLOT	150		# y plot


# Transformation equation buffers (pointer)

define	PTEQSPAR	160		# parameter symbols
define	PTEQSPARVAL	161		# parameter values
define	PTEQSPLIST	162		# parameter list
define	PTEQSREFVAR	163		# reference eq. variable symbols
define	PTEQSREFCNT	164		# reference eq. variable counters
define	PTEQSFITVAR	165		# fit eq. variable symbols
define	PTEQSFITCNT	166		# fit eq. variable counters


# Transformaion equation variable symbols and counters (int)

define	PTEQREFVAR	170		# reference eq. variable symbols
define	PTEQREFCNT	171		# reference eq. counter
define	PTEQFITVAR	172		# fit eq. variable symbols
define	PTEQFITCNT	173		# fit eq. counter


# Transformation equation fitting and constant parameter
# attributes (int, real)

define	PTEQPAR		180		# parameter symbols (int)
define	PTEQPARVAL	181		# parameter values  (real)
define	PTEQPLIST	182		# parameter list    (int)