# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210102d10h41m25s394041usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01015615992 -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
# ========= GRB210102 ===================
Could not find/read custom source region custom_1015615_src.reg
Used archived BAT position of 234.70300 -84.18900
Reference: GCN_Position_Notice_Sat_02_Jan_21_00:17:56_UT
The position is (15:38:48.72, -84:11:20.4)
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(234.703,-84.189,3") # color=red dash=0
Source region spec. is: 234.703 -84.189 3"
Region file centered at (234.703,-84.189), which is (15:38:48.72, -84:11:20.4)
Could not find/read custom background region custom_1015615_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 -26.23684 from uncorrected trigger time of 631239432.62 in BAT summary file
# ============ Reading file sw01015615992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.180 at 631243399
The processing date in extension 0 is: 2021-01-02T10:34:35
The trigger time is: 631239458.85684. The reference is BAT GRB summary file
Using zero point of 20.110 for filter WHITE
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(234.703,-84.189,25")
fk5;-circle(234.703,-84.189,12.5")
fk5;-circle(234.764765,-84.187852,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 wh631243398I  147.4  55077  5528 67.589  0.288
   1 wh631243398I    3939.7  0.87  147.4 1087.5 110  55077  5528  0.000 0.288 99.00 19.7  0.0000 0.2880 99.00 19.7   147  0.000  1.365 99.00 0.025 
above line uses coinc_corr_src:  0.872 corr_bkg:  0.872
High bkg:   2 wh631243398E  147.4  55105  5538 67.505  0.288
   2 wh631243398E    3939.7  0.87  147.4 1096.6 112  55105  5538  0.000 0.291 99.00 19.7 
above line uses coinc_corr_src:  0.872 corr_bkg:  0.872
   3 wh631244579I    5121.1  0.92  196.6  940.6 116  44942  5556  0.000 0.189 99.00 20.2  0.0000 0.1629 99.00 20.3   344  0.000  0.887 99.00 0.028 
    Sum (T+  3940 to   5321):            2034.3       2034.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.31
  0   344 631244163    4704.0    616.8   -764.4    0.0000   0.1629 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.878 snr:  0.0 mag: 99.00 UL: 18.48
Rebinned Data for sw01015615992uwh_sk.img using a zero point of 20.110:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      310    4720.2    600.6   -780.5    0.0000   0.1629 99.00 99.00    4720.2    0.0000   0.1629 99.00 99.00 20.81
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01015615992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.211 at 631243379
The processing date in extension 0 is:  2021-01-02T10:34:35
The trigger time is: 631239458.85684. The reference is BAT GRB summary file
Using zero point of 17.679 for filter V
Use aperture correction of  1.087 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(234.703,-84.189,25")
fk5;-circle(234.703,-84.189,12.5")
fk5;-circle(234.764412,-84.187883,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 vv631243378E    9.5   1061  5521 20.285  0.623
   1 vv631243378E    3919.8  0.96    9.5   22.4 112   1061  5521  0.000 0.560 99.00 16.5 
   2 vv631243555I    4096.2  0.97  196.6  349.1 112  15515  5512  0.000 0.102 99.00 18.4  0.0000 0.1020 99.00 18.4   197  0.000  4.743 99.00 0.013 
   3 vv631244990I    5531.6  0.99  135.7  133.2 112   5247  5548  0.000 0.084 99.00 18.6  0.0000 0.0694 99.00 18.8   332  0.000  3.517 99.00 0.015 
    Sum (T+  4096 to   5669):             421.2        421.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.81
  0   332 631244228    4769.5    899.9   -673.3    0.0000   0.0694 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.836 snr:  0.0 mag: 99.00 UL: 16.11
Rebinned Data for sw01015615992uvv_sk.img using a zero point of 17.679:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      325    4774.4    895.0   -678.2    0.0000   0.0694 99.00 99.00    4774.4    0.0000   0.0694 99.00 99.00 19.31
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01015615992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.173 at 631244375
The processing date in extension 0 is:  2021-01-02T10:34:35
The trigger time is: 631239458.85684. The reference is BAT GRB summary file
Using zero point of 18.937 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(234.703,-84.189,25")
fk5;-circle(234.703,-84.189,12.5")
fk5;-circle(234.765292,-84.187854,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 bb631244375I    4916.2  0.96  196.6  498.8 112  24225  5536  0.000 0.132 99.00 19.4  0.0000 0.1316 99.00 19.4   197  0.000  2.296 99.00 0.022 
    Sum (T+  4916 to   5116):             490.1        490.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.37
  0   197 631244475    5016.1     99.9    -99.9    0.0000   0.1316 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.798 snr:  0.0 mag: 99.00 UL: 17.42
Rebinned Data for sw01015615992ubb_sk.img using a zero point of 18.937:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      188    5016.1     99.9    -99.9    0.0000   0.1316 99.00 99.00    5016.1    0.0000   0.1316 99.00 99.00 19.87
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01015615992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.187 at 631244170
The processing date in extension 0 is:  2021-01-02T10:34:35
The trigger time is: 631239458.85684. The reference is BAT GRB summary file
Using zero point of 18.153 for filter U
Use aperture correction of  1.100 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(234.703,-84.189,25")
fk5;-circle(234.703,-84.189,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 uu631244169I    4711.1  0.98  196.6  300.6 116  14146  5832  0.000 0.097 99.00 18.9  0.0000 0.0970 99.00 18.9   197  0.000  3.342 99.00 0.020 
    Sum (T+  4711 to   4911):             281.4        281.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.92
  0   197 631244270    4810.9     99.9    -99.9    0.0000   0.0970 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.770 snr:  0.0 mag: 99.00 UL: 16.67
Rebinned Data for sw01015615992uuu_sk.img using a zero point of 18.153:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      192    4810.9     99.9    -99.9    0.0000   0.0970 99.00 99.00    4810.9    0.0000   0.0970 99.00 99.00 19.42
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01015615992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 631243965
The processing date in extension 0 is:  2021-01-02T10:34:35
The trigger time is: 631239458.85684. 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(234.703,-84.189,25")
fk5;-circle(234.703,-84.189,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 w1631243965I  196.6   2139  5824  1.868  0.040
   1 w1631243965I    4506.2  1.00  196.6   33.3 108   2139  5824  0.000 0.036 99.00 19.0  0.0000 0.0364 99.00 19.0   197  0.000  2.974 99.00 0.061 
    Sum (T+  4506 to   4706):              39.7         39.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.00
  0   197 631244065    4606.1     99.9    -99.9    0.0000   0.0364 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.760 snr:  0.0 mag: 99.00 UL: 15.70
Rebinned Data for sw01015615992uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    4606.1     99.9    -99.9    0.0000   0.0364 99.00 99.00    4606.1    0.0000   0.0364 99.00 99.00 19.50
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01015615992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.260 at 631243760
The processing date in extension 0 is:  2021-01-02T10:34:35
The trigger time is: 631239458.85684. The reference is BAT GRB summary file
Using zero point of 16.590 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(234.703,-84.189,25")
fk5;-circle(234.703,-84.189,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 m2631243759I  196.6    606  5848  0.527  0.021
   1 m2631243759I    4301.0  1.00  196.6   12.3 112    606  5848  0.000 0.019 99.00 19.1  0.0000 0.0194 99.00 19.1   197  0.000  2.573 99.00 0.127 
    Sum (T+  4301 to   4501):              11.6         11.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.11
  0   197 631243860    4400.9     99.9    -99.9    0.0000   0.0194 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.718 snr:  0.0 mag: 99.00 UL: 15.18
Rebinned Data for sw01015615992um2_sk.img using a zero point of 16.590:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    4400.9     99.9    -99.9    0.0000   0.0194 99.00 99.00    4400.9    0.0000   0.0194 99.00 99.00 19.60
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01015615992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.340 at 631244786
The processing date in extension 0 is:  2021-01-02T10:34:35
The trigger time is: 631239458.85684. The reference is BAT GRB summary file
Using zero point of 17.040 for filter UVW2
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(234.703,-84.189,25")
fk5;-circle(234.703,-84.189,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 w2631244785I    5326.8  1.00  196.6   12.2 120    620  5860  0.000 0.020 99.00 19.5  0.0000 0.0203 99.00 19.5   197  0.000  2.199 99.00 0.143 
    Sum (T+  5327 to   5527):              12.7         12.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.50
  0   197 631244886    5426.7     99.9    -99.9    0.0000   0.0203 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.683 snr:  0.0 mag: 99.00 UL: 15.69
Rebinned Data for sw01015615992uw2_sk.img using a zero point of 17.040:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5426.7     99.9    -99.9    0.0000   0.0203 99.00 99.00    5426.7    0.0000   0.0203 99.00 99.00 20.00
The data range from T+3939.7 s (0.05 d) to T+5669.4 s (0.07 d)
Wrote uvot_fluxes_210102d10h41m25s394041usUT.qdp
Wrote uvot_fluxes_210102d10h41m25s394041usUT.gif
Wrote uvot_fluxes_210102d10h41m25s394041usUT.ps
Wrote uvot_fluxes_210102d10h41m25s394041usUT_vis.qdp
Wrote uvot_fluxes_210102d10h41m25s394041usUT_uv.qdp
Wrote uvot_fluxes_210102d10h41m25s394041usUT_vis.gif
Wrote uvot_fluxes_210102d10h41m25s394041usUT_vis.ps
Wrote uvot_fluxes_210102d10h41m25s394041usUT_uv.gif
Wrote uvot_fluxes_210102d10h41m25s394041usUT_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     1.15    4728.2    941.3   -788.5    0.0000   0.1771 99.00 99.00    4728.2    0.0000   0.1771 99.00 99.00 20.90
The data range from T+3939.7 s (0.05 d) to T+5669.4 s (0.07 d)
Wrote uvot_fluxes_wtd_210102d10h41m25s394041usUT.qdp
Wrote uvot_fluxes_wtd_210102d10h41m25s394041usUT.gif
Wrote uvot_fluxes_wtd_210102d10h41m25s394041usUT.ps
Found 5 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem