# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220713d17h27m47s422568usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021509992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/data/uvot/swift_data/home/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /data/uvot/swift_data/home/uvot_lc
# ========= GRB220710A ===================
Could not find/read custom source region custom_021509_src.reg
Used archived XRT position of 221.56679 20.65758 4.00
Reference: GCN_Circulars-32385-Wed,_13_Jul_2022_12:38:51_-0400
The position is (14:46:16.03, +20:39:27.3)
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(221.56679,20.65758,4") # color=red dash=0
Source region spec. is: 221.56679 20.65758 4"
Region file centered at (221.56679,20.65758), which is (14:46:16.03, +20:39:27.3)
Could not find/read custom background region custom_021509_bkg.reg
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 -29.47748 from uncorrected trigger time of 679116574 in BAT summary file
# ============ Reading file sw00021509992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 679359096
The processing date in extension 0 is: 2022-07-13T17:19:50
The trigger time is: 679116603.47748. The reference is BAT GRB summary file
Using zero point of 20.115 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(221.56679,20.65758,25")
fk5;-circle(221.56679,20.65758,12.5")
fk5;-circle(221.574805,20.656312,6")
fk5;-circle(221.568181,20.664334,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 wh679359096I  242492.8  0.98   47.0  102.0 204   2946  5511 -0.159 0.231 99.00 20.6 -0.1587 0.2315 99.00 20.6    47 -45.241 65.959 99.00 0.001 
   2 wh679359146I  242543.1  0.98  447.0  944.8 196  28052  5531 -0.117 0.074 99.00 22.1 -0.1207 0.0705 99.00 22.2   494 -34.376 20.118 99.00 0.002 
   3 wh679362893I  246289.6  0.92  205.1 1607.6 200  43716  5534  0.151 0.223 22.17 20.3 -0.0442 0.0806 99.00 21.7   699 -27.014 19.209 99.00 0.001 
   4 wh679363106I  246503.4  0.96  340.9 1403.7 200  38057  5490  0.054 0.121 23.28 21.0 -0.0120 0.0671 99.00 21.8  1040 -16.656 16.838 99.00 0.001 
   5 wh679368670I  252066.6  0.94  203.5 1221.6 200  35682  5522 -0.382 0.193 99.00 21.1 -0.0715 0.0642 99.00 22.1  1243 -24.233 16.150 99.00 0.001 
   6 wh679368880I  252277.4  0.96  314.8 1281.0 200  37213  5547 -0.208 0.125 99.00 21.5 -0.0990 0.0571 99.00 22.4  1558 -30.144 14.806 99.00 0.001 
   7 wh679380196I  263592.7  0.95  198.6 1074.0 192  31845  5479 -0.230 0.184 99.00 21.0 -0.1137 0.0547 99.00 22.5  1757 -32.743 14.329 99.00 0.001 
   8 wh679380401I  263797.6  0.97 1023.4 2958.1 204  77862  5548  0.099 0.058 22.63 21.5 -0.0346 0.0405 99.00 22.6  2780 -6.888 11.185 99.00 0.001 
   9 wh679391542I  274939.4  0.89  170.9 1885.5 200  50712  5535  0.359 0.299 21.23 19.9 -0.0134 0.0416 99.00 22.4  2951 -5.207 11.110 99.00 0.001 
above line uses coinc_corr_src:  0.894 corr_bkg:  0.897
  10 wh679391756I  275153.2  0.97  534.0 1769.3 196  53508  5493 -0.280 0.086 99.00 22.3 -0.0545 0.0376 99.00 22.8  3485 -16.316 10.319 99.00 0.001 
  11 wh679403045I  286441.9  0.93  203.5 1387.9 196  40306  5496 -0.270 0.207 99.00 20.9 -0.0661 0.0372 99.00 22.9  3689 -17.888 10.207 99.00 0.001 
  12 wh679403255I  286651.7  0.97  740.0 2470.7 200  67478  5531  0.044 0.073 23.50 21.5 -0.0475 0.0333 99.00 22.9  4429 -12.983  9.432 99.00 0.001 
    Sum (T+242493 to 287447):           18106.3      18301.6 (est. in src region)   SNR_unwtd_sum:  -1.43 0.9987 signif. UL:  22.91
  0  4429 679381475  264871.3  22575.9 -22378.6   -0.0475   0.0333 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -12.983 +/- 9.264 snr: -1.4 mag: 99.00 UL: 16.79
Rebinned Data for sw00021509992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.25e+03  264849.9  22597.4 -22357.1   -0.0475   0.0333 99.00 99.00  264849.9   -0.0475   0.0333 99.00 99.00 22.91
The data range from T+242492.8 s (2.81 d) to T+287447.2 s (3.33 d)
Wrote uvot_fluxes_220713d17h27m47s422568usUT.qdp
Wrote uvot_fluxes_220713d17h27m47s422568usUT.gif
Wrote uvot_fluxes_220713d17h27m47s422568usUT.ps
Wrote uvot_fluxes_220713d17h27m47s422568usUT_vis.qdp
Wrote uvot_fluxes_220713d17h27m47s422568usUT_uv.qdp
Wrote uvot_fluxes_220713d17h27m47s422568usUT_vis.gif
Wrote uvot_fluxes_220713d17h27m47s422568usUT_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.00415  246960.1  16834.5  -4467.3   -0.1357   0.0580 99.00 99.00  246960.1   -0.1357   0.0580 99.00 99.00 22.70
  1  0.00276  264672.1  10478.1   -874.5    0.1268   0.0664 22.53  0.46  254031.1   -0.0265   0.0437 99.00 99.00 22.58
  2  0.00128  276979.8   9668.8  -1826.6   -0.3273   0.0932 99.00 99.00  257615.5   -0.0770   0.0396 99.00 99.00 23.02
  3   0.0014  287049.5    397.8   -397.8    0.0519   0.0859 23.50  1.06  261911.9   -0.0564   0.0360 99.00 99.00 23.03
The data range from T+242492.8 s (2.81 d) to T+287447.2 s (3.33 d)
Wrote uvot_fluxes_wtd_220713d17h27m47s422568usUT.qdp
Wrote uvot_fluxes_wtd_220713d17h27m47s422568usUT.gif
Wrote uvot_fluxes_wtd_220713d17h27m47s422568usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem