# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210624d17h36m16s494086usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021452992 -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
# ========= unknown GRB ===================
Could not find/read custom source region custom_021452_src.reg
Used archived BAT position of 233.11700 -26.21300
Reference: GCN_FOM_Notice_Thu_24_Jun_21_01:05:43_UT
The position is (15:32:28.08, -26:12:46.8)
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(233.117,-26.213,3") # color=red dash=0
Source region spec. is: 233.117 -26.213 3"
Region file centered at (233.117,-26.213), which is (15:32:28.08, -26:12:46.8)
Could not find/read custom background region custom_021452_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 00021452
# ============ Reading file sw00021452992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.178 at 646189696
The processing date in extension 0 is: 2021-06-24T17:27:30
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.108 based on aperture of 3.00
Using background region based on sources found in extension 16:
# 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(233.117,-26.213,25")
fk5;-circle(233.117,-26.213,12.5")
fk5;-circle(233.114565,-26.214302,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 wh646189696I 646189696.1  0.95   32.3 1239.7 108   4288  5748  0.000 0.326 99.00 19.6  0.0000 0.3259 99.00 19.6    32  0.000 248088.525 99.00 0.000 
   2 wh646189731I 646189731.5  0.96  304.3 13093.1 104  40781  5764  0.000 0.104 99.00 20.8  0.0000 0.0993 99.00 20.9   337  0.000 75584.999 99.00 0.000 
   3 wh646193795I 646193795.9  0.96  167.1 7570.1 104  22711  5724  0.000 0.142 99.00 20.5  0.0000 0.0814 99.00 21.1   504  0.000 61941.517 99.00 0.000 
   4 wh646193968I 646193968.7  0.96  267.7 13244.9 112  36528  5752  0.000 0.117 99.00 20.7  0.0000 0.0668 99.00 21.3   771  0.000 50799.494 99.00 0.000 
   5 wh646205235I 646205236.0  0.96  170.1 7335.8 104  22855  5712  0.000 0.140 99.00 20.5  0.0000 0.0603 99.00 21.4   941  0.000 45869.401 99.00 0.000 
   6 wh646205412I 646205412.4  0.95  578.4 25940.9 116  77328  5776  0.000 0.080 99.00 21.1  0.0000 0.0482 99.00 21.6  1520  0.000 36611.706 99.00 0.000 
   7 wh646211230I 646211230.7  0.96  148.4 5119.5 112  19835  5724  0.000 0.155 99.00 20.4  0.0000 0.0460 99.00 21.7  1668  0.000 34975.253 99.00 0.000 
   8 wh646211384I 646211384.3  0.96  370.5 17377.7 108  49014  5740  0.000 0.096 99.00 20.9  0.0000 0.0415 99.00 21.8  2039  0.000 31528.208 99.00 0.000 
   9 wh646218041I 646218041.1  0.96   58.8 2550.9 112   7870  5748  0.000 0.246 99.00 19.9  0.0000 0.0409 99.00 21.8  2098  0.000 31091.982 99.00 0.000 
  10 wh646218103I 646218103.6  0.96  489.3 23472.7 112  65383  5756  0.000 0.085 99.00 21.0  0.0000 0.0369 99.00 21.9  2587  0.000 28046.173 99.00 0.000 
  11 wh646221975I 646221975.7  0.94  208.4 8972.2 112  37304  5764  0.000 0.154 99.00 20.4  0.0000 0.0360 99.00 22.0  2795  0.000 27273.391 99.00 0.000 
  12 wh646222191I 646222191.5  0.95  245.4 12974.3 112  33262  5756  0.000 0.122 99.00 20.6  0.0000 0.0345 99.00 22.0  3041  0.000 26160.635 99.00 0.000 
  13 wh646229547I 646229547.8  0.96   56.0 2170.0 112   7441  5760  0.000 0.251 99.00 19.8  0.0000 0.0342 99.00 22.0  3097  0.000 25919.593 99.00 0.000 
  14 wh646229607I 646229607.2  0.95  560.8 30458.3 116  75981  5784  0.000 0.082 99.00 21.1  0.0000 0.0315 99.00 22.1  3657  0.000 23919.221 99.00 0.000 
  15 wh646239152I 646239152.5  0.94  210.4 12128.1 116  39190  5744  0.000 0.222 99.00 20.0  0.0000 0.0321 99.00 22.1  3868  0.000 23877.826 99.00 0.000 
  16 wh646239369I 646239369.5  0.95  581.9 36156.5 124  78800  5788  0.000 0.083 99.00 21.1  0.0000 0.0299 99.00 22.2  4450  0.000 22330.121 99.00 0.000 
    Sum (T+646189696 to 646239961):           12165.5      12165.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  22.16
  0  4450 646216640 646216639.9  23320.8 -26943.9    0.0000   0.0299 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-21780.139 snr:  0.0 mag: 99.00 UL:  7.50
Rebinned Data for sw00021452992uwh_sk.img using a zero point of 20.112:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.24e+03 646216611.0  23349.8 -26914.9    0.0000   0.0299 99.00 99.00 646216611.0    0.0000   0.0299 99.00 99.00 22.65
The data range from T+646189696.1 s (7479.05 d) to T+646239960.7 s (7479.63 d)
Wrote uvot_fluxes_210624d17h36m16s494086usUT.qdp
Wrote uvot_fluxes_210624d17h36m16s494086usUT.gif
Wrote uvot_fluxes_210624d17h36m16s494086usUT.ps
Wrote uvot_fluxes_210624d17h36m16s494086usUT_vis.qdp
Wrote uvot_fluxes_210624d17h36m16s494086usUT_uv.qdp
Wrote uvot_fluxes_210624d17h36m16s494086usUT_vis.gif
Wrote uvot_fluxes_210624d17h36m16s494086usUT_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 1.73e-09 646215215.8  24745.0 -25519.7    0.0000   0.0343 99.00 99.00 646215215.8    0.0000   0.0343 99.00 99.00 22.68
The data range from T+646189696.1 s (7479.05 d) to T+646239960.7 s (7479.63 d)
Wrote uvot_fluxes_wtd_210624d17h36m16s494086usUT.qdp
Wrote uvot_fluxes_wtd_210624d17h36m16s494086usUT.gif
Wrote uvot_fluxes_wtd_210624d17h36m16s494086usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem