# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210627d19h22m26s980422usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021453002 -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_021453_src.reg
Used archived XRT position of 221.52429 -1.15625 4.00
Reference: GCN_Circulars-30329-Sat,_26_Jun_2021_20:08:32_-0400
The position is (14:46:05.83, -01:09:22.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(221.52429,-1.15625,4") # color=red dash=0
Source region spec. is: 221.52429 -1.15625 4"
Region file centered at (221.52429,-1.15625), which is (14:46:05.83, -01:09:22.5)
Could not find/read custom background region custom_021453_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.
Failed to find trigger time in BAT summary file for trigger 00021453
# ============ Reading file sw00021453002uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.178 at 646497280
The processing date in extension 0 is: 2021-06-27T19:15:40
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 20.112 for filter WHITE
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(221.52429,-1.15625,25")
fk5;-circle(221.52429,-1.15625,12.5")
fk5;-circle(221.520218,-1.163345,6")
fk5;-circle(221.518195,-1.160953,6")
fk5;-circle(221.528763,-1.152251,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 wh646497280I 646497280.1  0.96  194.6  844.4 208  21206  5409  0.160 0.164 22.10 20.6  0.1604 0.1639 22.10 20.6   195 122144.616 124808.113  7.57 0.000 
   2 wh646497480I 646497480.7  0.97 1063.1 3450.9 200  91816  5393  0.046 0.060 23.45 21.7  0.0638 0.0568 23.10 21.7  1258 45730.422 42992.395  8.64 0.000 
    Sum (T+646497280 to 646498561):            4295.3       4220.3 (est. in src region)   SNR_unwtd_sum:   1.12 0.9987 signif. UL:  21.67
  0  1258 646497921 646497921.5    639.4   -641.4    0.0638   0.0568 23.100  2.400  -0.691
Total wtd_rate (for all exposures so far): 45730.422 +/-42225.440 snr:  1.1 mag:  8.64 UL:  7.01
Rebinned Data for sw00021453002uwh_sk.img using a zero point of 20.112:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.22e+03 646497922.2    638.7   -642.1    0.0638   0.0568 23.10  0.69 646497922.2    0.0638   0.0568 23.10  0.69 21.67
The data range from T+646497280.1 s (7482.61 d) to T+646498560.8 s (7482.62 d)
Wrote uvot_fluxes_210627d19h22m26s980422usUT.qdp
Wrote uvot_fluxes_210627d19h22m26s980422usUT.gif
Wrote uvot_fluxes_210627d19h22m26s980422usUT.ps
Wrote uvot_fluxes_210627d19h22m26s980422usUT_vis.qdp
Wrote uvot_fluxes_210627d19h22m26s980422usUT_uv.qdp
Wrote uvot_fluxes_210627d19h22m26s980422usUT_vis.gif
Wrote uvot_fluxes_210627d19h22m26s980422usUT_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 4.59e-10 646497944.6    616.2   -664.6    0.0704   0.0665 23.17  0.72 646497944.6    0.0704   0.0665 23.17  0.72 21.70
The data range from T+646497280.1 s (7482.61 d) to T+646498560.8 s (7482.62 d)
Wrote uvot_fluxes_wtd_210627d19h22m26s980422usUT.qdp
Wrote uvot_fluxes_wtd_210627d19h22m26s980422usUT.gif
Wrote uvot_fluxes_wtd_210627d19h22m26s980422usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem