# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210419d12h21m29s710342usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021427002 -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
# ========= GRB210406A ===================
Could not find/read custom source region custom_021427_src.reg
Used archived opt source position of 132.45454 76.55561 3.00
Reference: GCN_Circ-29775
The position is (08:49:49.09, +76:33:20.2)
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(132.45454,76.55561,3") # color=red dash=0
Source region spec. is: 132.45454 76.55561 3"
Region file centered at (132.45454,76.55561), which is (08:49:49.09, +76:33:20.2)
Could not find/read custom background region custom_021427_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 -26.77956 from uncorrected trigger time of 639421882 in BAT summary file
# ============ Reading file sw00021427002uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.341 at 639639332
The processing date in extension 0 is: 2021-04-19T12:10:03
The trigger time is: 639421908.77956. The reference is BAT GRB summary file
Using zero point of 17.039 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(132.45454,76.55561,25")
fk5;-circle(132.45454,76.55561,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 w2639639331I  217422.9  1.00  382.8   18.6 108    446  5830  0.030 0.013 20.85 20.0  0.0299 0.0125 20.85 20.0   383 129.969 54.478 15.01 0.011 
   2 w2639643124I  221216.0  1.00  724.3   20.4 116    784  5873  0.007 0.007 22.35 20.9  0.0152 0.0063 21.58 20.7  1107 67.225 27.681 15.72 0.011 
   3 w2639654613I  232704.7  1.00  400.8   16.3 112    463  5850  0.021 0.011 21.25 20.2  0.0167 0.0055 21.48 20.7  1508 74.082 24.489 15.62 0.010 
   4 w2639666043I  244134.5  1.00  290.7   14.0 116    335  5874  0.028 0.014 20.91 19.9  0.0186 0.0052 21.37 20.7  1799 82.608 23.184 15.50 0.010 
    Sum (T+217423 to 244430):              69.3         39.2 (est. in src region)   SNR_unwtd_sum:   3.60 0.9987 signif. UL:  20.71
  0  1799 639648841  226932.0  17497.9  -9509.1    0.0186   0.0052 21.368  0.353  -0.267
Total wtd_rate (for all exposures so far): 82.608 +/-23.057 snr:  3.6 mag: 15.50 UL: 11.58
Rebinned Data for sw00021427002uw2_sk.img using a zero point of 17.039:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.8e+03  226931.3  17498.6  -9508.4    0.0186   0.0052 21.37  0.27  226931.3    0.0186   0.0052 21.37  0.27 20.71
The data range from T+217422.9 s (2.52 d) to T+244429.9 s (2.83 d)
Wrote uvot_fluxes_210419d12h21m29s710342usUT.qdp
Wrote uvot_fluxes_210419d12h21m29s710342usUT.gif
Wrote uvot_fluxes_210419d12h21m29s710342usUT.ps
Wrote uvot_fluxes_210419d12h21m29s710342usUT_vis.qdp
Wrote uvot_fluxes_210419d12h21m29s710342usUT_uv.qdp
Wrote uvot_fluxes_210419d12h21m29s710342usUT_uv.gif
Wrote uvot_fluxes_210419d12h21m29s710342usUT_uv.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem