# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 141030d00h59m50s611652usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020427002 -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
# ========= GRB141028 ===================
Used archived XRT position of 322.60167 -0.23144 4.00
Reference: GCN_Circulars-16986-Wed,_29_Oct_2014_12:39:37_-0400_(EDT)
The position is (21:30:24.40, -00:13:53.2)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(322.60167,-0.23144,4") # color=red dash=0
Region file centered at (322.60167,-0.23144), which is (21:30:24.40, -00:13:53.2)
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 -12.70312 from trigger time of 436186503.09 in BAT summary file
# ============ Reading file sw00020427002uuu_sk.img ================
Long-term sensitivity correction is 0.100 at 436291984
The processing date in extension 0 is: 2014-10-30T00:49:47
The trigger time is: 436186515.79312. The reference is BAT GRB summary file
Using zero point of 18.440 for filter U
Use aperture correction of 1.032 based on aperture of 4.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(322.60167,-0.23144,25")
fk5;-circle(322.60167,-0.23144,12.5")
fk5;-circle(322.602222,-0.226669,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 uu436291984I  105468.5  0.99 1394.8  814.1 200  20178  5438  0.054 0.022 21.62 20.8  0.0535 0.0216 21.62 20.8  1395 31.241 12.587 16.55 0.003 
   2 uu436297803I  111288.1  0.99 1331.0  749.6 196  19215  5454  0.046 0.022 21.78 20.8  0.0499 0.0153 21.70 21.0  2726 29.881  9.157 16.60 0.003 
   3 uu436303803I  117287.3  1.00 1090.7  585.3 196  15694  5400  0.015 0.023 23.01 21.1  0.0399 0.0128 21.94 21.2  3816 24.689  7.840 16.81 0.003 
   4 uu436308124I  121608.5  0.97  114.7  308.8 200   7652  5439  0.253 0.165 19.93 18.7  0.0460 0.0133 21.78 21.1  3931 25.432  7.820 16.78 0.003 
   5 uu436309788I  123273.1  0.99  863.0  493.3 200  12672  5396  0.028 0.027 22.31 20.8  0.0428 0.0120 21.86 21.2  4794 24.521  7.201 16.82 0.003 
   6 uu436314132I  127616.3  0.99   86.9  117.1 196   3336  5390 -0.051 0.133 99.00 19.5  0.0412 0.0120 21.90 21.2  4881 24.196  7.180 16.83 0.003 
    Sum (T+105468 to 127705):            3068.2       2874.7 (est. in src region)   SNR_unwtd_sum:   3.44 0.9987 signif. UL:  21.22
  0  4881 436300724  114208.2  13496.4  -8739.7    0.0412   0.0120 21.904  0.374  -0.277
Total wtd_rate (for all exposures so far): 24.196 +/- 7.061 snr:  3.4 mag: 16.83 UL: 14.30
Rebinned Data for sw00020427002uuu_sk.img using a zero point of 18.440:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.85e+03  114203.6  13501.0  -8735.1    0.0412   0.0120 21.90  0.28  114203.6    0.0412   0.0120 21.90  0.28 21.22
The data range from T+105468.5 s (1.22 d) to T+127704.6 s (1.48 d)
Wrote uvot_fluxes_141030d00h59m50s611652usUT.qdp
Wrote uvot_fluxes_141030d00h59m50s611652usUT.gif
Wrote uvot_fluxes_141030d00h59m50s611652usUT.ps
Wrote uvot_fluxes_141030d00h59m50s611652usUT_vis.qdp
Wrote uvot_fluxes_141030d00h59m50s611652usUT_uv.qdp
Wrote uvot_fluxes_141030d00h59m50s611652usUT_vis.gif
Wrote uvot_fluxes_141030d00h59m50s611652usUT_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.00353  113310.5  14394.1  -7842.1    0.2112   0.0633 21.98  0.29  113310.5    0.2112   0.0633 21.98  0.29 21.28
The data range from T+105468.5 s (1.22 d) to T+127704.6 s (1.48 d)
Wrote uvot_fluxes_wtd_141030d00h59m50s611652usUT.qdp
Wrote uvot_fluxes_wtd_141030d00h59m50s611652usUT.gif
Wrote uvot_fluxes_wtd_141030d00h59m50s611652usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem