# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 221027d10h24m44s623727usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01129775001 -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
# ========= GRB221016A ===================
Could not find/read custom source region custom_1129775_src.reg
Used archived uvot source position of 38.94489 -34.61060 3.00
Reference: uvotdetect_wh_FC
The position is (02:35:46.77, -34:36:38.2)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(38.94489,-34.61060,3") # color=red dash=0
Source region spec. is: 38.94489 -34.61060 3"
Region file centered at (38.94489,-34.61060), which is (02:35:46.77, -34:36:38.2)
Could not find/read custom background region custom_1129775_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 -30.04816 from uncorrected trigger time of 687656364.19 in BAT summary file
# ============ Reading file sw01129775001uwh_sk.img ================
Use keyword TRIGTIME of 687656394.24 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 687689637
The processing date in extension 0 is: 2022-10-27T10:02:06
The trigger time is: 687656394.24. The reference is keyword in image file
Using zero point of 20.115 for filter WHITE
Use aperture correction of 1.108 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(38.94489,-34.61060,25")
fk5;-circle(38.94489,-34.61060,12.5")
fk5;-circle(38.950766,-34.613671,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 wh687689637I   33243.2  0.98  295.0  327.6 112  17632  5431 -0.138 0.070 99.00 22.2 -0.1379 0.0701 99.00 22.2   295 -5.412  2.751 99.00 0.020 
   2 wh687689940I   33546.7  0.98  236.1  352.9 128  14232  5471  0.096 0.091 22.66 21.2 -0.0342 0.0561 99.00 22.1   531 -1.671  2.193 99.00 0.019 
    Sum (T+ 33243 to  33787):             680.5        696.6 (est. in src region)   SNR_unwtd_sum:  -0.61 0.9987 signif. UL:  22.13
  0   531 687689909   33514.7    271.9   -271.5   -0.0342   0.0561 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -1.671 +/- 2.168 snr: -0.8 mag: 99.00 UL: 18.21
Rebinned Data for sw01129775001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      520   33514.6    272.0   -271.4   -0.0342   0.0561 99.00 99.00   33514.6   -0.0342   0.0561 99.00 99.00 22.13
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01129775001uvv_sk.img ================
Use keyword TRIGTIME of 687656394.24 for trigger time.
Long-term sensitivity correction to zero point is -0.219 at 687661734
The processing date in extension 0 is:  2022-10-27T10:02:05
The trigger time is: 687656394.24. The reference is keyword in image file
Using zero point of 17.671 for filter V
Use aperture correction of  1.087 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(38.94489,-34.61060,25")
fk5;-circle(38.94489,-34.61060,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 vv687661733I    5339.7  0.99  196.6   68.1 112   3000  5848  0.059 0.046 20.74 19.4  0.0590 0.0462 20.74 19.4   197  3.580  2.806 18.91 0.056 
   2 vv687683885I   27490.9  1.00  172.8   47.9 108   2555  5826  0.003 0.044 23.94 19.8  0.0328 0.0321 21.38 19.9   369  3.487  2.749 18.93 0.036 
   3 vv687701015I   44621.7  0.99  200.7   72.8 112   3038  5836  0.079 0.047 20.42 19.3  0.0491 0.0266 20.94 19.9   570  4.007  2.730 18.78 0.026 
    Sum (T+  5340 to  44826):             188.8        163.1 (est. in src region)   SNR_unwtd_sum:   1.85 0.9987 signif. UL:  19.89
  0   570 687682372   25977.7  18847.9 -20638.0    0.0491   0.0266 20.942  0.844  -0.469
Total wtd_rate (for all exposures so far):  0.788 +/- 1.682 snr:  0.5 mag: 20.55 UL: 15.72
Rebinned Data for sw01129775001uvv_sk.img using a zero point of 17.671:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5439.6     99.9    -99.9    0.0590   0.0462 20.74  0.63    5439.6    0.0590   0.0462 20.74  0.63 19.42
  1      372   36786.1   8039.5  -9295.2    0.0440   0.0324 21.06  0.60   25974.1    0.0491   0.0266 20.94  0.47 19.89
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01129775001ubb_sk.img ================
Use keyword TRIGTIME of 687656394.24 for trigger time.
Long-term sensitivity correction to zero point is -0.194 at 687688726
The processing date in extension 0 is:  2022-10-27T10:02:05
The trigger time is: 687656394.24. The reference is keyword in image file
Using zero point of 18.916 for filter B
Use aperture correction of  1.108 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(38.94489,-34.61060,25")
fk5;-circle(38.94489,-34.61060,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 bb687688725I   32331.4  0.99  295.0  129.1 108   7261  5825 -0.021 0.043 99.00 21.2 -0.0208 0.0434 99.00 21.2   295 -2.394  5.000 99.00 0.019 
   2 bb687689029I   32634.8  0.99  295.0  134.2 120   7168  5860 -0.048 0.044 99.00 21.3 -0.0342 0.0310 99.00 21.7   590 -3.886  3.589 99.00 0.018 
   3 bb687689332I   32938.3  0.99  295.0  159.4 128   7150  5895  0.016 0.048 23.41 20.9 -0.0175 0.0262 99.00 21.8   885 -2.131  3.035 99.00 0.017 
    Sum (T+ 32331 to  33238):             422.8        436.7 (est. in src region)   SNR_unwtd_sum:  -0.67 0.9987 signif. UL:  21.78
  0   885 687689179   32784.7    453.4   -453.3   -0.0175   0.0262 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.131 +/- 1.489 snr:  0.1 mag: 22.50 UL: 17.19
Rebinned Data for sw01129775001ubb_sk.img using a zero point of 18.916:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      878   32784.6    453.4   -453.3   -0.0175   0.0262 99.00 99.00   32784.6   -0.0175   0.0262 99.00 99.00 21.78
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01129775001uuu_sk.img ================
Use keyword TRIGTIME of 687656394.24 for trigger time.
Long-term sensitivity correction to zero point is -0.210 at 687677222
The processing date in extension 0 is:  2022-10-27T10:02:05
The trigger time is: 687656394.24. The reference is keyword in image file
Using zero point of 18.130 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(38.94489,-34.61060,25")
fk5;-circle(38.94489,-34.61060,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 uu687677221I   20827.5  1.00  295.0   52.6 108   3072  5833 -0.016 0.027 99.00 20.9 -0.0159 0.0274 99.00 20.9   295 -2.436  4.204 99.00 0.034 
   2 uu687677525I   21131.0  1.00  295.1   60.7 112   3039  5849  0.009 0.029 23.20 20.6 -0.0033 0.0201 99.00 21.1   590 -0.539  3.102 99.00 0.033 
   3 uu687677829I   21434.9  1.00  168.9   49.2 116   1827  5873  0.086 0.046 20.80 19.7  0.0165 0.0187 22.58 21.0   759  2.283  2.876 19.39 0.032 
   4 uu687695335I   38941.7  1.00  295.0   74.9 112   2737  5822  0.083 0.033 20.83 20.0  0.0352 0.0163 21.76 20.8  1054  4.712  2.760 18.61 0.029 
   5 uu687695639I   39245.4  1.00  295.0   44.0 116   2905  5871 -0.050 0.025 99.00 21.4  0.0166 0.0138 22.58 21.2  1349  2.939  2.593 19.12 0.027 
   6 uu687695943I   39548.9  1.00  210.2   19.1 108   2045  5824 -0.099 0.023 99.00 21.9  0.0010 0.0124 25.66 21.6  1559  0.859  2.462 20.45 0.026 
    Sum (T+ 20827 to  39762):             300.5        299.1 (est. in src region)   SNR_unwtd_sum:   0.08 0.9987 signif. UL:  21.61
  0  1559 687686918   30523.7   9238.8  -9696.2    0.0010   0.0124 25.661 73.339  -2.845
Total wtd_rate (for all exposures so far):  0.325 +/- 1.264 snr:  0.3 mag: 21.51 UL: 16.54
Rebinned Data for sw01129775001uuu_sk.img using a zero point of 18.130:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.05e+03   26220.2  13021.3  -5392.7    0.0352   0.0163 21.76  0.41   26220.2    0.0352   0.0163 21.76  0.41 20.82
  1      504   39503.7    258.8   -258.2   -0.0704   0.0176 99.00 99.00   30526.4    0.0010   0.0124 25.66  2.85 21.61
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01129775001uw1_sk.img ================
Use keyword TRIGTIME of 687656394.24 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 687662145
The processing date in extension 0 is:  2022-10-27T10:02:05
The trigger time is: 687656394.24. 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 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(38.94489,-34.61060,25")
fk5;-circle(38.94489,-34.61060,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 w1687662145I    5751.0  1.00   92.1    8.7 112    226  5870  0.053 0.036 20.35 19.1  0.0533 0.0361 20.35 19.1    92  5.475  3.710 18.44 0.208 
   2 w1687665706I    9311.9  1.00  349.0   19.7 116    751  5876  0.016 0.014 21.69 20.2  0.0234 0.0136 21.24 20.1   441  3.734  2.067 18.86 0.155 
   3 w1687671484I   15090.6  1.00  507.7   17.0 112   1042  5824 -0.007 0.009 99.00 21.2  0.0073 0.0080 22.51 20.9   949  2.245  1.656 19.41 0.123 
   4 w1687694429I   38035.6  1.00  885.6   36.2 112   1621  5824  0.006 0.008 22.66 21.0  0.0068 0.0056 22.58 21.2  1834  2.404  1.581 19.34 0.087 
    Sum (T+  5751 to  38935):              81.5         70.3 (est. in src region)   SNR_unwtd_sum:   1.22 0.9987 signif. UL:  21.23
  0  1834 687681318   24923.6  14011.8 -19172.5    0.0068   0.0056 22.584  1.845  -0.649
Total wtd_rate (for all exposures so far):  1.314 +/- 1.008 snr:  1.3 mag: 19.99 UL: 15.56
Rebinned Data for sw01129775001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      441    8718.7    947.8  -2967.7    0.0234   0.0136 21.24  0.50    8718.7    0.0234   0.0136 21.24  0.50 20.14
  1      507   15348.6    257.9   -257.9   -0.0068   0.0092 99.00 99.00   12266.5    0.0073   0.0080 22.51  0.81 20.91
  2      885   38485.5    449.9   -449.9    0.0063   0.0077 22.66  0.86   24924.4    0.0068   0.0056 22.58  0.65 21.23
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01129775001um2_sk.img ================
Use keyword TRIGTIME of 687656394.24 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 687661939
The processing date in extension 0 is:  2022-10-27T10:02:05
The trigger time is: 687656394.24. 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 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(38.94489,-34.61060,25")
fk5;-circle(38.94489,-34.61060,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 m2687661938I    5544.5  1.00  196.6    7.0 112    162  5837  0.022 0.015 20.74 19.5  0.0219 0.0150 20.74 19.5   197  3.729  2.547 18.86 0.370 
    Sum (T+  5545 to   5744):               7.0          3.1 (est. in src region)   SNR_unwtd_sum:   1.46 0.9987 signif. UL:  19.52
  0   197 687662039    5644.4     99.9    -99.9    0.0219   0.0150 20.740  1.247  -0.565
Total wtd_rate (for all exposures so far):  1.837 +/- 0.956 snr:  1.9 mag: 19.63 UL: 14.90
Rebinned Data for sw01129775001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5644.4     99.9    -99.9    0.0219   0.0150 20.74  0.56    5644.4    0.0219   0.0150 20.74  0.56 19.52
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01129775001uw2_sk.img ================
Use keyword TRIGTIME of 687656394.24 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 687661529
The processing date in extension 0 is:  2022-10-27T10:02:05
The trigger time is: 687656394.24. The reference is keyword in image 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(38.94489,-34.61060,25")
fk5;-circle(38.94489,-34.61060,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 w2687661529I    5134.9  1.00  196.6    2.9 116    222  5844 -0.008 0.010 99.00 21.0 -0.0084 0.0098 99.00 21.0   197 -0.882  1.023 99.00 0.426 
Low  bkg:   2 w2687682978I  885.6    838  5848  0.162  0.006
   2 w2687682978I   26584.4  1.00  885.6   27.2 116    838  5848  0.013 0.007 21.73 20.7  0.0093 0.0057 22.11 21.0  1082  0.471  1.040 21.11 0.167 
Low  bkg:   3 w2687700109I  885.6    813  5828  0.158  0.006
   3 w2687700109I   43715.6  1.00  885.6   17.2 112    813  5828  0.002 0.005 23.80 21.4  0.0060 0.0039 22.59 21.4  1968  0.550  1.017 20.94 0.123 
    Sum (T+  5135 to  44615):              47.3         36.6 (est. in src region)   SNR_unwtd_sum:   1.54 0.9987 signif. UL:  21.41
  0  1968 687688960   32566.0  12049.4 -27431.0    0.0060   0.0039 22.588  1.137  -0.543
Total wtd_rate (for all exposures so far):  1.391 +/- 0.716 snr:  1.9 mag: 19.93 UL: 15.66
Rebinned Data for sw01129775001uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5234.8     99.9    -99.9   -0.0084   0.0098 99.00 99.00    5234.8   -0.0084   0.0098 99.00 99.00 21.02
  1 1.77e+03   35600.3   9015.1  -9015.9    0.0076   0.0042 22.33  0.48   32566.3    0.0060   0.0039 22.59  0.54 21.41
The data range from T+5134.9 s (0.06 d) to T+44825.6 s (0.52 d)
Wrote uvot_fluxes_221027d10h24m44s623727usUT.qdp
Wrote uvot_fluxes_221027d10h24m44s623727usUT.gif
Wrote uvot_fluxes_221027d10h24m44s623727usUT.ps
Wrote uvot_fluxes_221027d10h24m44s623727usUT_vis.qdp
Wrote uvot_fluxes_221027d10h24m44s623727usUT_uv.qdp
Wrote uvot_fluxes_221027d10h24m44s623727usUT_vis.gif
Wrote uvot_fluxes_221027d10h24m44s623727usUT_vis.ps
Wrote uvot_fluxes_221027d10h24m44s623727usUT_uv.gif
Wrote uvot_fluxes_221027d10h24m44s623727usUT_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.0114    5439.6     99.9    -99.9    0.6581   0.5159 20.74  0.63    5439.6    0.6581   0.5159 20.74  0.63 19.42
  1     0.23   32587.6   6957.6 -11760.1   -0.0538   0.0538 99.00 99.00   31309.4   -0.0480   0.0535 99.00 99.00 22.43
  2  0.00316   39918.8   4906.8   -369.8   -0.6302   0.1634 99.00 99.00   31420.4   -0.0575   0.0527 99.00 99.00 22.50
The data range from T+5134.9 s (0.06 d) to T+44825.6 s (0.52 d)
Wrote uvot_fluxes_wtd_221027d10h24m44s623727usUT.qdp
Wrote uvot_fluxes_wtd_221027d10h24m44s623727usUT.gif
Wrote uvot_fluxes_wtd_221027d10h24m44s623727usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem