# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 160701d18h30m37s141967usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020676001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB160629A ===================
Used archived opt source position of 4.86292 76.96686 3.00
Reference: GCN_Circ-19623
The position is (00:19:27.10, +76:58:00.7)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(4.86292,76.96686,3") # color=red dash=0
Region file centered at (4.86292,76.96686), which is (00:19:27.10, +76:58:00.7)
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 -16.4744 from uncorrected trigger time of 488931602.1 in BAT summary file
# ============ Reading file sw00020676001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.129 at 489008654
The processing date in extension 0 is: 2016-07-01T18:18:31
The trigger time is: 488931618.5744. The reference is BAT GRB summary file
Using zero point of 18.211 for filter U
Use aperture correction of 1.100 based on aperture of 3.00
Using background region based on sources found in extension 5:
# 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(4.86292,76.96686,25")
fk5;-circle(4.86292,76.96686,12.5")
fk5;-circle(4.879675,76.961420,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 uu489008653I   77035.2  0.98  715.9  758.0 116  37528  5572 -0.036 0.043 99.00 20.6 -0.0365 0.0435 99.00 20.6   716 -19.164 22.843 99.00 0.002 
   2 uu489013484I   81865.5  0.98 1606.4 2203.0 116 108642  5602 -0.033 0.033 99.00 20.9 -0.0338 0.0266 99.00 21.2  2322 -18.637 14.446 99.00 0.001 
   3 uu489020535I   88917.3  0.99  310.3  258.1 104  13985  5546 -0.015 0.058 99.00 20.1 -0.0316 0.0244 99.00 21.3  2633 -17.260 13.367 99.00 0.001 
   4 uu489025997I   94378.8  0.98  577.2  613.7 112  32376  5590 -0.068 0.049 99.00 20.6 -0.0381 0.0219 99.00 21.5  3210 -21.245 12.290 99.00 0.001 
   5 uu489030634I   99015.7  0.98 1657.9 2385.9 116 110938  5573  0.052 0.033 21.42 20.2 -0.0074 0.0184 99.00 21.4  4868 -7.805 10.812 99.00 0.001 
    Sum (T+ 77035 to 100700):            6218.5       6250.7 (est. in src region)   SNR_unwtd_sum:  -0.40 0.9987 signif. UL:  21.39
  0  4868 489021203   89583.9  11116.2 -12548.8   -0.0074   0.0184 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -7.805 +/-10.701 snr: -0.7 mag: 99.00 UL: 14.56
Rebinned Data for sw00020676001uuu_sk.img using a zero point of 18.211:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.76e+03   89575.0  11125.1 -12539.9   -0.0074   0.0184 99.00 99.00   89575.0   -0.0074   0.0184 99.00 99.00 21.39
The data range from T+77035.2 s (0.89 d) to T+100700.2 s (1.17 d)
Wrote uvot_fluxes_160701d18h30m37s141967usUT.qdp
Wrote uvot_fluxes_160701d18h30m37s141967usUT.gif
Wrote uvot_fluxes_160701d18h30m37s141967usUT.ps
Wrote uvot_fluxes_160701d18h30m37s141967usUT_vis.qdp
Wrote uvot_fluxes_160701d18h30m37s141967usUT_uv.qdp
Wrote uvot_fluxes_160701d18h30m37s141967usUT_vis.gif
Wrote uvot_fluxes_160701d18h30m37s141967usUT_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.00126   87427.6  13272.6 -10392.4   -0.0973   0.1236 99.00 99.00   87427.6   -0.0973   0.1236 99.00 99.00 21.50
The data range from T+77035.2 s (0.89 d) to T+100700.2 s (1.17 d)
Wrote uvot_fluxes_wtd_160701d18h30m37s141967usUT.qdp
Wrote uvot_fluxes_wtd_160701d18h30m37s141967usUT.gif
Wrote uvot_fluxes_wtd_160701d18h30m37s141967usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem