# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 221029d18h48m22s687184usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01132968992 -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
# ========= GRB221029 ===================
Could not find/read custom source region custom_1132968_src.reg
Used archived BAT position of 83.65500 22.02500
Reference: GCN_Position_Notice_Sat_29_Oct_22_12:19:10_UT
The position is (05:34:37.20, +22:01:30.0)
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(83.655,+22.025,3") # color=red dash=0
Source region spec. is: 83.655 +22.025 3"
Region file centered at (83.655,+22.025), which is (05:34:37.20, +22:01:30.0)
Could not find/read custom background region custom_1132968_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 -30.11162 from uncorrected trigger time of 688737945.87 in BAT summary file
# ============ Reading file sw01132968992uwh_sk.img ================
Use keyword TRIGTIME of 688737976 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 688739067
The processing date in extension 0 is: 2022-10-29T18:37:40
The trigger time is: 688737976. The reference is keyword in image file
Using zero point of 20.115 for filter WHITE
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(83.655,+22.025,25")
fk5;-circle(83.655,+22.025,12.5")
fk5;-circle(83.660896,22.030535,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 wh688739067I  147.4  59796  5770 70.307  0.288
   1 wh688739067I    1091.4  0.87  147.4 1076.3 115  59796  5770  0.000 0.303 99.00 19.6  0.0000 0.3026 99.00 19.6   147  0.000  0.415 99.00 0.078 
above line uses coinc_corr_src:  0.866 corr_bkg:  0.866
High bkg:   2 wh688739067E  147.4  59692  5760 70.311  0.288
   2 wh688739067E    1091.4  0.87  147.4 1079.5 115  59692  5760  0.000 0.303 99.00 19.6 
above line uses coinc_corr_src:  0.865 corr_bkg:  0.865
High bkg:   3 wh688739347E   19.4   8343  5759 74.520  0.816
   3 wh688739347E    1371.3  0.86   19.4  145.6 111   8343  5759  0.000 0.851 99.00 18.5  0.0000 0.2851 99.00 19.7   167  0.000  0.397 99.00 0.076 
above line uses coinc_corr_src:  0.857 corr_bkg:  0.857
High bkg:   4 wh688739519E   19.4   9290  5754 83.053  0.862
   4 wh688739519E    1543.9  0.84   19.4  161.1 111   9290  5754  0.000 0.913 99.00 18.4  0.0000 0.2725 99.00 19.8   186  0.000  0.386 99.00 0.073 
above line uses coinc_corr_src:  0.843 corr_bkg:  0.843
High bkg:   5 wh688739693E   19.5  10050  5774 89.482  0.893
   5 wh688739693E    1717.3  0.83   19.5  179.6 110  10050  5774  0.000 0.957 99.00 18.4  0.0000 0.2625 99.00 19.8   206  0.000  0.379 99.00 0.070 
above line uses coinc_corr_src:  0.831 corr_bkg:  0.831
    Sum (T+  1091 to   1737):            1723.2       1723.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.80
  0   206 688739252    1276.2    460.9   -184.9    0.0000   0.2625 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.375 snr:  0.0 mag: 99.00 UL: 19.41
Rebinned Data for sw01132968992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      177    1273.7    463.4   -182.4    0.0000   0.2625 99.00 99.00    1273.7    0.0000   0.2625 99.00 99.00 20.30
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01132968992uvv_sk.img ================
Use keyword TRIGTIME of 688737976 for trigger time.
Long-term sensitivity correction to zero point is -0.219 at 688739047
The processing date in extension 0 is:  2022-10-29T18:37:19
The trigger time is: 688737976. The reference is keyword in image file
Using zero point of 17.671 for filter V
Use aperture correction of  1.087 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(83.655,+22.025,25")
fk5;-circle(83.655,+22.025,12.5")
fk5;-circle(83.660863,22.030537,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 vv688739046E    1070.6  0.97   11.1    9.9 111    970  5766  0.000 0.441 99.00 16.8 
   2 vv688739225E    1249.0  0.97   19.5   24.2 116   1864  5766  0.000 0.357 99.00 17.0  0.0000 0.3570 99.00 17.0    19  0.000  5.016 99.00 0.036 
High bkg:   3 vv688739396E   19.5   2066  5762 18.418  0.405
   3 vv688739396E    1420.9  0.96   19.5   23.1 112   2066  5762  0.000 0.370 99.00 17.0  0.0000 0.2572 99.00 17.4    39  0.000  3.826 99.00 0.032 
High bkg:   4 vv688739570E   19.4   2447  5757 21.869  0.442
   4 vv688739570E    1594.8  0.96   19.4   45.5 113   2447  5757  0.000 0.409 99.00 16.9  0.0000 0.2189 99.00 17.6    58  0.000  3.391 99.00 0.028 
    Sum (T+  1249 to   1615):             125.7        125.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  17.55
  0    58 688739407    1431.4    183.2   -182.4    0.0000   0.2189 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.366 snr:  0.0 mag: 99.00 UL: 17.00
Rebinned Data for sw01132968992uvv_sk.img using a zero point of 17.671:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     56.2    1430.8    183.8   -181.8    0.0000   0.2189 99.00 99.00    1430.8    0.0000   0.2189 99.00 99.00 18.05
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01132968992ubb_sk.img ================
Use keyword TRIGTIME of 688737976 for trigger time.
Long-term sensitivity correction to zero point is -0.195 at 688739323
The processing date in extension 0 is:  2022-10-29T18:37:30
The trigger time is: 688737976. The reference is keyword in image file
Using zero point of 18.915 for filter B
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(83.655,+22.025,25")
fk5;-circle(83.655,+22.025,12.5")
fk5;-circle(83.660896,22.030580,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 bb688739323E   19.4   3373  5769 30.123  0.519
   1 bb688739323E    1347.0  0.94   19.4   61.8 113   3373  5769  0.000 0.497 99.00 17.9  0.0000 0.4972 99.00 17.9    19  0.000  2.392 99.00 0.058 
High bkg:   2 bb688739495E   19.4   4001  5764 35.703  0.564
   2 bb688739495E    1519.7  0.93   19.4   68.1 112   4001  5764  0.000 0.544 99.00 17.8  0.0000 0.3683 99.00 18.2    39  0.000  1.858 99.00 0.050 
High bkg:   3 bb688739668E   19.5   4687  5766 41.792  0.610
   3 bb688739668E    1693.0  0.92   19.5  102.4 111   4687  5766  0.000 0.593 99.00 17.7  0.0000 0.3150 99.00 18.4    58  0.000  1.650 99.00 0.043 
    Sum (T+  1347 to   1713):             234.0        234.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.40
  0    58 688739506    1529.9    182.8   -182.9    0.0000   0.3150 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.364 snr:  0.0 mag: 99.00 UL: 18.25
Rebinned Data for sw01132968992ubb_sk.img using a zero point of 18.915:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     54.3    1528.6    184.2   -181.5    0.0000   0.3150 99.00 99.00    1528.6    0.0000   0.3150 99.00 99.00 18.90
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01132968992uuu_sk.img ================
Use keyword TRIGTIME of 688737976 for trigger time.
Long-term sensitivity correction to zero point is -0.211 at 688739298
The processing date in extension 0 is:  2022-10-29T18:37:29
The trigger time is: 688737976. The reference is keyword in image file
Using zero point of 18.129 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(83.655,+22.025,25")
fk5;-circle(83.655,+22.025,12.5")
fk5;-circle(83.660760,22.030593,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 uu688739298E   19.5   2400  5754 21.442  0.438
   1 uu688739298E    1322.2  0.96   19.5   38.6 114   2400  5754  0.000 0.411 99.00 17.3  0.0000 0.4105 99.00 17.3    19  0.000  4.001 99.00 0.040 
High bkg:   2 uu688739470E   19.5   2667  5752 23.839  0.462
   2 uu688739470E    1494.4  0.95   19.5   50.9 114   2667  5752  0.000 0.435 99.00 17.3  0.0000 0.2990 99.00 17.7    39  0.000  3.070 99.00 0.036 
High bkg:   3 uu688739644E   19.5   3209  5755 28.668  0.506
   3 uu688739644E    1668.3  0.95   19.5   60.3 113   3209  5755  0.000 0.479 99.00 17.2  0.0000 0.2553 99.00 17.8    58  0.000  2.722 99.00 0.031 
    Sum (T+  1322 to   1688):             163.4        163.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  17.84
  0    58 688739481    1504.9    183.2   -182.7    0.0000   0.2553 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.358 snr:  0.0 mag: 99.00 UL: 17.48
Rebinned Data for sw01132968992uuu_sk.img using a zero point of 18.129:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     55.6    1504.1    184.0   -181.9    0.0000   0.2553 99.00 99.00    1504.1    0.0000   0.2553 99.00 99.00 18.34
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01132968992uw1_sk.img ================
Use keyword TRIGTIME of 688737976 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 688739274
The processing date in extension 0 is:  2022-10-29T18:37:29
The trigger time is: 688737976. The reference is keyword in image 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 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(83.655,+22.025,25")
fk5;-circle(83.655,+22.025,12.5")
fk5;-circle(83.661049,22.030407,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 w1688739273E   19.5    471  5764  4.205  0.194
   1 w1688739273E    1298.0  0.99   19.5   10.9 111    471  5764  0.000 0.177 99.00 17.3  0.0000 0.1771 99.00 17.3    19  0.000  4.103 99.00 0.092 
High bkg:   2 w1688739446E   19.5    491  5775  4.374  0.197
   2 w1688739446E    1470.2  0.99   19.5    9.2 110    491  5775  0.000 0.180 99.00 17.3  0.0000 0.1262 99.00 17.6    39  0.000  3.096 99.00 0.085 
High bkg:   3 w1688739620E   19.5    537  5769  4.787  0.207
   3 w1688739620E    1644.1  0.99   19.5   10.6 115    537  5769  0.000 0.193 99.00 17.2  0.0000 0.1058 99.00 17.8    58  0.000  2.714 99.00 0.076 
    Sum (T+  1298 to   1664):              29.2         29.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  17.84
  0    58 688739457    1480.6    183.2   -182.6    0.0000   0.1058 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.362 snr:  0.0 mag: 99.00 UL: 16.50
Rebinned Data for sw01132968992uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     57.9    1480.6    183.2   -182.6    0.0000   0.1058 99.00 99.00    1480.6    0.0000   0.1058 99.00 99.00 18.34
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01132968992um2_sk.img ================
Use keyword TRIGTIME of 688737976 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 688739249
The processing date in extension 0 is:  2022-10-29T18:37:29
The trigger time is: 688737976. The reference is keyword in image file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01132968992uw2_sk.img ================
Use keyword TRIGTIME of 688737976 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 688739373
The processing date in extension 0 is:  2022-10-29T18:37:32
The trigger time is: 688737976. The reference is keyword in image file
Using zero point of 17.035 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(83.655,+22.025,25")
fk5;-circle(83.655,+22.025,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 w2688739372E   19.5    214  5842  1.879  0.129
#  1 w2688739372E    1396.6  1.00   19.5    8.1 112    214  5842 
High bkg:   2 w2688739546E   19.5    255  5849  2.228  0.140
   2 w2688739546E    1570.6  1.00   19.5    0.2 115    255  5849  0.000 0.129 99.00 17.5  0.0000 0.1286 99.00 17.5    20  0.000  4.073 99.00 0.123 
High bkg:   3 w2688739718E   11.4    153  5833  2.301  0.186
   3 w2688739718E    1742.7  1.00   11.4    3.0 109    153  5833  0.000 0.167 99.00 17.2  0.0000 0.1018 99.00 17.7    31  0.000  3.341 99.00 0.119 
    Sum (T+  1571 to   1754):               7.9          7.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  17.75
  0    31 688739618    1642.3    111.9    -71.7    0.0000   0.1018 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.355 snr:  0.0 mag: 99.00 UL: 16.39
Rebinned Data for sw01132968992uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     30.8    1642.3    111.9    -71.7    0.0000   0.1018 99.00 99.00    1642.3    0.0000   0.1018 99.00 99.00 18.25
The data range from T+1091.4 s (0.01 d) to T+1754.3 s (0.02 d)
Wrote uvot_fluxes_221029d18h48m22s687184usUT.qdp
Wrote uvot_fluxes_221029d18h48m22s687184usUT.gif
Wrote uvot_fluxes_221029d18h48m22s687184usUT.ps
Wrote uvot_fluxes_221029d18h48m22s687184usUT_vis.qdp
Wrote uvot_fluxes_221029d18h48m22s687184usUT_uv.qdp
Wrote uvot_fluxes_221029d18h48m22s687184usUT_vis.gif
Wrote uvot_fluxes_221029d18h48m22s687184usUT_vis.ps
Wrote uvot_fluxes_221029d18h48m22s687184usUT_uv.gif
Wrote uvot_fluxes_221029d18h48m22s687184usUT_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     6.06    1229.2    507.9   -137.8    0.0000   0.3026 99.00 99.00    1229.2    0.0000   0.3026 99.00 99.00 20.32
The data range from T+1091.4 s (0.01 d) to T+1754.3 s (0.02 d)
Wrote uvot_fluxes_wtd_221029d18h48m22s687184usUT.qdp
Wrote uvot_fluxes_wtd_221029d18h48m22s687184usUT.gif
Wrote uvot_fluxes_wtd_221029d18h48m22s687184usUT.ps
Found 19 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem