# uvot_fluxes_wget.pl vrs. 2011-11-14 fem at 111209d04h38m46s998306usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020191001 -use_uvot -rebin -plot_mag -wrk_dir=/local/data/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/data/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB111207A ===================
Used archived BAT position of 92.92400 -39.50400
Reference: GCN_FOM_Notice_Thu_08_Dec_11_20:31:53_UT
The position is (06:11:41.76, -39:30:14.4)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global color=red font="helvetica 10 normal" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source
fk5;circle(92.924,-39.504,3")
Region file centered at (92.924,-39.504), which is (06:11:41.76, -39:30:14.4)
Made source region file with 5" aper with name uvot_flux_src5.reg
Coincidence losses are calculated using a 5" aperture.
Exposure times (t_exp) have NOT been corrected for coinc. loss, but rates and mags have been.
The no. of background pixels has been corrected by the ratio of coincidence loss corrections in the source and background regions.
The errors have been adjusted to account for the binomial distribution of counts at large rates.
A table entry starting with # is an exposure with no aspect solution.
A table entry starting with ! has no pixels in either source or background region.
A table entry starting with % is unreliable because it is not well inside the image.
Upper limits in tables give the 0.9987 confidence limit using Bayesian analysis for detection taking the observed counts into account.
Upper limits in plots give the 0.9772 confidence limit using Bayesian analysis.
Weighted rates in tables (wtd_rate) combine rates from different exposures weighted by the expected source rate divided by the background rate
The source is assumed to produce the same magnitude in all filters.
The source is assumed to decay as t**(-1.0), and the rate is normalized so that the white filter produces 1 cps at 1000 sec.
The Rebinned Data for All_files combine rates from different exposures weighted by the expected rate divided by the observed sigma squared.
A plot of these data is stored in uvot_fluxes_wtd_date.ps and .gif.
A zero point of 20.29 is adopted for weighting rates.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -7.64082 from trigger time of 344960219 in BAT summary file
# ============ Reading file sw00020191001uwh_sk.img ================
The processing date in extension 0 is: 2011-12-09T01:23:08
The trigger time is: 344960226.64082. The reference is BAT GRB summary file
Using zero point of 20.29 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 2:
# Region file format: DS9 version 3.0
global color=red font="helvetica 10 normal" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source
fk5;circle(92.924,-39.504,25")
fk5;-circle(92.924,-39.504,12.5")
fk5;-circle(92.920050,-39.497714,6")
fk5;-circle(92.927730,-39.504384,6")
 Ext   Exposure      t-trig coinc  t_exp   src  pix    bkg   pix net_rate +/-   mag   UL sum_rate  +/-    mag  UL sumexp wtd_rate  +/-   mag  wt/t
   1 wh345068584I  108357.6  0.98  133.6  154.3 112   7963  5468  0.000 0.109 99.00 20.9  0.0000 0.1092 99.00 20.9   134  0.000 11.843 99.00 0.007 
   2 wh345068722I  108496.3  0.98 1334.4 1573.9 112  81411  5484  0.000 0.035 99.00 22.2  0.0000 0.0333 99.00 22.2  1468  0.000  3.631 99.00 0.007 
   3 wh345070084I  109857.6  0.98  105.2  134.0 108   6725  5448  0.000 0.125 99.00 20.8  0.0000 0.0322 99.00 22.3  1573  0.000  3.512 99.00 0.007 
   4 wh345074403I  114176.8  0.98  129.7  150.4 112   8061  5488  0.000 0.113 99.00 20.9  0.0000 0.0309 99.00 22.3  1703  0.000  3.389 99.00 0.007 
   5 wh345074538I  114311.4  0.98 1226.6 1505.4 112  76362  5480  0.000 0.037 99.00 22.1  0.0000 0.0237 99.00 22.6  2929  0.000  2.646 99.00 0.007 
    Sum (T+108358 to 115558):            3684.3       3684.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  22.59
  0  2929  111802.8   3754.8  -3445.2    0.0000   0.0237 99.00 99.00
Total wtd_rate (for all exposures so far):  0.000 +/- 2.619 snr:  0.0 mag: 99.00 UL: 17.48
Rebinned Data for sw00020191001uwh_sk.img using a zero point of 20.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.87e+03  111802.0   3755.6  -3444.4    0.0000   0.0237 99.00 99.00  111802.0    0.0000   0.0237 99.00 99.00 23.09
The data range from T+108357.6 s (1.25 d) to T+115557.6 s (1.34 d)
Wrote uvot_fluxes_111209d04h38m46s998306usUT.qdp
Wrote uvot_fluxes_111209d04h38m46s998306usUT.gif
Wrote uvot_fluxes_111209d04h38m46s998306usUT.ps
Wrote uvot_fluxes_111209d04h38m46s998306usUT_vis.qdp
Wrote uvot_fluxes_111209d04h38m46s998306usUT_uv.qdp
Wrote uvot_fluxes_111209d04h38m46s998306usUT_vis.gif
Wrote uvot_fluxes_111209d04h38m46s998306usUT_vis.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  u (0)  , white (0)  , b (0)  , v (0)  , 
Rebinned Data for All_files using a zero point of 20.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0    0.143  111624.8   3932.9  -3267.1    0.0000   0.0237 99.00 99.00  111624.8    0.0000   0.0237 99.00 99.00 23.09
The data range from T+108357.6 s (1.25 d) to T+115557.6 s (1.34 d)
Wrote uvot_fluxes_wtd_111209d04h38m46s998306usUT.qdp
Wrote uvot_fluxes_wtd_111209d04h38m46s998306usUT.gif
Wrote uvot_fluxes_wtd_111209d04h38m46s998306usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2011-11-14 fem