| 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 | # ToDo (notes DD):
|
|---|
| 34 | # ----------------
|
|---|
| 35 | # - do conversion to fluxes using FACT Crab spectrum
|
|---|
| 36 | # - add < 20121212 data for QLA
|
|---|
| 37 | # - new version of zd/th-correction and CU from Aachen when ready
|
|---|
| 38 | # nice-to-have
|
|---|
| 39 | # - add E2dNdE
|
|---|
| 40 | # - functionality to determine start time for seaon-binning
|
|---|
| 41 | # - file as attachment to email for download.php
|
|---|
| 42 |
|
|---|
| 43 | #
|
|---|
| 44 | # content of files (wish list):
|
|---|
| 45 | # -----------------------------
|
|---|
| 46 | # REMARK: keep order of columns to allow for reading with TGraph directly from file: X Y EX EY
|
|---|
| 47 | #
|
|---|
| 48 | # internal
|
|---|
| 49 | # --------
|
|---|
| 50 | # time: time, delta time, start, stop, ontime
|
|---|
| 51 | # flux: excrate, excerr, CU, CUerr, flux, fluxerr corrate, corerr, CUcor CUcorerr, fluxcor, fluxcorerr,
|
|---|
| 52 | # other info on flux: signif, cu-factor, num exc, num sig, num bg
|
|---|
| 53 | # other info: zd th R750cor R750ref
|
|---|
| 54 | #
|
|---|
| 55 | # external (allow only 20min and nightly binning)
|
|---|
| 56 | # --------
|
|---|
| 57 | # time: time, delta time, start, stop
|
|---|
| 58 | # flux: excrate, excerr
|
|---|
| 59 | #
|
|---|
| 60 | # collaborators
|
|---|
| 61 | # -------------
|
|---|
| 62 | # time: time, delta time, start, stop, ontime
|
|---|
| 63 | # flux: excrate, excerr, corrate, corerr, CUcor CUcorerr, fluxcor, fluxcorrerr, significance
|
|---|
| 64 | #
|
|---|
| 65 | # additional information to put:
|
|---|
| 66 | # ------------------------------
|
|---|
| 67 | # timestamp of creation
|
|---|
| 68 | # query (for debugging / answering questions)
|
|---|
| 69 | # policy (adapted for internal/collaborators/external) [define in files to be used also by Send_Data*.sh
|
|---|
| 70 | #
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 | function print_policy()
|
|---|
| 74 | {
|
|---|
| 75 | echo "#"
|
|---|
| 76 | echo "# Data Usage Policy: "
|
|---|
| 77 | if [ "$expert" == "no" ]
|
|---|
| 78 | then
|
|---|
| 79 | echo "# Using data from the FACT Quick Look Analysis, you agree to cite the FACT design"
|
|---|
| 80 | echo "# paper (H. Anderhub et al. JINST 8 P6008) and the quick look analysis website "
|
|---|
| 81 | echo "# (https://fact-project.org/monitoring)."
|
|---|
| 82 | echo "#"
|
|---|
| 83 | echo "# References: "
|
|---|
| 84 | echo "# FACT design paper: http://adsabs.harvard.edu/abs/2013JInst...8P6008A"
|
|---|
| 85 | echo "# http://iopscience.iop.org/1748-0221/8/06/P06008 "
|
|---|
| 86 | echo "# FACT Performance Paper: http://adsabs.harvard.edu/abs/2014JInst...9P0012B"
|
|---|
| 87 | echo "# http://iopscience.iop.org/1748-0221/9/10/P10012"
|
|---|
| 88 | echo "# FACT quick look analysis: https://fact-project.org/monitoring"
|
|---|
| 89 | echo "# http://adsabs.harvard.edu/abs/2015arXiv150202582D"
|
|---|
| 90 | echo "# If you intend to use data or information from this website, please let us know for reference."
|
|---|
| 91 | else
|
|---|
| 92 | echo "# As a member, associated member or collaborator of the FACT Collaboration, you have access to internal information."
|
|---|
| 93 | echo "# Any publication using FACT internal information has to have the full FACT author list."
|
|---|
| 94 | fi
|
|---|
| 95 | echo "#"
|
|---|
| 96 | }
|
|---|
| 97 |
|
|---|
| 98 | print_selection()
|
|---|
| 99 | {
|
|---|
| 100 | echo "#"
|
|---|
| 101 | echo "# Your Selection: "
|
|---|
| 102 | sourcename=`mysql --defaults-file=$sqlpw -s -e "SELECT fSourceName FROM Source WHERE fSourceKey="$source`
|
|---|
| 103 | echo "# Source: "$sourcename
|
|---|
| 104 | echo "# Time range: "$nightmin"-"$nightmax
|
|---|
| 105 | echo "# Time format: "$timeunit
|
|---|
| 106 | if [ $bin -lt 0 ]
|
|---|
| 107 | then
|
|---|
| 108 | unit="night(s)"
|
|---|
| 109 | else
|
|---|
| 110 | if [ $bin -eq 0 ]
|
|---|
| 111 | then
|
|---|
| 112 | unit="periods"
|
|---|
| 113 | else
|
|---|
| 114 | unit="minutes"
|
|---|
| 115 | fi
|
|---|
| 116 | fi
|
|---|
| 117 | binning=`echo $bin | sed -e 's/-//'`" "$unit
|
|---|
| 118 | echo "# Binning: "$binning
|
|---|
| 119 | if [ "$expert" != "no" ]
|
|---|
| 120 | then
|
|---|
| 121 | echo "# Additional Internal Selection: "
|
|---|
| 122 | echo "# "`echo $table | sed -e 's/AnalysisResultsRun//'`"-Analysis was used."
|
|---|
| 123 | if [ "$zdmax" != "" ]
|
|---|
| 124 | then
|
|---|
| 125 | echo "# Maximum Zenith Distance: "$zdmax" degree"
|
|---|
| 126 | fi
|
|---|
| 127 | if [ "$thmax" != "" ]
|
|---|
| 128 | then
|
|---|
| 129 | echo "# Maximum Trigger Threshold: "$thmax" DAC counts"
|
|---|
| 130 | fi
|
|---|
| 131 | if [ "$light" != "" ]
|
|---|
| 132 | then
|
|---|
| 133 | echo "# Light Condition Cut: "$lightcut
|
|---|
| 134 | fi
|
|---|
| 135 | if [ "$dust" != "" ]
|
|---|
| 136 | then
|
|---|
| 137 | echo "# Calima Cut: dust < "$dust" ug/cm3"
|
|---|
| 138 | fi
|
|---|
| 139 | if [ "$factorcut" != "" ]
|
|---|
| 140 | then
|
|---|
| 141 | echo "# Factor Cut: zdfactor*thfactor > "$factorcut
|
|---|
| 142 | fi
|
|---|
| 143 | if [ "$usedch" == "yes" ]
|
|---|
| 144 | then
|
|---|
| 145 | echo "# Data quality selection was applied. "
|
|---|
| 146 | if [ "$dch" == "" ]
|
|---|
| 147 | then
|
|---|
| 148 | echo "# Standard data check based on cosmic-ray rate: "$dchstd
|
|---|
| 149 | else
|
|---|
| 150 | echo "# You selected a custom datacheck: "$dch
|
|---|
| 151 | fi
|
|---|
| 152 | fi
|
|---|
| 153 | if [ "$crabfluxconv" != "" ]
|
|---|
| 154 | then
|
|---|
| 155 | echo "# You set a custom conversion to fluxes: "$crabfluxconv" [10^-11 ph/s/cm2]"
|
|---|
| 156 | fi
|
|---|
| 157 | fi
|
|---|
| 158 | echo "#"
|
|---|
| 159 | }
|
|---|
| 160 |
|
|---|
| 161 | function get_results()
|
|---|
| 162 | {
|
|---|
| 163 | # some query parts
|
|---|
| 164 |
|
|---|
| 165 | # these values use the Crab spectrum from HESS 2006
|
|---|
| 166 | # hess 2006 http://www.aanda.org/articles/aa/pdf/2006/39/aa5351-06.pdf
|
|---|
| 167 | # PL.SetParameter(1,-2.63);
|
|---|
| 168 | # PL.SetParameter(0, 3.45e-11);
|
|---|
| 169 | case "$table" in
|
|---|
| 170 | "AnalysisResultsRunLP")
|
|---|
| 171 | zdfactor="(pow(cos(fZenithDistanceMean*PI()/180),3)+14.8/21.9*pow(sin(2*fZenithDistanceMean*PI()/180),5))"
|
|---|
| 172 | #zdfactor="(1/(pow(cos(fZenithDistanceMean*PI()/180),3)+14.8/21.9*pow(sin(2*fZenithDistanceMean*PI()/180),5)))"
|
|---|
| 173 | thfactor="(1-0.00124/1.21*(IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)-500)*(IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)>=500))"
|
|---|
| 174 | # ETh: 1100 GeV
|
|---|
| 175 | crabflux="1.81"
|
|---|
| 176 | ;;
|
|---|
| 177 | "AnalysisResultsRunISDC")
|
|---|
| 178 | zdfactor="pow(cos(fZenithDistanceMean*PI()/180)*exp(1-cos(fZenithDistanceMean*PI()/180)),4.2)"
|
|---|
| 179 | thfactor="(1.18-IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)*0.00062)"
|
|---|
| 180 | # ETh: 1070 GeV
|
|---|
| 181 | crabflux="1.89"
|
|---|
| 182 | ;;
|
|---|
| 183 | "AnalysisResultsRunCutsLC")
|
|---|
| 184 | zdfactor="pow(cos(fZenithDistanceMean*PI()/180)*exp(1-cos(fZenithDistanceMean*PI()/180)),4.5)"
|
|---|
| 185 | thfactor="(1.37-IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)*0.00118)"
|
|---|
| 186 | # ETh: 785 GeV
|
|---|
| 187 | crabflux="3.14"
|
|---|
| 188 | ;;
|
|---|
| 189 | "*")
|
|---|
| 190 | zdfactor="0"
|
|---|
| 191 | thfactor="0"
|
|---|
| 192 | crabflux="0"
|
|---|
| 193 | ;;
|
|---|
| 194 | esac
|
|---|
| 195 |
|
|---|
| 196 | # conversion from crab units to fluxes (if a different value is given in setup
|
|---|
| 197 | if [ "$crabfluxconv" != "" ]
|
|---|
| 198 | then
|
|---|
| 199 | crabflux=$crabfluxconv #e-11
|
|---|
| 200 | fi
|
|---|
| 201 | #echo "crabflux: "$crabflux
|
|---|
| 202 | fluxprec=2
|
|---|
| 203 |
|
|---|
| 204 | # some names and definitions needed several times below
|
|---|
| 205 | # ontime
|
|---|
| 206 | ontime1=" TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn "
|
|---|
| 207 | ontime2=" fOnTimeAfterCuts "
|
|---|
| 208 | ontimeif=" IF(ISNULL(fEffectiveOn), "$ontime2", "$ontime1") "
|
|---|
| 209 | # zd and threshold
|
|---|
| 210 | zenith="fZenithDistance"
|
|---|
| 211 | thresh="IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)"
|
|---|
| 212 | # correction for zd- and th-dependence
|
|---|
| 213 | correvts=" fNumExcEvts/"$zdfactor"/"$thfactor
|
|---|
| 214 | # conversion to CU - stored in each result-table (determined by DD Feb 2019)
|
|---|
| 215 | cufactor="fCU"
|
|---|
| 216 | # some calculations
|
|---|
| 217 | #excerr="ExcErr(SUM(fNumSigEvts), SUM(fNumBgEvts))"
|
|---|
| 218 | excerr="ExcErr(fNumSigEvts, fNumBgEvts)"
|
|---|
| 219 | CU="SUM(fNumExcEvts/"$cufactor")/SUM("$ontimeif")*3600"
|
|---|
| 220 | #CUerr=$excerr"/SUM("$ontimeif")*3600*SUM(fNumExcEvts/"$cufactor")/SUM(fNumExcEvts)"
|
|---|
| 221 | CUerr="SQRT(SUM(POW("$excerr"/"$cufactor",2)))/SUM("$ontimeif")*3600"
|
|---|
| 222 | CUcor="SUM("$correvts"/"$cufactor")/SUM("$ontimeif")*3600"
|
|---|
| 223 | #CUcorerr=$excerr"/SUM("$ontimeif")*3600*SUM("$correvts"/"$cufactor")/SUM(fNumExcEvts)"
|
|---|
| 224 | CUcorerr="SQRT(SUM(POW("$excerr"/"$cufactor"/"$zdfactor"/"$thfactor",2)))/SUM("$ontimeif")*3600"
|
|---|
| 225 | #excerr2="ExcErr(SUM(o.sigevts),SUM(o.bgevts))"
|
|---|
| 226 | excerr2="ExcErr(o.sigevts,o.bgevts)"
|
|---|
| 227 | CU2="SUM((o.sigevts-o.bgevts)/o.cufactor)/SUM(o.ot)*3600"
|
|---|
| 228 | #CUerr2=$excerr2"/SUM(o.ot)*3600*SUM((o.sigevts-o.bgevts)/o.cufactor)/(SUM(o.sigevts)-SUM(o.bgevts))"
|
|---|
| 229 | CUerr2="SQRT(SUM(POW("$excerr2"/o.cufactor,2)))/SUM(o.ot)*3600"
|
|---|
| 230 | #CUcor2="SUM(o.corevts/o.cufactor)/SUM(o.ot)*3600"
|
|---|
| 231 | CUcor2="SUM(o.excevts/o.zdfactor/o.thfactor/o.cufactor)/SUM(o.ot)*3600"
|
|---|
| 232 | #CUcorerr2=$excerr2"/SUM(o.ot)*3600*SUM(o.corevts/o.cufactor)/(SUM(o.sigevts)-SUM(o.bgevts))"
|
|---|
| 233 | CUcorerr2="SQRT(SUM(POW("$excerr2"/o.cufactor/o.zdfactor/o.thfactor,2)))/SUM(o.ot)*3600"
|
|---|
| 234 |
|
|---|
| 235 | #"ROUND(SQRT(SUM(POW(ExcErr(fNumSigEvts, fNumBgEvts)/pow(cos(fZenithDistanceMean*PI()/180)*exp(1-cos(fZenithDistanceMean*PI()/180)),4.5)/(1.37-IF(ISNULL(fThresholdMinSet),fThresholdMedian,fThresholdMinSet)*0.00118), 2)))/SUM( IF(ISNULL(fEffectiveOn), fOnTimeAfterCuts , TIME_TO_SEC(TIMEDIFF(fRunStop,fRunStart))*fEffectiveOn ) )*3600, 1)"
|
|---|
| 236 |
|
|---|
| 237 | # columns to be selected
|
|---|
| 238 | # for night-binning
|
|---|
| 239 | ontime=" ROUND(SUM("$ontimeif")/60., 1) AS ontime"
|
|---|
| 240 | excrate=" ROUND(SUM(fNumExcEvts)/SUM("$ontimeif")*3600, 1) AS excrate"
|
|---|
| 241 | significance="ROUND(LiMa(Sum(fNumSigEvts), SUM(fNumBgEvts)), 1) AS significance"
|
|---|
| 242 | numexc="SUM(fNumExcEvts) AS numexc"
|
|---|
| 243 | numsig="SUM(fNumSigEvts) AS numsig"
|
|---|
| 244 | numbg="SUM(fNumBgEvts) AS numbg"
|
|---|
| 245 | #excrateerr=" ROUND("$excerr"/SUM("$ontimeif")*3600, 1) AS excrateerr"
|
|---|
| 246 | excrateerr=" ROUND(ExcErr(SUM(fNumSigEvts), SUM(fNumBgEvts))/SUM("$ontimeif")*3600, 1) AS excrateerr"
|
|---|
| 247 | correxcrate=" ROUND(SUM("$correvts")/SUM("$ontimeif")*3600, 1) AS correxcrate"
|
|---|
| 248 | #correxcrateerr=" ROUND("$excerr"/SUM("$ontimeif")*3600*SUM("$correvts")/SUM(fNumExcEvts), 1) AS correxcrateerr"
|
|---|
| 249 | correxcrateerr=" ROUND(SQRT(SUM(POW("$excerr"/"$zdfactor"/"$thfactor", 2)))/SUM("$ontimeif")*3600, 1) AS correxcrateerr"
|
|---|
| 250 | cu=" ROUND("$CU", 2) AS cu"
|
|---|
| 251 | cuerr=" ROUND("$CUerr", 2) AS cuerr"
|
|---|
| 252 | cucor=" ROUND("$CUcor", 2) AS cucor"
|
|---|
| 253 | cucorerr=" ROUND("$CUcorerr", 2) AS 'cucorerr'"
|
|---|
| 254 | flux="ROUND("$CU" * "$crabflux", 2) AS flux"
|
|---|
| 255 | fluxerr="ROUND("$CUerr" * "$crabflux", 2) AS fluxerr"
|
|---|
| 256 | fluxcor="ROUND("$CUcor" * "$crabflux", 2) AS fluxcor"
|
|---|
| 257 | fluxcorerr="ROUND("$CUcorerr" * "$crabflux", 2) AS fluxcorerr"
|
|---|
| 258 | # for minute binning
|
|---|
| 259 | ontime2=" ROUND(SUM(o.ot)/60., 1) AS ontime"
|
|---|
| 260 | #excrate2=" ROUND((SUM(o.sigevts)-SUM(o.bgevts))/SUM(o.ot)*3600, 1) AS excrate"
|
|---|
| 261 | excrate2=" ROUND((SUM(o.excevts))/SUM(o.ot)*3600, 1) AS excrate"
|
|---|
| 262 | significance2=" ROUND(LiMa(SUM(o.sigevts),SUM(o.bgevts)), 1) AS significance"
|
|---|
| 263 | #numexc2="Sum(o.sigevts-o.bgevts) AS numexc"
|
|---|
| 264 | numexc2="SUM(o.excevts) AS numexc"
|
|---|
| 265 | numsig2="SUM(o.sigevts) AS numsig"
|
|---|
| 266 | numbg2="SUM(o.bgevts) AS numbg"
|
|---|
| 267 | excrateerr2=" ROUND(ExcErr(SUM(o.sigevts),SUM(o.bgevts))/SUM(o.ot)*3600, 1) AS excrateerr"
|
|---|
| 268 | correxcrate2=" ROUND(SUM(o.excevts/o.zdfactor/o.thfactor)/SUM(o.ot)*3600, 1) AS correxcrate"
|
|---|
| 269 | #correxcrateerr2=" ROUND("$excerr2"/SUM(o.ot)*3600*SUM(o.corevts)/(SUM(o.sigevts)-SUM(o.bgevts)), 1) AS correxcrateerr"
|
|---|
| 270 | correxcrateerr2=" ROUND(SQRT(SUM(POW("$excerr2"/o.zdfactor/o.thfactor,2)))/SUM(o.ot)*3600,1) AS correxcrateerr"
|
|---|
| 271 | cu2=" ROUND("$CU2", 2) AS cu"
|
|---|
| 272 | cuerr2=" ROUND("$CUerr2", 2) AS cuerr"
|
|---|
| 273 | cucor2=" ROUND("$CUcor2", 2) AS cucor"
|
|---|
| 274 | cucorerr2=" ROUND("$CUcorerr2", 2) AS 'cucorerr'"
|
|---|
| 275 | flux2="ROUND("$CU2" * "$crabflux", "$fluxprec") AS flux"
|
|---|
| 276 | fluxerr2="ROUND("$CUerr2" *"$crabflux", "$fluxprec") AS fluxerr"
|
|---|
| 277 | fluxcor2="ROUND("$CUcor2" * "$crabflux", "$fluxprec") AS fluxcor"
|
|---|
| 278 | fluxcorerr2="ROUND("$CUcorerr2" *"$crabflux", "$fluxprec") AS fluxcorerr"
|
|---|
| 279 |
|
|---|
| 280 | case $timeunit in
|
|---|
| 281 | mjd) delta="(Mjd(MAX(fRunStop))-Mjd(MIN(fRunStart)))/2"
|
|---|
| 282 | start=" Mjd(MIN(fRunStart)) AS start"
|
|---|
| 283 | stop=" Mjd(MAX(fRunStop)) AS stop"
|
|---|
| 284 | deltat=$delta" AS deltat"
|
|---|
| 285 | time=" Mjd(MIN(fRunStart))+"$delta" AS time"
|
|---|
| 286 | delta2="(Mjd(MAX(o.stop))-Mjd(MIN(o.start)))/2"
|
|---|
| 287 | start2=" Mjd(MIN(o.start)) AS start"
|
|---|
| 288 | stop2=" Mjd(MAX(o.stop)) AS stop"
|
|---|
| 289 | deltat2=$delta2" AS deltat"
|
|---|
| 290 | time2=" Mjd(MIN(o.start))+"$delta2" AS time"
|
|---|
| 291 | ;;
|
|---|
| 292 | unix) delta="(Unix_timestamp(CONVERT_TZ(MAX(fRunStop), '+00:00', 'SYSTEM')) - Unix_timestamp(CONVERT_TZ(MIN(fRunStart), '+00:00', 'SYSTEM')))/2"
|
|---|
| 293 | start="Unix_timestamp(CONVERT_TZ(MIN(fRunStart), '+00:00', 'SYSTEM')) AS start"
|
|---|
| 294 | stop="Unix_timestamp(CONVERT_TZ(MAX(fRunStop), '+00:00', 'SYSTEM')) AS stop"
|
|---|
| 295 | deltat=$delta" AS deltat"
|
|---|
| 296 | time=" Unix_timestamp(CONVERT_TZ(MIN(fRunStart), '+00:00', 'SYSTEM'))+"$delta" AS time"
|
|---|
| 297 | delta2="(Unix_timestamp(CONVERT_TZ(MAX(o.stop), '+00:00', 'SYSTEM')) - Unix_timestamp(CONVERT_TZ(MIN(o.start), '+00:00', 'SYSTEM')))/2"
|
|---|
| 298 | start2=" Unix_timestamp(CONVERT_TZ(MIN(o.start), '+00:00', 'SYSTEM')) AS start"
|
|---|
| 299 | stop2=" Unix_timestamp(CONVERT_TZ(MAX(o.stop), '+00:00', 'SYSTEM')) AS stop"
|
|---|
| 300 | deltat2=$delta2" AS deltat"
|
|---|
| 301 | time2=" Unix_timestamp(CONVERT_TZ(MIN(o.start), '+00:00', 'SYSTEM'))+"$delta2" AS time"
|
|---|
| 302 | ;;
|
|---|
| 303 | *) delta="sec_to_time(time_to_sec(timediff(MAX(fRunStop), MIN(fRunStart)))/2)"
|
|---|
| 304 | start=" MIN(fRunStart) AS start"
|
|---|
| 305 | stop=" MAX(fRunStop) AS stop"
|
|---|
| 306 | deltat=$delta" AS deltat"
|
|---|
| 307 | time=" addtime(MIN(fRunStart), "$delta") AS time"
|
|---|
| 308 | delta2="sec_to_time(time_to_sec(timediff(MAX(o.stop), MIN(o.start)))/2)"
|
|---|
| 309 | start2=" MIN(o.start) AS start"
|
|---|
| 310 | stop2=" MAX(o.stop) AS stop"
|
|---|
| 311 | deltat2=$delta2" AS deltat"
|
|---|
| 312 | time2=" addtime(MIN(o.start), "$delta2") AS time"
|
|---|
| 313 | ;;
|
|---|
| 314 | esac
|
|---|
| 315 |
|
|---|
| 316 | # from and join of query
|
|---|
| 317 | from=" FROM RunInfo LEFT JOIN "$table" USING (fNight, fRunID) "
|
|---|
| 318 |
|
|---|
| 319 | # data check based on artificial trigger rate
|
|---|
| 320 | # details see https://www.fact-project.org/logbook/showthread.php?tid=5790
|
|---|
| 321 | #dch=" AND fR750Cor/fR750Ref >0.93 "
|
|---|
| 322 | dchstd=" AND fR750Cor/fR750Ref BETWEEN 0.93 AND 1.3 "
|
|---|
| 323 |
|
|---|
| 324 | # put together where-clause of query
|
|---|
| 325 | # time range and source
|
|---|
| 326 | where=" WHERE fSourceKey="$source" AND fNight BETWEEN "$nightmin" AND "$nightmax
|
|---|
| 327 | where=$where" AND NOT ISNULL(fNumExcEvts) "
|
|---|
| 328 | # some sanity checks
|
|---|
| 329 | where=$where" AND fRunTypeKey=1 "
|
|---|
| 330 | # remove empty rows
|
|---|
| 331 | if [ "$rmemptyrows" == "yes" ]
|
|---|
| 332 | then
|
|---|
| 333 | where=$where" AND NOT ISNULL(fZenithDistanceMean) AND (NOT ISNULL(fThresholdMinSet) OR NOT ISNULL(fThresholdMedian)) AND NOT ISNULL(fCU) "
|
|---|
| 334 | fi
|
|---|
| 335 | # zd cut
|
|---|
| 336 | if [ "$zdmax" != "" ]
|
|---|
| 337 | then
|
|---|
| 338 | where=$where" AND fZenithDistanceMax < "$zdmax
|
|---|
| 339 | fi
|
|---|
| 340 | # th cut
|
|---|
| 341 | if [ "$thmax" != "" ]
|
|---|
| 342 | then
|
|---|
| 343 | where=$where" AND "$thresh" < "$thmax
|
|---|
| 344 | fi
|
|---|
| 345 | # dust cut
|
|---|
| 346 | if [ "$dust" != "" ]
|
|---|
| 347 | then
|
|---|
| 348 | where=$where" AND fTNGDust<"$dust
|
|---|
| 349 | fi
|
|---|
| 350 | # light condition cut
|
|---|
| 351 | if [ "$light" == "nomoon" ]
|
|---|
| 352 | then
|
|---|
| 353 | lightcut=" fZenithDistanceMoon>90"
|
|---|
| 354 | fi
|
|---|
| 355 | if [ "$light" == "dark" ]
|
|---|
| 356 | then
|
|---|
| 357 | lightcut=" fMoonZenithDistance>90 AND fSunZenithDistance>108 "
|
|---|
| 358 | fi
|
|---|
| 359 | if [ "$light" != "" ]
|
|---|
| 360 | then
|
|---|
| 361 | where=$where" AND "$lightcut
|
|---|
| 362 | fi
|
|---|
| 363 | # if [ "$factorcut" != "" ]
|
|---|
| 364 | # then
|
|---|
| 365 | # where=$where" AND ( ("$zdfactor") * ("$thfactor")) > "$factorcut" "
|
|---|
| 366 | # fi
|
|---|
| 367 | querybase=$from$where
|
|---|
| 368 |
|
|---|
| 369 | if [ "$usedch" == "yes" ]
|
|---|
| 370 | then
|
|---|
| 371 | if [ "$dch" == "" ]
|
|---|
| 372 | then
|
|---|
| 373 | querydch=$dchstd
|
|---|
| 374 | else
|
|---|
| 375 | echo "you are using for datacheck: "$dch
|
|---|
| 376 | querydch=$dch
|
|---|
| 377 | fi
|
|---|
| 378 | else
|
|---|
| 379 | querydch=
|
|---|
| 380 | fi
|
|---|
| 381 |
|
|---|
| 382 |
|
|---|
| 383 | if [ $bin -le 0 ]
|
|---|
| 384 | then
|
|---|
| 385 | # first part of the query
|
|---|
| 386 | querystart="SELECT "
|
|---|
| 387 | querystart=$querystart" "$time", "$start", "$stop", "
|
|---|
| 388 | # final part of the query
|
|---|
| 389 | if [ $bin -eq 0 ]
|
|---|
| 390 | then
|
|---|
| 391 | orderby=" ORDER BY fPeriod "
|
|---|
| 392 | #querystart=$querystart" fPeriod AS num, "
|
|---|
| 393 | queryend=" GROUP BY fPeriod "
|
|---|
| 394 | else
|
|---|
| 395 | num=" FLOOR((Mjd(fRunStart)-Mjd("$nightmin")-0.5)/"`echo $bin | sed -e 's/-//'`".) "
|
|---|
| 396 | orderby=" ORDER BY "$num
|
|---|
| 397 | #querystart=$querystart" FLOOR((Mjd(fRunStart)-Mjd("$nightmin")-0.5)/"`echo $bin | sed -e 's/-//'`".) AS num, "
|
|---|
| 398 | queryend=" GROUP BY "$num
|
|---|
| 399 | fi
|
|---|
| 400 | #queryend=" GROUP BY num "
|
|---|
| 401 | if [ "$ontimelimit" = "" ]
|
|---|
| 402 | then
|
|---|
| 403 | queryend=$queryend" HAVING SUM("$ontimeif")>1200 "
|
|---|
| 404 | else
|
|---|
| 405 | queryend=$queryend" HAVING SUM("$ontimeif")>"$ontimelimit
|
|---|
| 406 | fi
|
|---|
| 407 | # if [ "$ontimelimit" = "" ]
|
|---|
| 408 | # then
|
|---|
| 409 | # queryend=$queryend" HAVING abs(cucorerr) < 1 AND SUM("$ontimeif")>1200 ORDER BY "$orderby
|
|---|
| 410 | # else
|
|---|
| 411 | # queryend=$queryend" HAVING abs(cucorerr) < 1 AND SUM("$ontimeif")>"$ontimelimit" ORDER BY "$orderby
|
|---|
| 412 | # fi
|
|---|
| 413 |
|
|---|
| 414 | # internal
|
|---|
| 415 | queryint=$querystart
|
|---|
| 416 | queryint=$queryint" "$excrate", "$cu", "$flux", "$correxcrate", "$cucor", "$fluxcor", "
|
|---|
| 417 | queryint=$queryint" "$deltat", "$ontime", "
|
|---|
| 418 | queryint=$queryint" "$excrateerr", "$cuerr", "$fluxerr", "$correxcrateerr", "$cucorerr", "$fluxcorerr", "
|
|---|
| 419 | queryint=$queryint" "$significance", "
|
|---|
| 420 | queryint=$queryint" MIN(fNight) AS nightmin, MAX(fNight) AS nightmax, "
|
|---|
| 421 | queryint=$queryint" "$numexc", "$numsig", "$numbg", "
|
|---|
| 422 | queryint=$queryint" MIN("$zenith"Min) AS zdmin, MAX("$zenith"Max) AS zdmax, "
|
|---|
| 423 | queryint=$queryint" MIN("$thresh") AS thmin, MAX("$thresh") AS thmax, "
|
|---|
| 424 | queryint=$queryint" ROUND(AVG("$cufactor"), 1) AS cufactor, ROUND(AVG("$zdfactor"), 1) AS zdfactor, ROUND(AVG("$thfactor"), 1) AS thfactor, "
|
|---|
| 425 | queryint=$queryint" ROUND(AVG(fR750Cor), 2) AS R750cor, ROUND(AVG(fR750Ref), 2) AS R750ref "
|
|---|
| 426 | if [ "$factorcut" == "" ]
|
|---|
| 427 | then
|
|---|
| 428 | queryint=$queryint" "$querybase" "$querydch" "$queryend" "$orderby
|
|---|
| 429 | else
|
|---|
| 430 | # queryint=$queryint" "$querybase" "$querydch" "$queryend" "$orderby
|
|---|
| 431 | queryint=$queryint" "$querybase" "$querydch" "$queryend" AND ( zdfactor * thfactor > "$factorcut") "$orderby
|
|---|
| 432 | fi
|
|---|
| 433 |
|
|---|
| 434 | # for collaborators
|
|---|
| 435 | querycol=$querystart
|
|---|
| 436 | querycol=$querycol" "$excrate", "$correxcrate", "$cucor", "$fluxcor", "
|
|---|
| 437 | querycol=$querycol" "$deltat", "$ontime", "
|
|---|
| 438 | querycol=$querycol" "$excrateerr", "$correxcrateerr", "$cucorerr", "$fluxcorerr", "
|
|---|
| 439 | querycol=$querycol" "$significance
|
|---|
| 440 | if [ "$factorcut" == "" ]
|
|---|
| 441 | then
|
|---|
| 442 | querycol=$querycol" "$querybase" "$querydch" "$queryend" "$orderby
|
|---|
| 443 | else
|
|---|
| 444 | # querycol=$querycol" "$querybase" "$querydch" "$queryend" "$orderby
|
|---|
| 445 | querycol=$querycol" "$querybase" "$querydch" "$queryend" AND (AVG("$zdfactor") * AVG("$thfactor") > "$factorcut") "$orderby
|
|---|
| 446 | fi
|
|---|
| 447 |
|
|---|
| 448 | # external
|
|---|
| 449 | # no datacheck applied for external files
|
|---|
| 450 | # no cut on factors
|
|---|
| 451 | queryext=$querystart" "$excrate", "$deltat", "$excrateerr" "$querybase" "$queryend" "$orderby
|
|---|
| 452 |
|
|---|
| 453 | else
|
|---|
| 454 | # first part of the query
|
|---|
| 455 | querystart="SELECT "
|
|---|
| 456 | querystart=$querystart" "$time2", "$start2", "$stop2", "
|
|---|
| 457 |
|
|---|
| 458 | # final part of the query
|
|---|
| 459 | querybase=" FROM (SELECT fNight, fZenithDistanceMin AS zdmin, fZenithDistanceMax AS zdmax, "$thresh" AS th, "
|
|---|
| 460 | querybase=$querybase" fR750Cor AS R750cor, fR750Ref AS R750ref, "$cufactor" AS cufactor, "
|
|---|
| 461 | querybase=$querybase" "$zdfactor" AS zdfactor, "$thfactor" AS thfactor, "
|
|---|
| 462 | querybase=$querybase" @ot:="$ontimeif" AS ot, fRunStart AS start, fRunStop AS stop, "
|
|---|
| 463 | #querybase=$querybase" fNumSigEvts AS sigevts, fNumBgEvts AS bgevts, "$correvts" AS corevts, "
|
|---|
| 464 | querybase=$querybase" fNumSigEvts AS sigevts, fNumBgEvts AS bgevts, fNumExcEvts AS excevts, "
|
|---|
| 465 | querybase=$querybase" IF (@night=fNight AND FLOOR((@os+@ot)/"$bin"./60.)<1, @bl, @bl := @bl + 1) AS block, "
|
|---|
| 466 | querybase=$querybase" IF (@night=fNight AND FLOOR((@os+@ot)/"$bin"./60.)<1, @os:=@os + @ot, @os := @ot) AS os, @night :=fNight AS night "
|
|---|
| 467 | querybase=$querybase$from" CROSS JOIN (SELECT @night :=0, @ot :=0, @os :=0, @bl:=0) PARAMS "
|
|---|
| 468 | querybase=$querybase$where
|
|---|
| 469 | queryend=" ORDER BY fRunStart) o GROUP BY block HAVING ontime>0.75*"$bin" ORDER BY 'time'"
|
|---|
| 470 |
|
|---|
| 471 | # internal
|
|---|
| 472 | queryint=$querystart
|
|---|
| 473 | queryint=$queryint" "$excrate2", "$cu2", "$flux2", "$correxcrate2", "$cucor2", "$fluxcor2", "
|
|---|
| 474 | queryint=$queryint" "$deltat2", "$ontime2", "
|
|---|
| 475 | queryint=$queryint" "$excrateerr2", "$cuerr2", "$fluxerr2", "$correxcrateerr2", "$cucorerr2", "$fluxcorerr2", "
|
|---|
| 476 | queryint=$queryint" "$significance2", "
|
|---|
| 477 | #queryint=$queryint" avg(o.night) AS night, "
|
|---|
| 478 | queryint=$queryint" min(o.night) AS nightmin, max(o.night) AS nightmax, "
|
|---|
| 479 | queryint=$queryint" "$numexc2", "$numsig2", "$numbg2", "
|
|---|
| 480 | queryint=$queryint" MIN(o.zdmin) AS zdmin, MAX(o.zdmax) AS zdmax, MIN(o.th) AS thmin, MAX(o.th) AS thmax, "
|
|---|
| 481 | queryint=$queryint" ROUND(AVG(o.cufactor), 1) AS cufactor, ROUND(AVG(o.R750cor), 2) AS R750cor, ROUND(AVG(o.R750ref), 2) AS R750ref "
|
|---|
| 482 | if [ "$factorcut" == "" ]
|
|---|
| 483 | then
|
|---|
| 484 | queryint=$queryint" "$querybase" "$querydch" "$queryend
|
|---|
| 485 | else
|
|---|
| 486 | queryint=$queryint" "$querybase" "$querydch" AND ("$zdfactor" * "$thfactor") > "$factorcut" "$queryend
|
|---|
| 487 | fi
|
|---|
| 488 | # for collaborators
|
|---|
| 489 | querycol=$querystart
|
|---|
| 490 | querycol=$querycol" "$excrate2", "$correxcrate2", "$cu2", "$fluxcor2", "
|
|---|
| 491 | querycol=$querycol" "$deltat2", "$ontime2", "
|
|---|
| 492 | querycol=$querycol" "$excrateerr2", "$correxcrateerr2", "$cuerr2", "$fluxcorerr2", "
|
|---|
| 493 | querycol=$querycol" "$significance2
|
|---|
| 494 | if [ "$factorcut" == "" ]
|
|---|
| 495 | then
|
|---|
| 496 | querycol=$querycol" "$querybase" "$querydch" "$queryend
|
|---|
| 497 | else
|
|---|
| 498 | querycol=$querycol" "$querybase" "$querydch" AND ("$zdfactor" * "$thfactor") > "$factorcut" "$queryend
|
|---|
| 499 | fi
|
|---|
| 500 |
|
|---|
| 501 | # external
|
|---|
| 502 | # no datacheck applied for external files
|
|---|
| 503 | queryext=$querystart" "$excrate2", "$deltat2", "$ontime2", "$excrateerr2" "$querybase" "$queryend
|
|---|
| 504 |
|
|---|
| 505 | fi
|
|---|
| 506 |
|
|---|
| 507 | # write file for externals only for allowed binnings
|
|---|
| 508 | if [ $bin -eq 20 ] || [ $bin -eq -1 ]
|
|---|
| 509 | then
|
|---|
| 510 | fileext=$datapath"/FACT_preliminary_"$name"_external.dat"
|
|---|
| 511 | if [ "$overwrite" = "yes" ]
|
|---|
| 512 | then
|
|---|
| 513 | if [ "$mode" != "auto" ]
|
|---|
| 514 | then
|
|---|
| 515 | echo "creating "$fileext" ..."
|
|---|
| 516 | fi
|
|---|
| 517 | echo "# This file was created at "`date` > $fileext
|
|---|
| 518 | print_policy >> $fileext
|
|---|
| 519 | fi
|
|---|
| 520 | print_selection >> $fileext
|
|---|
| 521 | headerext="# time["$timeunit"] start["$timeunit"] stop["$timeunit"] excess-rate[evts/h] (stop-start)/2["$timeunit"] excess-rate_error[evts/h] "
|
|---|
| 522 | echo $headerext >> $fileext
|
|---|
| 523 | #echo "$queryext"
|
|---|
| 524 | mysql --defaults-file=$sqlpw -s -e "$queryext" >> $fileext
|
|---|
| 525 | #mysql --defaults-file=$sqlpw -e "$queryext"
|
|---|
| 526 | fi
|
|---|
| 527 | if [ "$mode" == "auto" ] && [ "$expert" == "no" ]
|
|---|
| 528 | then
|
|---|
| 529 | return
|
|---|
| 530 | fi
|
|---|
| 531 |
|
|---|
| 532 | fileint=$datapath"/FACT_preliminary_"$name"_internal.dat"
|
|---|
| 533 | if [ "$overwrite" = "yes" ]
|
|---|
| 534 | then
|
|---|
| 535 | if [ "$mode" != "auto" ]
|
|---|
| 536 | then
|
|---|
| 537 | echo "creating "$fileint" ..."
|
|---|
| 538 | fi
|
|---|
| 539 | echo "# This file was created at "`date` > $fileint
|
|---|
| 540 | print_policy >> $fileint
|
|---|
| 541 | fi
|
|---|
| 542 | print_selection >> $fileint
|
|---|
| 543 | echo "# The following query was used: " >> $fileint
|
|---|
| 544 | echo "# $queryint" >> $fileint
|
|---|
| 545 | echo "#" >> $fileint
|
|---|
| 546 | headerint="# time["$timeunit"] start["$timeunit"] stop["$timeunit"] excess-rate[evts/h] flux[CU] flux[e-11ph/cm2/s] corrected_excess-rate[evts/h] corrected_flux[CU] corrected_flux[e-11ph/cm2/s] (stop-start)/2["$timeunit"] ontime[min]"
|
|---|
| 547 | headerint=$headerint" excess-rate_error[evts/h] flux_error[CU] flux_error[e-11ph/cm2/s] corrected_excess-rate_error[evts/h] corrected_flux_error[CU] corrected_flux_error[e-11/cm2/s] significance nightmin nightmax num_exc num_sig num_bg "
|
|---|
| 548 | headerint=$headerint" zdmin zdmax thmin thmax avg(cufactor) avg(zdfactor) avg(thfactor) avg(R750cor) avg(R750ref) "
|
|---|
| 549 | echo $headerint >> $fileint
|
|---|
| 550 | #echo "$queryint"
|
|---|
| 551 | mysql --defaults-file=$sqlpw -s -e "$queryint" >> $fileint
|
|---|
| 552 | #mysql --defaults-file=$sqlpw -e "$queryint"
|
|---|
| 553 | if [ "$mode" == "auto" ]
|
|---|
| 554 | then
|
|---|
| 555 | return
|
|---|
| 556 | fi
|
|---|
| 557 |
|
|---|
| 558 | filecol=$datapath"/FACT_preliminary_"$name"_collaborators.dat"
|
|---|
| 559 | if [ "$overwrite" = "yes" ]
|
|---|
| 560 | then
|
|---|
| 561 | echo "creating "$filecol" ..."
|
|---|
| 562 | echo "# This file was created at "`date` > $filecol
|
|---|
| 563 | print_policy >> $filecol
|
|---|
| 564 | fi
|
|---|
| 565 | print_selection >> $filecol
|
|---|
| 566 | #echo "# The following query was used: " >> $filecol
|
|---|
| 567 | #echo "# $querycol" >> $filecol
|
|---|
| 568 | #echo "#" >> $filecol
|
|---|
| 569 | headercol="# time["$timeunit"] start["$timeunit"] stop["$timeunit"] excess-rate[evts/h] corrected_excess-rate[evts/h] corrected_flux[CU] corrected_flux[e-11ph/cm2/s] (stop-start)/2["$timeunit"] ontime[min]"
|
|---|
| 570 | headercol=$headercol" excess-rate_error[evts/h] corrected_excess-rate_error[evts/h] corrected_flux_error[CU] corrected_flux_error[e-11ph/cm2/s] significance "
|
|---|
| 571 | echo $headercol >> $filecol
|
|---|
| 572 | #echo "$querycol"
|
|---|
| 573 | mysql --defaults-file=$sqlpw -s -e "$querycol" >> $filecol
|
|---|
| 574 | #mysql --defaults-file=$sqlpw -e "$querycol
|
|---|
| 575 | }
|
|---|
| 576 |
|
|---|
| 577 | # evaluation of command line options (for usage with download.php)
|
|---|
| 578 |
|
|---|
| 579 | if [ ${#@} -eq 16 ]
|
|---|
| 580 | then
|
|---|
| 581 | #get_data.sh $start $stop $source $timebin $email $table $time $expert $dch $zd $th $light $dust $rmemptyrows $factorcut
|
|---|
| 582 | mode="auto"
|
|---|
| 583 | overwrite="yes"
|
|---|
| 584 | # setup for usage with download.php
|
|---|
| 585 | datapath="/home/factwww/dch/data"
|
|---|
| 586 | #datapath="./data"
|
|---|
| 587 | sqlpw=/home/fact/.mysql.pw
|
|---|
| 588 | #sqlpw=/home/fact/.mysql.pw2
|
|---|
| 589 | #host=10.0.100.21
|
|---|
| 590 | #dbname=factdata
|
|---|
| 591 | nightmin=$1
|
|---|
| 592 | nightmax=$2
|
|---|
| 593 | source=$3
|
|---|
| 594 | bin=$4
|
|---|
| 595 | if [ "$bin" == "00" ]
|
|---|
| 596 | then
|
|---|
| 597 | bin=0
|
|---|
| 598 | fi
|
|---|
| 599 | email=$5
|
|---|
| 600 | table=$6
|
|---|
| 601 | timeunit=$7
|
|---|
| 602 | expert=$8
|
|---|
| 603 | usedch=$9 # novalue gives same result as no
|
|---|
| 604 | if [ "${10}" != "novalue" ] && [ "${10}" != "all" ]
|
|---|
| 605 | then
|
|---|
| 606 | zdmax=${10}
|
|---|
| 607 | fi
|
|---|
| 608 | if [ "${11}" != "novalue" ] && [ "${11}" != "all" ]
|
|---|
| 609 | then
|
|---|
| 610 | thmax=${11}
|
|---|
| 611 | fi
|
|---|
| 612 | if [ "${12}" != "novalue" ] && [ "${12}" != "all" ]
|
|---|
| 613 | then
|
|---|
| 614 | light=${12}
|
|---|
| 615 | fi
|
|---|
| 616 | if [ "${13}" != "novalue" ] && [ "${13}" != "all" ]
|
|---|
| 617 | then
|
|---|
| 618 | dust=${13}
|
|---|
| 619 | fi
|
|---|
| 620 | rmemptyrows=${14}
|
|---|
| 621 | if [ "${15}" != "novalue" ] && [ "${15}" != "all" ]
|
|---|
| 622 | then
|
|---|
| 623 | factorcut=${15}
|
|---|
| 624 | fi
|
|---|
| 625 | if [ "${16}" != "-" ]
|
|---|
| 626 | then
|
|---|
| 627 | crabfluxconv=${16}
|
|---|
| 628 | fi
|
|---|
| 629 | name=`echo $email | sed -e 's/@/-at-/'`
|
|---|
| 630 | get_results
|
|---|
| 631 |
|
|---|
| 632 | # sending email
|
|---|
| 633 | if [ "$expert" == "yes" ]
|
|---|
| 634 | then
|
|---|
| 635 | cat $fileint | mail -s 'FACT internal data download' -b qla@fact-project.org -r qla@fact-project.org $email
|
|---|
| 636 | else
|
|---|
| 637 | cat $fileext | mail -s 'FACT data download' -b qla@fact-project.org -r qla@fact-project.org $email
|
|---|
| 638 | fi
|
|---|
| 639 |
|
|---|
| 640 | exit
|
|---|
| 641 | fi
|
|---|
| 642 |
|
|---|
| 643 |
|
|---|
| 644 |
|
|---|
| 645 | # -------------------------------------------------------------------------------------- #
|
|---|
| 646 | # SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP SETUP #
|
|---|
| 647 | # -------------------------------------------------------------------------------------- #
|
|---|
| 648 | # #
|
|---|
| 649 | # The lines below define the basic setup for the database and give examples and #
|
|---|
| 650 | # explanations for the various options available. #
|
|---|
| 651 | # The request of the data itself is done with a smaller setup further down. #
|
|---|
| 652 | # #
|
|---|
| 653 | # -------------------------------------------------------------------------------------- #
|
|---|
| 654 | #
|
|---|
| 655 | # ----------
|
|---|
| 656 | # DB SETUP
|
|---|
| 657 | # ----------
|
|---|
| 658 | # path to file with mysql setup (user, password, host, db-name)
|
|---|
| 659 | sqlpw=/home/$USER/.mysql.pw.local
|
|---|
| 660 | sqlpw=/home/$USER/.mysql.pw.ethz.fact
|
|---|
| 661 | #
|
|---|
| 662 | # -------------
|
|---|
| 663 | # BASIC SETUP
|
|---|
| 664 | # -------------
|
|---|
| 665 | # output path
|
|---|
| 666 | path=`dirname $0`
|
|---|
| 667 | datapath=$path"/data"
|
|---|
| 668 | # create directory for data files
|
|---|
| 669 | if ! [ -e $datapath ]
|
|---|
| 670 | then
|
|---|
| 671 | mkdir $datapath
|
|---|
| 672 | fi
|
|---|
| 673 | # time unit
|
|---|
| 674 | #timeunit=timestamp # default
|
|---|
| 675 | #timeunit=unix
|
|---|
| 676 | timeunit=mjd
|
|---|
| 677 | # time binning
|
|---|
| 678 | # positive values: minutes
|
|---|
| 679 | # negative values: days
|
|---|
| 680 | # special case 0: period
|
|---|
| 681 | # for season binning choose -365 and according start date
|
|---|
| 682 | #bin=20 # minutes
|
|---|
| 683 | #bin=0 # period
|
|---|
| 684 | bin=-1 # nightly
|
|---|
| 685 | #bin=-365 # yearly
|
|---|
| 686 | # choose analysis
|
|---|
| 687 | #table="AnalysisResultsAllQLA" # N/A
|
|---|
| 688 | #table="AnalysisResultsRunLP" # QLA
|
|---|
| 689 | #table="AnalysisResultsRunISDC" # ISDC
|
|---|
| 690 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 691 | # time range
|
|---|
| 692 | nightmin=20111115
|
|---|
| 693 | nightmax=20201231
|
|---|
| 694 | # overwrite dataset file?
|
|---|
| 695 | # (useful to combine different binnings in one file -> set to "no")
|
|---|
| 696 | overwrite="yes"
|
|---|
| 697 | # optional: require minimal ontime per bin (default 20 min)
|
|---|
| 698 | # values given in seconds
|
|---|
| 699 | # option only valid for binnings >= 1 day
|
|---|
| 700 | #ontimelimit=1800 # 30 min
|
|---|
| 701 | ontimelimit= # default 20 min
|
|---|
| 702 | # data quality selection
|
|---|
| 703 | # if you explicitely don't want a datacheck, you can comment the following line
|
|---|
| 704 | usedch="yes"
|
|---|
| 705 | # use your own datacheck instead
|
|---|
| 706 | # use a line like the following defining your own data quality selection cut
|
|---|
| 707 | #dch=" AND fR750Cor/fR750Ref BETWEEN 0.93 AND 1.3 "
|
|---|
| 708 | # apply additional predefined cuts
|
|---|
| 709 | # light conditions
|
|---|
| 710 | #light="nomoon" # only data with no moon (but twilight allowed)
|
|---|
| 711 | #light="dark" # only dark night data
|
|---|
| 712 | # TNG dust - cut away data with calima
|
|---|
| 713 | #dust=1
|
|---|
| 714 | #dust=10
|
|---|
| 715 | # use different conversion from CU to fluxes
|
|---|
| 716 | #crabfluxconv="2.5"
|
|---|
| 717 | # remove lines which contain NULL (e.g. zd-corrected flux when zd=NULL)
|
|---|
| 718 | rmemptyrows="yes"
|
|---|
| 719 | rmemptyrows="no"
|
|---|
| 720 | # remove lines with zdfactor * thfactor > value
|
|---|
| 721 | factorcut=0.3
|
|---|
| 722 |
|
|---|
| 723 |
|
|---|
| 724 | # -------------------------------------------------------------------------------------- #
|
|---|
| 725 | # SETUP - GET YOUR DATA HERE - SETUP - GET YOUR DATA HERE - SETUP - GET YOUR DATA HERE #
|
|---|
| 726 | # -------------------------------------------------------------------------------------- #
|
|---|
| 727 | # #
|
|---|
| 728 | # Adapt the lines below to your needs. #
|
|---|
| 729 | # Overwrite default settings above. #
|
|---|
| 730 | # The data-request is sent with the line 'get_results'. #
|
|---|
| 731 | # Minumum setup: Define source key and name for file. #
|
|---|
| 732 | # The list of source keys can be found at #
|
|---|
| 733 | # https://fact-project.org/run_db/db/printtable.php?fTable=Source&fSortBy=fSourceKEY+ #
|
|---|
| 734 | # More examples can be found further down. #
|
|---|
| 735 | # #
|
|---|
| 736 | # -------------------------------------------------------------------------------------- #
|
|---|
| 737 |
|
|---|
| 738 |
|
|---|
| 739 |
|
|---|
| 740 | # LC for periodicity studies
|
|---|
| 741 | datapath=/home/dorner/analysis.FACT/flux.states.2020
|
|---|
| 742 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 743 | # nightly
|
|---|
| 744 | bin=-1
|
|---|
| 745 | nightmin=20111115
|
|---|
| 746 | nightmax=20201231
|
|---|
| 747 | # 0323
|
|---|
| 748 | name="0323_nightly"
|
|---|
| 749 | source=12
|
|---|
| 750 | get_results
|
|---|
| 751 |
|
|---|
| 752 | exit
|
|---|
| 753 |
|
|---|
| 754 |
|
|---|
| 755 | # LC for Mrk 421 paper with MAGIC - check IDV
|
|---|
| 756 | # from David: MJD 57030 - 57540 (i.e. 8.1.2015 - 1.6.2016)
|
|---|
| 757 | datapath=/home/dorner/analysis.FACT/421.IDV
|
|---|
| 758 | # include lidar data
|
|---|
| 759 | dch=" AND fR750Cor/fR750Ref > 0.93 "
|
|---|
| 760 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 761 | # conversion factor to fluxes for CutsLC
|
|---|
| 762 | # using slope of -3.35 -> threshold ~685 GeV
|
|---|
| 763 | # details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28902#pid28902
|
|---|
| 764 | crabfluxconv="3.64"
|
|---|
| 765 | # Mrk 421
|
|---|
| 766 | source=1
|
|---|
| 767 | # 20 min
|
|---|
| 768 | bin=20
|
|---|
| 769 | # time range of MAGIC paper
|
|---|
| 770 | nightmin=20141101
|
|---|
| 771 | nightmax=20160630
|
|---|
| 772 | name="Mrk421_20141101_20160630_20min_forMAGIC_DChLim"
|
|---|
| 773 | get_results
|
|---|
| 774 | # 30 min binning
|
|---|
| 775 | bin=30
|
|---|
| 776 | name="Mrk421_20141101_20160630_30min_forMAGIC_DChLim"
|
|---|
| 777 | get_results
|
|---|
| 778 | # 40 min binning
|
|---|
| 779 | bin=40
|
|---|
| 780 | name="Mrk421_20141101_20160630_40min_forMAGIC_DChLim"
|
|---|
| 781 | get_results
|
|---|
| 782 | # 60 min binning
|
|---|
| 783 | bin=60
|
|---|
| 784 | name="Mrk421_20141101_20160630_60min_forMAGIC_DChLim"
|
|---|
| 785 | get_results
|
|---|
| 786 | # 80 min binning
|
|---|
| 787 | bin=80
|
|---|
| 788 | name="Mrk421_20141101_20160630_80min_forMAGIC_DChLim"
|
|---|
| 789 | get_results
|
|---|
| 790 | # 90 min binning
|
|---|
| 791 | bin=90
|
|---|
| 792 | name="Mrk421_20141101_20160630_90min_forMAGIC_DChLim"
|
|---|
| 793 | get_results
|
|---|
| 794 | # 100 min binning
|
|---|
| 795 | bin=100
|
|---|
| 796 | name="Mrk421_20141101_20160630_100min_forMAGIC_DChLim"
|
|---|
| 797 | get_results
|
|---|
| 798 | # 120 min binning
|
|---|
| 799 | bin=120
|
|---|
| 800 | name="Mrk421_20141101_20160630_120min_forMAGIC_DChLim"
|
|---|
| 801 | get_results
|
|---|
| 802 | # all data
|
|---|
| 803 | nightmin=20111115
|
|---|
| 804 | nightmax=20201231
|
|---|
| 805 | bin=20
|
|---|
| 806 | name="Mrk421_all_20min_DChLim"
|
|---|
| 807 | get_results
|
|---|
| 808 | bin=30
|
|---|
| 809 | name="Mrk421_all_30min_DChLim"
|
|---|
| 810 | get_results
|
|---|
| 811 | bin=40
|
|---|
| 812 | name="Mrk421_all_40min_DChLim"
|
|---|
| 813 | get_results
|
|---|
| 814 | bin=60
|
|---|
| 815 | name="Mrk421_all_60min_DChLim"
|
|---|
| 816 | get_results
|
|---|
| 817 | bin=80
|
|---|
| 818 | name="Mrk421_all_80min_DChLim"
|
|---|
| 819 | get_results
|
|---|
| 820 | bin=90
|
|---|
| 821 | name="Mrk421_all_90min_DChLim"
|
|---|
| 822 | get_results
|
|---|
| 823 | bin=100
|
|---|
| 824 | name="Mrk421_all_100min_DChLim"
|
|---|
| 825 | get_results
|
|---|
| 826 | bin=120
|
|---|
| 827 | name="Mrk421_all_120min_DChLim"
|
|---|
| 828 | get_results
|
|---|
| 829 |
|
|---|
| 830 |
|
|---|
| 831 |
|
|---|
| 832 | exit
|
|---|
| 833 |
|
|---|
| 834 |
|
|---|
| 835 | # IDV LCs for Mrk 421 with MAGIC
|
|---|
| 836 | # Biswajit: MJD 56970-57560
|
|---|
| 837 | # = 2014-11-09 - 2016-06-21
|
|---|
| 838 | # is covered in check (below)
|
|---|
| 839 | # IDV in MAGIC: 2015-01-26
|
|---|
| 840 | # IDV in FACT: 2015-03-11
|
|---|
| 841 | # details: https://www.fact-project.org/logbook/showthread.php?tid=7297
|
|---|
| 842 | datapath=/home/dorner/analysis.FACT/corrected.lcs.for.collaborators/lcs
|
|---|
| 843 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 844 | # Mrk 421
|
|---|
| 845 | source=1
|
|---|
| 846 | # conversion factor to fluxes for CutsLC
|
|---|
| 847 | # using slope of -3.35 -> threshold ~685 GeV
|
|---|
| 848 | # details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28902#pid28902
|
|---|
| 849 | crabfluxconv="3.64"
|
|---|
| 850 | # 20 min
|
|---|
| 851 | bin=20
|
|---|
| 852 | nightmin=20150126
|
|---|
| 853 | nightmax=20150126
|
|---|
| 854 | name="Mrk421_20150126_20min_forMAGIC"
|
|---|
| 855 | get_results
|
|---|
| 856 | nightmin=20150311
|
|---|
| 857 | nightmax=20150311
|
|---|
| 858 | name="Mrk421_20150311_20min_forMAGIC"
|
|---|
| 859 | get_results
|
|---|
| 860 |
|
|---|
| 861 |
|
|---|
| 862 |
|
|---|
| 863 |
|
|---|
| 864 | # LC for Mrk 421 paper with MAGIC - check IDV
|
|---|
| 865 | # from David: MJD 57030 - 57540 (i.e. 8.1.2015 - 1.6.2016)
|
|---|
| 866 | datapath=/home/dorner/analysis.FACT/421.IDV
|
|---|
| 867 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 868 | # conversion factor to fluxes for CutsLC
|
|---|
| 869 | # using slope of -3.35 -> threshold ~685 GeV
|
|---|
| 870 | # details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28902#pid28902
|
|---|
| 871 | crabfluxconv="3.64"
|
|---|
| 872 | # Mrk 421
|
|---|
| 873 | source=1
|
|---|
| 874 | # 20 min
|
|---|
| 875 | bin=20
|
|---|
| 876 | # time range of MAGIC paper
|
|---|
| 877 | nightmin=20141101
|
|---|
| 878 | nightmax=20160630
|
|---|
| 879 | name="Mrk421_20141101_20160630_20min_forMAGIC"
|
|---|
| 880 | get_results
|
|---|
| 881 | # 30 min binning
|
|---|
| 882 | bin=30
|
|---|
| 883 | name="Mrk421_20141101_20160630_30min_forMAGIC"
|
|---|
| 884 | get_results
|
|---|
| 885 | # 40 min binning
|
|---|
| 886 | bin=40
|
|---|
| 887 | name="Mrk421_20141101_20160630_40min_forMAGIC"
|
|---|
| 888 | get_results
|
|---|
| 889 | # 60 min binning
|
|---|
| 890 | bin=60
|
|---|
| 891 | name="Mrk421_20141101_20160630_60min_forMAGIC"
|
|---|
| 892 | get_results
|
|---|
| 893 | # 80 min binning
|
|---|
| 894 | bin=80
|
|---|
| 895 | name="Mrk421_20141101_20160630_80min_forMAGIC"
|
|---|
| 896 | get_results
|
|---|
| 897 | # 90 min binning
|
|---|
| 898 | bin=90
|
|---|
| 899 | name="Mrk421_20141101_20160630_90min_forMAGIC"
|
|---|
| 900 | get_results
|
|---|
| 901 | # 100 min binning
|
|---|
| 902 | bin=100
|
|---|
| 903 | name="Mrk421_20141101_20160630_100min_forMAGIC"
|
|---|
| 904 | get_results
|
|---|
| 905 | # 120 min binning
|
|---|
| 906 | bin=120
|
|---|
| 907 | name="Mrk421_20141101_20160630_120min_forMAGIC"
|
|---|
| 908 | get_results
|
|---|
| 909 | # all data
|
|---|
| 910 | nightmin=20111115
|
|---|
| 911 | nightmax=20201231
|
|---|
| 912 | bin=20
|
|---|
| 913 | name="Mrk421_all_20min"
|
|---|
| 914 | get_results
|
|---|
| 915 | bin=30
|
|---|
| 916 | name="Mrk421_all_30min"
|
|---|
| 917 | get_results
|
|---|
| 918 | bin=40
|
|---|
| 919 | name="Mrk421_all_40min"
|
|---|
| 920 | get_results
|
|---|
| 921 | bin=60
|
|---|
| 922 | name="Mrk421_all_60min"
|
|---|
| 923 | get_results
|
|---|
| 924 | bin=80
|
|---|
| 925 | name="Mrk421_all_80min"
|
|---|
| 926 | get_results
|
|---|
| 927 | bin=90
|
|---|
| 928 | name="Mrk421_all_90min"
|
|---|
| 929 | get_results
|
|---|
| 930 | bin=100
|
|---|
| 931 | name="Mrk421_all_100min"
|
|---|
| 932 | get_results
|
|---|
| 933 | bin=120
|
|---|
| 934 | name="Mrk421_all_120min"
|
|---|
| 935 | get_results
|
|---|
| 936 |
|
|---|
| 937 |
|
|---|
| 938 |
|
|---|
| 939 | exit
|
|---|
| 940 |
|
|---|
| 941 | # LC for periodicity studies
|
|---|
| 942 | datapath=/home/dorner/analysis.FACT/corrected.lcs.for.collaborators/lcs/
|
|---|
| 943 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 944 | # nightly
|
|---|
| 945 | bin=-1
|
|---|
| 946 | nightmin=20111115
|
|---|
| 947 | nightmax=20201231
|
|---|
| 948 | # Mrk 421
|
|---|
| 949 | name="Mrk421_nightly_forPeriodicity"
|
|---|
| 950 | source=1
|
|---|
| 951 | get_results
|
|---|
| 952 | # 1959
|
|---|
| 953 | name="1ES1959_nightly_forPeriodicity"
|
|---|
| 954 | source=7
|
|---|
| 955 | get_results
|
|---|
| 956 | # Crab
|
|---|
| 957 | name="Crab_nightly_forPeriodicity"
|
|---|
| 958 | source=5
|
|---|
| 959 | get_results
|
|---|
| 960 |
|
|---|
| 961 | exit
|
|---|
| 962 |
|
|---|
| 963 |
|
|---|
| 964 | # check of Vitalii's BB
|
|---|
| 965 | datapath=/home/dorner/SW/bb/
|
|---|
| 966 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 967 | # nightly
|
|---|
| 968 | bin=-1
|
|---|
| 969 | nightmin=20111115
|
|---|
| 970 | nightmax=20201231
|
|---|
| 971 | # Mrk 421
|
|---|
| 972 | source=1
|
|---|
| 973 | name="Mrk421_nightly_forBB"
|
|---|
| 974 | get_results
|
|---|
| 975 |
|
|---|
| 976 | exit
|
|---|
| 977 |
|
|---|
| 978 |
|
|---|
| 979 | # LC for Fermi collaboration meeting
|
|---|
| 980 | datapath=/home/dorner/analysis.FACT/LC.incl.alerts
|
|---|
| 981 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 982 | # nightly
|
|---|
| 983 | bin=-1
|
|---|
| 984 | nightmin=20111115
|
|---|
| 985 | nightmax=20201231
|
|---|
| 986 | # Mrk 421
|
|---|
| 987 | source=1
|
|---|
| 988 | name="Mrk421_nightly_forFermiCM"
|
|---|
| 989 | get_results
|
|---|
| 990 | # Mrk 501
|
|---|
| 991 | name="Mrk501_nightly_forFermiCM"
|
|---|
| 992 | source=2
|
|---|
| 993 | get_results
|
|---|
| 994 | # 1959
|
|---|
| 995 | name="1959_nightly_forFermiCM"
|
|---|
| 996 | source=7
|
|---|
| 997 | get_results
|
|---|
| 998 |
|
|---|
| 999 |
|
|---|
| 1000 | exit
|
|---|
| 1001 |
|
|---|
| 1002 | # LC for Mrk 421 paper with MAGIC
|
|---|
| 1003 | # from David: MJD 57030 - 57540 (i.e. 8.1.2015 - 1.6.2016)
|
|---|
| 1004 | datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs/
|
|---|
| 1005 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1006 | # nightly
|
|---|
| 1007 | bin=-1
|
|---|
| 1008 | nightmin=20141101
|
|---|
| 1009 | nightmax=20160630
|
|---|
| 1010 | # conversion factor to fluxes for CutsLC
|
|---|
| 1011 | # using slope of -3.35 -> threshold ~685 GeV
|
|---|
| 1012 | # details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28902#pid28902
|
|---|
| 1013 | crabfluxconv="3.64"
|
|---|
| 1014 | # Mrk 421
|
|---|
| 1015 | source=1
|
|---|
| 1016 | name="Mrk421_nightly_20141101_20160630_forMAGIC"
|
|---|
| 1017 | get_results
|
|---|
| 1018 |
|
|---|
| 1019 |
|
|---|
| 1020 |
|
|---|
| 1021 | exit
|
|---|
| 1022 | # LC for Gopal for periodicity study
|
|---|
| 1023 | datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs/
|
|---|
| 1024 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1025 | # nightly
|
|---|
| 1026 | bin=-1
|
|---|
| 1027 | nightmin=20111115
|
|---|
| 1028 | nightmax=20201231
|
|---|
| 1029 | # Mrk 501
|
|---|
| 1030 | name="Mrk501_nightly"
|
|---|
| 1031 | source=2
|
|---|
| 1032 | get_results
|
|---|
| 1033 |
|
|---|
| 1034 | exit
|
|---|
| 1035 |
|
|---|
| 1036 |
|
|---|
| 1037 | # LC for Mrk 421 for crosscheck of BB
|
|---|
| 1038 | datapath=/home/dorner/SW/bb/
|
|---|
| 1039 | table="AnalysisResultsRunLP"
|
|---|
| 1040 | # nightly
|
|---|
| 1041 | bin=-1
|
|---|
| 1042 | nightmin=20130111
|
|---|
| 1043 | nightmax=20180515
|
|---|
| 1044 | thmax=560
|
|---|
| 1045 | zdmax=60
|
|---|
| 1046 | ontimelimit=1800
|
|---|
| 1047 | factorcut=
|
|---|
| 1048 | rmemptyrows="yes"
|
|---|
| 1049 | dch=" AND fR750Cor/fR750Ref BETWEEN 0.93 AND 1.2 AND fHumidityMean<80 "
|
|---|
| 1050 | # Mrk 421
|
|---|
| 1051 | source=1
|
|---|
| 1052 | name="Mrk421_nightly_BBXcheck"
|
|---|
| 1053 | get_results
|
|---|
| 1054 |
|
|---|
| 1055 |
|
|---|
| 1056 |
|
|---|
| 1057 | exit
|
|---|
| 1058 |
|
|---|
| 1059 | # LC for Mrk 421 paper with MAGIC
|
|---|
| 1060 | # from David: MJD 57030 - 57540 (i.e. 8.1.2015 - 1.6.2016)
|
|---|
| 1061 | datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs/
|
|---|
| 1062 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1063 | # nightly
|
|---|
| 1064 | bin=-1
|
|---|
| 1065 | nightmin=20141101
|
|---|
| 1066 | nightmax=20160630
|
|---|
| 1067 | # conversion factor to fluxes for CutsLC
|
|---|
| 1068 | # using slope of -3.35 -> threshold 690 GeV
|
|---|
| 1069 | # details: https://www.fact-project.org/logbook/showthread.php?tid=6994&pid=28875#pid28875
|
|---|
| 1070 | crabfluxconv="0.57"
|
|---|
| 1071 | # Mrk 421
|
|---|
| 1072 | source=1
|
|---|
| 1073 | name="Mrk421_nightly_20141101_20160630_forMAGIC"
|
|---|
| 1074 | get_results
|
|---|
| 1075 |
|
|---|
| 1076 |
|
|---|
| 1077 |
|
|---|
| 1078 | exit
|
|---|
| 1079 |
|
|---|
| 1080 | # LCs for TeVPA poster
|
|---|
| 1081 | datapath=/home/dorner/FACT.analysis/tevpa2019
|
|---|
| 1082 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1083 | # nightly
|
|---|
| 1084 | bin=-1
|
|---|
| 1085 | nightmin=20111115
|
|---|
| 1086 | nightmax=20201231
|
|---|
| 1087 | # Mrk 421
|
|---|
| 1088 | source=1
|
|---|
| 1089 | name="Mrk421_nightly"
|
|---|
| 1090 | get_results
|
|---|
| 1091 | # Mrk 501
|
|---|
| 1092 | name="Mrk501_nightly"
|
|---|
| 1093 | source=2
|
|---|
| 1094 | get_results
|
|---|
| 1095 | # 1959
|
|---|
| 1096 | name="1959_nightly"
|
|---|
| 1097 | source=7
|
|---|
| 1098 | get_results
|
|---|
| 1099 | # 2344
|
|---|
| 1100 | name="2344_nightly"
|
|---|
| 1101 | source=3
|
|---|
| 1102 | get_results
|
|---|
| 1103 | name="2344_monthly"
|
|---|
| 1104 | bin=0
|
|---|
| 1105 | get_results
|
|---|
| 1106 | name="2344_7d"
|
|---|
| 1107 | bin=7
|
|---|
| 1108 | get_results
|
|---|
| 1109 | usedch="no"
|
|---|
| 1110 | name="2344_nightly_nodch"
|
|---|
| 1111 | source=3
|
|---|
| 1112 | get_results
|
|---|
| 1113 | name="2344_monthly_nodch"
|
|---|
| 1114 | bin=0
|
|---|
| 1115 | get_results
|
|---|
| 1116 | name="2344_7d_nodch"
|
|---|
| 1117 | bin=7
|
|---|
| 1118 | get_results
|
|---|
| 1119 | usedch="yes"
|
|---|
| 1120 | # 1959
|
|---|
| 1121 | name="1959_mixed"
|
|---|
| 1122 | source=7
|
|---|
| 1123 | bin=0
|
|---|
| 1124 | nightmin=20111115
|
|---|
| 1125 | nightmax=20160331
|
|---|
| 1126 | get_results
|
|---|
| 1127 | overwrite="no"
|
|---|
| 1128 | nightmin=20160401
|
|---|
| 1129 | nightmax=20160815
|
|---|
| 1130 | bin=-1
|
|---|
| 1131 | get_results
|
|---|
| 1132 | bin=0
|
|---|
| 1133 | nightmin=20160816
|
|---|
| 1134 | nightmax=20201231
|
|---|
| 1135 | get_results
|
|---|
| 1136 | overwrite="yes"
|
|---|
| 1137 |
|
|---|
| 1138 | exit
|
|---|
| 1139 |
|
|---|
| 1140 |
|
|---|
| 1141 | datapath=/home/dorner/FACT.analysis/corrected.lcs.for.collaborators/lcs
|
|---|
| 1142 |
|
|---|
| 1143 | # put your data request here, examples below
|
|---|
| 1144 |
|
|---|
| 1145 | # LCs for 2344 XMM proposal
|
|---|
| 1146 | table="AnalysisResultsRunCutsLC"
|
|---|
| 1147 | # 2344
|
|---|
| 1148 | source=3
|
|---|
| 1149 | # monthly
|
|---|
| 1150 | bin=0
|
|---|
| 1151 | nightmin=20111115
|
|---|
| 1152 | nightmax=20191231
|
|---|
| 1153 | name="2344_period_XMM-proposal-2019"
|
|---|
| 1154 | get_results
|
|---|
| 1155 |
|
|---|
| 1156 | exit
|
|---|
| 1157 |
|
|---|
| 1158 | # LCs for 421 campaign with Astrosat Jan 2019 - crosscheck
|
|---|
| 1159 | table="AnalysisResultsRunLP"
|
|---|
| 1160 | # Mrk 421
|
|---|
| 1161 | source=1
|
|---|
| 1162 | # nightly
|
|---|
| 1163 | bin=-1
|
|---|
| 1164 | nightmin=20190109
|
|---|
| 1165 | nightmax=20190113
|
|---|
| 1166 | name="QLA_Mrk421_nightly_Astrosat-Jan-2019"
|
|---|
| 1167 | get_results
|
|---|
| 1168 | # 20min
|
|---|
| 1169 | bin=20
|
|---|
| 1170 | name="QLA_Mrk421_20min_Astrosat-Jan-2019"
|
|---|
| 1171 | get_results
|
|---|
| 1172 | # 30min
|
|---|
| 1173 | bin=30
|
|---|
| 1174 | name="QLA_Mrk421_30min_Astrosat-Jan-2019"
|
|---|
| 1175 | get_results
|
|---|
| 1176 | # 40min
|
|---|
| 1177 | bin=40
|
|---|
| 1178 | name="QLA_Mrk421_40min_Astrosat-Jan-2019"
|
|---|
| 1179 | get_results
|
|---|
| 1180 | # 60min
|
|---|
| 1181 | bin=60
|
|---|
| 1182 | name="QLA_Mrk421_60min_Astrosat-Jan-2019"
|
|---|
| 1183 | get_results
|
|---|
| 1184 | # 80min
|
|---|
| 1185 | bin=80
|
|---|
| 1186 | name="QLA_Mrk421_80min_Astrosat-Jan-2019"
|
|---|
| 1187 | get_results
|
|---|
| 1188 | # 90min
|
|---|
| 1189 | bin=90
|
|---|
| 1190 | name="QLA_Mrk421_90min_Astrosat-Jan-2019"
|
|---|
| 1191 | get_results
|
|---|
| 1192 |
|
|---|
| 1193 |
|
|---|
| 1194 |
|
|---|
| 1195 |
|
|---|
| 1196 | # LCs for SED project 2013
|
|---|
| 1197 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1198 | # Mrk 421
|
|---|
| 1199 | source=1
|
|---|
| 1200 | # nightly
|
|---|
| 1201 | bin=-1
|
|---|
| 1202 | nightmin=20120901
|
|---|
| 1203 | nightmax=20130516
|
|---|
| 1204 | name="Mrk421_nightly_SED-project-2013"
|
|---|
| 1205 | get_results
|
|---|
| 1206 |
|
|---|
| 1207 |
|
|---|
| 1208 |
|
|---|
| 1209 | # LCs for XMM proposal
|
|---|
| 1210 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1211 | # Mrk 421
|
|---|
| 1212 | source=1
|
|---|
| 1213 | # nightly
|
|---|
| 1214 | bin=-1
|
|---|
| 1215 | nightmin=20111115
|
|---|
| 1216 | nightmax=20201231
|
|---|
| 1217 | name="Mrk421_nightly_XMM-proposal-2019"
|
|---|
| 1218 | get_results
|
|---|
| 1219 | # Mrk 501
|
|---|
| 1220 | source=2
|
|---|
| 1221 | name="Mrk501_nightly_XMM-proposal-2019"
|
|---|
| 1222 | get_results
|
|---|
| 1223 | # 1959
|
|---|
| 1224 | source=7
|
|---|
| 1225 | name="1959_nightly_XMM-proposal-2019"
|
|---|
| 1226 | get_results
|
|---|
| 1227 |
|
|---|
| 1228 |
|
|---|
| 1229 |
|
|---|
| 1230 | # LCs for 421 campaign with Astrosat Jan 2019
|
|---|
| 1231 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1232 | # Mrk 421
|
|---|
| 1233 | source=1
|
|---|
| 1234 | # nightly
|
|---|
| 1235 | bin=-1
|
|---|
| 1236 | nightmin=20190109
|
|---|
| 1237 | nightmax=20190113
|
|---|
| 1238 | name="Mrk421_nightly_Astrosat-Jan-2019"
|
|---|
| 1239 | get_results
|
|---|
| 1240 | # 20min
|
|---|
| 1241 | bin=20
|
|---|
| 1242 | name="Mrk421_20min_Astrosat-Jan-2019"
|
|---|
| 1243 | get_results
|
|---|
| 1244 | # 30min
|
|---|
| 1245 | bin=30
|
|---|
| 1246 | name="Mrk421_30min_Astrosat-Jan-2019"
|
|---|
| 1247 | get_results
|
|---|
| 1248 | # 40min
|
|---|
| 1249 | bin=40
|
|---|
| 1250 | name="Mrk421_40min_Astrosat-Jan-2019"
|
|---|
| 1251 | get_results
|
|---|
| 1252 | # 60min
|
|---|
| 1253 | bin=60
|
|---|
| 1254 | name="Mrk421_60min_Astrosat-Jan-2019"
|
|---|
| 1255 | get_results
|
|---|
| 1256 | # 80min
|
|---|
| 1257 | bin=80
|
|---|
| 1258 | name="Mrk421_80min_Astrosat-Jan-2019"
|
|---|
| 1259 | get_results
|
|---|
| 1260 | # 90min
|
|---|
| 1261 | bin=90
|
|---|
| 1262 | name="Mrk421_90min_Astrosat-Jan-2019"
|
|---|
| 1263 | get_results
|
|---|
| 1264 |
|
|---|
| 1265 |
|
|---|
| 1266 |
|
|---|
| 1267 | # LCs for flaring pattern project
|
|---|
| 1268 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1269 | # Mrk 421
|
|---|
| 1270 | source=1
|
|---|
| 1271 | # nightly
|
|---|
| 1272 | bin=-1
|
|---|
| 1273 | nightmin=20111115
|
|---|
| 1274 | nightmax=20201231
|
|---|
| 1275 | name="Mrk421_nightly_Flaring-pattern-project"
|
|---|
| 1276 | get_results
|
|---|
| 1277 | # 2d
|
|---|
| 1278 | bin=-2
|
|---|
| 1279 | nightmin=20111115
|
|---|
| 1280 | nightmax=20201231
|
|---|
| 1281 | name="Mrk421_2day_Flaring-pattern-project"
|
|---|
| 1282 | get_results
|
|---|
| 1283 |
|
|---|
| 1284 |
|
|---|
| 1285 |
|
|---|
| 1286 | # LCs for ToO-Trigger project
|
|---|
| 1287 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1288 | # Mrk 421
|
|---|
| 1289 | source=1
|
|---|
| 1290 | # nightly for 2019
|
|---|
| 1291 | bin=-1
|
|---|
| 1292 | nightmin=20190101
|
|---|
| 1293 | nightmax=20190630
|
|---|
| 1294 | name="Mrk421_nightly_20190101-20190630_ToO-project-2019"
|
|---|
| 1295 | get_results
|
|---|
| 1296 | # 20 min around flare
|
|---|
| 1297 | bin=20
|
|---|
| 1298 | nightmin=20190609
|
|---|
| 1299 | nightmax=20190612
|
|---|
| 1300 | name="Mrk421_20min_20190609-20190612_ToO-project-2019"
|
|---|
| 1301 | get_results
|
|---|
| 1302 |
|
|---|
| 1303 | exit
|
|---|
| 1304 |
|
|---|
| 1305 | table="AnalysisResultsRunLP" # QLA
|
|---|
| 1306 | # Mrk 421
|
|---|
| 1307 | source=1
|
|---|
| 1308 | # nightly for 2019
|
|---|
| 1309 | bin=-1
|
|---|
| 1310 | nightmin=20190101
|
|---|
| 1311 | nightmax=20190630
|
|---|
| 1312 | name="QLA_Mrk421_nightly_20190101-20190630_ToO-project-2019"
|
|---|
| 1313 | get_results
|
|---|
| 1314 | # 20 min around flare
|
|---|
| 1315 | bin=20
|
|---|
| 1316 | nightmin=20190609
|
|---|
| 1317 | nightmax=20190612
|
|---|
| 1318 | name="QLA_Mrk421_20min_20190609-20190612_ToO-project-2019"
|
|---|
| 1319 | get_results
|
|---|
| 1320 |
|
|---|
| 1321 |
|
|---|
| 1322 | table="AnalysisResultsRunISDC" # ISDC
|
|---|
| 1323 | # Mrk 421
|
|---|
| 1324 | source=1
|
|---|
| 1325 | # nightly for 2019
|
|---|
| 1326 | bin=-1
|
|---|
| 1327 | nightmin=20190101
|
|---|
| 1328 | nightmax=20190630
|
|---|
| 1329 | name="ISDC_Mrk421_nightly_20190101-20190630_ToO-project-2019"
|
|---|
| 1330 | get_results
|
|---|
| 1331 | # 20 min around flare
|
|---|
| 1332 | bin=20
|
|---|
| 1333 | nightmin=20190609
|
|---|
| 1334 | nightmax=20190612
|
|---|
| 1335 | name="ISDC_Mrk421_20min_20190609-20190612_ToO-project-2019"
|
|---|
| 1336 | get_results
|
|---|
| 1337 |
|
|---|
| 1338 |
|
|---|
| 1339 | exit
|
|---|
| 1340 |
|
|---|
| 1341 | # LC for ICRC
|
|---|
| 1342 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1343 | bin=-1
|
|---|
| 1344 | # Mrk 421
|
|---|
| 1345 | source=1
|
|---|
| 1346 | name="Mrk421_all_nightly"
|
|---|
| 1347 | get_results
|
|---|
| 1348 | # Mrk 501
|
|---|
| 1349 | source=2
|
|---|
| 1350 | name="Mrk501_all_nightly"
|
|---|
| 1351 | get_results
|
|---|
| 1352 | # 1959
|
|---|
| 1353 | source=7
|
|---|
| 1354 | name="1959_all_nightly"
|
|---|
| 1355 | get_results
|
|---|
| 1356 |
|
|---|
| 1357 | # 2344
|
|---|
| 1358 | source=3
|
|---|
| 1359 | name="2344_all_nightly"
|
|---|
| 1360 | get_results
|
|---|
| 1361 |
|
|---|
| 1362 | # Crab
|
|---|
| 1363 | source=5
|
|---|
| 1364 | name="Crab_all_nightly"
|
|---|
| 1365 | get_results
|
|---|
| 1366 |
|
|---|
| 1367 |
|
|---|
| 1368 | exit
|
|---|
| 1369 |
|
|---|
| 1370 | # Mrk 501
|
|---|
| 1371 | source=2
|
|---|
| 1372 | zdmax=90
|
|---|
| 1373 | thmax=1500
|
|---|
| 1374 | # new analysis
|
|---|
| 1375 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1376 | nightmin=20140520
|
|---|
| 1377 | nightmax=20140930
|
|---|
| 1378 | name="Mrk501_nightly_newAnalysis_forHESS"
|
|---|
| 1379 | bin=-1
|
|---|
| 1380 | get_results
|
|---|
| 1381 | name="Mrk501_7d_newAnalysis_forHESS"
|
|---|
| 1382 | bin=-7
|
|---|
| 1383 | get_results
|
|---|
| 1384 | nightmin=20140623
|
|---|
| 1385 | nightmax=20140623
|
|---|
| 1386 | name="Mrk501_5min_FlareNight_newAnalysis_forHESS"
|
|---|
| 1387 | bin=5
|
|---|
| 1388 | get_results
|
|---|
| 1389 | nightmin=20140622
|
|---|
| 1390 | nightmax=20140624
|
|---|
| 1391 | name="Mrk501_5min_Flare_newAnalysis_forHESS"
|
|---|
| 1392 | bin=5
|
|---|
| 1393 | get_results
|
|---|
| 1394 |
|
|---|
| 1395 | exit
|
|---|
| 1396 |
|
|---|
| 1397 | # LC for INTEGRAL Proposal
|
|---|
| 1398 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1399 | bin=-1
|
|---|
| 1400 | # Mrk 421
|
|---|
| 1401 | source=1
|
|---|
| 1402 | name="Mrk421_all_nightly"
|
|---|
| 1403 | get_results
|
|---|
| 1404 | # Mrk 501
|
|---|
| 1405 | source=2
|
|---|
| 1406 | name="Mrk501_all_nightly"
|
|---|
| 1407 | get_results
|
|---|
| 1408 | # 1959
|
|---|
| 1409 | source=7
|
|---|
| 1410 | name="1959_all_nightly"
|
|---|
| 1411 | get_results
|
|---|
| 1412 | # for other INTEGRAL proposal
|
|---|
| 1413 | # Mrk 421
|
|---|
| 1414 | bin=0
|
|---|
| 1415 | source=1
|
|---|
| 1416 | name="Mrk421_all_period"
|
|---|
| 1417 | get_results
|
|---|
| 1418 |
|
|---|
| 1419 | exit
|
|---|
| 1420 |
|
|---|
| 1421 |
|
|---|
| 1422 | # Crab
|
|---|
| 1423 | source=5
|
|---|
| 1424 | nightmin=20121214
|
|---|
| 1425 | nightmax=20180418
|
|---|
| 1426 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1427 | bin=-1
|
|---|
| 1428 | zdmax=30
|
|---|
| 1429 | thmax=330
|
|---|
| 1430 | name="testCrabnightlycheck"
|
|---|
| 1431 | get_results
|
|---|
| 1432 |
|
|---|
| 1433 | exit
|
|---|
| 1434 |
|
|---|
| 1435 | # Crab
|
|---|
| 1436 | source=5
|
|---|
| 1437 | nightmin=20121214
|
|---|
| 1438 | nightmax=20180418
|
|---|
| 1439 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1440 | bin=20
|
|---|
| 1441 | name="testCrab20min"
|
|---|
| 1442 | get_results
|
|---|
| 1443 |
|
|---|
| 1444 | exit
|
|---|
| 1445 |
|
|---|
| 1446 | # Crab
|
|---|
| 1447 | source=5
|
|---|
| 1448 | nightmin=20121214
|
|---|
| 1449 | nightmax=20180418
|
|---|
| 1450 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1451 | bin=-1
|
|---|
| 1452 | name="testCrabnightly"
|
|---|
| 1453 | get_results
|
|---|
| 1454 |
|
|---|
| 1455 | exit
|
|---|
| 1456 |
|
|---|
| 1457 | # Crab
|
|---|
| 1458 | source=5
|
|---|
| 1459 | #nightmin=20121214
|
|---|
| 1460 | #nightmax=20180418
|
|---|
| 1461 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1462 | bin=-1
|
|---|
| 1463 | name="testCraball"
|
|---|
| 1464 | get_results
|
|---|
| 1465 |
|
|---|
| 1466 | exit
|
|---|
| 1467 |
|
|---|
| 1468 |
|
|---|
| 1469 | # Crab
|
|---|
| 1470 | source=5
|
|---|
| 1471 | nightmin=20121214
|
|---|
| 1472 | nightmax=20180418
|
|---|
| 1473 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1474 | bin=60
|
|---|
| 1475 | name="testCrab"
|
|---|
| 1476 | get_results
|
|---|
| 1477 |
|
|---|
| 1478 | exit
|
|---|
| 1479 |
|
|---|
| 1480 |
|
|---|
| 1481 | # for 2344 paper with MAGIC
|
|---|
| 1482 |
|
|---|
| 1483 | source=3
|
|---|
| 1484 | zdmax=90
|
|---|
| 1485 | thmax=1500
|
|---|
| 1486 |
|
|---|
| 1487 | # new analysis
|
|---|
| 1488 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1489 | nightmin=20160618
|
|---|
| 1490 | nightmax=20160815
|
|---|
| 1491 | name="2344_2016flare_newAnalysis"
|
|---|
| 1492 | bin=-7
|
|---|
| 1493 | get_results
|
|---|
| 1494 | overwrite="no"
|
|---|
| 1495 | bin=-28
|
|---|
| 1496 | nightmin=20160816
|
|---|
| 1497 | nightmax=20161031
|
|---|
| 1498 | get_results
|
|---|
| 1499 | overwrite="yes"
|
|---|
| 1500 |
|
|---|
| 1501 | # ISDC analysis
|
|---|
| 1502 | table="AnalysisResultsRunISDC"
|
|---|
| 1503 | nightmin=20160618
|
|---|
| 1504 | nightmax=20160815
|
|---|
| 1505 | name="2344_2016flare_stdAnalysis"
|
|---|
| 1506 | bin=-7
|
|---|
| 1507 | get_results
|
|---|
| 1508 | overwrite="no"
|
|---|
| 1509 | bin=-28
|
|---|
| 1510 | nightmin=20160816
|
|---|
| 1511 | nightmax=20161031
|
|---|
| 1512 | get_results
|
|---|
| 1513 | overwrite="yes"
|
|---|
| 1514 |
|
|---|
| 1515 |
|
|---|
| 1516 | usedch="no"
|
|---|
| 1517 | # new analysis
|
|---|
| 1518 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1519 | nightmin=20160618
|
|---|
| 1520 | nightmax=20160815
|
|---|
| 1521 | name="2344_2016flare_newAnalysis_noDCh"
|
|---|
| 1522 | bin=-7
|
|---|
| 1523 | get_results
|
|---|
| 1524 | overwrite="no"
|
|---|
| 1525 | bin=-28
|
|---|
| 1526 | nightmin=20160816
|
|---|
| 1527 | nightmax=20161031
|
|---|
| 1528 | get_results
|
|---|
| 1529 | overwrite="yes"
|
|---|
| 1530 |
|
|---|
| 1531 | # ISDC analysis
|
|---|
| 1532 | table="AnalysisResultsRunISDC"
|
|---|
| 1533 | nightmin=20160618
|
|---|
| 1534 | nightmax=20160815
|
|---|
| 1535 | name="2344_2016flare_stdAnalysis_noDCh"
|
|---|
| 1536 | bin=-7
|
|---|
| 1537 | get_results
|
|---|
| 1538 | overwrite="no"
|
|---|
| 1539 | bin=-28
|
|---|
| 1540 | nightmin=20160816
|
|---|
| 1541 | nightmax=20161031
|
|---|
| 1542 | get_results
|
|---|
| 1543 | overwrite="yes"
|
|---|
| 1544 |
|
|---|
| 1545 | usedch="yes"
|
|---|
| 1546 |
|
|---|
| 1547 |
|
|---|
| 1548 | exit
|
|---|
| 1549 |
|
|---|
| 1550 | # Mrk 501
|
|---|
| 1551 | source=2
|
|---|
| 1552 | zdmax=90
|
|---|
| 1553 | thmax=1500
|
|---|
| 1554 | # new analysis
|
|---|
| 1555 | table="AnalysisResultsRunCutsLC" # CutsLC
|
|---|
| 1556 | nightmin=20140520
|
|---|
| 1557 | nightmax=20140930
|
|---|
| 1558 | name="Mrk501_nightly_newAnalysis_forHESS"
|
|---|
| 1559 | bin=-1
|
|---|
| 1560 | get_results
|
|---|
| 1561 | name="Mrk501_7d_newAnalysis_forHESS"
|
|---|
| 1562 | bin=-7
|
|---|
| 1563 | get_results
|
|---|
| 1564 | nightmin=20140623
|
|---|
| 1565 | nightmax=20140623
|
|---|
| 1566 | name="Mrk501_5min_FlareNight_newAnalysis_forHESS"
|
|---|
| 1567 | bin=5
|
|---|
| 1568 | get_results
|
|---|
| 1569 | # isdc analysis
|
|---|
| 1570 | thmax=850
|
|---|
| 1571 | table="AnalysisResultsRunISDC"
|
|---|
| 1572 | nightmin=20140520
|
|---|
| 1573 | nightmax=20140930
|
|---|
| 1574 | name="Mrk501_nightly_stdAnalysis_forHESS"
|
|---|
| 1575 | bin=-1
|
|---|
| 1576 | get_results
|
|---|
| 1577 | name="Mrk501_7d_stdAnalysis_forHESS"
|
|---|
| 1578 | bin=-7
|
|---|
| 1579 | get_results
|
|---|
| 1580 | nightmin=20140623
|
|---|
| 1581 | nightmax=20140623
|
|---|
| 1582 | name="Mrk501_5min_FlareNight_stdAnalysis_forHESS"
|
|---|
| 1583 | bin=5
|
|---|
| 1584 | get_results
|
|---|
| 1585 | # qla
|
|---|
| 1586 | thmax=500
|
|---|
| 1587 | table="AnalysisResultsRunLP"
|
|---|
| 1588 | nightmin=20140520
|
|---|
| 1589 | nightmax=20140930
|
|---|
| 1590 | name="Mrk501_nightly_QLA_forHESS"
|
|---|
| 1591 | bin=-1
|
|---|
| 1592 | get_results
|
|---|
| 1593 |
|
|---|
| 1594 | exit
|
|---|
| 1595 |
|
|---|
| 1596 | # 501 MAGIC
|
|---|
| 1597 | source=2
|
|---|
| 1598 | name="Mrk501_2014_forMAGIC"
|
|---|
| 1599 | bin=-1
|
|---|
| 1600 | crabfluxconv="2.87" # using threshold of 830GeV
|
|---|
| 1601 | crabfluxconv="3.01" # using threshold of 830GeV and MAGIC Crab spectrum
|
|---|
| 1602 | nightmin=20140714
|
|---|
| 1603 | nightmax=20140805
|
|---|
| 1604 | get_results
|
|---|
| 1605 |
|
|---|
| 1606 | name="Mrk501_2014_forMAGIC_20min"
|
|---|
| 1607 | bin=20
|
|---|
| 1608 | get_results
|
|---|
| 1609 |
|
|---|
| 1610 |
|
|---|
| 1611 | exit
|
|---|
| 1612 |
|
|---|
| 1613 | bin=30
|
|---|
| 1614 | name="Mrk501_2014_forMAGIC30"
|
|---|
| 1615 | get_results
|
|---|
| 1616 |
|
|---|
| 1617 | bin=0
|
|---|
| 1618 | name="P"
|
|---|
| 1619 | nightmin=20140501
|
|---|
| 1620 | nightmax=20140930
|
|---|
| 1621 | get_results
|
|---|
| 1622 |
|
|---|
| 1623 | bin=20
|
|---|
| 1624 | nightmin=20140623
|
|---|
| 1625 | nightmax=20140623
|
|---|
| 1626 | name="Mrk501_test"
|
|---|
| 1627 | get_results
|
|---|
| 1628 |
|
|---|
| 1629 |
|
|---|
| 1630 | # end script here
|
|---|
| 1631 | exit
|
|---|
| 1632 |
|
|---|
| 1633 |
|
|---|
| 1634 |
|
|---|
| 1635 | #
|
|---|
| 1636 | # more examples
|
|---|
| 1637 | #
|
|---|
| 1638 |
|
|---|
| 1639 | # Mrk 421
|
|---|
| 1640 | source=1
|
|---|
| 1641 | name="Mrk421_nightly"
|
|---|
| 1642 | bin=-1
|
|---|
| 1643 | get_results
|
|---|
| 1644 | name="Mrk421_20min"
|
|---|
| 1645 | bin=20
|
|---|
| 1646 | get_results
|
|---|
| 1647 | name="Mrk421_3d"
|
|---|
| 1648 | bin=-3
|
|---|
| 1649 | get_results
|
|---|
| 1650 | name="Mrk421_10d"
|
|---|
| 1651 | bin=-10
|
|---|
| 1652 | get_results
|
|---|
| 1653 | name="Mrk421_period"
|
|---|
| 1654 | bin=0
|
|---|
| 1655 | get_results
|
|---|
| 1656 |
|
|---|
| 1657 |
|
|---|
| 1658 |
|
|---|
| 1659 | # Mrk 501
|
|---|
| 1660 | source=2
|
|---|
| 1661 | name="Mrk501_nightly"
|
|---|
| 1662 | bin=-1
|
|---|
| 1663 | get_results
|
|---|
| 1664 | name="Mrk501_20min"
|
|---|
| 1665 | bin=20
|
|---|
| 1666 | get_results
|
|---|
| 1667 | name="Mrk501_3d"
|
|---|
| 1668 | bin=-3
|
|---|
| 1669 | get_results
|
|---|
| 1670 | name="Mrk501_10d"
|
|---|
| 1671 | bin=-10
|
|---|
| 1672 | get_results
|
|---|
| 1673 | name="Mrk501_period"
|
|---|
| 1674 | bin=0
|
|---|
| 1675 | get_results
|
|---|
| 1676 |
|
|---|
| 1677 |
|
|---|
| 1678 |
|
|---|
| 1679 | # 2344
|
|---|
| 1680 | source=3
|
|---|
| 1681 | name="2344_nightly"
|
|---|
| 1682 | bin=-1
|
|---|
| 1683 | get_results
|
|---|
| 1684 | name="2344_20min"
|
|---|
| 1685 | bin=20
|
|---|
| 1686 | get_results
|
|---|
| 1687 | name="2344_period"
|
|---|
| 1688 | bin=0
|
|---|
| 1689 | get_results
|
|---|
| 1690 |
|
|---|
| 1691 |
|
|---|
| 1692 |
|
|---|
| 1693 | # 1959
|
|---|
| 1694 | source=7
|
|---|
| 1695 | name="1959_nightly"
|
|---|
| 1696 | bin=-1
|
|---|
| 1697 | get_results
|
|---|
| 1698 | name="1959_20min"
|
|---|
| 1699 | bin=20
|
|---|
| 1700 | get_results
|
|---|
| 1701 | name="1959_period"
|
|---|
| 1702 | bin=0
|
|---|
| 1703 | get_results
|
|---|
| 1704 |
|
|---|
| 1705 |
|
|---|
| 1706 |
|
|---|
| 1707 | # 0323
|
|---|
| 1708 | source=12
|
|---|
| 1709 | name="0323_nightly"
|
|---|
| 1710 | bin=-1
|
|---|
| 1711 | get_results
|
|---|
| 1712 | name="0323_20min"
|
|---|
| 1713 | bin=20
|
|---|
| 1714 | get_results
|
|---|
| 1715 | name="0323_period"
|
|---|
| 1716 | bin=0
|
|---|
| 1717 | get_results
|
|---|
| 1718 |
|
|---|
| 1719 |
|
|---|
| 1720 |
|
|---|
| 1721 | # crab
|
|---|
| 1722 | source=5
|
|---|
| 1723 | name="Crab_nightly"
|
|---|
| 1724 | bin=-1
|
|---|
| 1725 | get_results
|
|---|
| 1726 | name="Crab_20min"
|
|---|
| 1727 | bin=20
|
|---|
| 1728 | get_results
|
|---|
| 1729 | name="Crab_period"
|
|---|
| 1730 | bin=0
|
|---|
| 1731 | get_results
|
|---|
| 1732 | name="Crab_season"
|
|---|
| 1733 | bin=-365
|
|---|
| 1734 | nightmin=20110716
|
|---|
| 1735 | nightmax=20180716
|
|---|
| 1736 | get_results
|
|---|
| 1737 |
|
|---|
| 1738 |
|
|---|
| 1739 |
|
|---|
| 1740 | name="1959_2016"
|
|---|
| 1741 | source=7
|
|---|
| 1742 | bin=-1
|
|---|
| 1743 | nightmin=20160201
|
|---|
| 1744 | nightmax=20161105
|
|---|
| 1745 | get_results
|
|---|
| 1746 |
|
|---|
| 1747 | name="1959_all_variable"
|
|---|
| 1748 | overwrite="no"
|
|---|
| 1749 | source=7
|
|---|
| 1750 | bin=-365
|
|---|
| 1751 | nightmin=20120201
|
|---|
| 1752 | nightmax=20130131
|
|---|
| 1753 | get_results
|
|---|
| 1754 | nightmin=20130201
|
|---|
| 1755 | nightmax=20140131
|
|---|
| 1756 | get_results
|
|---|
| 1757 | nightmin=20140201
|
|---|
| 1758 | nightmax=20150131
|
|---|
| 1759 | get_results
|
|---|
| 1760 | bin=0
|
|---|
| 1761 | nightmin=20150201
|
|---|
| 1762 | nightmax=20160131
|
|---|
| 1763 | get_results
|
|---|
| 1764 | bin=-1
|
|---|
| 1765 | nightmin=20160201
|
|---|
| 1766 | nightmax=20170131
|
|---|
| 1767 | get_results
|
|---|
| 1768 | bin=0
|
|---|
| 1769 | nightmin=20170201
|
|---|
| 1770 | nightmax=20180131
|
|---|
| 1771 | get_results
|
|---|
| 1772 |
|
|---|
| 1773 |
|
|---|
| 1774 |
|
|---|
| 1775 | overwrite="yes"
|
|---|
| 1776 | name="1959_all_variable2"
|
|---|
| 1777 | overwrite="no"
|
|---|
| 1778 | source=7
|
|---|
| 1779 | bin=-365
|
|---|
| 1780 | nightmin=20120201
|
|---|
| 1781 | nightmax=20130131
|
|---|
| 1782 | get_results
|
|---|
| 1783 | nightmin=20130201
|
|---|
| 1784 | nightmax=20140131
|
|---|
| 1785 | get_results
|
|---|
| 1786 | nightmin=20140201
|
|---|
| 1787 | nightmax=20150131
|
|---|
| 1788 | get_results
|
|---|
| 1789 | bin=0
|
|---|
| 1790 | nightmin=20150201
|
|---|
| 1791 | nightmax=20160131
|
|---|
| 1792 | get_results
|
|---|
| 1793 | bin=-1
|
|---|
| 1794 | nightmin=20160201
|
|---|
| 1795 | nightmax=20160817
|
|---|
| 1796 | get_results
|
|---|
| 1797 | bin=0
|
|---|
| 1798 | nightmin=20160818
|
|---|
| 1799 | nightmax=20180131
|
|---|
| 1800 | get_results
|
|---|
| 1801 |
|
|---|
| 1802 |
|
|---|
| 1803 |
|
|---|
| 1804 | overwrite="yes"
|
|---|
| 1805 | bin=0
|
|---|
| 1806 | source=3
|
|---|
| 1807 | name="2344period"
|
|---|
| 1808 | get_results
|
|---|
| 1809 |
|
|---|
| 1810 |
|
|---|
| 1811 |
|
|---|
| 1812 | # flare night (HESS)
|
|---|
| 1813 | name="Mrk501_10min_flarenight"
|
|---|
| 1814 | source=2
|
|---|
| 1815 | bin=10
|
|---|
| 1816 | nightmin=20140623
|
|---|
| 1817 | nightmax=20140623
|
|---|
| 1818 | get_results
|
|---|
| 1819 |
|
|---|
| 1820 |
|
|---|
| 1821 |
|
|---|
| 1822 | # flare night (HESS)
|
|---|
| 1823 | name="Mrk501_5min_flarenight"
|
|---|
| 1824 | source=2
|
|---|
| 1825 | bin=5
|
|---|
| 1826 | nightmin=20140623
|
|---|
| 1827 | nightmax=20140623
|
|---|
| 1828 | get_results
|
|---|
| 1829 |
|
|---|
| 1830 |
|
|---|
| 1831 |
|
|---|
| 1832 |
|
|---|
| 1833 | # full sample
|
|---|
| 1834 | name="Mrk421_all_nightly"
|
|---|
| 1835 | source=1
|
|---|
| 1836 | get_results
|
|---|
| 1837 |
|
|---|
| 1838 | name="Mrk501_all_nightly"
|
|---|
| 1839 | source=2
|
|---|
| 1840 | get_results
|
|---|
| 1841 |
|
|---|
| 1842 | name="1959_all_nightly"
|
|---|
| 1843 | source=7
|
|---|
| 1844 | get_results
|
|---|
| 1845 |
|
|---|
| 1846 | name="2344_all_nightly"
|
|---|
| 1847 | source=3
|
|---|
| 1848 | get_results
|
|---|
| 1849 |
|
|---|
| 1850 |
|
|---|
| 1851 |
|
|---|
| 1852 | name="HESE20160427"
|
|---|
| 1853 | source=19
|
|---|
| 1854 | nightmin=20160425
|
|---|
| 1855 | bin=-10
|
|---|
| 1856 | get_results
|
|---|
| 1857 |
|
|---|
| 1858 | name="AMON20160731"
|
|---|
| 1859 | source=21
|
|---|
| 1860 | nightmin=20160730
|
|---|
| 1861 | bin=-10
|
|---|
| 1862 | get_results
|
|---|
| 1863 |
|
|---|
| 1864 |
|
|---|
| 1865 |
|
|---|