# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210101d06h17m15s604199usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021408002 -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
# ========= GRB201216A ===================
Could not find/read custom source region custom_021408_src.reg
Used archived BAT position of 201.48720 36.31160
Reference: GCN_Circ-29059
The position is (13:25:56.93, +36:18:41.8)
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(201.4872,36.3116,3") # color=red dash=0
Source region spec. is: 201.4872 36.3116 3"
Region file centered at (201.4872,36.3116), which is (13:25:56.93, +36:18:41.8)
Could not find/read custom background region custom_021408_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.16542 from uncorrected trigger time of 629838031 in BAT summary file
# ============ Reading file sw00021408001uwh_sk.img ================
Use keyword TRIGTIME of 629838057.243 for trigger time.
Long-term sensitivity correction to zero point is -0.180 at 629860350
The processing date in extension 0 is: 2020-12-27T12:01:19
The trigger time is: 629838057.243. The reference is keyword in image 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 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(201.4872,36.3116,25")
fk5;-circle(201.4872,36.3116,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 wh629860350I   22293.1  0.96  595.2 1340.4 112  68536  5852  0.000 0.071 99.00 21.2  0.0000 0.0707 99.00 21.2   595  0.000  1.886 99.00 0.016 
   2 wh629865732I   27675.1  0.97  763.5 1277.9 108  68866  5812  0.000 0.054 99.00 21.5  0.0000 0.0433 99.00 21.8  1359  0.000  1.297 99.00 0.017 
   3 wh629871618I   33561.6  0.97  585.5  948.6 104  52110  5832  0.000 0.060 99.00 21.4  0.0000 0.0352 99.00 22.0  1944  0.000  1.140 99.00 0.017 
    Sum (T+ 22293 to  34157):            3520.6       3520.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.98
  0  1944 629866192   28134.6   6021.9  -5841.5    0.0000   0.0352 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.130 snr:  0.0 mag: 99.00 UL: 18.21
Rebinned Data for sw00021408001uwh_sk.img using a zero point of 20.110:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.88e+03   28151.5   6005.0  -5858.4    0.0000   0.0352 99.00 99.00   28151.5    0.0000   0.0352 99.00 99.00 22.48
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00021408001uvv_sk.img ================
Use keyword TRIGTIME of 629838057.243 for trigger time.
Long-term sensitivity correction to zero point is -0.211 at 629860962
The processing date in extension 0 is:  2020-12-27T12:01:19
The trigger time is: 629838057.243. The reference is keyword in image 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 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(201.4872,36.3116,25")
fk5;-circle(201.4872,36.3116,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 vv629860961I   22904.5  0.99  595.2  429.1 112  21609  5832  0.000 0.038 99.00 19.5  0.0000 0.0380 99.00 19.5   595  0.000  9.776 99.00 0.006 
   2 vv629861570I   23513.0  0.99    6.3    4.2 116    276  5856  0.000 0.412 99.00 16.9  0.0000 0.0379 99.00 19.5   602  0.000  9.736 99.00 0.005 
   3 vv629866515I   28457.9  0.99  156.2  134.1 120   5552  5860  0.000 0.076 99.00 18.7  0.0000 0.0339 99.00 19.6   758  0.000  9.021 99.00 0.005 
    Sum (T+ 22904 to  28617):             534.1        534.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.59
  0   758 629862365   24308.0   4308.5  -1403.5    0.0000   0.0339 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.101 snr:  0.0 mag: 99.00 UL: 15.81
Rebinned Data for sw00021408001uvv_sk.img using a zero point of 17.679:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      749   24308.0   4308.5  -1403.5    0.0000   0.0339 99.00 99.00   24308.0    0.0000   0.0339 99.00 99.00 20.09
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021408001uuu_sk.img ================
Use keyword TRIGTIME of 629838057.243 for trigger time.
Long-term sensitivity correction to zero point is -0.187 at 629859739
The processing date in extension 0 is:  2020-12-27T12:01:18
The trigger time is: 629838057.243. The reference is keyword in image 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 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(201.4872,36.3116,25")
fk5;-circle(201.4872,36.3116,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 uu629859739I   21682.0  0.99  595.2  162.0 108   9388  5832  0.000 0.025 99.00 20.4  0.0000 0.0247 99.00 20.4   595  0.000  3.887 99.00 0.022 
   2 uu629864949I   26892.7  1.00  763.0  180.5 108  10132  5816  0.000 0.020 99.00 20.6  0.0000 0.0156 99.00 20.9  1358  0.000  2.757 99.00 0.021 
   3 uu629870907I   32850.4  1.00  692.7  197.2 112  10045  5840  0.000 0.022 99.00 20.5  0.0000 0.0128 99.00 21.1  2051  0.000  2.447 99.00 0.019 
    Sum (T+ 21682 to  33554):             554.6        554.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.12
  0  2051 629865801   27743.4   5810.8  -6061.3    0.0000   0.0128 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.011 snr:  0.0 mag: 99.00 UL: 16.37
Rebinned Data for sw00021408001uuu_sk.img using a zero point of 18.153:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.04e+03   27743.9   5810.3  -6061.9    0.0000   0.0128 99.00 99.00   27743.9    0.0000   0.0128 99.00 99.00 21.62
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00021408002uw2_sk.img ================
Use keyword TRIGTIME of 629838057.243 for trigger time.
Long-term sensitivity correction to zero point is -0.340 at 630289997
The processing date in extension 0 is:  2021-01-01T06:07:56
The trigger time is: 629838057.243. The reference is keyword in image 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 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(201.4872,36.3116,25")
fk5;-circle(201.4872,36.3116,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 w2630289996I  451939.3  1.00  870.5   19.3 104   1057  5796  0.000 0.006 99.00 20.9  0.0000 0.0056 99.00 20.9   871  0.000 50.486 99.00 0.005 
   2 w2630317920I  479862.8  1.00 1614.9   27.0 104   2083  5816  0.000 0.004 99.00 21.2  0.0000 0.0034 99.00 21.5  2485  0.000 31.605 99.00 0.005 
   3 w2630329670I  491613.4  1.00 1388.1   41.9 112   1806  5872  0.000 0.005 99.00 21.1  0.0000 0.0027 99.00 21.7  3874  0.000 26.132 99.00 0.004 
    Sum (T+451939 to 493024):              90.7         90.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.68
  0  3874 630316550  478492.7  14531.1 -26553.4    0.0000   0.0027 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.018 snr:  0.0 mag: 99.00 UL: 15.25
Rebinned Data for sw00021408002uw2_sk.img using a zero point of 17.040:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.87e+03  478492.5  14531.3 -26553.2    0.0000   0.0027 99.00 99.00  478492.5    0.0000   0.0027 99.00 99.00 22.17
The data range from T+21682.0 s (0.25 d) to T+493023.8 s (5.71 d)
Wrote uvot_fluxes_210101d06h17m15s604199usUT.qdp
Wrote uvot_fluxes_210101d06h17m15s604199usUT.gif
Wrote uvot_fluxes_210101d06h17m15s604199usUT.ps
Wrote uvot_fluxes_210101d06h17m15s604199usUT_vis.qdp
Wrote uvot_fluxes_210101d06h17m15s604199usUT_uv.qdp
Wrote uvot_fluxes_210101d06h17m15s604199usUT_vis.gif
Wrote uvot_fluxes_210101d06h17m15s604199usUT_vis.ps
Wrote uvot_fluxes_210101d06h17m15s604199usUT_uv.gif
Wrote uvot_fluxes_210101d06h17m15s604199usUT_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.676   27343.0   6813.5  -5661.0    0.0000   0.0403 99.00 99.00   27343.0    0.0000   0.0403 99.00 99.00 22.51
The data range from T+21682.0 s (0.25 d) to T+493023.8 s (5.71 d)
Wrote uvot_fluxes_wtd_210101d06h17m15s604199usUT.qdp
Wrote uvot_fluxes_wtd_210101d06h17m15s604199usUT.gif
Wrote uvot_fluxes_wtd_210101d06h17m15s604199usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem