# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 211103d15h20m21s028774usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01081073001 -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
# ========= GRB211024B ===================
Could not find/read custom source region custom_1081073_src.reg
Used archived opt source position of 154.71300 24.56810 3.00
Reference: GCN_Circulars-30984
The position is (10:18:51.12, +24:34:05.2)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(154.713,24.5681,3") # color=red dash=0
Source region spec. is: 154.713 24.5681 3"
Region file centered at (154.713,24.5681), which is (10:18:51.12, +24:34:05.2)
Could not find/read custom background region custom_1081073_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.
Found 1 bright star(s) within 50.0 arcsec of 154.713 24.5681:
ra: 154.7001 dec: 24.5720 mag: 12.00
Subtract UTCF of -27.96072 from uncorrected trigger time of 656806836.03 in BAT summary file
# ============ Reading file sw01081073001uvv_sk.img ================
Use keyword TRIGTIME of 656806864 for trigger time.
Long-term sensitivity correction to zero point is -0.215 at 656813102
The processing date in extension 0 is: 2021-11-03T15:03:04
The trigger time is: 656806864. The reference is keyword in image file
Using zero point of 17.675 for filter V
Use aperture correction of 1.087 based on aperture of 3.00
Using background region based on sources found in extension 6:
# 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(154.713,24.5681,25")
fk5;-circle(154.713,24.5681,12.5")
fk5;-circle(154.7000620,24.5720306,25")
 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 vv656813101I    6237.8  0.98  196.6  221.2 116   8361  5553  0.262 0.084 19.13 18.4  0.2617 0.0843 19.13 18.4   197 18.444  5.942 17.12 0.016 
   2 vv656819259I   12395.0  0.99  295.0  238.2 112  11883  5536 -0.008 0.058 99.00 19.5  0.0994 0.0486 20.18 19.2   492 12.643  4.826 17.54 0.012 
   3 vv656819562I   12698.5  0.98  295.0  302.9 116  12363  5533  0.164 0.066 19.64 18.8  0.1235 0.0391 19.95 19.2   787 14.860  4.293 17.36 0.010 
   4 vv656819865I   13001.9  0.98  188.9  196.8 112   8706  5518  0.117 0.083 20.00 18.8  0.1223 0.0354 19.96 19.3   976 15.097  4.045 17.34 0.010 
   5 vv656830301I   23437.1  0.98  295.0  293.0 116  12032  5523  0.151 0.065 19.73 18.8  0.1289 0.0310 19.90 19.3  1271 16.396  3.935 17.25 0.008 
   6 vv656830604I   23740.5  0.99  295.1  257.8 116  11675  5558  0.053 0.061 20.87 19.2  0.1145 0.0277 20.03 19.4  1566 16.273  3.823 17.26 0.008 
   7 vv656830908I   24044.0  0.99  295.1  244.7 116  11702  5526 -0.004 0.059 99.00 19.5  0.0957 0.0251 20.22 19.6  1861 15.458  3.719 17.32 0.007 
    Sum (T+  6238 to  24344):            1754.4       1593.0 (est. in src region)   SNR_unwtd_sum:   3.82 0.9987 signif. UL:  19.59
  0  1861 656824254   17390.2   6953.7 -11152.4    0.0957   0.0251 20.222  0.330  -0.253
Total wtd_rate (for all exposures so far): 15.458 +/- 3.686 snr:  4.2 mag: 17.32 UL: 14.11
Rebinned Data for sw01081073001uvv_sk.img using a zero point of 17.675:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      193    6337.7     99.9    -99.9    0.2617   0.0843 19.13  0.30    6337.7    0.2617   0.0843 19.13  0.30 18.39
  1 1.64e+03   18698.6   5645.2  -6303.6    0.0762   0.0262 20.47  0.32   17394.4    0.0957   0.0251 20.22  0.25 19.59
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01081073001ubb_sk.img ================
Use keyword TRIGTIME of 656806864 for trigger time.
Long-term sensitivity correction to zero point is -0.182 at 656812691
The processing date in extension 0 is:  2021-11-03T15:03:04
The trigger time is: 656806864. The reference is keyword in image file
Using zero point of 18.928 for filter B
Use aperture correction of  1.108 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(154.713,24.5681,25")
fk5;-circle(154.713,24.5681,12.5")
fk5;-circle(154.7000620,24.5720306,25")
 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 bb656812690I    5826.7  0.98  196.6  336.2 116  12829  5526  0.387 0.107 19.96 19.3  0.3865 0.1068 19.96 19.3   197  8.035  2.220 18.03 0.034 
   2 bb656813921I    7057.7  0.97  196.6  345.6 108  14287  5524  0.383 0.108 19.97 19.3  0.3850 0.0761 19.96 19.5   393  8.667  1.720 17.95 0.031 
   3 bb656824319I   17455.9  0.97  295.0  486.1 116  20267  5552  0.241 0.086 20.47 19.7  0.3233 0.0569 20.15 19.7   688  9.221  1.636 17.88 0.022 
   4 bb656824623I   17759.5  0.97  295.0  510.2 116  19907  5548  0.362 0.088 20.03 19.4  0.3350 0.0478 20.11 19.7   983 10.308  1.569 17.76 0.019 
   5 bb656824927I   18063.0  0.98  295.0  445.0 108  19272  5519  0.261 0.082 20.39 19.7  0.3180 0.0413 20.17 19.8  1278 10.814  1.503 17.70 0.017 
    Sum (T+  5827 to  18363):            2123.2       1765.5 (est. in src region)   SNR_unwtd_sum:   7.70 0.9987 signif. UL:  19.81
  0  1278 656821276   14412.4   3950.3  -8585.7    0.3180   0.0413 20.172  0.151  -0.133
Total wtd_rate (for all exposures so far): 11.452 +/- 1.386 snr:  8.3 mag: 17.64 UL: 15.94
Rebinned Data for sw01081073001ubb_sk.img using a zero point of 18.928:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      192    5926.6     99.9    -99.9    0.3865   0.1068 19.96  0.27    5926.6    0.3865   0.1068 19.96  0.27 19.30
  1      191    7157.5     99.9    -99.9    0.3834   0.1084 19.97  0.27    6541.6    0.3850   0.0761 19.96  0.20 19.46
  2      863   17909.4    453.3   -453.5    0.2882   0.0492 20.28  0.17   14413.0    0.3180   0.0413 20.17  0.13 19.81
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01081073001uuu_sk.img ================
Use keyword TRIGTIME of 656806864 for trigger time.
Long-term sensitivity correction to zero point is -0.198 at 656812486
The processing date in extension 0 is:  2021-11-03T15:03:04
The trigger time is: 656806864. The reference is keyword in image file
Using zero point of 18.142 for filter U
Use aperture correction of  1.100 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(154.713,24.5681,25")
fk5;-circle(154.713,24.5681,12.5")
fk5;-circle(154.7000620,24.5720306,25")
 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 uu656812485I    5621.6  0.99  196.6  185.0 112   5089  5520  0.463 0.077 18.98 18.5  0.4629 0.0774 18.98 18.5   197 19.148  3.202 17.09 0.045 
   2 uu656813716I    6852.6  0.99  196.6  171.4 112   5466  5553  0.346 0.075 19.29 18.8  0.4046 0.0538 19.12 18.8   393 18.470  2.440 17.12 0.040 
    Sum (T+  5622 to   7052):             356.5        213.5 (est. in src region)   SNR_unwtd_sum:   7.53 0.9987 signif. UL:  18.76
  0   393 656813201    6336.9    715.4   -715.4    0.4046   0.0538 19.125  0.155  -0.136
Total wtd_rate (for all exposures so far): 13.563 +/- 1.211 snr: 11.2 mag: 17.46 UL: 15.05
Rebinned Data for sw01081073001uuu_sk.img using a zero point of 18.142:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    5721.5     99.9    -99.9    0.4629   0.0774 18.98  0.17    5721.5    0.4629   0.0774 18.98  0.17 18.54
  1      194    6952.4     99.9    -99.9    0.3462   0.0746 19.29  0.21    6336.9    0.4046   0.0538 19.12  0.14 18.76
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01081073001uw1_sk.img ================
Use keyword TRIGTIME of 656806864 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 656813512
The processing date in extension 0 is:  2021-11-03T15:03:04
The trigger time is: 656806864. The reference is keyword in image 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(154.713,24.5681,25")
fk5;-circle(154.713,24.5681,12.5")
fk5;-circle(154.7000620,24.5720306,25")
 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 w1656813511I    6647.7  1.00  196.6   41.7 104    750  5492  0.157 0.037 19.18 18.6  0.1572 0.0371 19.18 18.6   197 18.790  4.432 17.11 0.115 
    Sum (T+  6648 to   6847):              41.7         14.2 (est. in src region)   SNR_unwtd_sum:   4.24 0.9987 signif. UL:  18.59
  0   197 656813612    6747.5     99.9    -99.9    0.1572   0.0371 19.178  0.292  -0.230
Total wtd_rate (for all exposures so far): 14.563 +/- 1.234 snr: 11.8 mag: 17.38 UL: 14.01
Rebinned Data for sw01081073001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    6747.5     99.9    -99.9    0.1572   0.0371 19.18  0.23    6747.5    0.1572   0.0371 19.18  0.23 18.59
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01081073001um2_sk.img ================
Use keyword TRIGTIME of 656806864 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 656813307
The processing date in extension 0 is:  2021-11-03T15:03:04
The trigger time is: 656806864. The reference is keyword in image 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 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(154.713,24.5681,25")
fk5;-circle(154.713,24.5681,12.5")
fk5;-circle(154.7000620,24.5720306,25")
 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 m2656813306I    6442.5  1.00  196.6   18.8 116    149  5535 
   2 m2656831212I   24348.8  1.00  302.0   22.2 116    243  5562  0.063 0.017 19.60 18.9  0.0626 0.0173 19.60 18.9   302 46.290 12.778 16.13 0.081 
    Sum (T+ 24349 to  24656):              22.2          5.1 (est. in src region)   SNR_unwtd_sum:   3.62 0.9987 signif. UL:  18.94
  0   302 656831366   24502.2    153.4   -153.4    0.0626   0.0173 19.599  0.351  -0.264
Total wtd_rate (for all exposures so far): 15.114 +/- 1.226 snr: 12.3 mag: 17.34 UL: 13.40
Rebinned Data for sw01081073001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      302   24502.2    153.4   -153.4    0.0626   0.0173 19.60  0.26   24502.2    0.0626   0.0173 19.60  0.26 18.94
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01081073001uw2_sk.img ================
Use keyword TRIGTIME of 656806864 for trigger time.
Long-term sensitivity correction to zero point is -0.344 at 656812897
The processing date in extension 0 is:  2021-11-03T15:03:04
The trigger time is: 656806864. The reference is keyword in image file
Using zero point of 17.036 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(154.713,24.5681,25")
fk5;-circle(154.713,24.5681,12.5")
fk5;-circle(154.7000620,24.5720306,25")
 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 w2656812897I    6033.0  1.00  196.6   17.3 108    331  5514  0.061 0.024 20.08 19.2  0.0608 0.0235 20.08 19.2   197  7.467  2.889 18.11 0.246 
   2 w2656814127I    7263.9  1.00   91.3   12.1 112    160  5533  0.108 0.042 19.45 18.6  0.0758 0.0210 19.84 19.2   288  9.422  2.647 17.86 0.229 
   3 w2656818352I   11488.8  1.00  885.6   86.6 112   1580  5511  0.068 0.012 19.95 19.5  0.0701 0.0102 19.92 19.5  1173 12.550  1.924 17.54 0.142 
   4 w2656825233I   18369.6  1.00  808.3   71.0 116   1499  5546  0.054 0.012 20.20 19.7  0.0637 0.0077 20.03 19.7  1982 13.619  1.765 17.45 0.110 
    Sum (T+  6033 to  19191):             187.1         73.2 (est. in src region)   SNR_unwtd_sum:   8.29 0.9987 signif. UL:  19.69
  0  1982 656820804   13939.9   5251.0  -7906.8    0.0637   0.0077 20.026  0.139  -0.124
Total wtd_rate (for all exposures so far): 14.463 +/- 1.038 snr: 13.9 mag: 17.39 UL: 13.92
Rebinned Data for sw01081073001uw2_sk.img using a zero point of 17.036:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    6132.9     99.9    -99.9    0.0608   0.0235 20.08  0.36    6132.9    0.0608   0.0235 20.08  0.36 19.24
  1     91.2    7310.2     46.4    -46.4    0.1082   0.0424 19.45  0.36    6506.2    0.0758   0.0210 19.84  0.26 19.18
  2      885   11938.7    449.9   -449.9    0.0683   0.0117 19.95  0.17   10605.9    0.0701   0.0102 19.92  0.15 19.53
  3      807   18780.2    410.6   -410.6    0.0544   0.0116 20.20  0.21   13940.1    0.0637   0.0077 20.03  0.12 19.69
The data range from T+5621.6 s (0.07 d) to T+24655.7 s (0.29 d)
Wrote uvot_fluxes_211103d15h20m21s028774usUT.qdp
Wrote uvot_fluxes_211103d15h20m21s028774usUT.gif
Wrote uvot_fluxes_211103d15h20m21s028774usUT.ps
Wrote uvot_fluxes_211103d15h20m21s028774usUT_vis.qdp
Wrote uvot_fluxes_211103d15h20m21s028774usUT_uv.qdp
Wrote uvot_fluxes_211103d15h20m21s028774usUT_vis.gif
Wrote uvot_fluxes_211103d15h20m21s028774usUT_vis.ps
Wrote uvot_fluxes_211103d15h20m21s028774usUT_uv.gif
Wrote uvot_fluxes_211103d15h20m21s028774usUT_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.0135    5721.5     99.9    -99.9    3.3467   0.5597 18.98  0.17    5721.5    3.3467   0.5597 18.98  0.17 18.54
  1   0.0604    5943.9    493.6   -117.2    1.4257   0.3602 19.91  0.25    5903.3    1.7656   0.3126 19.67  0.18 19.21
  2   0.0483    7115.8    141.6   -263.2    1.5751   0.3229 19.80  0.20    6382.8    1.6816   0.2254 19.73  0.14 19.36
  3   0.0132   16503.9   1251.8  -4108.8    0.8477   0.2590 20.47  0.29    7367.9    1.4998   0.1851 19.85  0.13 19.51
  4   0.0208   18354.0   5989.8   -594.5    1.0580   0.1982 20.23  0.19    8831.6    1.3775   0.1447 19.94  0.11 19.64
The data range from T+5621.6 s (0.07 d) to T+24655.7 s (0.29 d)
Wrote uvot_fluxes_wtd_211103d15h20m21s028774usUT.qdp
Wrote uvot_fluxes_wtd_211103d15h20m21s028774usUT.gif
Wrote uvot_fluxes_wtd_211103d15h20m21s028774usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem