source: trunk/DataCheck/Tools/get_data.sh@ 19037

Last change on this file since 19037 was 19037, checked in by Daniela Dorner, 6 years ago
added R750 and CUfactor to internal output
  • Property svn:executable set to *
File size: 21.6 KB
Line 
1#!/bin/bash
2
3# ---------------------------------------------------------------- #
4# README README README README README README README README README #
5# ---------------------------------------------------------------- #
6# #
7# To use this script, you need #
8# - a computer with access to the FACT database in La Palma #
9# - a file with the password of a valid mysql-user #
10# - to define the setup below for #
11# a) the DB access #
12# b) the data you want to have #
13# #
14# To define the setup, search for SETUP in this script and #
15# read the details there #
16# #
17# Per data request, you get up to 3 files: #
18# *_internal.dat #
19# *_collaborators.dat #
20# *_external.dat (only if binning is 20min or nightly) #
21# #
22# Please have in mind that this started as a tool for myself, then #
23# others started using it. Also the script is not yet finalized. #
24# In case you find problems and/or have a feature request, please #
25# send and email to dorner@astro.uni-wuerzburg.de #
26# #
27# ---------------------------------------------------------------- #
28# README README README README README README README README README #
29# ---------------------------------------------------------------- #
30
31
32
33
34
35# ToDo (notes DD):
36# ----------------
37# - use get_data.sh for download*.php instead of Send_Data*.sh
38# -> add policy
39# - update function for correction
40# - update CU for QLA
41# - add CU for ISDC analysis
42# - add < 20121212 data for QLA
43# - check crab flux
44# - add E2dNdE?
45# - functionality to determine start time for seaon-binning
46
47#
48# content of files (wish list):
49# -----------------------------
50# REMARK: keep order of columns to allow for reading with TGraph directly from file: X Y EX EY
51#
52# internal
53# --------
54# time: time, delta time, start, stop, ontime
55# flux: excrate, excerr, corrate, corerr, CU CUerr, flux, fluxerr,
56# other info on flux: signif, cu-factor, num exc, num sig, num bg
57# other info: zd th R750cor R750ref
58#
59# external (allow only 20min and nightly binning)
60# --------
61# time: time, delta time, start, stop
62# flux: excrate, excerr
63#
64# collaborators
65# -------------
66# time: time, delta time, start, stop, ontime
67# flux: excrate, excerr, corrate, corerr, flux, flux-err, significance
68#
69# additional information to put:
70# ------------------------------
71# timestamp of creation
72# query (for debugging / answering questions)
73# policy (adapted for internal/collaborators/external) [define in files to be used also by Send_Data*.sh
74#
75
76
77
78function get_results()
79{
80 # some query parts
81
82 # some numbers for flux calculation
83 crabflux="3.37e-11"
84 fluxprec=13
85 crabflux="3.37"
86 fluxprec=2
87
88 # some names and definitions needed several times below
89 # ontime
90 ontime1=" TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn "
91 ontime2=" fOnTimeAfterCuts "
92 ontimeif=" IF(ISNULL(fEffectiveOn), "$ontime2", "$ontime1") "
93 # zd and threshold
94 zenith="fZenithDistance"
95 thresh="IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)"
96 # correction factor for excess rate (formula by TB)
97 correvts=" fNumExcEvts*(pow(cos("$zenith"Mean*PI()/180),3)+14.8/21.9*pow(sin(2*"$zenith"Mean*PI()/180),5))/((1-0.00124/1.21*("$thresh"-500)*("$thresh">=500))) "
98 # conversion to CU (determined by DD for QLA)
99 # https://www.fact-project.org/logbook/showthread.php?tid=4927
100 cufactor="CUQLA(fNight)" # missing: ISDC analysis
101 # some calculations
102 excerr="ExcErr(Sum(fNumSigEvts), SUM(fNumBgEvts))"
103 CU="SUM("$correvts"/"$cufactor")/SUM("$ontimeif")*3600"
104 CUerr=$excerr"/SUM("$ontimeif")*3600*SUM("$correvts"/"$cufactor")/SUM(fNumExcEvts)"
105 excerr2="ExcErr(SUM(o.sigevts),SUM(o.bgevts))"
106 CU2="SUM(o.corevts/o.cufactor)/SUM(o.ot)*3600"
107 CUerr2=$excerr2"/SUM(o.ot)*3600*SUM(o.corevts/o.cufactor)/(SUM(o.sigevts)-SUM(o.bgevts))"
108
109 # columns to be selected
110 # for night-binning
111 ontime=" ROUND(SUM("$ontimeif")/60., 1) AS ontime"
112 excrate=" ROUND(SUM(fNumExcEvts)/SUM("$ontimeif")*3600, 1) AS excrate"
113 significance="ROUND(LiMa(Sum(fNumSigEvts), SUM(fNumBgEvts)), 1) AS significance"
114 numexc="Sum(fNumExcEvts) AS numexc"
115 numsig="Sum(fNumSigEvts) AS numsig"
116 numbg="Sum(fNumBgEvts) AS numbg"
117 excrateerr=" ROUND("$excerr"/SUM("$ontimeif")*3600, 1) AS excrateerr"
118 correxcrate=" ROUND(SUM("$correvts")/SUM("$ontimeif")*3600, 1) AS correxcrate"
119 correxcrateerr=" ROUND("$excerr"/SUM("$ontimeif")*3600*SUM("$correvts")/SUM(fNumExcEvts), 1) AS correxcrateerr"
120 cu=" ROUND("$CU", 2) AS cu"
121 cuerr=" ROUND("$CUerr", 2) AS cuerr"
122 flux="ROUND("$CU" * "$crabflux", 2) AS flux"
123 fluxerr="ROUND("$CUerr" * "$crabflux", 2) AS fluxerr"
124 # for minute binning
125 ontime2=" ROUND(SUM(o.ot)/60., 1) AS ontime"
126 excrate2=" ROUND((SUM(o.sigevts)-SUM(o.bgevts))/SUM(o.ot)*3600, 1) AS excrate"
127 significance2=" ROUND(LiMa(SUM(o.sigevts),SUM(o.bgevts)), 1) AS significance"
128 numexc2="Sum(o.sigevts-o.bgevts) AS numexc"
129 numsig2="Sum(o.sigevts) AS numsig"
130 numbg2="Sum(o.bgevts) AS numbg"
131 excrateerr2=" ROUND("$excerr2"/SUM(o.ot)*3600, 1) AS excrateerr"
132 correxcrate2=" ROUND(SUM(o.corevts)/SUM(o.ot)*3600, 1) AS correxcrate"
133 correxcrateerr2=" ROUND("$excerr2"/SUM(o.ot)*3600*SUM(o.corevts)/(SUM(o.sigevts)-SUM(o.bgevts)), 1) AS correxcrateerr"
134 cu2=" ROUND("$CU2", 2) AS cu"
135 cuerr2=" ROUND("$CUerr2", 2) AS cuerr"
136 flux2="ROUND("$CU2" * "$crabflux", "$fluxprec") AS flux"
137 fluxerr2="ROUND("$CUerr2" *"$crabflux", "$fluxprec") AS fluxerr"
138
139 case $timeunit in
140 mjd) delta="(Mjd(MAX(fRunStop))-Mjd(MIN(fRunStart)))/2"
141 start=" Mjd(MIN(fRunStart)) AS start"
142 stop=" Mjd(MAX(fRunStop)) AS stop"
143 deltat=$delta" AS deltat"
144 time=" Mjd(MIN(fRunStart))+"$delta" AS time"
145 delta2="(Mjd(MAX(o.stop))-Mjd(MIN(o.start)))/2"
146 start2=" Mjd(MIN(o.start)) AS start"
147 stop2=" Mjd(MAX(o.stop)) AS stop"
148 deltat2=$delta2" AS deltat"
149 time2=" Mjd(MIN(o.start))+"$delta2" AS time"
150 ;;
151 unix) delta="(Unix_timestamp(CONVERT_TZ(MAX(fRunStop), '+00:00', 'SYSTEM')) - Unix_timestamp(CONVERT_TZ(MIN(fRunStart), '+00:00', 'SYSTEM')))/2"
152 start="Unix_timestamp(CONVERT_TZ(MIN(fRunStart), '+00:00', 'SYSTEM')) AS start"
153 stop="Unix_timestamp(CONVERT_TZ(MAX(fRunStop), '+00:00', 'SYSTEM')) AS stop"
154 deltat=$delta" AS deltat"
155 time=" Unix_timestamp(CONVERT_TZ(MIN(fRunStart), '+00:00', 'SYSTEM'))+"$delta" AS time"
156 delta2="(Unix_timestamp(CONVERT_TZ(MAX(o.stop), '+00:00', 'SYSTEM')) - Unix_timestamp(CONVERT_TZ(MIN(o.start), '+00:00', 'SYSTEM')))/2"
157 startstop2=" Unix_timestamp(CONVERT_TZ(MIN(o.start), '+00:00', 'SYSTEM')) AS start"
158 startstop2=$starstop2" Unix_timestamp(CONVERT_TZ(MAX(o.stop), '+00:00', 'SYSTEM')) AS stop"
159 deltat2=$delta2" AS deltat"
160 time2=" Unix_timestamp(CONVERT_TZ(MIN(o.start), '+00:00', 'SYSTEM'))+"$delta2" AS time"
161 ;;
162 *) delta="sec_to_time(time_to_sec(timediff(MAX(fRunStop), MIN(fRunStart)))/2)"
163 start=" MIN(fRunStart) AS start"
164 stop=" MAX(fRunStop) AS stop"
165 deltat=$delta" AS deltat"
166 time=" addtime(MIN(fRunStart), "$delta") AS time"
167 delta2="sec_to_time(time_to_sec(timediff(MAX(o.stop), MIN(o.start)))/2)"
168 start2=" MIN(o.start) AS start"
169 stop2=" MAX(o.stop) AS stop"
170 deltat2=$delta" AS deltat"
171 time2=" addtime(MIN(o.start), "$delta2") AS time"
172 ;;
173 esac
174
175 # from and join of query
176 from=" FROM RunInfo LEFT JOIN "$table" USING (fNight, fRunID) "
177
178 # data check based on artificial trigger rate
179 # details see https://www.fact-project.org/logbook/showthread.php?tid=5790
180 #dch=" AND fR750Cor/fR750Ref >0.93 "
181 dch=" AND fR750Cor/fR750Ref BETWEEN 0.93 AND 1.3 "
182
183 # put together where-clause of query
184 # time range and source
185 where=" WHERE fSourceKey="$source" AND fNight BETWEEN "$nightmin" AND "$nightmax
186 where=$where" AND NOT ISNULL(fNumExcEvts) "
187 # some sanity checks
188 where=$where" AND fRunTypeKey=1 "
189 # zd cut
190 where=$where" AND fZenithDistanceMax < "$zdmax
191 # th cut
192 where=$where" AND fThresholdMedian < "$thmax
193 where=$where" "$dch
194
195 if [ $bin -le 0 ]
196 then
197 num="#bin"
198 # first part of the query
199 querystart="SELECT "
200 if [ $bin -eq 0 ]
201 then
202 querystart=$querystart" fPeriod AS num, "
203 else
204 querystart=$querystart" FLOOR((Mjd(fRunStart)-Mjd("$nightmin")-0.5)/"`echo $bin | sed -e 's/-//'`".) AS num, "
205 fi
206 querystart=$querystart" "$time", "$start", "$stop", "
207
208 # final part of the query
209 querybase=$from$where
210 querybase=$querybase" GROUP BY num "
211 if [ "$ontimelimit" = "" ]
212 then
213 querybase=$querybase" HAVING SUM("$ontimeif")>1200 ORDER BY num " # 20 min
214 else
215 querybase=$querybase" HAVING SUM("$ontimeif")>"$ontimelimit" ORDER BY num "
216 fi
217
218 # internal
219 queryint=$querystart
220 queryint=$queryint" "$excrate", "$correxcrate", "$cu", "$flux", "
221 queryint=$queryint" "$deltat", "$ontime", "
222 queryint=$queryint" "$excrateerr", "$correxcrateerr", "$cuerr", "$fluxerr", "
223 queryint=$queryint" "$significance", "
224 queryint=$queryint" MIN(fNight) AS nightmin, MAX(fNight) AS nightmax, "
225 queryint=$queryint" "$numexc", "$numsig", "$numbg", "
226 queryint=$queryint" MIN("$zenith"Min) AS zdmin, MAX("$zenith"Max) AS zdmax, "
227 queryint=$queryint" MIN("$thresh") AS thmin, MAX("$thresh") AS thmax, "
228 queryint=$queryint" ROUND(AVG("$cufactor"), 1) AS cufactor, ROUND(AVG(fR750Cor), 2) AS R750cor, ROUND(AVG(fR750Ref), 2) AS R750ref "
229 queryint=$queryint" "$querybase
230
231 # for collaborators
232 querycol=$querystart
233 querycol=$querycol" "$excrate", "$correxcrate", "$cu", "$flux", "
234 querycol=$querycol" "$deltat", "$ontime", "
235 querycol=$querycol" "$excrateerr", "$correxcrateerr", "$cuerr", "$fluxerr", "
236 querycol=$querycol" "$significance
237 querycol=$querycol" "$querybase
238
239 # external
240 queryext=$querystart" "$excrate", "$deltat", "$excrateerr" "$querybase
241
242 else
243 num=
244 # first part of the query
245 querystart="SELECT "
246 querystart=$querystart" "$time2", "$start2", "$stop2", "
247
248 # final part of the query
249 querybase=" FROM (SELECT fNight, fZenithDistanceMin AS zdmin, fZenithDistanceMax AS zdmax, "$thresh" AS th, "
250 querybase=$querybase" fR750Cor as R750cor, fR750Ref as R750ref, "$cufactor" AS cufactor, "
251 querybase=$querybase" @ot:="$ontimeif" AS ot, fRunStart AS start, fRunStop AS stop, "
252 querybase=$querybase" fNumSigEvts AS sigevts, fNumBgEvts AS bgevts, "$correvts" AS corevts, "
253 querybase=$querybase" IF (@night=fNight AND FLOOR((@os+@ot)/"$bin"./60.)<1, @bl, @bl := @bl + 1) AS block, "
254 querybase=$querybase" IF (@night=fNight AND FLOOR((@os+@ot)/"$bin"./60.)<1, @os:=@os + @ot, @os := @ot) AS os, @night :=fNight AS night "
255 querybase=$querybase$from" CROSS JOIN (SELECT @night :=0, @ot :=0, @os :=0, @bl:=0) PARAMS "
256 querybase=$querybase$where" ORDER BY fRunStart) o GROUP BY block HAVING ontime>0.75*"$bin" ORDER BY 'time'"
257
258 # internal
259 queryint=$querystart
260 queryint=$queryint" "$excrate2", "$correxcrate2", "$cu2", "$flux2", "
261 queryint=$queryint" "$deltat2", "$ontime2", "
262 queryint=$queryint" "$excrateerr2", "$correxcrateerr2", "$cuerr2", "$fluxerr2", "
263 queryint=$queryint" "$significance2", "
264 queryint=$queryint" avg(o.night) AS night, "
265 queryint=$queryint" "$numexc2", "$numsig2", "$numbg2", "
266 queryint=$queryint" MIN(o.zdmin) AS zdmin, MAX(o.zdmax) AS zdmax, MIN(o.th) AS thmin, MAX(o.th) AS thmax, "
267 queryint=$queryint" ROUND(AVG(o.cufactor), 1) AS cufactor, ROUND(AVG(o.R750cor), 2) AS R750cor, ROUND(AVG(o.R750ref), 2) AS R750ref "
268 queryint=$queryint" "$querybase
269
270 # for collaborators
271 querycol=$querystart
272 querycol=$querycol" "$excrate2", "$correxcrate2", "$cu2", "$flux2", "
273 querycol=$querycol" "$deltat2", "$ontime2", "
274 querycol=$querycol" "$excrateerr2", "$correxcrateerr2", "$cuerr2", "$fluxerr2", "
275 querycol=$querycol" "$significance2
276 querycol=$querycol" "$querybase
277
278 # external
279 queryext=$querystart" "$excrate2", "$deltat2", "$ontime2", "$excrateerr2" "$querybase
280
281 fi
282
283
284 fileint=$datapath"/FACT_preliminary_"$name"_internal.dat"
285 if [ "$overwrite" = "yes" ]
286 then
287 echo "creating "$fileint" ..."
288 echo "# This file was created at "`date` > $fileint
289 # add query and policy here
290 fi
291 headerint="# "$num" time["$timeunit"] start["$timeunit"] stop["$timeunit"] excrate[evts/h] corr.excrate[evts/h] flux[CU] flux[e-11/cm2/s] delta_time["$timeunit"] ontime[min]"
292 headerint=$headerint" excrate_err[evts/h] corr.excrate_err[evts/h] flux_err[CU] flux_err[e-11/cm2/s] significance night num_exc num_sig num_bg "
293 headerint=$headerint" zdmin zdmax thmin thmax avg(cufactor) avg(R750cor) avg(R750ref) "
294 echo $headerint >> $fileint
295 #echo "$queryint"
296 mysql --defaults-file=$sqlpw -u factread --host=$host $dbname -s -e "$queryint" >> $fileint
297 #mysql --defaults-file=$sqlpw -u factread --host=$host $dbname -e "$queryint"
298
299 filecol=$datapath"/FACT_preliminary_"$name"_collaborators.dat"
300 if [ "$overwrite" = "yes" ]
301 then
302 echo "creating "$filecol" ..."
303 echo "# This file was created at "`date` > $filecol
304 # add query and policy here
305 fi
306 headercol="# "$num" time["$timeunit"] start["$timeunit"] stop["$timeunit"] excrate[evts/h] corr.excrate[evts/h] flux[CU] flux[e-11/cm2/s] delta_time["$timeunit"] ontime[min]"
307 headercol=$headercol" excrate_err[evts/h] corr.excrate_err[evts/h] flux_err[CU] flux_err[e-11/cm2/s] significance "
308 echo $headercol >> $filecol
309 #echo "$querycol"
310 mysql --defaults-file=$sqlpw -u factread --host=$host $dbname -s -e "$querycol" >> $filecol
311 #mysql --defaults-file=$sqlpw -u factread --host=$host $dbname -e "$querycol
312
313 # write file for externals only for allowed binnings
314 if [ $bin -eq 20 ] || [ $bin -eq -1 ]
315 then
316 fileext=$datapath"/FACT_preliminary_"$name"_external.dat"
317 if [ "$overwrite" = "yes" ]
318 then
319 echo "creating "$fileext" ..."
320 echo "# This file was created at "`date` > $fileext
321 # add query and policy here
322 fi
323 headerext="# "$num" time["$timeunit"] start["$timeunit"] stop["$timeunit"] excrate[evts/h] delta_time["$timeunit"] excrate_err[evts/h] "
324 echo $headerext >> $fileext
325 #echo "$queryext"
326 mysql --defaults-file=$sqlpw -u factread --host=$host $dbname -s -e "$queryext" >> $fileext
327 #mysql --defaults-file=$sqlpw -u factread --host=$host $dbname -e "$queryext"
328 fi
329}
330
331# -------------------------------------------------------------------------------------- #
332# SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP #
333# -------------------------------------------------------------------------------------- #
334# #
335# The lines below define the basic setup for the database and give examples and #
336# explanations for the various options available. #
337# The request of the data itself is done with a smaller setup further down. #
338# #
339# -------------------------------------------------------------------------------------- #
340#
341# ----------
342# DB SETUP
343# ----------
344# path to file with mysql password
345sqlpw=/home/$USER/.mysql.pw
346# host of mysql server with FACT DB
347#host=lp-fact # ISDC
348host=10.0.100.21 # LP or LP via vpn
349#host=localhost # your local machine in case you have a copy of DB
350# name of database
351dbname=factdata
352#
353# -------------
354# BASIC SETUP
355# -------------
356# output path
357path=`dirname $0`
358datapath=$path"/data"
359# create directory for data files
360if ! [ -e $datapath ]
361then
362 mkdir $datapath
363fi
364# time unit
365#timeunit=timestamp # default
366#timeunit=unix
367timeunit=mjd
368# time binning
369# positive values: minutes
370# negative values: days
371# special case 0: period
372# for season binning choose -365 and according start date
373#bin=20 # minutes
374#bin=0 # period
375bin=-1 # nightly
376#bin=-365 # yearly
377# choose analysis
378#table="AnalysisResultsAllQLA" # N/A
379table="AnalysisResultsRunLP" # QLA
380#table="AnalysisResultsRunISDC" # ISDC
381# time range
382nightmin=20111115
383nightmax=20201231
384# defaults for zd and threshold
385zdmax=90 # all data
386thmax=1500 # all data
387# overwrite dataset file?
388# (useful to combine different binnings in one file -> set to "no")
389overwrite="yes"
390# optional: require minimal ontime per bin (default 20 min)
391#ontimelimit=30 # 30 min
392ontimelimit= # default 20 min
393
394# -------------------------------------------------------------------------------------- #
395# SETUP - GET YOUR DATA HERE - SETUP - GET YOUR DATA HERE - SETUP - GET YOUR DATA HERE #
396# -------------------------------------------------------------------------------------- #
397# #
398# Adapt the lines below to your needs. #
399# Overwrite default settings above. #
400# The data-request is sent with the line 'get_results.' #
401# Minumum setup: Define source key and name for file. #
402# The list of source keys can be found at #
403# https://fact-project.org/run_db/db/printtable.php?fTable=Source&fSortBy=fSourceKEY+ #
404# More examples can be found further down. #
405# #
406# REMARKS: #
407# - correction of effect of zd and threshold not yet finalized and only valid for QLA #
408# - no CU-conversion available for ISDC-analysis so far (that for QLA is used instead) #
409# #
410# -------------------------------------------------------------------------------------- #
411
412# 501 MAGIC
413source=2
414name="Mrk501_2014_forMAGIC"
415bin=-1
416nightmin=20140714
417nightmax=20140805
418get_results
419
420bin=30
421name="Mrk501_2014_forMAGIC30"
422get_results
423
424bin=0
425name="P"
426nightmin=20140501
427nightmax=20140930
428get_results
429
430bin=20
431nightmin=20140623
432nightmax=20140623
433name="Mrk501_test"
434get_results
435
436
437# end script here
438exit
439
440
441
442#
443# more examples
444#
445
446# Mrk 421
447source=1
448name="Mrk421_nightly"
449bin=-1
450get_results
451name="Mrk421_20min"
452bin=20
453get_results
454name="Mrk421_3d"
455bin=-3
456get_results
457name="Mrk421_10d"
458bin=-10
459get_results
460name="Mrk421_period"
461bin=0
462get_results
463
464
465
466# Mrk 501
467source=2
468name="Mrk501_nightly"
469bin=-1
470get_results
471name="Mrk501_20min"
472bin=20
473get_results
474name="Mrk501_3d"
475bin=-3
476get_results
477name="Mrk501_10d"
478bin=-10
479get_results
480name="Mrk501_period"
481bin=0
482get_results
483
484
485
486# 2344
487source=3
488name="2344_nightly"
489bin=-1
490get_results
491name="2344_20min"
492bin=20
493get_results
494name="2344_period"
495bin=0
496get_results
497
498
499
500# 1959
501source=7
502name="1959_nightly"
503bin=-1
504get_results
505name="1959_20min"
506bin=20
507get_results
508name="1959_period"
509bin=0
510get_results
511
512
513
514# 0323
515source=12
516name="0323_nightly"
517bin=-1
518get_results
519name="0323_20min"
520bin=20
521get_results
522name="0323_period"
523bin=0
524get_results
525
526
527
528# crab
529source=5
530name="Crab_nightly"
531bin=-1
532get_results
533name="Crab_20min"
534bin=20
535get_results
536name="Crab_period"
537bin=0
538get_results
539name="Crab_season"
540bin=-365
541nightmin=20110716
542nightmax=20180716
543get_results
544
545
546
547name="1959_2016"
548source=7
549bin=-1
550nightmin=20160201
551nightmax=20161105
552get_results
553
554name="1959_all_variable"
555overwrite="no"
556source=7
557bin=-365
558nightmin=20120201
559nightmax=20130131
560get_results
561nightmin=20130201
562nightmax=20140131
563get_results
564nightmin=20140201
565nightmax=20150131
566get_results
567bin=0
568nightmin=20150201
569nightmax=20160131
570get_results
571bin=-1
572nightmin=20160201
573nightmax=20170131
574get_results
575bin=0
576nightmin=20170201
577nightmax=20180131
578get_results
579
580
581
582overwrite="yes"
583name="1959_all_variable2"
584overwrite="no"
585source=7
586bin=-365
587nightmin=20120201
588nightmax=20130131
589get_results
590nightmin=20130201
591nightmax=20140131
592get_results
593nightmin=20140201
594nightmax=20150131
595get_results
596bin=0
597nightmin=20150201
598nightmax=20160131
599get_results
600bin=-1
601nightmin=20160201
602nightmax=20160817
603get_results
604bin=0
605nightmin=20160818
606nightmax=20180131
607get_results
608
609
610
611overwrite="yes"
612bin=0
613source=3
614name="2344period"
615get_results
616
617
618
619# flare night (HESS)
620name="Mrk501_10min_flarenight"
621source=2
622bin=10
623nightmin=20140623
624nightmax=20140623
625get_results
626
627
628
629# flare night (HESS)
630name="Mrk501_5min_flarenight"
631source=2
632bin=5
633nightmin=20140623
634nightmax=20140623
635get_results
636
637
638
639
640# full sample
641name="Mrk421_all_nightly"
642source=1
643get_results
644
645name="Mrk501_all_nightly"
646source=2
647get_results
648
649name="1959_all_nightly"
650source=7
651get_results
652
653name="2344_all_nightly"
654source=3
655get_results
656
657
658
659name="HESE20160427"
660source=19
661nightmin=20160425
662bin=-10
663get_results
664
665name="AMON20160731"
666source=21
667nightmin=20160730
668bin=-10
669get_results
670
671
672
Note: See TracBrowser for help on using the repository browser.