# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 201213d09h44m45s044992usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01010946001 -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
# ========= GRB201203A ===================
Could not find/read custom source region custom_1010946_src.reg
Used archived XRT position of 38.05521 -26.51819 4.00
Reference: GCN_Circulars-28990-Thu,_3_Dec_2020_10:13:34_-0500
The position is (02:32:13.25, -26:31:05.5)
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(38.05521,-26.51819,4") # color=red dash=0
Source region spec. is: 38.05521 -26.51819 4"
Region file centered at (38.05521,-26.51819), which is (02:32:13.25, -26:31:05.5)
Could not find/read custom background region custom_1010946_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 -26.08734 from uncorrected trigger time of 628671147.16 in BAT summary file
# ============ Reading file sw01010946001uwh_sk.img ================
Use keyword TRIGTIME of 628671173.248 for trigger time.
Long-term sensitivity correction to zero point is -0.180 at 628676896
The processing date in extension 0 is: 2020-12-13T09:28:54
The trigger time is: 628671173.248. The reference is keyword in image file
Using zero point of 20.110 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(38.05521,-26.51819,25")
fk5;-circle(38.05521,-26.51819,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 wh628676895I    5722.7  0.98  196.6  458.7 200  13162  5861  0.051 0.117 23.33 21.1  0.0514 0.1171 23.33 21.1   197  0.353  0.805 21.42 0.062 
    Sum (T+  5723 to   5922):             458.7        449.2 (est. in src region)   SNR_unwtd_sum:   0.44 0.9987 signif. UL:  21.06
  0   197 628676996    5822.6     99.9    -99.9    0.0514   0.1171 23.333 75.667  -1.289
Total wtd_rate (for all exposures so far):  0.353 +/- 0.792 snr:  0.4 mag: 21.42 UL: 18.98
Rebinned Data for sw01010946001uwh_sk.img using a zero point of 20.110:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      192    5822.6     99.9    -99.9    0.0514   0.1171 23.33  1.29    5822.6    0.0514   0.1171 23.33  1.29 21.06
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01010946001uvv_sk.img ================
Use keyword TRIGTIME of 628671173.248 for trigger time.
Long-term sensitivity correction to zero point is -0.211 at 628675870
The processing date in extension 0 is:  2020-12-13T09:28:53
The trigger time is: 628671173.248. The reference is keyword in image file
Using zero point of 17.679 for filter V
Use aperture correction of  1.030 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(38.05521,-26.51819,25")
fk5;-circle(38.05521,-26.51819,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 vv628675870I    4697.2  0.99  196.6  112.5 200   2981  5833  0.054 0.057 20.85 19.3  0.0539 0.0567 20.85 19.3   197  2.865  3.012 19.15 0.036 
   2 vv628681329I   10156.5  1.00  295.0  143.4 200   4582  5854 -0.046 0.043 99.00 20.1 -0.0062 0.0343 99.00 20.1   492  0.898  2.571 20.41 0.024 
   3 vv628681633I   10459.9  1.00  295.0  148.9 204   4419  5831 -0.020 0.044 99.00 19.9 -0.0114 0.0269 99.00 20.4   787  0.289  2.299 21.64 0.021 
   4 vv628681936I   10763.4  1.00  220.8  109.8 200   3300  5871 -0.012 0.050 99.00 19.7 -0.0115 0.0237 99.00 20.6  1007  0.077  2.148 23.07 0.020 
    Sum (T+  4697 to  10988):             514.6        525.8 (est. in src region)   SNR_unwtd_sum:  -0.49 0.9987 signif. UL:  20.60
  0  1007 628680618    9444.7   1542.9  -4747.5   -0.0115   0.0237 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.318 +/- 0.738 snr:  0.4 mag: 21.54 UL: 16.63
Rebinned Data for sw01010946001uvv_sk.img using a zero point of 17.679:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    4797.1     99.9    -99.9    0.0539   0.0567 20.85  0.78    4797.1    0.0539   0.0567 20.85  0.78 19.29
  1      807   10571.8    415.9   -415.3   -0.0274   0.0261 99.00 99.00    9445.1   -0.0115   0.0237 99.00 99.00 20.60
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01010946001ubb_sk.img ================
Use keyword TRIGTIME of 628671173.248 for trigger time.
Long-term sensitivity correction to zero point is -0.172 at 628676691
The processing date in extension 0 is:  2020-12-13T09:28:54
The trigger time is: 628671173.248. The reference is keyword in image file
Using zero point of 18.938 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(38.05521,-26.51819,25")
fk5;-circle(38.05521,-26.51819,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 bb628676691I    5518.1  0.99  196.6  161.1 204   5022  5840 -0.076 0.069 99.00 20.9 -0.0759 0.0686 99.00 20.9   197 -1.482  1.338 99.00 0.057 
   2 bb628686942I   15768.9  0.99  295.0  249.5 208   7347  5867 -0.039 0.057 99.00 21.0 -0.0536 0.0438 99.00 21.4   492 -1.586  1.232 99.00 0.035 
   3 bb628687245I   16072.5  0.99  192.1  172.4 200   4832  5830  0.036 0.073 22.54 20.4 -0.0284 0.0375 99.00 21.4   684 -1.250  1.179 99.00 0.031 
    Sum (T+  5518 to  16268):             583.0        601.6 (est. in src region)   SNR_unwtd_sum:  -0.76 0.9987 signif. UL:  21.43
  0   684 628684200   13027.1   3240.6  -7509.0   -0.0284   0.0375 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.109 +/- 0.625 snr: -0.2 mag: 99.00 UL: 18.23
Rebinned Data for sw01010946001ubb_sk.img using a zero point of 18.938:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    5618.0     99.9    -99.9   -0.0759   0.0686 99.00 99.00    5618.0   -0.0759   0.0686 99.00 99.00 20.87
  1      483   16017.8    249.8   -249.0   -0.0092   0.0448 99.00 99.00   13025.7   -0.0284   0.0375 99.00 99.00 21.43
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01010946001uuu_sk.img ================
Use keyword TRIGTIME of 628671173.248 for trigger time.
Long-term sensitivity correction to zero point is -0.186 at 628676486
The processing date in extension 0 is:  2020-12-13T09:28:53
The trigger time is: 628671173.248. The reference is keyword in image file
Using zero point of 18.154 for filter U
Use aperture correction of  1.032 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(38.05521,-26.51819,25")
fk5;-circle(38.05521,-26.51819,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 uu628676486I    5312.8  1.00  196.6   57.4 200   1919  5838 -0.044 0.041 99.00 20.6 -0.0441 0.0406 99.00 20.6   197 -1.706  1.573 99.00 0.077 
   2 uu628709579I   38406.2  1.00  295.0   91.5 200   3002  5856 -0.039 0.034 99.00 20.8 -0.0408 0.0262 99.00 21.2   492 -1.954  1.552 99.00 0.036 
   3 uu628709882I   38709.7  1.00  207.0   61.7 192   1991  5828 -0.019 0.040 99.00 20.5 -0.0345 0.0219 99.00 21.4   699 -2.024  1.537 99.00 0.029 
    Sum (T+  5313 to  38920):             210.6        233.9 (est. in src region)   SNR_unwtd_sum:  -1.57 0.9987 signif. UL:  21.44
  0   699 628700479   29305.3   9614.8 -23992.4   -0.0345   0.0219 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.358 +/- 0.577 snr: -0.6 mag: 99.00 UL: 17.64
Rebinned Data for sw01010946001uuu_sk.img using a zero point of 18.154:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5412.7     99.9    -99.9   -0.0441   0.0406 99.00 99.00    5412.7   -0.0441   0.0406 99.00 99.00 20.64
  1      500   38662.9    257.2   -256.6   -0.0307   0.0260 99.00 99.00   29302.6   -0.0345   0.0219 99.00 99.00 21.44
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01010946001uw1_sk.img ================
Use keyword TRIGTIME of 628671173.248 for trigger time.
Long-term sensitivity correction to zero point is -0.270 at 628676281
The processing date in extension 0 is:  2020-12-13T09:28:53
The trigger time is: 628671173.248. The reference is keyword in image file
Using zero point of 17.170 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.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.05521,-26.51819,25")
fk5;-circle(38.05521,-26.51819,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 w1628676281I    5108.2  1.00  196.6   11.2 200    383  5876 -0.010 0.018 99.00 20.4 -0.0097 0.0180 99.00 20.4   197 -0.894  1.657 99.00 0.163 
   2 w1628700178I   29005.7  1.00  102.8    6.5 204    196  5872 -0.003 0.026 99.00 19.9 -0.0076 0.0148 99.00 20.6   299 -0.909  1.645 99.00 0.117 
   3 w1628703613I   32439.8  1.00  736.0   42.1 204   1425  5828 -0.011 0.009 99.00 21.3 -0.0100 0.0079 99.00 21.5  1035 -1.364  1.574 99.00 0.052 
    Sum (T+  5108 to  33188):              59.8         69.8 (est. in src region)   SNR_unwtd_sum:  -1.27 0.9987 signif. UL:  21.49
  0  1035 628698372   27198.8   5988.8 -22090.7   -0.0100   0.0079 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.469 +/- 0.542 snr: -0.9 mag: 99.00 UL: 16.79
Rebinned Data for sw01010946001uw1_sk.img using a zero point of 17.170:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5208.0     99.9    -99.9   -0.0097   0.0180 99.00 99.00    5208.0   -0.0097   0.0180 99.00 99.00 20.41
  1      838   32353.3    834.3  -3347.6   -0.0101   0.0088 99.00 99.00   27199.1   -0.0100   0.0079 99.00 99.00 21.49
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01010946001um2_sk.img ================
Use keyword TRIGTIME of 628671173.248 for trigger time.
Long-term sensitivity correction to zero point is -0.260 at 628676075
The processing date in extension 0 is:  2020-12-13T09:28:53
The trigger time is: 628671173.248. The reference is keyword in image file
Using zero point of 16.590 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.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.05521,-26.51819,25")
fk5;-circle(38.05521,-26.51819,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 m2628676075I    4902.2  1.00  196.6    2.2 200    118  5832 -0.009 0.008 99.00 20.9 -0.0094 0.0081 99.00 20.9   197 -1.422  1.224 99.00 0.322 
   2 m2628688717I   17543.8  1.00   90.3    2.0 208     63  5880 -0.003 0.016 99.00 19.8 -0.0073 0.0076 99.00 20.9   287 -1.421  1.216 99.00 0.234 
Low  bkg:   3 m2628692881I  255.0    117  5856  0.078  0.007
   3 m2628692881I   21708.6  1.00  255.0    2.1 200    117  5856 -0.008 0.006 99.00 21.2 -0.0075 0.0049 99.00 21.5   542 -1.715  1.163 99.00 0.181 
   4 m2628697781I   26608.2  1.00  511.4    9.6 200    339  5860 -0.004 0.006 99.00 21.0 -0.0058 0.0040 99.00 21.7  1053 -1.823  1.139 99.00 0.114 
    Sum (T+  4902 to  27128):              15.9         21.8 (est. in src region)   SNR_unwtd_sum:  -1.46 0.9987 signif. UL:  21.70
  0  1053 628691946   20772.9   6354.8 -15870.7   -0.0058   0.0040 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.636 +/- 0.492 snr: -1.3 mag: 99.00 UL: 16.43
Rebinned Data for sw01010946001um2_sk.img using a zero point of 16.590:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5002.1     99.9    -99.9   -0.0094   0.0081 99.00 99.00    5002.1   -0.0094   0.0081 99.00 99.00 20.85
  1      857   24392.3   2735.4  -6848.5   -0.0050   0.0045 99.00 99.00   20772.6   -0.0058   0.0040 99.00 99.00 21.70
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01010946001uw2_sk.img ================
Use keyword TRIGTIME of 628671173.248 for trigger time.
Long-term sensitivity correction to zero point is -0.340 at 628677103
The processing date in extension 0 is:  2020-12-13T09:28:54
The trigger time is: 628671173.248. 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(38.05521,-26.51819,25")
fk5;-circle(38.05521,-26.51819,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 w2628677102I    5929.7  1.00  135.8    3.4 204    138  5836 -0.011 0.014 99.00 20.6 -0.0109 0.0144 99.00 20.6   136 -1.301  1.723 99.00 0.235 
    Sum (T+  5930 to   6068):               3.4          4.8 (est. in src region)   SNR_unwtd_sum:  -0.75 0.9987 signif. UL:  20.57
  0   136 628677172    5998.8     69.0    -69.0   -0.0109   0.0144 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.680 +/- 0.475 snr: -1.4 mag: 99.00 UL: 16.95
Rebinned Data for sw01010946001uw2_sk.img using a zero point of 17.040:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      136    5998.8     69.0    -69.0   -0.0109   0.0144 99.00 99.00    5998.8   -0.0109   0.0144 99.00 99.00 20.57
The data range from T+4697.2 s (0.05 d) to T+38920.1 s (0.45 d)
Wrote uvot_fluxes_201213d09h44m45s044992usUT.qdp
Wrote uvot_fluxes_201213d09h44m45s044992usUT.gif
Wrote uvot_fluxes_201213d09h44m45s044992usUT.ps
Wrote uvot_fluxes_201213d09h44m45s044992usUT_vis.qdp
Wrote uvot_fluxes_201213d09h44m45s044992usUT_uv.qdp
Wrote uvot_fluxes_201213d09h44m45s044992usUT_vis.gif
Wrote uvot_fluxes_201213d09h44m45s044992usUT_vis.ps
Wrote uvot_fluxes_201213d09h44m45s044992usUT_uv.gif
Wrote uvot_fluxes_201213d09h44m45s044992usUT_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.55    5809.6   5178.1  -1112.3    0.0138   0.1202 24.94  2.47    5809.6    0.0138   0.1202 24.94  2.47 21.29
  1   0.0492   17259.5  21660.6  -1490.7   -0.0587   0.1382 99.00 99.00    6162.6    0.0076   0.1105 25.59  2.98 21.40
The data range from T+4697.2 s (0.05 d) to T+38920.1 s (0.45 d)
Wrote uvot_fluxes_wtd_201213d09h44m45s044992usUT.qdp
Wrote uvot_fluxes_wtd_201213d09h44m45s044992usUT.gif
Wrote uvot_fluxes_wtd_201213d09h44m45s044992usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem