# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 230829d15h09m52s282629usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01187463001 -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
# ========= GRB230826A ===================
Could not find/read custom source region custom_1187463_src.reg
Used archived XRT position of 83.06408 66.12383 4.00
Reference: GCN_Circulars-34569-Sun,_27_Aug_2023_07:40:20_+0000
The position is (05:32:15.38, +66:07:25.8)
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(83.06408,66.12383,4") # color=red dash=0
Source region spec. is: 83.06408 66.12383 4"
Region file centered at (83.06408,66.12383), which is (05:32:15.38, +66:07:25.8)
Could not find/read custom background region custom_1187463_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 -31.89708 from uncorrected trigger time of 714771167.07 in BAT summary file
# ============ Reading file sw01187463001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 714788371
The processing date in extension 0 is: 2023-08-27T11:18:13
The trigger time is: 714771198.96708. 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 5:
# 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(83.06408,66.12383,25")
fk5;-circle(83.06408,66.12383,12.5")
fk5;-circle(83.072437,66.129862,6")
fk5;-circle(83.052130,66.117928,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 wh714788370I   17171.8  0.90  295.0 3019.1 188  89617  5491 -0.193 0.218 99.00 20.7 -0.1930 0.2184 99.00 20.7   295 -3.929  4.446 99.00 0.004 
above line uses coinc_corr_src:  0.897 corr_bkg:  0.898
   2 wh714788674I   17475.3  0.90  295.0 3018.9 184  90114  5498  0.012 0.218 24.93 20.5 -0.0905 0.1543 99.00 21.0   590 -1.858  3.168 99.00 0.004 
above line uses coinc_corr_src:  0.898 corr_bkg:  0.899
   3 wh714788977I   17778.8  0.92  241.2 1970.1 192  56651  5536  0.025 0.211 24.14 20.5 -0.0566 0.1253 99.00 21.2   831 -1.049  2.577 99.00 0.005 
   4 wh714805624I   34426.0  0.90  295.0 3052.4 204  84976  5510 -0.364 0.219 99.00 20.9 -0.1368 0.1088 99.00 21.6  1126 -2.090  2.476 99.00 0.004 
   5 wh714805928I   34729.6  0.89  295.0 3271.5 196  92267  5508 -0.047 0.229 99.00 20.5 -0.1183 0.0984 99.00 21.7  1421 -2.079  2.393 99.00 0.003 
above line uses coinc_corr_src:  0.893 corr_bkg:  0.893
   6 wh714806232I   35033.3  0.90  210.1 2267.4 208  60338  5570  0.078 0.265 22.89 20.2 -0.0931 0.0923 99.00 21.7  1632 -1.834  2.338 99.00 0.003 
    Sum (T+ 17172 to  35247):           16599.4      16731.7 (est. in src region)   SNR_unwtd_sum:  -1.01 0.9987 signif. UL:  21.70
  0  1632 714797251   26052.4   9194.4  -8880.6   -0.0931   0.0923 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -1.834 +/- 2.299 snr: -0.8 mag: 99.00 UL: 18.15
Rebinned Data for sw01187463001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      752   17599.8    424.1   -427.9   -0.0566   0.1253 99.00 99.00   17599.8   -0.0566   0.1253 99.00 99.00 21.22
  1      719   34835.8    411.0   -409.8   -0.1313   0.1359 99.00 99.00   26026.1   -0.0931   0.0923 99.00 99.00 21.70
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01187463001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.222 at 714782666
The processing date in extension 0 is:  2023-08-27T11:18:12
The trigger time is: 714771198.96708. The reference is BAT GRB summary file
Using zero point of 17.668 for filter V
Use aperture correction of  1.030 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(83.06408,66.12383,25")
fk5;-circle(83.06408,66.12383,12.5")
fk5;-circle(83.072426,66.129822,6")
fk5;-circle(83.052176,66.117946,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 vv714782665I   11466.8  0.98  295.1  550.2 200  14358  5501  0.100 0.085 20.17 18.8  0.1001 0.0848 20.17 18.8   295 13.021 11.023 17.50 0.004 
   2 vv714782969I   11770.4  0.99  295.0  441.7 196  11957  5505  0.057 0.076 20.78 19.0  0.0784 0.0568 20.43 19.2   590 10.078  7.449 17.78 0.005 
   3 vv714783272I   12074.0  0.98  245.8  465.3 200  11513  5512  0.203 0.094 19.40 18.5  0.1151 0.0486 20.02 19.1   836 14.775  6.437 17.37 0.005 
   4 vv714799900I   28701.5  0.98  295.0  701.7 192  19114  5501  0.123 0.096 19.94 18.6  0.1172 0.0438 20.00 19.2  1131 15.797  6.303 17.29 0.003 
   5 vv714800204I   29005.2  0.98  295.0  624.2 208  16532  5527  0.007 0.091 22.99 19.0  0.0946 0.0395 20.23 19.3  1426 15.247  6.165 17.33 0.003 
   6 vv714800507I   29308.6  0.98  153.7  304.6 196   8322  5485  0.049 0.121 20.93 18.6  0.0902 0.0376 20.28 19.4  1580 15.269  6.093 17.33 0.003 
    Sum (T+ 11467 to  29465):            3087.7       2952.0 (est. in src region)   SNR_unwtd_sum:   2.40 0.9987 signif. UL:  19.40
  0  1580 714791186   19987.0   9477.7  -8520.2    0.0902   0.0376 20.280  0.585  -0.378
Total wtd_rate (for all exposures so far):  0.473 +/- 2.138 snr:  0.2 mag: 21.10 UL: 15.52
Rebinned Data for sw01187463001uvv_sk.img using a zero point of 17.668:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      822   11895.1    428.7   -428.3    0.1151   0.0486 20.02  0.38   11895.1    0.1151   0.0486 20.02  0.38 19.12
  1      728   29082.7    382.0   -381.3    0.0621   0.0581 20.68  0.72   19968.1    0.0902   0.0376 20.28  0.38 19.40
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01187463001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.204 at 714787459
The processing date in extension 0 is:  2023-08-27T11:18:13
The trigger time is: 714771198.96708. The reference is BAT GRB summary file
Using zero point of 18.906 for filter B
Use aperture correction of  1.035 based on aperture of  4.00
Using background region based on sources found in extension 5:
# 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(83.06408,66.12383,25")
fk5;-circle(83.06408,66.12383,12.5")
fk5;-circle(83.072543,66.129784,6")
fk5;-circle(83.052443,66.117875,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 bb714787458I   16260.0  0.97  295.0  833.9 196  22741  5474  0.071 0.106 21.78 19.9  0.0708 0.1060 21.78 19.9   295  4.156  6.222 18.74 0.006 
   2 bb714787762I   16563.5  0.96  295.0 1145.2 196  31397  5528  0.117 0.126 21.23 19.7  0.0938 0.0821 21.48 20.1   590  5.318  4.792 18.48 0.005 
   3 bb714788065I   16866.9  0.96  295.0 1365.3 208  35720  5552  0.099 0.138 21.41 19.6  0.0956 0.0714 21.45 20.2   885  5.495  4.162 18.44 0.004 
   4 bb714804712I   33513.9  0.97  295.0  899.5 204  24847  5525 -0.065 0.110 99.00 20.2  0.0553 0.0602 22.05 20.5  1180  4.354  3.972 18.69 0.004 
   5 bb714805016I   33817.6  0.97  295.0  952.3 196  27741  5516 -0.121 0.114 99.00 20.3  0.0200 0.0533 23.15 20.7  1475  2.976  3.818 19.11 0.004 
   6 bb714805320I   34121.1  0.97  295.0 1088.7 208  29397  5538 -0.056 0.122 99.00 20.0  0.0073 0.0489 24.24 20.9  1770  2.391  3.700 19.34 0.003 
    Sum (T+ 16260 to  34421):            6285.0       6272.8 (est. in src region)   SNR_unwtd_sum:   0.15 0.9987 signif. UL:  20.88
  0  1770 714796539   25340.4   9080.4  -9080.4    0.0073   0.0489 24.242 74.758  -2.210
Total wtd_rate (for all exposures so far):  0.975 +/- 1.849 snr:  0.5 mag: 20.32 UL: 16.83
Rebinned Data for sw01187463001ubb_sk.img using a zero point of 18.906:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      853   16711.7    455.0   -451.7    0.0956   0.0714 21.45  0.61   16711.7    0.0956   0.0714 21.45  0.61 20.17
  1      857   33966.8    454.0   -452.9   -0.0805   0.0667 99.00 99.00   25358.5    0.0073   0.0489 24.24  2.21 20.88
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01187463001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.221 at 714794033
The processing date in extension 0 is:  2023-08-27T11:18:14
The trigger time is: 714771198.96708. The reference is BAT GRB summary file
Using zero point of 18.119 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(83.06408,66.12383,25")
fk5;-circle(83.06408,66.12383,12.5")
fk5;-circle(83.072596,66.129776,6")
fk5;-circle(83.052422,66.117758,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 uu714794033I   22834.4  0.98  295.0  763.7 208  18948  5577  0.204 0.101 19.84 18.9  0.2043 0.1007 19.84 18.9   295 34.690 17.101 16.44 0.002 
   2 uu714794337I   23138.0  0.98  295.0  759.8 204  19696  5525  0.117 0.101 20.45 19.1  0.1606 0.0711 20.10 19.2   590 27.606 12.162 16.69 0.002 
   3 uu714794640I   23441.5  0.98  267.0  625.1 204  16237  5513  0.096 0.100 20.67 19.1  0.1403 0.0581 20.25 19.4   857 24.093  9.988 16.84 0.002 
   4 uu714811511I   40312.6  0.98  295.0  651.0 196  18383  5538  0.001 0.093 25.24 19.4  0.1047 0.0493 20.57 19.6  1152 21.504  9.398 16.96 0.002 
   5 uu714811815I   40616.2  0.97  128.5  412.6 200  10495  5518  0.267 0.171 19.55 18.4  0.1209 0.0476 20.41 19.6  1281 23.460  9.245 16.86 0.002 
    Sum (T+ 22834 to  40747):            3212.2       3065.7 (est. in src region)   SNR_unwtd_sum:   2.54 0.9987 signif. UL:  19.56
  0  1281 714800180   28981.0  11765.8  -6146.6    0.1209   0.0476 20.413  0.543  -0.360
Total wtd_rate (for all exposures so far):  1.900 +/- 1.807 snr:  1.1 mag: 19.59 UL: 15.94
Rebinned Data for sw01187463001uuu_sk.img using a zero point of 18.119:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.25e+03   28976.5  11770.3  -6142.1    0.1209   0.0476 20.41  0.36   28976.5    0.1209   0.0476 20.41  0.36 19.56
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01187463001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 714793127
The processing date in extension 0 is:  2023-08-27T11:18:13
The trigger time is: 714771198.96708. The reference is BAT GRB summary file
Using zero point of 17.169 for filter UVW1
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(83.06408,66.12383,25")
fk5;-circle(83.06408,66.12383,12.5")
fk5;-circle(83.052150,66.117965,6")
fk5;-circle(83.072573,66.129700,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 w1714793127I   21928.2  1.00  885.6  174.5 200   4692  5516  0.005 0.016 22.90 20.3  0.0051 0.0157 22.90 20.3   886  2.017  6.239 19.53 0.013 
   2 w1714810605I   39406.3  1.00  885.6  146.4 196   4473  5512 -0.015 0.014 99.00 20.8 -0.0049 0.0107 99.00 20.9  1771 -1.128  5.327 99.00 0.011 
    Sum (T+ 21928 to  40306):             320.9        329.2 (est. in src region)   SNR_unwtd_sum:  -0.46 0.9987 signif. UL:  20.95
  0  1771 714802316   31117.1   9189.0  -9189.0   -0.0049   0.0107 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  1.583 +/- 1.713 snr:  0.9 mag: 19.79 UL: 15.08
Rebinned Data for sw01187463001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.77e+03   31118.1   9188.0  -9189.9   -0.0049   0.0107 99.00 99.00   31118.1   -0.0049   0.0107 99.00 99.00 20.95
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01187463001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.345 at 714781759
The processing date in extension 0 is:  2023-08-27T11:18:12
The trigger time is: 714771198.96708. The reference is BAT GRB summary 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(83.06408,66.12383,25")
fk5;-circle(83.06408,66.12383,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 w2714781758I   10560.0  1.00  885.6   93.3 204   2417  5816  0.010 0.011 22.04 20.4  0.0100 0.0115 22.04 20.4   886  2.204  2.532 19.43 0.047 
   2 w2714798994I   27795.3  1.00  885.6   74.9 196   2186  5852  0.002 0.010 23.83 20.7  0.0059 0.0077 22.60 20.9  1771  2.036  2.322 19.52 0.035 
    Sum (T+ 10560 to  28695):             168.2        158.0 (est. in src region)   SNR_unwtd_sum:   0.77 0.9987 signif. UL:  20.85
  0  1771 714790826   19627.5   9067.6  -9067.5    0.0059   0.0077 22.599 76.401  -0.902
Total wtd_rate (for all exposures so far):  1.754 +/- 1.372 snr:  1.3 mag: 19.68 UL: 15.10
Rebinned Data for sw01187463001uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885   11009.8    449.9   -449.9    0.0100   0.0115 22.04  0.83   11009.8    0.0100   0.0115 22.04  0.83 20.39
  1      885   28245.2    449.9   -449.9    0.0019   0.0103 23.83  2.01   19628.2    0.0059   0.0077 22.60  0.90 20.85
The data range from T+10560.0 s (0.12 d) to T+40746.8 s (0.47 d)
Wrote uvot_fluxes_230829d15h09m52s282629usUT.qdp
Wrote uvot_fluxes_230829d15h09m52s282629usUT.gif
Wrote uvot_fluxes_230829d15h09m52s282629usUT.ps
Wrote uvot_fluxes_230829d15h09m52s282629usUT_vis.qdp
Wrote uvot_fluxes_230829d15h09m52s282629usUT_uv.qdp
Wrote uvot_fluxes_230829d15h09m52s282629usUT_vis.gif
Wrote uvot_fluxes_230829d15h09m52s282629usUT_vis.ps
Wrote uvot_fluxes_230829d15h09m52s282629usUT_uv.gif
Wrote uvot_fluxes_230829d15h09m52s282629usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  white (0)  , v (0)  , b (0)  , u (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.00216   11887.6    436.1   -420.8    1.2238   0.5413 20.07  0.40   11887.6    1.2238   0.5413 20.07  0.40 19.15
  1    0.178   20676.5  20070.4  -4416.5   -0.0553   0.1011 99.00 99.00   20571.1   -0.0464   0.1005 99.00 99.00 21.64
The data range from T+10560.0 s (0.12 d) to T+40746.8 s (0.47 d)
Wrote uvot_fluxes_wtd_230829d15h09m52s282629usUT.qdp
Wrote uvot_fluxes_wtd_230829d15h09m52s282629usUT.gif
Wrote uvot_fluxes_wtd_230829d15h09m52s282629usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem