# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220224d02h03m58s648344usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01093860002 -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
# ========= GRB220218A ===================
Could not find/read custom source region custom_1093860_src.reg
Used archived BAT position of 133.83000 31.98400
Reference: GCN_Circ-31608
The position is (08:55:19.20, +31:59:02.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(133.830,+31.984,3") # color=red dash=0
Source region spec. is: 133.830 +31.984 3"
Region file centered at (133.830,+31.984), which is (08:55:19.20, +31:59:02.4)
Could not find/read custom background region custom_1093860_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.
Subtract UTCF of -28.64216 from uncorrected trigger time of 666916139.35 in BAT summary file
# ============ Reading file sw01093860002uwh_sk.img ================
Use keyword TRIGTIME of 666916168 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 667269989
The processing date in extension 0 is: 2022-02-24T01:48:47
The trigger time is: 666916168. 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 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(133.830,+31.984,25")
fk5;-circle(133.830,+31.984,12.5")
fk5;-circle(133.825942,31.980425,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 wh667269988I  353820.9  0.97   51.9   95.0 112   4881  5404  0.000 0.224 99.00 20.0  0.0000 0.2242 99.00 20.0    52  0.000 93.243 99.00 0.001 
   2 wh667270044I  353876.3  0.97  518.5  858.0 104  46578  5404  0.000 0.067 99.00 21.3  0.0000 0.0639 99.00 21.3   570  0.000 26.591 99.00 0.001 
   3 wh667270574I  354406.7  0.97   45.5   90.8 108   4039  5364  0.000 0.229 99.00 20.0  0.0000 0.0616 99.00 21.4   616  0.000 25.611 99.00 0.001 
   4 wh667281738I  365570.8  0.97   45.0   87.0 116   4105  5428  0.000 0.241 99.00 19.9  0.0000 0.0597 99.00 21.4   661  0.000 24.859 99.00 0.001 
   5 wh667281787I  365619.4  0.97  453.5  818.8 112  40386  5372  0.000 0.074 99.00 21.2  0.0000 0.0464 99.00 21.7  1114  0.000 19.580 99.00 0.001 
   6 wh667282251I  366083.7  0.97    9.2   14.7 112    815  5412  0.000 0.518 99.00 19.1  0.0000 0.0463 99.00 21.7  1124  0.000 19.505 99.00 0.001 
   7 wh667288629I  372461.3  0.97   48.0   91.1 108   4198  5372  0.000 0.221 99.00 20.0  0.0000 0.0453 99.00 21.7  1172  0.000 19.119 99.00 0.001 
   8 wh667288680I  372512.8  0.97  483.0  846.8 108  42661  5360  0.000 0.070 99.00 21.2  0.0000 0.0380 99.00 21.9  1655  0.000 16.228 99.00 0.001 
   9 wh667289175I  373007.1  0.97   45.1   84.5 116   4050  5436  0.000 0.238 99.00 19.9  0.0000 0.0376 99.00 21.9  1700  0.000 16.036 99.00 0.001 
  10 wh667315758I  399590.1  0.97   48.0   82.1 112   4471  5396  0.000 0.232 99.00 19.9  0.0000 0.0371 99.00 21.9  1748  0.000 15.865 99.00 0.001 
  11 wh667315809I  399641.6  0.97  463.8  791.2 104  41569  5376  0.000 0.071 99.00 21.2  0.0000 0.0328 99.00 22.1  2212  0.000 14.311 99.00 0.001 
  12 wh667334470I  418302.5  0.97   48.0   83.1 116   4283  5412  0.000 0.231 99.00 19.9  0.0000 0.0325 99.00 22.1  2260  0.000 14.199 99.00 0.001 
  13 wh667334521I  418354.0  0.97  483.0  871.5 112  42979  5380  0.000 0.072 99.00 21.2  0.0000 0.0296 99.00 22.2  2743  0.000 13.167 99.00 0.001 
  14 wh667335017I  418849.2  0.97   43.1   74.4 112   3840  5396  0.000 0.240 99.00 19.9  0.0000 0.0294 99.00 22.2  2786  0.000 13.086 99.00 0.001 
  15 wh667338657I  422489.2  0.97   30.3   65.5 116   2772  5444  0.000 0.294 99.00 19.7  0.0000 0.0292 99.00 22.2  2816  0.000 13.034 99.00 0.001 
  16 wh667338690I  422522.5  0.97  306.9  585.1 116  28038  5440  0.000 0.092 99.00 20.9  0.0000 0.0279 99.00 22.2  3123  0.000 12.536 99.00 0.001 
  17 wh667339005I  422837.5  0.97   15.2   27.0 116   1353  5388  0.000 0.412 99.00 19.3  0.0000 0.0278 99.00 22.2  3138  0.000 12.513 99.00 0.001 
  18 wh667345927I  429759.1  0.97   48.0   77.4 108   4301  5376  0.000 0.224 99.00 20.0  0.0000 0.0276 99.00 22.2  3186  0.000 12.437 99.00 0.001 
  19 wh667345978I  429810.6  0.97  483.0  891.2 112  42731  5384  0.000 0.071 99.00 21.2  0.0000 0.0257 99.00 22.3  3669  0.000 11.756 99.00 0.001 
  20 wh667346473I  430305.1  0.97   47.0   76.6 116   4254  5440  0.000 0.234 99.00 19.9  0.0000 0.0256 99.00 22.3  3716  0.000 11.699 99.00 0.001 
    Sum (T+353821 to 430353):            6771.1       6771.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  22.33
  0  3716 667309352  393184.1  37168.7 -39363.3    0.0000   0.0256 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-11.582 snr:  0.0 mag: 99.00 UL: 15.69
Rebinned Data for sw01093860002uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  3.6e+03  393178.4  37174.4 -39357.6    0.0000   0.0256 99.00 99.00  393178.4    0.0000   0.0256 99.00 99.00 22.83
The data range from T+353820.9 s (4.10 d) to T+430352.8 s (4.98 d)
Wrote uvot_fluxes_220224d02h03m58s648344usUT.qdp
Wrote uvot_fluxes_220224d02h03m58s648344usUT.gif
Wrote uvot_fluxes_220224d02h03m58s648344usUT.ps
Wrote uvot_fluxes_220224d02h03m58s648344usUT_vis.qdp
Wrote uvot_fluxes_220224d02h03m58s648344usUT_uv.qdp
Wrote uvot_fluxes_220224d02h03m58s648344usUT_vis.gif
Wrote uvot_fluxes_220224d02h03m58s648344usUT_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.00622  388466.3  41886.5 -34645.4    0.0000   0.0301 99.00 99.00  388466.3    0.0000   0.0301 99.00 99.00 22.82
The data range from T+353820.9 s (4.10 d) to T+430352.8 s (4.98 d)
Wrote uvot_fluxes_wtd_220224d02h03m58s648344usUT.qdp
Wrote uvot_fluxes_wtd_220224d02h03m58s648344usUT.gif
Wrote uvot_fluxes_wtd_220224d02h03m58s648344usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem