# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140613d12h12m03s805142usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020385992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -usex -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
# ========= GRB140611A ===================
Used archived XRT position of 349.91729 -40.10444 4.00
Reference: GCN_Circulars-16390-Thu,_12_Jun_2014_09:59:31_-0400_(EDT)
The position is (23:19:40.15, -40:06:16.0)
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(349.91729,-40.10444,4") # color=red dash=0
Region file centered at (349.91729,-40.10444), which is (23:19:40.15, -40:06:16.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 -12.12206 from trigger time of 424151464 in BAT summary file
# ============ Reading file sw00020385992uwh_sk.img ================
Long-term sensitivity correction is 0.096 at 424231920
The processing date in extension 0 is: 2014-06-12T09:18:56
The trigger time is: 424151476.12206. The reference is BAT GRB summary file
Using zero point of 20.386 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Using background region based on sources found in extension 8:
# 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(349.91729,-40.10444,25")
fk5;-circle(349.91729,-40.10444,12.5")
fk5;-circle(349.911364,-40.105152,6")
fk5;-circle(349.915120,-40.099246,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 wh424231919I   80443.8  0.92   53.9  506.3 208  13153  5007 -0.840 0.497 99.00 20.3 -0.8405 0.4968 99.00 20.3    54 -61.888 36.581 99.00 0.001 
   2 wh424231977I   80501.3  0.89  277.2 3070.8 200  77783  4995 -0.183 0.242 99.00 20.9 -0.2927 0.2177 99.00 21.1   331 -22.559 16.050 99.00 0.001 
above line uses coinc_corr_src:  0.892 corr_bkg:  0.893
High bkg:   3 wh424232530I   19.5   6470  5036 65.809  0.818
   3 wh424232530I   81054.0  0.88   19.5  262.9 200   6470  5032  0.346 1.024 21.54 19.0 -0.2579 0.2133 99.00 21.1   351 -20.404 15.704 99.00 0.001 
above line uses coinc_corr_src:  0.875 corr_bkg:  0.874
   4 wh424236009I   84533.2  0.98  191.7  454.7 200  12006  4978 -0.153 0.120 99.00 21.7 -0.2186 0.1409 99.00 21.6   542 -14.207  8.015 99.00 0.002 
   5 wh424236207I   84731.0  0.96 1645.1 7766.7 208 190957  5041 -0.074 0.059 99.00 22.5 -0.1086 0.0563 99.00 22.7  2187 -7.851  4.015 99.00 0.002 
   6 wh424238165I   86689.5  0.90   74.4  805.8 196  19995  4993  0.326 0.458 21.60 19.8 -0.0951 0.0564 99.00 22.7  2262 -7.412  3.991 99.00 0.002 
above line uses coinc_corr_src:  0.895 corr_bkg:  0.898
   7 wh424241609I   90133.6  0.98  205.5  514.8 200  12662  5004  0.045 0.119 23.76 21.3 -0.0831 0.0526 99.00 22.7  2467 -5.801  3.699 99.00 0.002 
   8 wh424241821I   90345.4  0.96 1686.8 6507.6 196 164057  5001  0.050 0.052 23.64 22.1 -0.0286 0.0377 99.00 22.9  4154 -1.587  2.824 99.00 0.002 
    Sum (T+ 80444 to  92140):           19889.6      19999.2 (est. in src region)   SNR_unwtd_sum:  -0.76 0.9987 signif. UL:  22.87
  0  4154 424239206   87729.5   4410.7  -7285.7   -0.0286   0.0377 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -1.587 +/- 2.767 snr: -0.6 mag: 99.00 UL: 18.16
Rebinned Data for sw00020385992uwh_sk.img using a zero point of 20.386:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.97e+03   87778.0   4362.3  -7334.2   -0.0286   0.0377 99.00 99.00   87778.0   -0.0286   0.0377 99.00 99.00 22.87
The data range from T+80443.8 s (0.93 d) to T+92140.3 s (1.07 d)
Wrote uvot_fluxes_140613d12h12m03s805142usUT.qdp
Wrote uvot_fluxes_140613d12h12m03s805142usUT.gif
Wrote uvot_fluxes_140613d12h12m03s805142usUT.ps
Wrote uvot_fluxes_140613d12h12m03s805142usUT_vis.qdp
Wrote uvot_fluxes_140613d12h12m03s805142usUT_uv.qdp
Wrote uvot_fluxes_140613d12h12m03s805142usUT_vis.gif
Wrote uvot_fluxes_140613d12h12m03s805142usUT_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.137   88134.3   4006.0  -7690.5   -0.0193   0.0320 99.00 99.00   88134.3   -0.0193   0.0320 99.00 99.00 22.91
The data range from T+80443.8 s (0.93 d) to T+92140.3 s (1.07 d)
Wrote uvot_fluxes_wtd_140613d12h12m03s805142usUT.qdp
Wrote uvot_fluxes_wtd_140613d12h12m03s805142usUT.gif
Wrote uvot_fluxes_wtd_140613d12h12m03s805142usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem