# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 150629d09h17m20s111430usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020539002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -search_src_reg -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB150627A ===================
Used archived uvot source position of 117.47108 -51.48942 3.00
Reference: GCN_Circ_17977
The position is (07:49:53.06, -51:29:21.9)
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(117.471083333333,-51.4894166666667,3") # color=red dash=0
Region file centered at (117.471083333333,-51.4894166666667), which is (07:49:53.06, -51:29:21.9)
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 -13.7723 from trigger time of 457071803.68 in BAT summary file
# ============ Reading file sw00020539002uwh_sk.img ================
Long-term sensitivity correction is 0.107 at 457225486
The processing date in extension 0 is: 2015-06-29T09:06:40
The trigger time is: 457071817.4523. The reference is BAT GRB summary file
Using zero point of 20.397 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 1:
# 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(117.471083333333,-51.4894166666667,25")
fk5;-circle(117.471083333333,-51.4894166666667,12.5")
fk5;-circle(117.481012,-51.484751,6")
fk5;-circle(117.472269,-51.484320,6")
fk5;-circle(117.482403,-51.487452,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 wh457225485I  153668.4  0.93  540.7 2309.8 120  92504  5190  0.375 0.110 21.46 20.8  0.3751 0.1098 21.46 20.8   541 52.375 15.325 15.99 0.002 
   2 wh457231193I  159376.2  0.93  473.3 2086.1 116  84494  5201  0.506 0.119 21.14 20.6  0.4362 0.0806 21.30 20.8  1014 61.709 11.445 15.81 0.002 
    Sum (T+153668 to 160159):            4395.8       4023.6 (est. in src region)   SNR_unwtd_sum:   5.41 0.9987 signif. UL:  20.82
  0  1014 457228537  156719.1   3439.9  -3050.7    0.4362   0.0806 21.297  0.222  -0.184
Total wtd_rate (for all exposures so far): 61.709 +/-11.028 snr:  5.6 mag: 15.81 UL: 15.45
Rebinned Data for sw00020539002uwh_sk.img using a zero point of 20.397:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      945  156716.7   3442.3  -3048.3    0.4362   0.0806 21.30  0.18  156716.7    0.4362   0.0806 21.30  0.18 20.82
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020539002uvv_sk.img ================
Long-term sensitivity correction is  0.156 at 457226258
The processing date in extension 0 is:  2015-06-29T09:06:40
The trigger time is: 457071817.4523. The reference is BAT GRB summary file
Using zero point of 18.046 for filter V
Use aperture correction of  1.087 based on aperture of  3.00
Using background region based on sources found in extension 3:
# 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(117.471083333333,-51.4894166666667,25")
fk5;-circle(117.471083333333,-51.4894166666667,12.5")
fk5;-circle(117.472314,-51.484353,6")
fk5;-circle(117.481095,-51.484746,6")
fk5;-circle(117.482386,-51.487429,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 vv457226257I  154440.4  0.98  752.7  740.3 112  32536  5158  0.050 0.040 21.31 20.0  0.0497 0.0404 21.31 20.0   753 60.752 49.373 15.83 0.001 
   2 vv457227027I  155210.1  0.98   33.9   44.8 104   1950  5173  0.183 0.222 19.89 18.2  0.0554 0.0398 21.19 19.9   787 66.408 48.583 15.73 0.001 
   3 vv457231983I  160166.1  0.98  770.4  733.3 108  31418  5165  0.109 0.039 20.45 19.7  0.0821 0.0279 20.76 20.0  1557 102.792 34.756 15.26 0.001 
   4 vv457232770I  160953.0  0.98   35.6   45.7 108   1844  5162  0.223 0.213 19.67 18.2  0.0853 0.0277 20.72 20.0  1593 105.997 34.475 15.23 0.001 
    Sum (T+154440 to 160989):            1564.1       1441.3 (est. in src region)   SNR_unwtd_sum:   3.08 0.9987 signif. UL:  19.98
  0  1593 457229560  157743.0   3246.2  -3302.6    0.0853   0.0277 20.719  0.427  -0.305
Total wtd_rate (for all exposures so far): 64.710 +/-10.320 snr:  6.3 mag: 15.76 UL: 13.09
Rebinned Data for sw00020539002uvv_sk.img using a zero point of 18.046:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.57e+03  157744.1   3245.1  -3303.7    0.0853   0.0277 20.72  0.30  157744.1    0.0853   0.0277 20.72  0.30 19.98
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020539002uuu_sk.img ================
Long-term sensitivity correction is  0.107 at 457224712
The processing date in extension 0 is:  2015-06-29T09:06:40
The trigger time is: 457071817.4523. The reference is BAT GRB summary file
Using zero point of 18.447 for filter U
Use aperture correction of  1.100 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(117.471083333333,-51.4894166666667,25")
fk5;-circle(117.471083333333,-51.4894166666667,12.5")
fk5;-circle(117.472276,-51.484380,6")
fk5;-circle(117.481068,-51.484769,6")
fk5;-circle(117.482339,-51.487437,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 uu457224712I  152895.0  0.98  752.7  745.5 108  32508  5138  0.092 0.041 21.04 20.1  0.0922 0.0409 21.04 20.1   753 77.189 34.243 15.57 0.001 
   2 uu457230404I  158586.6  0.98  770.4  713.3 104  32147  5187  0.100 0.039 20.95 20.1  0.0960 0.0283 20.99 20.3  1523 81.939 24.103 15.51 0.001 
   3 uu457236114I  164297.4  0.99  224.8  211.2 116   9280  5185  0.018 0.073 22.81 20.0  0.0859 0.0264 21.11 20.4  1748 74.592 22.626 15.61 0.001 
    Sum (T+152895 to 164526):            1670.0       1535.5 (est. in src region)   SNR_unwtd_sum:   3.26 0.9987 signif. UL:  20.40
  0  1748 457229040  157222.1   7303.7  -4327.1    0.0859   0.0264 21.111  0.398  -0.290
Total wtd_rate (for all exposures so far): 67.060 +/- 9.460 snr:  7.1 mag: 15.72 UL: 13.50
Rebinned Data for sw00020539002uuu_sk.img using a zero point of 18.447:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.72e+03  157222.7   7303.1  -4327.7    0.0859   0.0264 21.11  0.29  157222.7    0.0859   0.0264 21.11  0.29 20.40
The data range from T+152895.0 s (1.77 d) to T+164525.8 s (1.90 d)
Wrote uvot_fluxes_150629d09h17m20s111430usUT.qdp
Wrote uvot_fluxes_150629d09h17m20s111430usUT.gif
Wrote uvot_fluxes_150629d09h17m20s111430usUT.ps
Wrote uvot_fluxes_150629d09h17m20s111430usUT_vis.qdp
Wrote uvot_fluxes_150629d09h17m20s111430usUT_uv.qdp
Wrote uvot_fluxes_150629d09h17m20s111430usUT_vis.gif
Wrote uvot_fluxes_150629d09h17m20s111430usUT_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.00889  156615.1   7910.7  -3720.1    0.4000   0.0695 21.29  0.17  156615.1    0.4000   0.0695 21.29  0.17 20.83
The data range from T+152895.0 s (1.77 d) to T+164525.8 s (1.90 d)
Wrote uvot_fluxes_wtd_150629d09h17m20s111430usUT.qdp
Wrote uvot_fluxes_wtd_150629d09h17m20s111430usUT.gif
Wrote uvot_fluxes_wtd_150629d09h17m20s111430usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem