-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdataset_source_info.schema.yaml
329 lines (292 loc) · 9.22 KB
/
dataset_source_info.schema.yaml
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
type: object
additionalProperties: false
properties:
source_id:
type: integer
description: Unique source identifier integer in gamma-cat
reference_id:
type: string
description: Dataset reference identifier
file_id:
type: integer
description: Counter for cases where multiple measurements are given in a paper for a given source (e.g. for sub-regions).
telescope:
"$ref": "#/definitions/telescope"
data:
type: object
additionalProperties: false
properties:
livetime:
type: string
description: |
Livetime (observation time minus dead)
String that can be parsed by Astropy Units.
zenith:
type: string
description: |
Mean zenith angle
String that can be parsed by Astropy Units.
offset:
type: string
description: |
Mean offset angle
String that can be parsed by Astropy Units.
n_on:
type: number
unit: counts
description: Number of events in the on region
n_off:
type: number
unit: counts
description: Number of events in the off region
alpha:
type: number
description: On / off exposure ration (used for excess computation)
excess:
type: number
description: Excess (number of photons)
significance:
type: number
description: Significance of the excess (pre-trial)
significance_post_trial:
type: number
description: Significance of the excess (post-trial)
pos:
type: object
additionalProperties: false
properties:
ra:
type: object
additionalProperties: false
description: |
Right Ascension (ICRC or FK5 J2000, it's almost the same)
Properties are strings that can be parsed by Astropy Angle.
properties:
val: {type: string, description: Measured value}
err: {type: string, description: Statistical error}
err_sys: {type: string, description: Systematic error}
dec:
type: object
additionalProperties: false
description: |
Declination (ICRC or FK5 J2000, it's almost the same)
Properties are strings that can be parsed by Astropy Angle.
properties:
val: {type: string, description: Measured value}
err: {type: string, description: Statistical error}
err_sys: {type: string, description: Systematic error}
glon:
type: object
additionalProperties: false
description: |
Galactic longitude
Properties are strings that can be parsed by Astropy Angle.
properties:
val: {type: string, description: Measured value}
err: {type: string, description: Statistical error}
err_sys: {type: string, description: Systematic error}
glat:
type: object
additionalProperties: false
description: |
Galactic latitude
Properties are strings that can be parsed by Astropy Angle.
properties:
val: {type: string, description: Measured value}
err: {type: string, description: Statistical error}
err_sys: {type: string, description: Systematic error}
morph:
type: object
additionalProperties: false
properties:
type:
"$ref": "#/definitions/morph_type"
sigma:
type: object
additionalProperties: false
description: |
Width parameter (semantics type-dependent)
Properties are strings that can be parsed by Astropy Angle.
properties:
val: {type: string, description: Measured value}
err: {type: string, description: Statistical error}
err_sys: {type: string, description: Systematic error}
sigma2:
type: object
additionalProperties: false
description: |
Width parameter (semantics type-dependent)
Properties are strings that can be parsed by Astropy Angle.
properties:
val: {type: string, description: Measured value}
err: {type: string, description: Statistical error}
err_sys: {type: string, description: Systematic error}
pa:
type: object
additionalProperties: false
description: |
Position angle
Properties are strings that can be parsed by Astropy Angle.
properties:
frame: {enum: [radec, galactic]}
val: {type: string, description: Measured value}
err: {type: string, description: Statistical error}
err_sys: {type: string, description: Systematic error}
orbit:
type: object
additionalProperties: false
properties:
mjd0:
type: string
description: |
Zero phase for orbital period in MJD
String that can be parsed by Astropy Units.
period:
type: object
additionalProperties: false
description: |
Orbital period
properties:
val: {type: number, description: Measured value}
err: {type: number, description: Statistical error}
errn: {type: number, description: Lower statistical error}
errp: {type: number, description: Upper statistical error}
err_sys: {type: number, description: Systematic error}
unit: {type: string, description: Astropy Unit equivalent with "day".}
spec:
type: object
additionalProperties: false
properties:
model:
type: object
additionalProperties: true
# TODO: bring back spectral model validation at some point (possibly in Gammapy)
# properties:
#
# type:
# "$ref": "#/definitions/spec_type"
#
# norm:
# type: object
# additionalProperties: false
# unit: 1e-12 cm-2 s-1 TeV-1
# description: Flux norm parameter
# properties:
# val: {type: number, description: Measured value}
# err: {type: number, description: Statistical error}
# err_sys: {type: number, description: Systematic error}
#
# e_ref: {type: number, unit: TeV, description: Reference energy for norm}
#
# index:
# type: object
# additionalProperties: false
# unit: dimensionless
# description: Spectral index parameter
# properties:
# val: {type: number, description: Measured value}
# err: {type: number, description: Statistical error}
# err_sys: {type: number, description: Systematic error}
#
# e_cut:
# type: object
# additionalProperties: false
# unit: TeV
# description: Cutoff energy parameter
# properties:
# val: {type: number}
# err: {type: number, description: Statistical error}
# err_sys: {type: number, description: Systematic error}
#
# covar:
# type: array
# description: |
# Covariance matrix
# TODO: decide on format.
# An example of a published covariance matrix is here: 2016arXiv161101863H
erange:
type: object
additionalProperties: false
description: |
Energy range of the measurement.
Note that this is usually different from the energy range of integral fluxes quoted.
properties:
min: {type: number}
max: {type: number}
unit: {type: string}
theta:
type: string
description: |
Circular aperture photometry radius
String that can be parsed by Astropy Units.
mjd:
type: object
additionalProperties: false
description: |
TODO
Properties are strings that can be parsed by Astropy Units.
properties:
min: {type: number, unit: day}
max: {type: number, unit: day}
phase:
type: object
additionalProperties: false
description: TODO
properties:
min: {type: number}
max: {type: number}
notes:
type: string
description: Hand-written, free-format notes
required:
- source_id
- reference_id
- telescope
# - morphology
# - spectrum
definitions:
telescope:
enum:
- hess
- veritas
- magic
- whipple
- hegra
- cangaroo
- hawc
- milagro
- crimea
- argo
- cat
- durham
- tibet
- tactic
description: Telescope or instrument or observatory
morph_type:
enum:
- point
- gauss
- shell
description: Morphology type
# The following description is just descriptive, not used in schema validation
enum_values:
- name: point
description: See Delta2D in Gammapy
- name: gauss
description: See Gaussian2D in Gammapy
- name: shell
description: See Shell2D in Gammapy
spec_type:
enum:
- pl
- pl2
- ecpl
description: Spectrum type
# The following description is just descriptive, not used in schema validation
enum_values:
- name: pl
description: See PowerLaw in Gammapy
- name: pl2
description: See PowerLaw2 in Gammapy
- name: ecpl
description: See ExponentialCutoffPowerLaw in Gammapy