# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 211108d07h31m01s572673usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021466002 -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_021466_src.reg
Used archived BAT position of 343.64300 -53.23600
Reference: GCN_FOM_Notice_Sat_06_Nov_21_15:31:27_UT
The position is (22:54:34.32, -53:14:09.6)
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(343.643,-53.236,3") # color=red dash=0
Source region spec. is: 343.643 -53.236 3"
Region file centered at (343.643,-53.236), which is (22:54:34.32, -53:14:09.6)
Could not find/read custom background region custom_021466_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 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Failed to find trigger time in BAT summary file for trigger 00021466
# ============ Reading file sw00021466002uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.176 at 657991311
The processing date in extension 0 is: 2021-11-08T07:18:04
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 20.114 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 8:
# 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(343.643,-53.236,25")
fk5;-circle(343.643,-53.236,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 wh657991311I 657991311.1  0.97  168.1  329.0 104  17085  5860  0.000 0.120 99.00 20.7  0.0000 0.1197 99.00 20.7   168  0.000 92648.569 99.00 0.000 
   2 wh657991484I 657991484.9  0.98  429.1  627.6 116  32157  5852  0.000 0.067 99.00 21.3  0.0000 0.0590 99.00 21.4   597  0.000 45483.519 99.00 0.000 
   3 wh658019397I 658019397.4  0.92  191.7  959.1 116  48156  5860  0.000 0.197 99.00 20.1  0.0000 0.0643 99.00 21.3   789  0.000 43577.382 99.00 0.000 
   4 wh658019618I 658019618.2  0.96  407.3 1021.2 112  54476  5832  0.000 0.093 99.00 20.9  0.0000 0.0529 99.00 21.5  1196  0.000 37261.363 99.00 0.000 
   5 wh658025232I 658025232.6  0.93  205.5  903.0 116  44948  5844  0.000 0.175 99.00 20.2  0.0000 0.0518 99.00 21.6  1402  0.000 35927.793 99.00 0.000 
   6 wh658025444I 658025444.5  0.97  724.6 1252.9 104  70754  5824  0.000 0.057 99.00 21.5  0.0000 0.0391 99.00 21.9  2126  0.000 27774.948 99.00 0.000 
   7 wh658030950I 658030950.8  0.92  199.6  894.1 112  46498  5832  0.000 0.181 99.00 20.2  0.0000 0.0389 99.00 21.9  2326  0.000 27245.576 99.00 0.000 
   8 wh658031163I 658031163.6  0.97 1110.1 1962.3 116 100356  5832  0.000 0.046 99.00 21.7  0.0000 0.0303 99.00 22.1  3436  0.000 21703.271 99.00 0.000 
   9 wh658036659I 658036659.1  0.93  203.9  930.0 116  46031  5880  0.000 0.178 99.00 20.2  0.0000 0.0302 99.00 22.1  3640  0.000 21439.778 99.00 0.000 
  10 wh658036873I 658036873.8  0.97  850.4 1681.9 116  84680  5824  0.000 0.056 99.00 21.5  0.0000 0.0267 99.00 22.3  4490  0.000 19205.929 99.00 0.000 
    Sum (T+657991311 to 658037836):           10579.5      10579.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  22.28
  0  4490 658024827 658024827.1  13008.5 -33516.0    0.0000   0.0267 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-19022.890 snr:  0.0 mag: 99.00 UL:  7.65
Rebinned Data for sw00021466002uwh_sk.img using a zero point of 20.114:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.31e+03 658024787.4  13048.3 -33476.2    0.0000   0.0267 99.00 99.00 658024787.4    0.0000   0.0267 99.00 99.00 22.78
The data range from T+657991311.1 s (7615.64 d) to T+658037835.6 s (7616.18 d)
Wrote uvot_fluxes_211108d07h31m01s572673usUT.qdp
Wrote uvot_fluxes_211108d07h31m01s572673usUT.gif
Wrote uvot_fluxes_211108d07h31m01s572673usUT.ps
Wrote uvot_fluxes_211108d07h31m01s572673usUT_vis.qdp
Wrote uvot_fluxes_211108d07h31m01s572673usUT_uv.qdp
Wrote uvot_fluxes_211108d07h31m01s572673usUT_vis.gif
Wrote uvot_fluxes_211108d07h31m01s572673usUT_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 2.31e-09 658023481.8  14353.8 -32170.7    0.0000   0.0292 99.00 99.00 658023481.8    0.0000   0.0292 99.00 99.00 22.86
The data range from T+657991311.1 s (7615.64 d) to T+658037835.6 s (7616.18 d)
Wrote uvot_fluxes_wtd_211108d07h31m01s572673usUT.qdp
Wrote uvot_fluxes_wtd_211108d07h31m01s572673usUT.gif
Wrote uvot_fluxes_wtd_211108d07h31m01s572673usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem