# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 211030d05h40m43s856859usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021465002 -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
# ========= GRB211024A ===================
Could not find/read custom source region custom_021465_src.reg
Used archived BAT position of 28.05300 -6.97300
Reference: GCN_Circ-31006
The position is (01:52:12.72, -06:58:22.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(28.053,-6.973,3") # color=red dash=0
Source region spec. is: 28.053 -6.973 3"
Region file centered at (28.053,-6.973), which is (01:52:12.72, -06:58:22.8)
Could not find/read custom background region custom_021465_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 14400.0,
3 sigma should become about 5.3 sigma and 2 sigma should become about 4.8 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999991.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -27.96072 from uncorrected trigger time of 656732051.4 in BAT summary file
# ============ Reading file sw00021465001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.198 at 657046200
The processing date in extension 0 is: 2021-10-28T08:55:33
The trigger time is: 656732079.36072. The reference is BAT GRB summary file
Using zero point of 18.142 for filter U
Use aperture correction of 1.100 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(28.053,-6.973,25")
fk5;-circle(28.053,-6.973,12.5")
fk5;-circle(28.053726,-6.970531,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 uu657046200I  314120.6  0.99  236.9   63.5 104   3630  5708  0.000 0.038 99.00 19.9  0.0000 0.0383 99.00 19.9   237  0.000 86.965 99.00 0.002 
   2 uu657053056I  320977.5  1.00  574.7  170.1 116   8302  5764  0.000 0.025 99.00 20.3  0.0000 0.0210 99.00 20.5   812  0.000 48.424 99.00 0.002 
   3 uu657056903I  324823.9  1.00  627.4  169.8 104   9389  5768  0.000 0.023 99.00 20.4  0.0000 0.0155 99.00 20.8  1439  0.000 36.155 99.00 0.002 
   4 uu657064159I  332079.7  1.00  266.4   91.3 116   3948  5772  0.000 0.037 99.00 19.9  0.0000 0.0144 99.00 20.9  1705  0.000 33.530 99.00 0.002 
    Sum (T+314121 to 332350):             481.8        481.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999909722222 signif. UL:  20.93
  0  1705 657055507  323427.8   8922.7  -9307.1    0.0000   0.0144 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-33.215 snr:  0.0 mag: 99.00 UL: 12.52
# ============ Reading file sw00021465002uuu_sk.img ================
Use keyword TRIGTIME of 656732079.493 for trigger time.
Long-term sensitivity correction to zero point is -0.198 at 657207094
The processing date in extension 0 is:  2021-10-30T05:28:18
The trigger time is: 656732079.493. The reference is keyword in image file
Using zero point of 18.142 for filter U
Use aperture correction of  1.100 based on aperture of  3.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(28.053,-6.973,25")
fk5;-circle(28.053,-6.973,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 uu657207094I  475014.9  1.00 1089.1  335.7 128  15253  5896  0.000 0.019 99.00 20.6  0.0000 0.0187 99.00 20.6  1089  0.000 64.147 99.00 0.001 
   2 uu657212514I  480435.0  1.00 1187.3  360.4 128  17486  5896  0.000 0.018 99.00 20.7  0.0000 0.0131 99.00 21.0  2276  0.000 45.215 99.00 0.001 
   3 uu657218903I  486823.9  1.00  568.5  150.7 108   8446  5828  0.000 0.025 99.00 20.3  0.0000 0.0116 99.00 21.2  2845  0.000 40.063 99.00 0.001 
   4 uu657223955I  491876.1  1.00 1206.0  314.7 108  17230  5800  0.000 0.017 99.00 20.8  0.0000 0.0095 99.00 21.4  4051  0.000 33.137 99.00 0.001 
   5 uu657230134I  498054.8  1.00  794.0  238.5 112  11606  5864  0.000 0.021 99.00 20.5  0.0000 0.0086 99.00 21.5  4845  0.000 30.336 99.00 0.001 
    Sum (T+475015 to 498862):            1409.8       1409.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999909722222 signif. UL:  21.48
  0  4845 657218306  486226.4  12635.2 -11211.5    0.0000   0.0086 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-22.278 snr:  0.0 mag: 99.00 UL: 12.95
Rebinned Data for sw00021465002uuu_sk.img using a zero point of 18.142:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 6.52e+03  443845.3  55016.2 -129724.7    0.0000   0.0074 99.00 99.00  443845.3    0.0000   0.0074 99.00 99.00 22.20
The data range from T+314120.6 s (3.64 d) to T+498861.5 s (5.77 d)
Wrote uvot_fluxes_211030d05h40m43s856859usUT.qdp
Wrote uvot_fluxes_211030d05h40m43s856859usUT.gif
Wrote uvot_fluxes_211030d05h40m43s856859usUT.ps
Wrote uvot_fluxes_211030d05h40m43s856859usUT_vis.qdp
Wrote uvot_fluxes_211030d05h40m43s856859usUT_uv.qdp
Wrote uvot_fluxes_211030d05h40m43s856859usUT_vis.gif
Wrote uvot_fluxes_211030d05h40m43s856859usUT_vis.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.000273  412961.3  85900.2 -98840.7    0.0000   0.0545 99.00 99.00  412961.3    0.0000   0.0545 99.00 99.00 22.18
The data range from T+314120.6 s (3.64 d) to T+498861.5 s (5.77 d)
Wrote uvot_fluxes_wtd_211030d05h40m43s856859usUT.qdp
Wrote uvot_fluxes_wtd_211030d05h40m43s856859usUT.gif
Wrote uvot_fluxes_wtd_211030d05h40m43s856859usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem