# uvot_fluxes_wget.pl vrs. 2015-09-01 fem at 160114d16h33m48s620597usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020594992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB160113A ===================
Used archived uvot source position of 192.71790 12.07056 3.00
Reference: GCN_Circulars-xxxxx
The position is (12:50:52.30, +12:04:14.0)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(192.71790,12.07056,3") # color=red dash=0
Region file centered at (192.71790,12.07056), which is (12:50:52.30, +12:04:14.0)
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.
Subtract UTCF of -15.64958 from trigger time of 474370350.52 in BAT summary file
# ============ Reading file sw00020594992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.156 at 474417067
The processing date in extension 0 is: 2016-01-14T06:39:05
The trigger time is: 474370366.16958. The reference is BAT GRB summary file
Using zero point of 20.134 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(192.71790,12.07056,25")
fk5;-circle(192.71790,12.07056,12.5")
 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 wh474417067I   46700.9  0.95  157.2  675.8 108  16141  5934  2.836 0.199 19.00 18.8  2.8357 0.1988 19.00 18.8   157 153.132 10.735 14.83 0.009 
   2 wh474417229I   46863.5  0.94 1507.9 7510.1 116 196301  5983  2.898 0.070 18.98 18.9  2.8921 0.0662 18.98 18.9  1665 158.631  3.637 14.79 0.007 
   3 wh474418834I   48468.1  0.90   54.1  362.3 112  15026  5894  1.747 0.449 19.53 18.9  2.8576 0.0657 18.99 18.9  1719 157.839  3.604 14.79 0.007 
above line uses coinc_corr_src:  0.899 corr_bkg:  0.910
   4 wh474422267I   51901.5  0.95  201.5  852.3 108  20837  5934  2.741 0.174 19.04 18.8  2.8452 0.0615 19.00 18.9  1921 158.620  3.410 14.79 0.007 
   5 wh474422475I   52109.4  0.95  880.6 3656.3 104  90496  5925  2.738 0.082 19.04 18.9  2.8112 0.0495 19.01 19.0  2801 161.188  2.820 14.77 0.007 
    Sum (T+ 46701 to  53004):           13056.8       6353.1 (est. in src region)   SNR_unwtd_sum:  56.82 0.9987 signif. UL:  18.96
  0  2801 474419847   49480.7   3523.4  -2779.8    2.8112   0.0495 19.012  0.019  -0.019
Total wtd_rate (for all exposures so far): 161.188 +/- 2.734 snr: 59.0 mag: 14.77 UL: 14.56
Rebinned Data for sw00020594992uwh_sk.img using a zero point of 20.134:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.64e+03   49493.2   3510.9  -2792.3    2.8112   0.0495 19.01  0.02   49493.2    2.8112   0.0495 19.01  0.02 18.96
The data range from T+46700.9 s (0.54 d) to T+53004.1 s (0.61 d)
Wrote uvot_fluxes_160114d16h33m48s620597usUT.qdp
Wrote uvot_fluxes_160114d16h33m48s620597usUT.gif
Wrote uvot_fluxes_160114d16h33m48s620597usUT.ps
Wrote uvot_fluxes_160114d16h33m48s620597usUT_vis.qdp
Wrote uvot_fluxes_160114d16h33m48s620597usUT_uv.qdp
Wrote uvot_fluxes_160114d16h33m48s620597usUT_vis.gif
Wrote uvot_fluxes_160114d16h33m48s620597usUT_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.290:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     0.11   49475.5   3528.6  -2774.6    3.2486   0.0568 19.01  0.02   49475.5    3.2486   0.0568 19.01  0.02 18.95
The data range from T+46700.9 s (0.54 d) to T+53004.1 s (0.61 d)
Wrote uvot_fluxes_wtd_160114d16h33m48s620597usUT.qdp
Wrote uvot_fluxes_wtd_160114d16h33m48s620597usUT.gif
Wrote uvot_fluxes_wtd_160114d16h33m48s620597usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2015-09-01 fem