# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220628d20h04m29s535981usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021506992 -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
# ========= GRB220627A ===================
Could not find/read custom source region custom_021506_src.reg
Used archived BAT position of 201.20000 -32.50000
Reference: GCN_Circ-32283
The position is (13:24:48.00, -32:30:00.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(201.200,-32.500,3") # color=red dash=0
Source region spec. is: 201.200 -32.500 3"
Region file centered at (201.200,-32.500), which is (13:24:48.00, -32:30:00.0)
Could not find/read custom background region custom_021506_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 57600.0,
3 sigma should become about 5.6 sigma and 2 sigma should become about 5.1 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999998.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -29.36938 from uncorrected trigger time of 678057660.09 in BAT summary file
# ============ Reading file sw00021506992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.218 at 678102810
The processing date in extension 0 is: 2022-06-28T19:58:58
The trigger time is: 678057689.45938. The reference is BAT GRB summary file
Using zero point of 17.672 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.200,-32.500,25")
fk5;-circle(201.200,-32.500,12.5")
fk5;-circle(201.198888,-32.504795,6")
fk5;-circle(201.201840,-32.504935,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 vv678102809I   45120.4  0.99  821.6  288.7 108  14713  4984  0.000 0.024 99.00 19.9  0.0000 0.0240 99.00 19.9   822  0.000 12.208 99.00 0.005 
   2 vv678103649I   45959.7  0.99   29.2   11.0 120    548  5060  0.000 0.137 99.00 18.0  0.0000 0.0237 99.00 19.9   851  0.000 12.027 99.00 0.005 
   3 vv678108553I   50863.9  0.99  813.7  307.9 112  14598  5028  0.000 0.025 99.00 19.8  0.0000 0.0170 99.00 20.2  1665  0.000  9.130 99.00 0.005 
   4 vv678109384I   51695.2  0.99   66.0   28.5 116   1194  5048  0.000 0.088 99.00 18.4  0.0000 0.0167 99.00 20.2  1731  0.000  8.985 99.00 0.005 
   5 vv678114605I   56916.5  0.99  659.2  249.4 116  11270  5012  0.000 0.027 99.00 19.7  0.0000 0.0142 99.00 20.4  2390  0.000  7.975 99.00 0.004 
   6 vv678115280I   57591.4  0.99  153.3   64.8 116   2637  5028  0.000 0.056 99.00 18.9  0.0000 0.0138 99.00 20.5  2543  0.000  7.788 99.00 0.004 
    Sum (T+ 45120 to  57747):            1006.1       1006.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  20.45
  0  2543 678108997   51307.8   6439.5  -6187.4    0.0000   0.0138 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 7.703 snr:  0.0 mag: 99.00 UL: 13.59
Rebinned Data for sw00021506992uvv_sk.img using a zero point of 17.672:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.53e+03   51308.1   6439.1  -6187.7    0.0000   0.0138 99.00 99.00   51308.1    0.0000   0.0138 99.00 99.00 21.05
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021506992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.206 at 678101966
The processing date in extension 0 is:  2022-06-28T19:58:57
The trigger time is: 678057689.45938. The reference is BAT GRB summary file
Using zero point of 18.134 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(201.200,-32.500,25")
fk5;-circle(201.200,-32.500,12.5")
fk5;-circle(201.198889,-32.504804,6")
fk5;-circle(201.201773,-32.504929,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 uu678101966I   44276.8  0.99  821.6  467.4 104  24130  4996  0.000 0.031 99.00 20.0  0.0000 0.0306 99.00 20.0   822  0.000  9.980 99.00 0.005 
   2 uu678107717I   50028.2  0.99  813.7  498.6 116  23252  5088  0.000 0.032 99.00 20.0  0.0000 0.0221 99.00 20.4  1635  0.000  7.590 99.00 0.005 
   3 uu678113927I   56238.0  0.99  659.2  215.2 120   9303  5072  0.000 0.025 99.00 20.3  0.0000 0.0173 99.00 20.7  2295  0.000  6.127 99.00 0.005 
    Sum (T+ 44277 to  56908):            1252.5       1252.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  20.67
  0  2295 678107835   50145.1   6762.7  -5868.3    0.0000   0.0173 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 4.782 snr:  0.0 mag: 99.00 UL: 14.57
Rebinned Data for sw00021506992uuu_sk.img using a zero point of 18.134:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.27e+03   50155.5   6752.3  -5878.7    0.0000   0.0173 99.00 99.00   50155.5    0.0000   0.0173 99.00 99.00 21.27
The data range from T+44276.8 s (0.51 d) to T+57747.2 s (0.67 d)
Wrote uvot_fluxes_220628d20h04m29s535981usUT.qdp
Wrote uvot_fluxes_220628d20h04m29s535981usUT.gif
Wrote uvot_fluxes_220628d20h04m29s535981usUT.ps
Wrote uvot_fluxes_220628d20h04m29s535981usUT_vis.qdp
Wrote uvot_fluxes_220628d20h04m29s535981usUT_uv.qdp
Wrote uvot_fluxes_220628d20h04m29s535981usUT_vis.gif
Wrote uvot_fluxes_220628d20h04m29s535981usUT_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.00513   50406.2   7341.0  -6129.5    0.0000   0.0973 99.00 99.00   50406.2    0.0000   0.0973 99.00 99.00 21.55
The data range from T+44276.8 s (0.51 d) to T+57747.2 s (0.67 d)
Wrote uvot_fluxes_wtd_220628d20h04m29s535981usUT.qdp
Wrote uvot_fluxes_wtd_220628d20h04m29s535981usUT.gif
Wrote uvot_fluxes_wtd_220628d20h04m29s535981usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem