# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220713d13h53m34s846901usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021508002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/data/uvot/swift_data/home/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /data/uvot/swift_data/home/uvot_lc
# ========= GRB220708B ===================
Could not find/read custom source region custom_021508_src.reg
Used archived XRT position of 248.57900 36.34780 4.00
Reference: GCN_Circulars-32350
The position is (16:34:18.96, +36:20:52.1)
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(248.5790,36.3478,4") # color=red dash=0
Source region spec. is: 248.5790 36.3478 4"
Region file centered at (248.5790,36.3478), which is (16:34:18.96, +36:20:52.1)
Could not find/read custom background region custom_021508_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.4566 from uncorrected trigger time of 678938815.11 in BAT summary file
# ============ Reading file sw00021508001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 678973903
The processing date in extension 0 is: 2022-07-08T17:52:52
The trigger time is: 678938844.5666. 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 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(248.5790,36.3478,25")
fk5;-circle(248.5790,36.3478,12.5")
fk5;-circle(248.580973,36.351878,6")
fk5;-circle(248.576891,36.351021,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 wh678973903I   35058.7  0.97  195.6  542.1 204  14493  5171 -0.161 0.129 99.00 21.4 -0.1610 0.1289 99.00 21.4   196 -6.652  5.327 99.00 0.008 
Low  bkg:   2 wh678974105I 1506.2  72602  5184  9.298  0.035
   2 wh678974105I   35260.7  0.98 1506.2 2850.9 204  72602  5183 -0.005 0.038 99.00 22.4 -0.0226 0.0368 99.00 22.6  1702 -0.718  1.542 99.00 0.012 
Low  bkg:   3 wh678980777I  100.2   4523  5212  8.665  0.129
   3 wh678980777I   41933.1  0.98  100.2  195.1 200   4523  5222  0.230 0.150 21.71 20.5 -0.0086 0.0357 99.00 22.5  1802 -0.152  1.510 99.00 0.012 
Low  bkg:   4 wh678980882I 1005.7  44617  5188  8.552  0.040
   4 wh678980882I   42037.8  0.98 1005.7 1711.3 200  44617  5188 -0.009 0.044 99.00 22.3 -0.0088 0.0278 99.00 22.8  2808 -0.251  1.246 99.00 0.012 
Low  bkg:   5 wh678981908I   51.2   2260  5148  8.581  0.180
   5 wh678981908I   43064.3  0.98   51.2   90.8 196   2260  5159  0.102 0.200 22.60 20.5 -0.0068 0.0276 99.00 22.8  2859 -0.166  1.237 99.00 0.012 
Low  bkg:   6 wh678986515I   99.2   4396  5236  8.465  0.128
   6 wh678986515I   47670.9  0.98   99.2  172.9 208   4396  5235 -0.018 0.142 99.00 21.0 -0.0072 0.0271 99.00 22.8  2958 -0.186  1.222 99.00 0.011 
Low  bkg:   7 wh678986619I  997.8  43491  5144  8.474  0.041
   7 wh678986619I   47774.5  0.98  997.8 1644.0 188  43491  5144  0.058 0.043 23.22 21.9  0.0091 0.0230 25.21 22.8  3956  0.511  1.095 21.02 0.011 
Low  bkg:   8 wh678987637I   22.1   1013  5196  8.837  0.278
   8 wh678987637I   48793.0  0.98   22.1   36.9 200   1013  5192 -0.102 0.295 99.00 20.3  0.0085 0.0230 25.29 22.8  3978  0.486  1.093 21.07 0.011 
    Sum (T+ 35059 to  48815):            7244.0       7211.9 (est. in src region)   SNR_unwtd_sum:   0.37 0.9987 signif. UL:  22.85
  0  3978 678980154   41309.7   7505.8  -6251.0    0.0085   0.0230 25.290 73.710  -1.420
Total wtd_rate (for all exposures so far):  0.486 +/- 1.073 snr:  0.5 mag: 21.07 UL: 18.65
Rebinned Data for sw00021508001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.91e+03   41315.7   7499.7  -6257.0    0.0085   0.0230 25.29  1.42   41315.7    0.0085   0.0230 25.29  1.42 22.85
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00021508002uw2_sk.img ================
Use keyword TRIGTIME of 678938846.465 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 679392445
The processing date in extension 0 is:  2022-07-13T13:44:20
The trigger time is: 678938846.465. The reference is keyword in image file
Using zero point of 17.035 for filter UVW2
Use aperture correction of  1.035 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(248.5790,36.3478,25")
fk5;-circle(248.5790,36.3478,12.5")
 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 w2679392444I  453598.5  1.00 1747.8   60.1 204   1767  5832 -0.001 0.005 99.00 21.6 -0.0010 0.0047 99.00 21.6  1748 -9.284 42.549 99.00 0.003 
Low  bkg:   2 w2679398267I 1686.0   1626  5840  0.165  0.004
   2 w2679398267I  459421.5  1.00 1686.0   46.9 204   1626  5840 -0.006 0.004 99.00 22.1 -0.0035 0.0032 99.00 22.3  3434 -32.562 29.071 99.00 0.003 
Low  bkg:   3 w2679404440I 1279.5   1175  5820  0.158  0.005
   3 w2679404440I  465594.3  1.00 1279.5   45.8 200   1175  5820  0.004 0.006 22.92 21.2 -0.0014 0.0028 99.00 22.3  4713 -11.704 25.498 99.00 0.003 
    Sum (T+453598 to 466894):             152.8        159.0 (est. in src region)   SNR_unwtd_sum:  -0.49 0.9987 signif. UL:  22.29
  0  4713 679398597  459750.1   7144.3  -6151.6   -0.0014   0.0028 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.465 +/- 1.072 snr:  0.4 mag: 21.12 UL: 15.58
Rebinned Data for sw00021508002uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.71e+03  459750.1   7144.3  -6151.6   -0.0014   0.0028 99.00 99.00  459750.1   -0.0014   0.0028 99.00 99.00 22.29
The data range from T+35058.7 s (0.41 d) to T+466894.4 s (5.40 d)
Wrote uvot_fluxes_220713d13h53m34s846901usUT.qdp
Wrote uvot_fluxes_220713d13h53m34s846901usUT.gif
Wrote uvot_fluxes_220713d13h53m34s846901usUT.ps
Wrote uvot_fluxes_220713d13h53m34s846901usUT_vis.qdp
Wrote uvot_fluxes_220713d13h53m34s846901usUT_uv.qdp
Wrote uvot_fluxes_220713d13h53m34s846901usUT_vis.gif
Wrote uvot_fluxes_220713d13h53m34s846901usUT_vis.ps
Wrote uvot_fluxes_220713d13h53m34s846901usUT_uv.gif
Wrote uvot_fluxes_220713d13h53m34s846901usUT_uv.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.713   40481.1   8334.3  -5422.4    0.0104   0.0270 25.25  1.39   40481.1    0.0104   0.0270 25.25  1.39 22.84
The data range from T+35058.7 s (0.41 d) to T+466894.4 s (5.40 d)
Wrote uvot_fluxes_wtd_220713d13h53m34s846901usUT.qdp
Wrote uvot_fluxes_wtd_220713d13h53m34s846901usUT.gif
Wrote uvot_fluxes_wtd_220713d13h53m34s846901usUT.ps
Found 9 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem