# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220515d07h27m17s801454usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021498002 -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_021498_src.reg
Used archived BAT position of 287.44600 17.73900
Reference: GCN_FOM_Notice_Wed_11_May_22_23:28:28_UT
The position is (19:09:47.04, +17:44:20.4)
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(287.446,+17.739,3") # color=red dash=0
Source region spec. is: 287.446 +17.739 3"
Region file centered at (287.446,+17.739), which is (19:09:47.04, +17:44:20.4)
Could not find/read custom background region custom_021498_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 00021498
# ============ Reading file sw00021498001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 674006864
The processing date in extension 0 is: 2022-05-12T09:52:24
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 20.115 for filter WHITE
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(287.446,+17.739,25")
fk5;-circle(287.446,+17.739,12.5")
fk5;-circle(287.437603,17.739592,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 wh674006863I 674006863.8  0.96  201.5  436.9 112  21875  5808  0.000 0.118 99.00 20.7  0.0000 0.1182 99.00 20.7   202  0.000 93647.736 99.00 0.000 
   2 wh674007071I 674007071.6  0.96 1808.6 4536.0 112 219404  5768  0.000 0.042 99.00 21.8  0.0000 0.0396 99.00 21.9  2010  0.000 31364.674 99.00 0.000 
   3 wh674009127I 674009127.4  0.89   68.5  448.6 112  21773  5808  0.000 0.374 99.00 19.4  0.0000 0.0401 99.00 21.8  2079  0.000 31190.331 99.00 0.000 
above line uses coinc_corr_src:  0.894 corr_bkg:  0.894
   4 wh674012623I 674012624.0  0.96  198.6  403.5 108  21183  5792  0.000 0.116 99.00 20.7  0.0000 0.0380 99.00 21.9  2277  0.000 29535.348 99.00 0.000 
   5 wh674012828I 674012828.7  0.96 1783.5 4174.7 108 217547  5752  0.000 0.042 99.00 21.8  0.0000 0.0281 99.00 22.2  4061  0.000 22024.008 99.00 0.000 
High bkg:   6 wh674014858I   68.0  24184  5796 61.346  0.394
   6 wh674014858I 674014858.3  0.88   68.0  502.9 116  24184  5796  0.000 0.410 99.00 19.3  0.0000 0.0284 99.00 22.2  4129  0.000 21973.477 99.00 0.000 
above line uses coinc_corr_src:  0.883 corr_bkg:  0.883
   7 wh674018238I 674018238.9  0.96  177.5  341.5 112  18893  5772  0.000 0.125 99.00 20.6  0.0000 0.0277 99.00 22.2  4306  0.000 21451.821 99.00 0.000 
    Sum (T+674006864 to 674018419):           10432.2      10432.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  22.24
  0  4306 674011183 674011183.0   7236.3  -4319.2    0.0000   0.0277 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-21249.849 snr:  0.0 mag: 99.00 UL:  7.53
# ============ Reading file sw00021498002uwh_sk.img ================
Use keyword TRIGTIME of 673969706.143 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 674122564
The processing date in extension 0 is:  2022-05-15T07:13:23
The trigger time is: 673969706.143. The reference is keyword in image file
Using zero point of 20.115 for filter WHITE
Use aperture correction of  1.108 based on aperture of  3.00
Using background region based on sources found in extension 13:
# 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(287.446,+17.739,25")
fk5;-circle(287.446,+17.739,12.5")
fk5;-circle(287.437560,17.739493,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 wh674122564I  152858.2  0.96   38.2   73.6 112   4075  5796  0.000 0.270 99.00 19.8  0.0000 0.2696 99.00 19.8    38  0.000 48.427 99.00 0.003 
   2 wh674122605I  152899.6  0.96  369.3  839.0 116  39623  5824  0.000 0.088 99.00 21.0  0.0000 0.0839 99.00 21.0   407  0.000 15.086 99.00 0.003 
   3 wh674134311I  164605.4  0.96   73.6  153.5 108   7914  5780  0.000 0.191 99.00 20.1  0.0000 0.0768 99.00 21.1   481  0.000 13.972 99.00 0.003 
   4 wh674134389I  164682.9  0.95  627.0 1750.0 108  91041  5780  0.000 0.077 99.00 21.1  0.0000 0.0549 99.00 21.5  1108  0.000 10.215 99.00 0.002 
   5 wh674135142I  165436.8  0.91   35.7  171.7 104  10175  5820  0.000 0.465 99.00 19.2  0.0000 0.0550 99.00 21.5  1144  0.000 10.150 99.00 0.002 
   6 wh674139784I  170078.3  0.96   38.2   80.6 112   4176  5780  0.000 0.274 99.00 19.8  0.0000 0.0540 99.00 21.5  1182  0.000  9.980 99.00 0.002 
   7 wh674139826I  170120.6  0.97  386.6  822.3 112  40910  5784  0.000 0.084 99.00 21.0  0.0000 0.0457 99.00 21.7  1568  0.000  8.591 99.00 0.002 
   8 wh674140222I  170516.7  0.97   37.4   64.8 112   3989  5776  0.000 0.272 99.00 19.8  0.0000 0.0451 99.00 21.7  1606  0.000  8.486 99.00 0.002 
   9 wh674162193I  192487.8  0.96   74.6  153.5 112   8012  5820  0.000 0.193 99.00 20.1  0.0000 0.0439 99.00 21.7  1680  0.000  8.330 99.00 0.002 
  10 wh674162272I  192566.3  0.96  749.8 1646.3 112  79729  5804  0.000 0.061 99.00 21.4  0.0000 0.0357 99.00 22.0  2430  0.000  7.126 99.00 0.002 
  11 wh674163038I  193332.3  0.96   81.1  165.4 116   8838  5780  0.000 0.191 99.00 20.1  0.0000 0.0351 99.00 22.0  2511  0.000  7.031 99.00 0.002 
  12 wh674173284I  203578.2  0.97   82.5  182.4 108   8873  5784  0.000 0.181 99.00 20.2  0.0000 0.0344 99.00 22.0  2594  0.000  6.940 99.00 0.002 
  13 wh674173370I  203664.7  0.96  829.5 1811.6 116  88577  5780  0.000 0.059 99.00 21.4  0.0000 0.0297 99.00 22.2  3423  0.000  6.230 99.00 0.002 
  14 wh674174217I  204511.8  0.96   61.9  150.2 120   6694  5820  0.000 0.220 99.00 20.0  0.0000 0.0295 99.00 22.2  3485  0.000  6.187 99.00 0.002 
  15 wh674178920I  209214.3  0.96   27.3   58.7 112   2980  5828  0.000 0.322 99.00 19.6  0.0000 0.0293 99.00 22.2  3512  0.000  6.168 99.00 0.002 
  16 wh674178950I  209244.6  0.96  274.4  576.2 112  29165  5824  0.000 0.100 99.00 20.8  0.0000 0.0282 99.00 22.2  3787  0.000  5.984 99.00 0.002 
  17 wh674179232I  209526.8  0.96   27.4   37.1 112   2873  5800  0.000 0.316 99.00 19.6  0.0000 0.0281 99.00 22.2  3814  0.000  5.966 99.00 0.002 
  18 wh674242772I  273066.3  0.97   58.8  111.4 112   6101  5796  0.000 0.214 99.00 20.0  0.0000 0.0278 99.00 22.2  3873  0.000  5.943 99.00 0.002 
  19 wh674242834I  273128.7  0.97  592.3 1240.9 112  62461  5780  0.000 0.068 99.00 21.3  0.0000 0.0258 99.00 22.3  4465  0.000  5.735 99.00 0.002 
  20 wh674243440I  273734.3  0.96   20.2   40.2 116   2185  5824  0.000 0.379 99.00 19.4  0.0000 0.0257 99.00 22.3  4485  0.000  5.729 99.00 0.002 
  21 wh674253911I  284205.7  0.97   67.7  140.2 108   7247  5788  0.000 0.199 99.00 20.1  0.0000 0.0255 99.00 22.3  4553  0.000  5.708 99.00 0.002 
  22 wh674253984I  284278.3  0.96  680.9 1498.9 116  73909  5828  0.000 0.065 99.00 21.3  0.0000 0.0238 99.00 22.4  5234  0.000  5.523 99.00 0.002 
  23 wh674254680I  284974.1  0.96   59.8  113.8 116   6486  5812  0.000 0.221 99.00 20.0  0.0000 0.0236 99.00 22.4  5294  0.000  5.507 99.00 0.002 
    Sum (T+152858 to 285035):           11581.7      11581.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  22.41
  0  5294 674180997  211290.4  73744.4 -58432.3    0.0000   0.0236 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 5.455 snr:  0.0 mag: 99.00 UL: 16.51
Rebinned Data for sw00021498002uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  5.1e+03  211375.4  73659.4 -58517.3    0.0000   0.0236 99.00 99.00  211375.4    0.0000   0.0236 99.00 99.00 22.91
  1 4.13e+03 674011180.9   7238.3  -4317.1    0.0000   0.0277 99.00 99.00 301704239.8    0.0000   0.0180 99.00 99.00 23.21
The data range from T+152858.2 s (1.77 d) to T+674018419.3 s (7801.14 d)
Wrote uvot_fluxes_220515d07h27m17s801454usUT.qdp
Wrote uvot_fluxes_220515d07h27m17s801454usUT.gif
Wrote uvot_fluxes_220515d07h27m17s801454usUT.ps
Wrote uvot_fluxes_220515d07h27m17s801454usUT_vis.qdp
Wrote uvot_fluxes_220515d07h27m17s801454usUT_uv.qdp
Wrote uvot_fluxes_220515d07h27m17s801454usUT_vis.gif
Wrote uvot_fluxes_220515d07h27m17s801454usUT_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   0.0281  195976.3  89058.5 -43118.2    0.0000   0.0281 99.00 99.00  195976.3    0.0000   0.0281 99.00 99.00 22.90
  1 1.85e-09 674011224.1   7195.2  -4360.3    0.0000   0.0318 99.00 99.00  196020.8    0.0000   0.0281 99.00 99.00 22.90
The data range from T+152858.2 s (1.77 d) to T+674018419.3 s (7801.14 d)
Wrote uvot_fluxes_wtd_220515d07h27m17s801454usUT.qdp
Wrote uvot_fluxes_wtd_220515d07h27m17s801454usUT.gif
Wrote uvot_fluxes_wtd_220515d07h27m17s801454usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem