# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210918d15h14m20s162109usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01073821992 -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
# ========= GRB210918 ===================
Could not find/read custom source region custom_1073821_src.reg
Used archived XRT position of 250.46690 -45.54210 4.00
Reference: GCN_Notice_Sat_18_Sep_21_08:00:53_UT-ground
The position is (16:41:52.06, -45:32:31.6)
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(250.4669,-45.5421,4") # color=red dash=0
Source region spec. is: 250.4669 -45.5421 4"
Region file centered at (250.4669,-45.5421), which is (16:41:52.06, -45:32:31.6)
Could not find/read custom background region custom_1073821_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 -27.7144 from uncorrected trigger time of 653644700.25 in BAT summary file
# ============ Reading file sw01073821992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.215 at 653644846
The processing date in extension 0 is: 2021-09-18T14:57:39
The trigger time is: 653644727.9644. The reference is BAT GRB summary file
Using zero point of 17.675 for filter V
Use aperture correction of 1.030 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(250.4669,-45.5421,25")
fk5;-circle(250.4669,-45.5421,12.5")
fk5;-circle(250.464788,-45.537253,6")
fk5;-circle(250.460874,-45.538021,6")
fk5;-circle(250.477371,-45.543316,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 vv653644846E     118.3  0.99    9.4   13.9 201    306  4901  0.148 0.420 19.75 17.3 
   2 vv653645168E     440.4  0.99   15.7   15.3 200    558  4893 -0.500 0.267 99.00 18.3 -0.4998 0.2665 99.00 18.3    16 -2.502  1.334 99.00 0.136 
   3 vv653645319E     591.4  0.98   19.5   28.9 198    701  4909  0.031 0.294 21.43 17.7 -0.2066 0.2017 99.00 18.4    35 -1.398  1.126 99.00 0.117 
   4 vv653645468E     740.4  0.99   19.4   31.1 198    717  4902  0.114 0.305 20.03 17.6 -0.0926 0.1693 99.00 18.5    55 -0.920  1.035 99.00 0.103 
   5 vv653649335I    4607.3  0.98  196.6  402.6 204  10149  4897 -0.108 0.110 99.00 19.1 -0.1048 0.0933 99.00 19.3   251 -1.083  1.019 99.00 0.024 
    Sum (T+   440 to   4807):             477.8        502.9 (est. in src region)   SNR_unwtd_sum:  -1.12 0.9987 signif. UL:  19.27
  0   251 653648544    3816.3    990.7  -3375.9   -0.1048   0.0933 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -1.083 +/- 0.996 snr: -1.1 mag: 99.00 UL: 16.69
Rebinned Data for sw01073821992uvv_sk.img using a zero point of 17.675:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     53.9     610.7    149.4   -170.3   -0.0926   0.1693 99.00 99.00     610.7   -0.0926   0.1693 99.00 99.00 18.48
  1      193    4707.1     99.9    -99.9   -0.1082   0.1095 99.00 99.00    3812.1   -0.1048   0.0933 99.00 99.00 19.27
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01073821992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.181 at 653645118
The processing date in extension 0 is:  2021-09-18T14:57:39
The trigger time is: 653644727.9644. The reference is BAT GRB summary file
Using zero point of 18.929 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(250.4669,-45.5421,25")
fk5;-circle(250.4669,-45.5421,12.5")
fk5;-circle(250.464786,-45.537262,6")
fk5;-circle(250.477336,-45.543314,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 bb653645117E     389.6  0.98   19.5   55.1 202   1137  5286  0.637 0.411 19.42 18.2  0.6367 0.4110 19.42 18.2    19  0.891  0.575 20.41 0.312 
   2 bb653645268E     540.1  0.98   19.4   40.7 199   1164  5254 -0.184 0.354 99.00 18.9  0.2255 0.2711 20.55 18.9    39  0.463  0.444 21.13 0.268 
   3 bb653645417E     690.0  0.97   19.4   67.2 202   1116  5322  1.366 0.456 18.59 17.8  0.6034 0.2359 19.48 18.6    58  0.976  0.416 20.32 0.240 
   4 bb653645567E     839.1  0.98   19.4   48.6 198   1212  5271  0.170 0.387 20.85 18.6  0.4951 0.2017 19.69 18.8    78  0.928  0.391 20.37 0.214 
   5 bb653648924I    4196.1  0.95  196.6  994.5 204  24937  5258  0.149 0.177 21.00 19.3  0.2485 0.1390 20.44 19.4   274  0.952  0.387 20.34 0.044 
    Sum (T+   390 to   4396):            1206.2       1142.9 (est. in src region)   SNR_unwtd_sum:   1.79 0.9987 signif. UL:  19.37
  0   274 653647983    3255.5   1140.4  -2865.9    0.2485   0.1390 20.440  0.889  -0.482
Total wtd_rate (for all exposures so far):  0.759 +/- 0.358 snr:  2.1 mag: 20.59 UL: 18.27
Rebinned Data for sw01073821992ubb_sk.img using a zero point of 18.929:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     56.8     549.4    160.3   -159.8    0.6034   0.2359 19.48  0.36     549.4    0.6034   0.2359 19.48  0.36 18.63
  1       19     848.9      9.9     -9.9    0.1701   0.3873 20.85  1.29     624.3    0.4951   0.2017 19.69  0.37 18.82
  2      187    4296.0     99.9    -99.9    0.1488   0.1773 21.00  0.85    3238.9    0.2485   0.1390 20.44  0.48 19.37
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01073821992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.196 at 653644862
The processing date in extension 0 is:  2021-09-18T14:57:38
The trigger time is: 653644727.9644. The reference is BAT GRB summary file
Using zero point of 18.144 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(250.4669,-45.5421,25")
fk5;-circle(250.4669,-45.5421,12.5")
fk5;-circle(250.464948,-45.537309,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 uu653644861I     133.9  0.99  245.8  220.3 200   6227  5402 -0.043 0.064 99.00 20.0 -0.0434 0.0641 99.00 20.0   246 -0.081  0.120 99.00 0.566 
   2 uu653644861E     136.5  0.99  243.3  218.1 200   6199  5405 -0.048 0.064 99.00 20.0 
   3 uu653645243E     515.1  0.99   19.4   18.7 199    470  5398  0.072 0.236 21.00 18.4 -0.0350 0.0618 99.00 20.0   265 -0.074  0.119 99.00 0.546 
   4 uu653645393E     665.2  0.99   19.4   17.2 203    511  5395 -0.111 0.226 99.00 18.6 -0.0402 0.0597 99.00 20.1   285 -0.079  0.118 99.00 0.522 
   5 uu653645542E     814.2  0.99   19.4   27.8 200    517  5428  0.473 0.287 18.96 17.8 -0.0075 0.0588 99.00 20.0   304 -0.058  0.118 99.00 0.498 
   6 uu653645595I     867.9  0.99   51.5   42.9 200   1377  5400 -0.164 0.135 99.00 19.4 -0.0301 0.0540 99.00 20.2   356 -0.074  0.117 99.00 0.446 
    Sum (T+   134 to    920):             326.9        337.2 (est. in src region)   SNR_unwtd_sum:  -0.56 0.9987 signif. UL:  20.19
  0   356 653645147     419.0    501.3   -285.1   -0.0301   0.0540 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.019 +/- 0.109 snr:  0.2 mag: 24.60 UL: 19.23
Rebinned Data for sw01073821992uuu_sk.img using a zero point of 18.144:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      244     258.8    124.9   -124.9   -0.0434   0.0641 99.00 99.00     258.8   -0.0434   0.0641 99.00 99.00 20.04
  1      109     777.7    142.6   -262.6   -0.0003   0.0998 99.00 99.00     418.8   -0.0301   0.0540 99.00 99.00 20.19
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01073821992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 653645218
The processing date in extension 0 is:  2021-09-18T14:57:39
The trigger time is: 653644727.9644. 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 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(250.4669,-45.5421,25")
fk5;-circle(250.4669,-45.5421,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 w1653645218E     490.2  1.00   19.4    7.1 199    138  5843  0.129 0.144 19.39 17.8  0.1295 0.1441 19.39 17.8    19  1.147  1.277 20.14 0.465 
   2 w1653645368E     640.8  1.00   19.4    3.0 198    114  5842 -0.047 0.094 99.00 18.6  0.0412 0.0861 20.63 18.4    39  0.442  0.871 21.18 0.451 
   3 w1653645517E     789.5  1.00   19.4    4.4 200    137  5838 -0.014 0.114 99.00 18.3  0.0229 0.0689 21.27 18.7    58  0.324  0.770 21.52 0.395 
   4 w1653649745I    5017.4  1.00  113.3   25.8 200    903  5867 -0.046 0.047 99.00 19.5 -0.0222 0.0391 99.00 19.6   172  0.221  0.759 21.93 0.147 
    Sum (T+   490 to   5132):              40.4         44.1 (est. in src region)   SNR_unwtd_sum:  -0.57 0.9987 signif. UL:  19.57
  0   172 653648299    3570.8   1561.6  -3080.6   -0.0222   0.0391 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.024 +/- 0.108 snr:  0.2 mag: 24.34 UL: 18.25
Rebinned Data for sw01073821992uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     58.2     650.1    159.2   -159.9    0.0229   0.0689 21.27  1.51     650.1    0.0229   0.0689 21.27  1.51 18.72
  1      113    5074.9     57.5    -57.5   -0.0455   0.0475 99.00 99.00    3570.3   -0.0222   0.0391 99.00 99.00 19.57
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01073821992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 653645193
The processing date in extension 0 is:  2021-09-18T14:57:39
The trigger time is: 653644727.9644. The reference is BAT GRB summary file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.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(250.4669,-45.5421,25")
fk5;-circle(250.4669,-45.5421,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 m2653645193E     465.5  1.00   19.4    0.3 200     40  5846 
#  2 m2653645343E     616.0  1.00   19.4    1.0 200     29  5847 
   3 m2653645492E     764.8  1.00   19.4    0.0 199     36  5841 -0.066 0.054 99.00 18.8 -0.0659 0.0542 99.00 18.8    19 -1.540  1.266 99.00 0.669 
   4 m2653649540I    4812.1  1.00  196.6   14.4 200    473  5827 -0.010 0.020 99.00 19.7 -0.0149 0.0185 99.00 19.9   216 -1.527  1.167 99.00 0.123 
    Sum (T+   765 to   5012):              14.4         17.5 (est. in src region)   SNR_unwtd_sum:  -0.81 0.9987 signif. UL:  19.87
  0   216 653649268    4539.7    472.2  -3774.9   -0.0149   0.0185 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.012 +/- 0.108 snr:  0.1 mag: 25.06 UL: 17.71
Rebinned Data for sw01073821992um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     19.4     774.7      9.9     -9.9   -0.0659   0.0542 99.00 99.00     774.7   -0.0659   0.0542 99.00 99.00 18.80
  1      196    4912.0     99.9    -99.9   -0.0099   0.0203 99.00 99.00    4539.6   -0.0149   0.0191 99.00 99.00 19.82
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01073821992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.343 at 653645144
The processing date in extension 0 is:  2021-09-18T14:57:39
The trigger time is: 653644727.9644. The reference is BAT GRB summary file
Using zero point of 17.037 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.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(250.4669,-45.5421,25")
fk5;-circle(250.4669,-45.5421,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 w2653645143E     415.9  1.00   19.5    3.1 194     64  5858  0.053 0.095 20.23 18.2  0.0527 0.0951 20.23 18.2    19  0.449  0.811 21.16 1.070 
   2 w2653645294E     567.0  1.00   19.4    5.5 199     66  5848  0.175 0.126 18.93 17.7  0.1137 0.0789 19.40 18.2    39  0.985  0.729 20.31 0.908 
   3 w2653645443E     715.9  1.00   19.5    2.0 199     67  5837 -0.015 0.077 99.00 18.6  0.0709 0.0585 19.91 18.5    58  0.776  0.633 20.57 0.797 
   4 w2653649130I    4402.5  1.00  196.6   26.0 200    882  5823 -0.023 0.027 99.00 19.9 -0.0012 0.0250 99.00 19.8   255  0.681  0.617 20.71 0.202 
    Sum (T+   416 to   4602):              36.7         37.0 (est. in src region)   SNR_unwtd_sum:  -0.05 0.9987 signif. UL:  19.78
  0   255 653648332    3603.8    998.4  -3187.9   -0.0012   0.0250 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.045 +/- 0.107 snr:  0.4 mag: 23.65 UL: 18.09
Rebinned Data for sw01073821992uw2_sk.img using a zero point of 17.037:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     58.3     576.2    159.5   -160.2    0.0709   0.0585 19.91  0.65     576.2    0.0709   0.0585 19.91  0.65 18.55
  1      196    4502.4     99.9    -99.9   -0.0225   0.0274 99.00 99.00    3603.8   -0.0012   0.0250 99.00 99.00 19.78
The data range from T+133.9 s (0.00 d) to T+5132.4 s (0.06 d)
Wrote uvot_fluxes_210918d15h14m20s162109usUT.qdp
Wrote uvot_fluxes_210918d15h14m20s162109usUT.gif
Wrote uvot_fluxes_210918d15h14m20s162109usUT.ps
Wrote uvot_fluxes_210918d15h14m20s162109usUT_vis.qdp
Wrote uvot_fluxes_210918d15h14m20s162109usUT_uv.qdp
Wrote uvot_fluxes_210918d15h14m20s162109usUT_vis.gif
Wrote uvot_fluxes_210918d15h14m20s162109usUT_vis.ps
Wrote uvot_fluxes_210918d15h14m20s162109usUT_uv.gif
Wrote uvot_fluxes_210918d15h14m20s162109usUT_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     9.66     258.8    124.9   -124.9   -0.3134   0.4626 99.00 99.00     258.8   -0.3134   0.4626 99.00 99.00 20.04
  1     2.52     571.0    349.3   -181.4    0.8635   0.5497 20.45  0.53     323.4    0.1168   0.3557 22.62  1.52 20.06
  2   0.0428    4322.3    484.6   -126.2    0.4014   0.5840 21.28  0.97     337.4    0.1296   0.3408 22.51  1.40 20.09
The data range from T+133.9 s (0.00 d) to T+5132.4 s (0.06 d)
Wrote uvot_fluxes_wtd_210918d15h14m20s162109usUT.qdp
Wrote uvot_fluxes_wtd_210918d15h14m20s162109usUT.gif
Wrote uvot_fluxes_wtd_210918d15h14m20s162109usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem