-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
121 lines (114 loc) · 2.99 KB
/
config.py
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
config = """io:
search_datastore : "/path/to/datastore/"
in_dir : "/path/to/input_dir/"
out_dir : "/path/to/output_dir/"
results_dir : "/path/to/results_dir/"
# Whether or not to generate the background from the run
from_run : False
use_runlist : False
binning:
# Energy binning
e_min: 0.1
e_max: 100
e_bins: 20
# Offset/wobble binning
off_min: 0
off_max: 2.5
off_bins: 5
config:
njobs : 1
exclusion:
star_cat : "./Hipparcos_MAG8_1997.dat"
# Exculde region around a simbad resolveable source name
# Expecting name, exclusion
exclude_source_name :
- [ "MGRO J1908+06", "0.5 deg"]
# Exculde region around a given ra, dec
exclude_regions :
- ["287.10", "6.39", "0.5"]
# Exculde region around a given ra, dec
# Exculde region around a given ra, dec
# exclude_source_pos : [ "287.10 deg", "6.39 deg", "0.5 deg"]
# Exculde entire run within a distance to a given ra/dec
# Expecting ra, dec, exclusion
# exclude_source_run : [ "287.10 deg", "6.39 deg", "3.5 deg"]
background_selection:
# el_min : 40
# el_max : 30
nsb_diff : 0.7
# 1/sin(el) difference
el_diff : 0.15
# az difference
az_diff : 45
# Minimum number of telescopes
n_tels : 4
# Maximum time between runs in days
time_max : 180
# Requested number of hours for producing a background
time_request : 10
# Whether or not to smooth the background
smooth : False
# Sigma of the gaussian smoothing kernel
smooth_sigma : 1.0
# If we should use the KL divergence to find the background runs
KL_DIV : True
store_KL : True
bright_sources :
- "Crab"
- "Mrk421"
- "Mrk501"
- "1ES1215+303"
- "1ES1218+304"
- "RGBJ0710+591"
- "1ES1440+122"
- "PG1553+113"
- "IC443"
- "Boomerang"
- "3C66A"
- "W Comae"
- "M87"
- "OJ 287"
run_selection:
# Runs of interests
runlist : [ 64080, 64081, 64082, 64083]
# Source of interest
use_name : False
source_name : "Crab"
source_ra : 83.6333
source_dec : 22.0133
# Coords to search around
# coords : ["287.10 deg", "6.39 deg"]
# coords_galactic : ["40.39 deg", "-0.79 deg"]
# Maximum offset to select data from
offset_max : 1.5
# Number of telescopes to select
n_tel : 4
# elevation min/maz
el_min : 40
# el_max : 90
# Time range (d/m/y)
# time_min : "01/09/2007"
# time_max : "01/09/2025"
spectrum :
e_min : 0.2
e_max : 10
e_bins : 10
# Defaulting to a crab-like spectrum
type : "PL"
params : [3.48e-11,2.4]
lightcurve:
bin_size_min: 1000
sky_map:
map_deg: 2.5
exclusion_regions: []
theta: 0.08944272
on_exclusion_region: 0.35
ring_rin: "0.7 deg"
ring_width: "0.1 deg"
truncate: True
bin_size : "0.02 deg"
aeff_max_percent : 0.15
min_star_brightness : 8
results_file: 'results.yaml'
plot_names: 'my_source'
"""