# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210603d15h59m26s980780usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01053220992 -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
# ========= GRB210603 ===================
Could not find/read custom source region custom_1053220_src.reg
Used archived BAT position of 238.81900 -54.04600
Reference: GCN_Position_Notice_Thu_03_Jun_21_09:45:59_UT
The position is (15:55:16.56, -54:02:45.6)
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(238.819,-54.046,3") # color=red dash=0
Source region spec. is: 238.819 -54.046 3"
Region file centered at (238.819,-54.046), which is (15:55:16.56, -54:02:45.6)
Could not find/read custom background region custom_1053220_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 -27.08992 from uncorrected trigger time of 644406346.62 in BAT summary file
# ============ Reading file sw01053220992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.178 at 644406474
The processing date in extension 0 is: 2021-06-03T15:52:29
The trigger time is: 644406373.70992. The reference is BAT GRB summary file
Using zero point of 20.112 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 5:
# 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(238.819,-54.046,25")
fk5;-circle(238.819,-54.046,12.5")
fk5;-circle(238.814888,-54.040653,6")
fk5;-circle(238.825785,-54.043461,6")
fk5;-circle(238.804753,-54.045351,6")
fk5;-circle(238.824973,-54.053323,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 wh644406474I     100.3  0.95   60.0  274.5 111   7838  4989  0.000 0.259 99.00 19.8  0.0000 0.2594 99.00 19.8    60  0.000  0.040 99.00 2.121 
   2 wh644406474E     100.3  0.95   60.0  271.5 110   7835  4986  0.000 0.258 99.00 19.8 
   3 wh644410429I    4055.6  0.95  147.4  518.4 110  19437  4976  0.000 0.166 99.00 20.3  0.0000 0.1397 99.00 20.5   207  0.000  0.040 99.00 0.660 
   4 wh644410429E    4055.6  0.95  147.4  555.1 114  19432  4989  0.000 0.169 99.00 20.3 
   5 wh644410991I    4618.0  0.95  196.6  831.4 104  25699  4960  0.000 0.139 99.00 20.5  0.0000 0.0986 99.00 20.9   404  0.000  0.040 99.00 0.378 
    Sum (T+   100 to   4818):            1142.9       1142.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.86
  0   404 644410196    3822.3    995.5  -3722.0    0.0000   0.0986 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.039 snr:  0.0 mag: 99.00 UL: 21.86
Rebinned Data for sw01053220992uwh_sk.img using a zero point of 20.112:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0       57     130.8     30.5    -30.5    0.0000   0.2594 99.00 99.00     130.8    0.0000   0.2594 99.00 99.00 20.31
  1      327    4466.3    351.5   -410.8    0.0000   0.1065 99.00 99.00    3822.8    0.0000   0.0986 99.00 99.00 21.36
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01053220992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.213 at 644406454
The processing date in extension 0 is:  2021-06-03T15:52:30
The trigger time is: 644406373.70992. The reference is BAT GRB summary file
Using zero point of 17.677 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(238.819,-54.046,25")
fk5;-circle(238.819,-54.046,12.5")
fk5;-circle(238.814919,-54.040624,6")
fk5;-circle(238.825778,-54.043451,6")
fk5;-circle(238.804733,-54.045245,6")
fk5;-circle(238.826777,-54.051055,6")
fk5;-circle(238.825040,-54.053323,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 vv644406453E      80.1  0.99   11.6   10.9 115    356  4761  0.000 0.283 99.00 17.3 
   2 vv644411402I    5028.6  0.99  196.6  195.9 108   6146  4756  0.000 0.067 99.00 18.8  0.0000 0.0669 99.00 18.8   197  0.000  3.808 99.00 0.024 
    Sum (T+  5029 to   5228):             139.6        139.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.85
  0   197 644411502    5128.5     99.9    -99.9    0.0000   0.0669 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.039 snr:  0.0 mag: 99.00 UL: 19.44
Rebinned Data for sw01053220992uvv_sk.img using a zero point of 17.677:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    5128.5     99.9    -99.9    0.0000   0.0669 99.00 99.00    5128.5    0.0000   0.0669 99.00 99.00 19.34
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01053220992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.178 at 644410789
The processing date in extension 0 is:  2021-06-03T15:52:30
The trigger time is: 644406373.70992. The reference is BAT GRB summary file
Using zero point of 18.932 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(238.819,-54.046,25")
fk5;-circle(238.819,-54.046,12.5")
fk5;-circle(238.814907,-54.040656,6")
fk5;-circle(238.825783,-54.043433,6")
fk5;-circle(238.804804,-54.045302,6")
fk5;-circle(238.825024,-54.053346,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 bb644410788I    4414.8  0.98  195.1  299.3 108   9638  4960  0.000 0.085 99.00 19.8  0.0000 0.0847 99.00 19.8   195  0.000  1.336 99.00 0.058 
    Sum (T+  4415 to   4613):             209.9        209.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.84
  0   195 644410888    4513.9     99.1    -99.1    0.0000   0.0847 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.039 snr:  0.0 mag: 99.00 UL: 20.68
Rebinned Data for sw01053220992ubb_sk.img using a zero point of 18.932:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      191    4513.9     99.1    -99.1    0.0000   0.0847 99.00 99.00    4513.9    0.0000   0.0847 99.00 99.00 20.34
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01053220992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.193 at 644410589
The processing date in extension 0 is:  2021-06-03T15:52:30
The trigger time is: 644406373.70992. The reference is BAT GRB summary file
Using zero point of 18.147 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(238.819,-54.046,25")
fk5;-circle(238.819,-54.046,12.5")
fk5;-circle(238.814849,-54.040571,6")
fk5;-circle(238.825823,-54.043394,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 uu644410588I    4215.0  0.99  193.0  119.0 104   3927  4988  0.000 0.052 99.00 19.6  0.0000 0.0525 99.00 19.6   193  0.000  1.629 99.00 0.075 
   2 uu644412017I    5643.5  0.99   76.9   56.7 104   1533  5072  0.000 0.082 99.00 19.1  0.0000 0.0441 99.00 19.8   270  0.000  1.464 99.00 0.071 
    Sum (T+  4215 to   5722):             113.3        113.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.77
  0   270 644411078    4704.6   1017.1   -489.6    0.0000   0.0441 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.039 snr:  0.0 mag: 99.00 UL: 19.90
Rebinned Data for sw01053220992uuu_sk.img using a zero point of 18.147:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      268    4704.6   1017.0   -489.6    0.0000   0.0441 99.00 99.00    4704.6    0.0000   0.0441 99.00 99.00 20.27
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01053220992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 644411812
The processing date in extension 0 is:  2021-06-03T15:52:30
The trigger time is: 644406373.70992. 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(238.819,-54.046,25")
fk5;-circle(238.819,-54.046,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 w1644411812I    5438.7  1.00  196.6   25.8 116   1250  5868  0.000 0.029 99.00 19.3  0.0000 0.0287 99.00 19.3   197  0.000  2.820 99.00 0.081 
    Sum (T+  5439 to   5638):              24.7         24.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.26
  0   197 644411912    5538.6     99.9    -99.9    0.0000   0.0287 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.040 snr:  0.0 mag: 99.00 UL: 18.90
Rebinned Data for sw01053220992uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5538.6     99.9    -99.9    0.0000   0.0287 99.00 99.00    5538.6    0.0000   0.0287 99.00 99.00 19.75
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01053220992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 644411607
The processing date in extension 0 is:  2021-06-03T15:52:30
The trigger time is: 644406373.70992. The reference is BAT GRB summary 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(238.819,-54.046,25")
fk5;-circle(238.819,-54.046,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 m2644411607I    5233.5  1.00  196.6   12.8 112    343  5848  0.000 0.015 99.00 19.4  0.0000 0.0146 99.00 19.4   197  0.000  2.345 99.00 0.186 
    Sum (T+  5233 to   5433):               6.6          6.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.42
  0   197 644411707    5333.4     99.9    -99.9    0.0000   0.0146 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.039 snr:  0.0 mag: 99.00 UL: 18.34
Rebinned Data for sw01053220992um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5333.4     99.9    -99.9    0.0000   0.0146 99.00 99.00    5333.4    0.0000   0.0146 99.00 99.00 19.91
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01053220992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.342 at 644411197
The processing date in extension 0 is:  2021-06-03T15:52:30
The trigger time is: 644406373.70992. The reference is BAT GRB summary file
Using zero point of 17.038 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(238.819,-54.046,25")
fk5;-circle(238.819,-54.046,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 w2644411197I    4823.8  1.00  196.6   18.3 104    712  5808  0.000 0.020 99.00 19.5  0.0000 0.0203 99.00 19.5   197  0.000  1.999 99.00 0.157 
    Sum (T+  4824 to   5024):              12.7         12.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.50
  0   197 644411297    4923.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.039 snr:  0.0 mag: 99.00 UL: 18.78
Rebinned Data for sw01053220992uw2_sk.img using a zero point of 17.038:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    4923.7     99.9    -99.9    0.0000   0.0203 99.00 99.00    4923.7    0.0000   0.0203 99.00 99.00 20.00
The data range from T+100.3 s (0.00 d) to T+5721.6 s (0.07 d)
Wrote uvot_fluxes_210603d15h59m26s980780usUT.qdp
Wrote uvot_fluxes_210603d15h59m26s980780usUT.gif
Wrote uvot_fluxes_210603d15h59m26s980780usUT.ps
Wrote uvot_fluxes_210603d15h59m26s980780usUT_vis.qdp
Wrote uvot_fluxes_210603d15h59m26s980780usUT_uv.qdp
Wrote uvot_fluxes_210603d15h59m26s980780usUT_vis.gif
Wrote uvot_fluxes_210603d15h59m26s980780usUT_vis.ps
Wrote uvot_fluxes_210603d15h59m26s980780usUT_uv.gif
Wrote uvot_fluxes_210603d15h59m26s980780usUT_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      531     130.8     30.5    -30.5    0.0000   0.3057 99.00 99.00     130.8    0.0000   0.3057 99.00 99.00 20.31
  1     2.96    4445.7   1276.0   -390.1    0.0000   0.1171 99.00 99.00     154.7    0.0000   0.2577 99.00 99.00 20.49
The data range from T+100.3 s (0.00 d) to T+5721.6 s (0.07 d)
Wrote uvot_fluxes_wtd_210603d15h59m26s980780usUT.qdp
Wrote uvot_fluxes_wtd_210603d15h59m26s980780usUT.gif
Wrote uvot_fluxes_wtd_210603d15h59m26s980780usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem