# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220714d13h23m12s625835usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01116172001 -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
# ========= GRB220714 ===================
Could not find/read custom source region custom_1116172_src.reg
Used archived BAT position of 171.90100 -59.34500
Reference: GCN_FOM_Notice_Thu_14_Jul_22_09:19:43_UT
The position is (11:27:36.24, -59:20:42.0)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(171.901,-59.345,3") # color=red dash=0
Source region spec. is: 171.901 -59.345 3"
Region file centered at (171.901,-59.345), which is (11:27:36.24, -59:20:42.0)
Could not find/read custom background region custom_1116172_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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -29.47748 from uncorrected trigger time of 679470962.52 in BAT summary file
# ============ Reading file sw01116172992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.218 at 679471920
The processing date in extension 0 is: 2022-07-14T11:34:01
The trigger time is: 679470991.99748. The reference is BAT GRB summary file
Using zero point of 17.672 for filter V
Use aperture correction of 1.087 based on aperture of 3.00
Using background region based on sources found in extension 4:
# 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(171.901,-59.345,25")
fk5;-circle(171.901,-59.345,12.5")
fk5;-circle(171.916341,-59.342355,6")
fk5;-circle(171.905932,-59.344907,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 vv679471920E     928.1  0.97   10.4   27.6 111    783  5729  0.000 0.422 99.00 16.8 
   2 vv679472145E    1153.4  0.97   19.4   70.1 115   1838  5738  0.000 0.354 99.00 17.0  0.0000 0.3541 99.00 17.0    19  0.000  4.593 99.00 0.039 
   3 vv679472296E    1304.3  0.97   19.5   50.5 112   1547  5729  0.000 0.319 99.00 17.1  0.0000 0.2382 99.00 17.5    39  0.000  3.276 99.00 0.041 
   4 vv679477116I    6124.8  0.97  196.6  783.4 128  18906  5760  0.000 0.118 99.00 18.2  0.0000 0.1064 99.00 18.3   235  0.000  3.043 99.00 0.011 
    Sum (T+  1153 to   6325):             487.2        487.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.34
  0   235 679476393    5401.1    923.4  -4247.7    0.0000   0.1064 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 3.013 snr:  0.0 mag: 99.00 UL: 14.71
Rebinned Data for sw01116172992uvv_sk.img using a zero point of 17.672:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     37.8    1239.0     85.1    -85.6    0.0000   0.2382 99.00 99.00    1239.0    0.0000   0.2382 99.00 99.00 17.96
  1      190    6224.7     99.9    -99.9    0.0000   0.1184 99.00 99.00    5399.3    0.0000   0.1064 99.00 99.00 18.84
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01116172992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.191 at 679472094
The processing date in extension 0 is:  2022-07-14T11:34:01
The trigger time is: 679470991.99748. The reference is BAT GRB summary file
Using zero point of 18.919 for filter B
Use aperture correction of  1.108 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(171.901,-59.345,25")
fk5;-circle(171.901,-59.345,12.5")
fk5;-circle(171.916239,-59.342436,6")
fk5;-circle(171.905873,-59.345033,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
High bkg:   1 bb679472094E   19.5   3423  5726 30.715  0.525
   1 bb679472094E    1102.4  0.94   19.5  106.5 111   3423  5726  0.000 0.497 99.00 17.9  0.0000 0.4972 99.00 17.9    19  0.000  1.955 99.00 0.070 
   2 bb679472245E    1253.3  0.95   19.5  113.4 112   3195  5736  0.000 0.480 99.00 17.9  0.0000 0.3457 99.00 18.3    39  0.000  1.445 99.00 0.068 
   3 bb679476705I    5713.0  0.95  196.6  953.3 112  29461  5712  0.000 0.144 99.00 19.3  0.0000 0.1330 99.00 19.3   235  0.000  1.299 99.00 0.025 
    Sum (T+  1102 to   5913):             706.4        706.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.34
  0   235 679476041    5048.6    864.1  -3946.2    0.0000   0.1330 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.186 snr:  0.0 mag: 99.00 UL: 16.97
Rebinned Data for sw01116172992ubb_sk.img using a zero point of 18.919:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     36.7    1187.9     85.2    -85.5    0.0000   0.3457 99.00 99.00    1187.9    0.0000   0.3457 99.00 99.00 18.80
  1      187    5812.9     99.9    -99.9    0.0000   0.1440 99.00 99.00    5053.1    0.0000   0.1330 99.00 99.00 19.84
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01116172992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.207 at 679471939
The processing date in extension 0 is:  2022-07-14T11:34:01
The trigger time is: 679470991.99748. The reference is BAT GRB summary file
Using zero point of 18.133 for filter U
Use aperture correction of  1.100 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(171.901,-59.345,25")
fk5;-circle(171.901,-59.345,12.5")
fk5;-circle(171.916116,-59.342397,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 uu679471938I     946.8  0.97  147.4  379.0 111  11570  5805  0.000 0.115 99.00 18.7  0.0000 0.1150 99.00 18.7   147  0.000  0.857 99.00 0.087 
   2 uu679472220E    1228.1  0.97   19.4   52.5 110   1486  5807  0.000 0.311 99.00 17.6  0.0000 0.1078 99.00 18.8   167  0.000  0.819 99.00 0.086 
   3 uu679476499I    5507.4  0.97  196.6  503.8 116  15457  5836  0.000 0.102 99.00 18.8  0.0000 0.0740 99.00 19.2   363  0.000  0.804 99.00 0.047 
    Sum (T+   947 to   5707):             556.6        556.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.19
  0   363 679474506    3513.9   2193.3  -2567.1    0.0000   0.0740 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.660 snr:  0.0 mag: 99.00 UL: 16.82
Rebinned Data for sw01116172992uuu_sk.img using a zero point of 18.133:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      163    1046.9    200.9   -100.1    0.0000   0.1078 99.00 99.00    1046.9    0.0000   0.1078 99.00 99.00 19.28
  1      191    5607.3     99.9    -99.9    0.0000   0.1016 99.00 99.00    3513.5    0.0000   0.0740 99.00 99.00 19.69
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01116172992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 679472195
The processing date in extension 0 is:  2022-07-14T11:34:01
The trigger time is: 679470991.99748. The reference is BAT GRB summary file
Using zero point of 17.169 for filter UVW1
Use aperture correction of  1.123 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(171.901,-59.345,25")
fk5;-circle(171.901,-59.345,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
High bkg:   1 w1679472195E   19.4    262  5854  2.304  0.142
   1 w1679472195E    1203.4  1.00   19.4    9.8 116    262  5854  0.000 0.134 99.00 17.6  0.0000 0.1336 99.00 17.6    19  0.000  2.871 99.00 0.173 
High bkg:   2 w1679476294I  196.6   2513  5796  2.205  0.044
   2 w1679476294I    5302.2  1.00  196.6   79.1 108   2513  5796  0.000 0.040 99.00 18.9  0.0000 0.0380 99.00 19.0   216  0.000  2.289 99.00 0.057 
High bkg:   3 w1679477527I   83.5   1672  5880  3.406  0.083
   3 w1679477527I    6535.5  0.99   83.5   46.6 124   1672  5880  0.000 0.081 99.00 18.1  0.0000 0.0355 99.00 19.0   300  0.000  2.225 99.00 0.042 
    Sum (T+  1203 to   6620):              87.3         87.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.03
  0   300 679476450    5457.9   1162.3  -4254.6    0.0000   0.0355 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.644 snr:  0.0 mag: 99.00 UL: 15.88
# ============ Reading file sw01116172001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 679483303
The processing date in extension 0 is:  2022-07-14T13:17:56
The trigger time is: 679470991.99748. The reference is BAT GRB summary file
Using zero point of 17.169 for filter UVW1
Use aperture correction of  1.123 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(171.901,-59.345,25")
fk5;-circle(171.901,-59.345,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
High bkg:   1 w1679483302I  785.4  11854  5824  2.591  0.024
   1 w1679483302I   12310.7  1.00  785.4  361.4 116  11854  5824  0.000 0.022 99.00 19.5  0.0000 0.0223 99.00 19.5   785  0.000  5.022 99.00 0.015 
    Sum (T+ 12311 to  13109):             236.1        236.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.53
  0   785 679483702   12709.7    399.0   -399.0    0.0000   0.0223 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.639 snr:  0.0 mag: 99.00 UL: 15.89
Rebinned Data for sw01116172001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     19.4    1213.2      9.9     -9.9    0.0000   0.1336 99.00 99.00    1213.2    0.0000   0.1336 99.00 99.00 18.09
  1      279    5751.9    868.4   -449.7    0.0000   0.0369 99.00 99.00    5457.3    0.0000   0.0355 99.00 99.00 19.52
  2      782   12709.7    399.0   -399.0    0.0000   0.0223 99.00 99.00   10707.2    0.0000   0.0189 99.00 99.00 20.21
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01116172992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 679472170
The processing date in extension 0 is:  2022-07-14T11:34:01
The trigger time is: 679470991.99748. The reference is BAT GRB summary file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.106 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(171.901,-59.345,25")
fk5;-circle(171.901,-59.345,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
High bkg:   1 m2679472170E   19.4     72  5846  0.633  0.075
   1 m2679472170E    1178.1  1.00   19.4    1.0 113     72  5846  0.000 0.068 99.00 17.7  0.0000 0.0678 99.00 17.7    19  0.000  2.430 99.00 0.390 
High bkg:   2 m2679472320E   19.4     55  5843  0.487  0.066
   2 m2679472320E    1329.0  1.00   19.4    4.5 115     55  5843  0.000 0.060 99.00 17.9  0.0000 0.0453 99.00 18.2    39  0.000  1.716 99.00 0.412 
High bkg:   3 m2679477321I  196.6    760  5828  0.663  0.024
   3 m2679477321I    6329.9  1.00  196.6   19.4 108    760  5828  0.000 0.021 99.00 19.0  0.0000 0.0193 99.00 19.1   236  0.000  1.585 99.00 0.123 
    Sum (T+  1178 to   6530):              16.6         16.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.11
  0   236 679476569    5576.8    952.9  -4398.7    0.0000   0.0193 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.584 snr:  0.0 mag: 99.00 UL: 15.41
Rebinned Data for sw01116172992um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.8    1263.4     85.3    -85.3    0.0000   0.0453 99.00 99.00    1263.4    0.0000   0.0453 99.00 99.00 18.68
  1      196    6429.8     99.9    -99.9    0.0000   0.0213 99.00 99.00    5576.7    0.0000   0.0193 99.00 99.00 19.61
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01116172992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.345 at 679472121
The processing date in extension 0 is:  2022-07-14T11:34:01
The trigger time is: 679470991.99748. The reference is BAT GRB summary file
Using zero point of 17.035 for filter UVW2
Use aperture correction of  1.108 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(171.901,-59.345,25")
fk5;-circle(171.901,-59.345,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
High bkg:   1 w2679472120E   19.5    155  5849  1.362  0.109
   1 w2679472120E    1128.6  1.00   19.5    2.9 115    155  5849  0.000 0.101 99.00 17.8  0.0000 0.1006 99.00 17.8    19  0.000  2.296 99.00 0.279 
High bkg:   2 w2679472271E   19.5    134  5846  1.178  0.102
   2 w2679472271E    1279.6  1.00   19.5    3.6 115    134  5846  0.000 0.094 99.00 17.8  0.0000 0.0687 99.00 18.2    39  0.000  1.665 99.00 0.282 
High bkg:   3 w2679476911I  196.6   1469  5828  1.282  0.033
   3 w2679476911I    5919.7  1.00  196.6   34.0 108   1469  5828  0.000 0.030 99.00 19.1  0.0000 0.0273 99.00 19.2   236  0.000  1.510 99.00 0.098 
    Sum (T+  1129 to   6119):              32.9         32.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.18
  0   236 679476218    5225.8    893.7  -4097.2    0.0000   0.0273 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.545 snr:  0.0 mag: 99.00 UL: 15.93
Rebinned Data for sw01116172992uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.8    1214.0     85.3    -85.4    0.0000   0.0687 99.00 99.00    1214.0    0.0000   0.0687 99.00 99.00 18.68
  1      196    6019.6     99.9    -99.9    0.0000   0.0297 99.00 99.00    5225.8    0.0000   0.0273 99.00 99.00 19.68
The data range from T+946.8 s (0.01 d) to T+13108.7 s (0.15 d)
Wrote uvot_fluxes_220714d13h23m12s625835usUT.qdp
Wrote uvot_fluxes_220714d13h23m12s625835usUT.gif
Wrote uvot_fluxes_220714d13h23m12s625835usUT.ps
Wrote uvot_fluxes_220714d13h23m12s625835usUT_vis.qdp
Wrote uvot_fluxes_220714d13h23m12s625835usUT_uv.qdp
Wrote uvot_fluxes_220714d13h23m12s625835usUT_vis.gif
Wrote uvot_fluxes_220714d13h23m12s625835usUT_vis.ps
Wrote uvot_fluxes_220714d13h23m12s625835usUT_uv.gif
Wrote uvot_fluxes_220714d13h23m12s625835usUT_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.348    1099.6    224.5   -152.8    0.0000   0.6765 99.00 99.00    1099.6    0.0000   0.6765 99.00 99.00 19.45
  1   0.0416    5786.8    537.8   -279.3    0.0000   0.4227 99.00 99.00    1599.8    0.0000   0.4463 99.00 99.00 19.90
The data range from T+946.8 s (0.01 d) to T+13108.7 s (0.15 d)
Wrote uvot_fluxes_wtd_220714d13h23m12s625835usUT.qdp
Wrote uvot_fluxes_wtd_220714d13h23m12s625835usUT.gif
Wrote uvot_fluxes_wtd_220714d13h23m12s625835usUT.ps
Found 11 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem