The io section defines where files are stored.
io:
search_datastore : "/gamma_data/MegaStore/moderate2tel/"
in_dir : "/gamma_data/Crab_data/"
out_dir : "/gamma_data/Crab_data_background/"
results_dir : "/gamma_data/Crab_data_background/results/"
# Whether or not to generate the background from the run
from_run : False
-
search_datastoreis the path to a datastore that is queried when trying to find suitable background runs. -
in_diris the input directory/datastore, where the unmodified fits files will be located. Backgrounds will be obtained for run in this directory. -
out_diris where runs with background files will be saved to.out_dir!=in_dirto avoid overwriting raw data. However since backgrounds can overwritten without effecting raw event data, these could be the same directory. -
results_diris where high level results (light curves, spectra, skymaps, etc.) will be written to. -
from_runis a boolean (True/False) to control whether or not backgrounds are generated from the run.-
If
from_run == Truethen backgrounds are generated from the FoV of each run, with known sources and bright stars excluded. Backgrounds will only be generated from 1 run. -
If
from_run == Falsethensearch_datastorewill be queried for suitable background runs. Known sources and bright stars will be excluded. Background will be generated fromnruns matching the selection criteria.
-
The binning section defines the bins used when generating backgrounds.
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
e_minthe minimum energy (TeV)e_maxthe maximum energy (TeV)e_binsthe number of bins betweene_minande_maxoff_minthe minimum offset to the camera centre (degrees)off_maxthe maximum offset to the camera centre (degrees)off_binsthe number of bins betweenoff_minandoff_max
The config section defines some run parameters relevent to the execution of scripts.
config:
njobs : 10
njobsthe number of parallel jobs allowed.njobs == -1will use all available coresnjobs == 1will use a single core
The exclusion section defines regions to be excluded when generating backgrounds and running automatic analysis.
exclusion:
star_cat : "./Hipparcos_MAG8_1997.dat"
# Exculde region around a given ra, dec
exclude_regions :
- ["287.10", "6.39", "0.5"]
# Exculde region around a simbad resolveable source name
# Expecting name, exclusion
exclude_source_name : [ "MGRO J1908+06", "0.5 deg"]
star_catpath to the star catalog used (redundent?)exclude_regionslist of regions to exclude. Each entry is assumed to be[ra (deg), dec (deg), exclusion_radius (deg)]. Whereraanddecare the Right Ascension and Declination in degrees (J2000).exclusion_radiusis the radius of a circular region to exclude.
The background_selection defines the search parameter to be used when searching for background runs.
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
# Whether or not to smooth the background
smooth : False
# Runlist for creating backgroud
# bkg_runlist :
# 64080 : [65895, 63978]
# 64081 : [65895, 63978]
# 64082 : [65895, 63978]
# 64083 : [65895, 63978]
el_minminimum elevation for background runs.el_maxmaximum elevation for background runs.el_difmaximum different in 1/sin(elevation).nsb_difmaximum difference between nsb levels.az_difmaximum difference in azimutal angle.n_telsminimum number of telescopestime_maxmaximum time difference between runs (days)smoothwhether or not to smooth the background:- If
smooth == True2D background is converted to 3D, smoothed with a gaussian filter and converted back to 2D. - If
smooth == Falsethe 2D background isn't smoothed.
- If
bkg_runlist(optional) ifbkg_runlistis provided, then the runs explicitly listed will be used when generating backgrounds. (Not currently implemented... ToDo: check why not)
The analysis_selection section defines analysis run parameters for running automatic analysis. (ToDo: Add energy, offset cuts and any other analysis parameters).
analysis_selection:
theta2 : 0.008
-
theta2is the$\theta^2$ -cut used when running analysis.
The run_selection select defines the search parameters when searching for data we're interested in.
run_selection:
# Runs of interests
runlist : [ 7, 64080, 64081, 64082, 64083]
# Source of interest
source_name : "Crab"
source_ra : 83.6333
source_dec : 22.0133
runlistarray of runs or a text file runlistsource_namename of the sourcesource_raRight Ascension in degrees (J2000)source_decDeclination in degrees (J2000)
runlist can contain runs that are not included in io:search_datastore (for example in the above 7). When running prepare_dataset, missing runs will be reported as run_selection:missing_runs.
Automatic searching based on source name or coordinates isn't yet...