# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210221d03h59m40s198529usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01033328002 -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
# ========= GRB210218A ===================
Could not find/read custom source region custom_1033328_src.reg
Used archived BAT position of 47.31792 35.32192
Reference: GCN_Circulars-29537-Thu,_18_Feb_2021_21:02:10_-0500
The position is (03:09:16.30, +35:19:18.9)
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(47.31792,35.32192,3") # color=red dash=0
Source region spec. is: 47.31792 35.32192 3"
Region file centered at (47.31792,35.32192), which is (03:09:16.30, +35:19:18.9)
Could not find/read custom background region custom_1033328_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 784.0,
3 sigma should become about 4.8 sigma and 2 sigma should become about 4.2 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999834.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -26.5287 from uncorrected trigger time of 635348119.64 in BAT summary file
# ============ Reading file sw01033328002uwh_sk.img ================
Use keyword TRIGTIME of 635348146.176 for trigger time.
Long-term sensitivity correction to zero point is -0.180 at 635518093
The processing date in extension 0 is: 2021-02-21T03:49:12
The trigger time is: 635348146.176. The reference is keyword in image file
Using zero point of 20.110 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 5:
# 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(47.31792,35.32192,25")
fk5;-circle(47.31792,35.32192,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 wh635518092I  169946.7  0.91   52.9  316.2 112  14948  5836  0.000 0.394 99.00 19.4  0.0000 0.3938 99.00 19.4    53  0.000 78.973 99.00 0.001 
   2 wh635518149I  170003.2  0.93  353.9 1521.4 116  75679  5868  0.000 0.131 99.00 20.6  0.0000 0.1252 99.00 20.7   407  0.000 25.035 99.00 0.001 
   3 wh635518694I  170548.7  0.95   37.7   98.9 104   5593  5864  0.000 0.310 99.00 19.7  0.0000 0.1174 99.00 20.7   445  0.000 23.234 99.00 0.001 
   4 wh635530114I  181968.5  0.95   86.4  247.9 108  12929  5836  0.000 0.210 99.00 20.1  0.0000 0.1040 99.00 20.9   531  0.000 20.661 99.00 0.001 
   5 wh635530205I  182059.3  0.95  830.7 2111.4 112 113492  5820  0.000 0.066 99.00 21.4  0.0000 0.0569 99.00 21.5  1362  0.000 11.697 99.00 0.001 
   6 wh635531087I  182941.1  0.96   64.5  138.5 108   8712  5828  0.000 0.230 99.00 20.0  0.0000 0.0554 99.00 21.6  1426  0.000 11.386 99.00 0.001 
   7 wh635536078I  187931.9  0.96   24.4   68.1 108   3278  5828  0.000 0.373 99.00 19.5  0.0000 0.0548 99.00 21.6  1450  0.000 11.280 99.00 0.001 
   8 wh635536105I  187959.3  0.96  246.8  670.1 112  33802  5832  0.000 0.121 99.00 20.7  0.0000 0.0500 99.00 21.7  1697  0.000 10.397 99.00 0.001 
   9 wh635536359I  188213.2  0.96   21.3   59.6 112   2900  5876  0.000 0.409 99.00 19.4  0.0000 0.0496 99.00 21.7  1719  0.000 10.329 99.00 0.001 
  10 wh635552359I  204213.3  0.92   35.2  182.6 120   9014  5884  0.000 0.470 99.00 19.2  0.0000 0.0495 99.00 21.7  1754  0.000 10.287 99.00 0.001 
  11 wh635552398I  204252.8  0.93  241.2 1072.7 112  55452  5824  0.000 0.164 99.00 20.4  0.0000 0.0478 99.00 21.7  1995  0.000  9.954 99.00 0.001 
  12 wh635552764I  204618.8  0.94   36.4  128.3 104   7044  5832  0.000 0.367 99.00 19.5  0.0000 0.0474 99.00 21.7  2031  0.000  9.892 99.00 0.001 
  13 wh635558173I  210027.5  0.92   17.5   86.9 104   4545  5808  0.000 0.626 99.00 18.9  0.0000 0.0473 99.00 21.7  2049  0.000  9.871 99.00 0.001 
  14 wh635558194I  210047.8  0.92  156.5  690.4 112  36785  5848  0.000 0.206 99.00 20.1  0.0000 0.0462 99.00 21.7  2205  0.000  9.691 99.00 0.001 
  15 wh635558381I  210235.6  0.93   12.5   55.6 128   2549  5892  0.000 0.716 99.00 18.8  0.0000 0.0461 99.00 21.7  2218  0.000  9.677 99.00 0.001 
    Sum (T+169947 to 210255):            7449.1       7449.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999998341836735 signif. UL:  21.75
  0  2218 635534342  186195.6  24059.1 -16248.8    0.0000   0.0461 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 9.585 snr:  0.0 mag: 99.00 UL: 15.96
Rebinned Data for sw01033328002uwh_sk.img using a zero point of 20.110:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.09e+03  186135.5  24119.1 -16188.8    0.0000   0.0461 99.00 99.00  186135.5    0.0000   0.0461 99.00 99.00 22.18
The data range from T+169946.7 s (1.97 d) to T+210254.7 s (2.43 d)
Wrote uvot_fluxes_210221d03h59m40s198529usUT.qdp
Wrote uvot_fluxes_210221d03h59m40s198529usUT.gif
Wrote uvot_fluxes_210221d03h59m40s198529usUT.ps
Wrote uvot_fluxes_210221d03h59m40s198529usUT_vis.qdp
Wrote uvot_fluxes_210221d03h59m40s198529usUT_uv.qdp
Wrote uvot_fluxes_210221d03h59m40s198529usUT_vis.gif
Wrote uvot_fluxes_210221d03h59m40s198529usUT_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.00905  184172.4  26082.2 -14225.7    0.0000   0.0525 99.00 99.00  184172.4    0.0000   0.0525 99.00 99.00 22.22
The data range from T+169946.7 s (1.97 d) to T+210254.7 s (2.43 d)
Wrote uvot_fluxes_wtd_210221d03h59m40s198529usUT.qdp
Wrote uvot_fluxes_wtd_210221d03h59m40s198529usUT.gif
Wrote uvot_fluxes_wtd_210221d03h59m40s198529usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem