# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210913d07h40m12s346474usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021462001 -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
# ========= unknown GRB ===================
Could not find/read custom source region custom_021462_src.reg
Used archived opt source position of 250.21367 17.52988 3.00
Reference: AT2021xth
The position is (16:40:51.28, +17:31:47.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(250.213667,+17.529878,3") # color=red dash=0
Source region spec. is: 250.213667 +17.529878 3"
Region file centered at (250.213667,+17.529878), which is (16:40:51.28, +17:31:47.6)
Could not find/read custom background region custom_021462_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 -27.65168 from uncorrected trigger time of 652160863.3 in BAT summary file
# ============ Reading file sw00021462001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.196 at 652392846
The processing date in extension 0 is: 2021-09-13T07:21:06
The trigger time is: 652160890.95168. The reference is BAT GRB summary file
Using zero point of 18.144 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(250.213667,+17.529878,25")
fk5;-circle(250.213667,+17.529878,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 uu652392845I  231954.6  0.99 1530.6  987.3 116  30566  5882  0.279 0.023 19.53 19.3  0.2786 0.0229 19.53 19.3  1531 467.906 38.463 13.62 0.001 
   2 uu652398518I  237627.6  0.98  435.3  437.6 108  19059  5825  0.216 0.054 19.81 19.2  0.2648 0.0215 19.59 19.4  1966 456.751 35.672 13.64 0.001 
   3 uu652404231I  243340.5  0.99 1708.0 1063.2 112  37386  5854  0.226 0.021 19.76 19.5  0.2468 0.0152 19.66 19.5  3674 430.007 25.883 13.71 0.001 
    Sum (T+231955 to 245076):            2488.2       1671.5 (est. in src region)   SNR_unwtd_sum:  16.27 0.9987 signif. UL:  19.48
  0  3674 652399565  238673.6   6402.2  -6719.0    0.2468   0.0152 19.663  0.069  -0.064
Total wtd_rate (for all exposures so far): 430.007 +/-25.722 snr: 16.7 mag: 13.71 UL: 11.38
Rebinned Data for sw00021462001uuu_sk.img using a zero point of 18.144:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.64e+03  238672.9   6402.9  -6718.3    0.2468   0.0152 19.66  0.06  238672.9    0.2468   0.0152 19.66  0.06 19.48
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00021462001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.343 at 652410008
The processing date in extension 0 is:  2021-09-13T07:21:06
The trigger time is: 652160890.95168. The reference is BAT GRB summary file
Using zero point of 17.037 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(250.213667,+17.529878,25")
fk5;-circle(250.213667,+17.529878,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 w2652410007I  249116.8  1.00  583.6   66.4 116   1094  5875  0.085 0.016 19.71 19.2  0.0851 0.0155 19.71 19.2   584 424.973 77.531 13.72 0.005 
   2 w2652417493I  256602.8  1.00  636.8   51.4 112    793  5823  0.063 0.013 20.04 19.5  0.0736 0.0099 19.87 19.5  1220 362.964 49.582 13.89 0.007 
    Sum (T+249117 to 257250):             117.9         36.9 (est. in src region)   SNR_unwtd_sum:   7.44 0.9987 signif. UL:  19.50
  0  1220 652414224  253333.5   3916.4  -4216.7    0.0736   0.0099 19.870  0.156  -0.137
Total wtd_rate (for all exposures so far): 407.418 +/-24.457 snr: 16.7 mag: 13.77 UL: 10.33
Rebinned Data for sw00021462001uw2_sk.img using a zero point of 17.037:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.22e+03  253333.9   3916.0  -4217.1    0.0736   0.0099 19.87  0.14  253333.9    0.0736   0.0099 19.87  0.14 19.50
The data range from T+231954.6 s (2.68 d) to T+257249.9 s (2.98 d)
Wrote uvot_fluxes_210913d07h40m12s346474usUT.qdp
Wrote uvot_fluxes_210913d07h40m12s346474usUT.gif
Wrote uvot_fluxes_210913d07h40m12s346474usUT.ps
Wrote uvot_fluxes_210913d07h40m12s346474usUT_vis.qdp
Wrote uvot_fluxes_210913d07h40m12s346474usUT_uv.qdp
Wrote uvot_fluxes_210913d07h40m12s346474usUT_vis.gif
Wrote uvot_fluxes_210913d07h40m12s346474usUT_vis.ps
Wrote uvot_fluxes_210913d07h40m12s346474usUT_uv.gif
Wrote uvot_fluxes_210913d07h40m12s346474usUT_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 0.000208  238546.9   6529.0  -6592.2    1.7922   0.1082 19.66  0.06  238546.9    1.7922   0.1082 19.66  0.06 19.48
The data range from T+231954.6 s (2.68 d) to T+257249.9 s (2.98 d)
Wrote uvot_fluxes_wtd_210913d07h40m12s346474usUT.qdp
Wrote uvot_fluxes_wtd_210913d07h40m12s346474usUT.gif
Wrote uvot_fluxes_wtd_210913d07h40m12s346474usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem