# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 211109d23h20m34s606718usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021467001 -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
# ========= GRB211107B ===================
Could not find/read custom source region custom_021467_src.reg
Used archived BAT position of 65.79500 -27.55200
Reference: GCN_Circ-31057
The position is (04:23:10.80, -27:33:07.2)
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(65.795,-27.552,3") # color=red dash=0
Source region spec. is: 65.795 -27.552 3"
Region file centered at (65.795,-27.552), which is (04:23:10.80, -27:33:07.2)
Could not find/read custom background region custom_021467_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 1600.0,
3 sigma should become about 4.9 sigma and 2 sigma should become about 4.3 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999919.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -28.02756 from uncorrected trigger time of 657998830 in BAT summary file
# ============ Reading file sw00021467001uwh_sk.img ================
Use keyword TRIGTIME of 657998858.052 for trigger time.
Long-term sensitivity correction to zero point is -0.176 at 658119578
The processing date in extension 0 is: 2021-11-09T23:09:39
The trigger time is: 657998858.052. The reference is keyword in image file
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 9:
# 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(65.795,-27.552,25")
fk5;-circle(65.795,-27.552,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 wh658119578I  120720.2  0.98   86.4   97.5 108   5538  5820  0.000 0.134 99.00 20.6  0.0000 0.1340 99.00 20.6    86  0.000 19.026 99.00 0.006 
   2 wh658119669I  120811.0  0.98  464.4  625.9 124  30114  5880  0.000 0.062 99.00 21.4  0.0000 0.0564 99.00 21.5   551  0.000  8.010 99.00 0.005 
   3 wh658125163I  126305.7  0.98   99.2   97.9 116   6261  5860  0.000 0.128 99.00 20.6  0.0000 0.0516 99.00 21.6   650  0.000  7.384 99.00 0.005 
   4 wh658125267I  126409.3  0.98  993.8 1288.9 116  64553  5844  0.000 0.041 99.00 21.8  0.0000 0.0322 99.00 22.1  1644  0.000  4.723 99.00 0.005 
   5 wh658126281I  127423.8  0.98   66.8  108.5 112   4546  5868  0.000 0.159 99.00 20.4  0.0000 0.0316 99.00 22.1  1711  0.000  4.633 99.00 0.005 
   6 wh658130860I  132002.3  0.98  102.1  114.7 112   6617  5840  0.000 0.126 99.00 20.6  0.0000 0.0306 99.00 22.2  1813  0.000  4.508 99.00 0.005 
   7 wh658130966I  132108.8  0.98  446.8  556.3 108  28939  5808  0.000 0.059 99.00 21.4  0.0000 0.0272 99.00 22.3  2260  0.000  4.050 99.00 0.005 
   8 wh658136619I  137761.5  0.98  100.2  126.4 116   6582  5872  0.000 0.130 99.00 20.6  0.0000 0.0266 99.00 22.3  2360  0.000  3.978 99.00 0.005 
   9 wh658136724I  137866.0  0.98 1002.7 1266.5 116  65499  5840  0.000 0.041 99.00 21.8  0.0000 0.0224 99.00 22.5  3362  0.000  3.419 99.00 0.005 
  10 wh658137747I  138889.5  0.98   32.7   40.2 112   2165  5860  0.000 0.225 99.00 20.0  0.0000 0.0222 99.00 22.5  3395  0.000  3.404 99.00 0.005 
  11 wh658142324I  143466.6  0.98  102.1  131.6 112   6578  5868  0.000 0.125 99.00 20.6  0.0000 0.0219 99.00 22.5  3497  0.000  3.361 99.00 0.005 
  12 wh658142431I  143573.8  0.98  302.0  351.5 108  19859  5820  0.000 0.073 99.00 21.2  0.0000 0.0210 99.00 22.6  3799  0.000  3.242 99.00 0.005 
    Sum (T+120720 to 143881):            4861.4       4861.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  22.58
  0  3799 658130884  132026.1  11854.6 -11305.9    0.0000   0.0210 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 3.210 snr:  0.0 mag: 99.00 UL: 17.11
Rebinned Data for sw00021467001uwh_sk.img using a zero point of 20.114:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.72e+03  132025.2  11855.5 -11304.9    0.0000   0.0210 99.00 99.00  132025.2    0.0000   0.0210 99.00 99.00 23.04
The data range from T+120720.2 s (1.40 d) to T+143880.7 s (1.67 d)
Wrote uvot_fluxes_211109d23h20m34s606718usUT.qdp
Wrote uvot_fluxes_211109d23h20m34s606718usUT.gif
Wrote uvot_fluxes_211109d23h20m34s606718usUT.ps
Wrote uvot_fluxes_211109d23h20m34s606718usUT_vis.qdp
Wrote uvot_fluxes_211109d23h20m34s606718usUT_uv.qdp
Wrote uvot_fluxes_211109d23h20m34s606718usUT_vis.gif
Wrote uvot_fluxes_211109d23h20m34s606718usUT_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.0809  131354.0  12526.6 -10633.8    0.0000   0.0247 99.00 99.00  131354.0    0.0000   0.0247 99.00 99.00 23.04
The data range from T+120720.2 s (1.40 d) to T+143880.7 s (1.67 d)
Wrote uvot_fluxes_wtd_211109d23h20m34s606718usUT.qdp
Wrote uvot_fluxes_wtd_211109d23h20m34s606718usUT.gif
Wrote uvot_fluxes_wtd_211109d23h20m34s606718usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem