# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 201106d08h05m00s546662usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01002158001 -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
# ========= GRB201027A ===================
Could not find/read custom source region custom_1002158_src.reg
Used archived XRT position of 155.96975 -5.51003 4.00
Reference: GCN_Circulars-28792-Tue,_27_Oct_2020_07:12:17_-0400
The position is (10:23:52.74, -05:30:36.1)
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(155.96975,-5.51003,4") # color=red dash=0
Source region spec. is: 155.96975 -5.51003 4"
Region file centered at (155.96975,-5.51003), which is (10:23:52.74, -05:30:36.1)
Could not find/read custom background region custom_1002158_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 -25.87512 from uncorrected trigger time of 625453664.17 in BAT summary file
# ============ Reading file sw01002158001uwh_sk.img ================
Use keyword TRIGTIME of 625453690.048 for trigger time.
Long-term sensitivity correction to zero point is -0.179 at 625506112
The processing date in extension 0 is: 2020-11-06T07:53:07
The trigger time is: 625453690.048. The reference is keyword in image file
Using zero point of 20.111 for filter WHITE
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(155.96975,-5.51003,25")
fk5;-circle(155.96975,-5.51003,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 wh625506112I   52422.3  0.94  208.8 1412.9 204  41168  5837 -0.137 0.202 99.00 20.8 -0.1368 0.2024 99.00 20.8   209 -8.479 12.540 99.00 0.002 
    Sum (T+ 52422 to  52634):            1412.9       1438.8 (est. in src region)   SNR_unwtd_sum:  -0.68 0.9987 signif. UL:  20.75
  0   209 625506218   52528.3    106.1   -106.1   -0.1368   0.2024 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -8.479 +/-12.322 snr: -0.7 mag: 99.00 UL: 16.30
Rebinned Data for sw01002158001uwh_sk.img using a zero point of 20.111:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196   52528.3    106.1   -106.1   -0.1368   0.2024 99.00 99.00   52528.3   -0.1368   0.2024 99.00 99.00 20.75
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01002158001uvv_sk.img ================
Use keyword TRIGTIME of 625453690.048 for trigger time.
Long-term sensitivity correction to zero point is -0.210 at 625500982
The processing date in extension 0 is:  2020-11-06T07:53:07
The trigger time is: 625453690.048. The reference is keyword in image file
Using zero point of 17.680 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(155.96975,-5.51003,25")
fk5;-circle(155.96975,-5.51003,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 vv625500982I   47292.1  0.97  295.0  855.6 204  23957  5825  0.059 0.107 20.75 18.7  0.0593 0.1067 20.75 18.7   295 31.140 56.030 16.56 0.001 
High bkg:   2 vv625501285I  149.5  16085  5868 18.339  0.145
   2 vv625501285I   47595.6  0.97  149.5  554.1 200  16085  5867  0.041 0.171 21.14 18.3  0.0533 0.0912 20.86 18.9   445 28.540 47.589 16.65 0.001 
    Sum (T+ 47292 to  47747):            1409.7       1387.4 (est. in src region)   SNR_unwtd_sum:   0.58 0.9987 signif. UL:  18.86
  0   445 625501209   47519.2    228.3   -227.1    0.0533   0.0912 20.864 78.136  -1.083
Total wtd_rate (for all exposures so far): -5.983 +/-11.865 snr: -0.5 mag: 99.00 UL: 13.86
Rebinned Data for sw01002158001uvv_sk.img using a zero point of 17.680:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      431   47518.7    228.8   -226.7    0.0533   0.0912 20.86  1.08   47518.7    0.0533   0.0912 20.86  1.08 18.86
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01002158001ubb_sk.img ================
Use keyword TRIGTIME of 625453690.048 for trigger time.
Long-term sensitivity correction to zero point is -0.171 at 625505200
The processing date in extension 0 is:  2020-11-06T07:53:07
The trigger time is: 625453690.048. The reference is keyword in image file
Using zero point of 18.939 for filter B
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(155.96975,-5.51003,25")
fk5;-circle(155.96975,-5.51003,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 bb625505200I   51510.2  0.97  295.0  842.8 204  23779  5831  0.039 0.106 22.45 20.0  0.0392 0.1063 22.45 20.0   295  7.034 19.063 18.17 0.002 
   2 bb625505503I   51813.8  0.97  295.0  789.4 196  23606  5818 -0.021 0.103 99.00 20.2  0.0089 0.0740 24.06 20.5   590  1.500 13.293 19.85 0.002 
   3 bb625505807I   52117.4  0.97  295.0  849.1 200  23851  5841  0.117 0.107 21.27 19.8  0.0450 0.0608 22.31 20.5   885  7.976 10.960 18.04 0.002 
    Sum (T+ 51510 to  52417):            2481.3       2443.9 (est. in src region)   SNR_unwtd_sum:   0.74 0.9987 signif. UL:  20.52
  0   885 625505654   51963.7    453.5   -453.5    0.0450   0.0608 22.307 76.693  -0.929
Total wtd_rate (for all exposures so far):  1.789 +/- 7.996 snr:  0.2 mag: 19.66 UL: 15.36
Rebinned Data for sw01002158001ubb_sk.img using a zero point of 18.939:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      862   51963.6    453.6   -453.4    0.0450   0.0608 22.31  0.93   51963.6    0.0450   0.0608 22.31  0.93 20.52
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01002158001uw2_sk.img ================
Use keyword TRIGTIME of 625453690.048 for trigger time.
Long-term sensitivity correction to zero point is -0.340 at 625500076
The processing date in extension 0 is:  2020-11-06T07:53:07
The trigger time is: 625453690.048. The reference is keyword in image file
Using zero point of 17.040 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(155.96975,-5.51003,25")
fk5;-circle(155.96975,-5.51003,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 w2625500075I   46385.6  1.00  885.6   61.1 196   2066  5879 -0.009 0.009 99.00 21.1 -0.0091 0.0093 99.00 21.1   886 -8.514  8.696 99.00 0.014 
    Sum (T+ 46386 to  47285):              61.1         68.9 (est. in src region)   SNR_unwtd_sum:  -0.98 0.9987 signif. UL:  21.10
  0   886 625500526   46835.5    449.9   -449.9   -0.0091   0.0093 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -2.716 +/- 5.846 snr: -0.5 mag: 99.00 UL: 13.98
Rebinned Data for sw01002158001uw2_sk.img using a zero point of 17.040:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885   46835.5    449.9   -449.9   -0.0091   0.0093 99.00 99.00   46835.5   -0.0091   0.0093 99.00 99.00 21.10
The data range from T+46385.6 s (0.54 d) to T+52634.4 s (0.61 d)
Wrote uvot_fluxes_201106d08h05m00s546662usUT.qdp
Wrote uvot_fluxes_201106d08h05m00s546662usUT.gif
Wrote uvot_fluxes_201106d08h05m00s546662usUT.ps
Wrote uvot_fluxes_201106d08h05m00s546662usUT_vis.qdp
Wrote uvot_fluxes_201106d08h05m00s546662usUT_uv.qdp
Wrote uvot_fluxes_201106d08h05m00s546662usUT_vis.gif
Wrote uvot_fluxes_201106d08h05m00s546662usUT_vis.ps
Wrote uvot_fluxes_201106d08h05m00s546662usUT_uv.gif
Wrote uvot_fluxes_201106d08h05m00s546662usUT_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.00783   52328.7    305.6  -5036.7   -0.0632   0.1771 99.00 99.00   52328.7   -0.0632   0.1771 99.00 99.00 20.99
The data range from T+46385.6 s (0.54 d) to T+52634.4 s (0.61 d)
Wrote uvot_fluxes_wtd_201106d08h05m00s546662usUT.qdp
Wrote uvot_fluxes_wtd_201106d08h05m00s546662usUT.gif
Wrote uvot_fluxes_wtd_201106d08h05m00s546662usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem