# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 221207d06h30m56s192474usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021532992 -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
# ========= GRB221206B ===================
Could not find/read custom source region custom_021532_src.reg
Used archived BAT position of 251.15500 42.67100
Reference: GCN_Circ-33027
The position is (16:44:37.20, +42:40:15.6)
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(251.155,+42.671,3") # color=red dash=0
Source region spec. is: 251.155 +42.671 3"
Region file centered at (251.155,+42.671), which is (16:44:37.20, +42:40:15.6)
Could not find/read custom background region custom_021532_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 6400.0,
3 sigma should become about 5.2 sigma and 2 sigma should become about 4.6 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999980.
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 00021532
Use bat_met of 692022197.34 for trigger time.
# ============ Reading file sw00021532992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 692051127
The processing date in extension 0 is: 2022-12-07T05:03:11
The trigger time is: 692022197.34. The reference is GCN_Circ-33027
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 4:
# 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(251.155,+42.671,25")
fk5;-circle(251.155,+42.671,12.5")
fk5;-circle(251.162357,42.669692,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 wh692051126I   28929.5  0.96   32.3   74.2 108   3942  5400  0.000 0.321 99.00 19.6  0.0000 0.3214 99.00 19.6    32  0.000 10.934 99.00 0.012 
   2 wh692051162I   28965.0  0.96  293.6  716.4 112  33994  5400  0.000 0.105 99.00 20.8  0.0000 0.1002 99.00 20.8   326  0.000  3.426 99.00 0.012 
   3 wh692054766I   32569.6  0.94  205.5  779.1 116  34640  5448  0.000 0.157 99.00 20.3  0.0000 0.0863 99.00 21.0   531  0.000  2.980 99.00 0.009 
   4 wh692054978I   32781.5  0.97 1460.7 2640.5 108 132075  5392  0.000 0.041 99.00 21.8  0.0000 0.0376 99.00 21.9  1992  0.000  1.412 99.00 0.012 
   5 wh692060409I   38211.8  0.94  211.4  783.3 116  37962  5396  0.000 0.162 99.00 20.3  0.0000 0.0373 99.00 21.9  2203  0.000  1.386 99.00 0.011 
   6 wh692066167I   43969.8  0.94  208.4  763.8 108  37392  5396  0.000 0.157 99.00 20.3  0.0000 0.0366 99.00 21.9  2412  0.000  1.366 99.00 0.010 
   7 wh692066382I   44184.7  0.96  703.5 1617.3 116  76260  5456  0.000 0.067 99.00 21.3  0.0000 0.0321 99.00 22.1  3115  0.000  1.272 99.00 0.010 
    Sum (T+ 28930 to  44953):            7352.8       7352.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999796875 signif. UL:  22.06
  0  3115 692058732   36534.5   8419.0  -7605.0    0.0000   0.0321 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.260 snr:  0.0 mag: 99.00 UL: 18.07
Rebinned Data for sw00021532992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.99e+03   36517.6   8435.9  -7588.1    0.0000   0.0321 99.00 99.00   36517.6    0.0000   0.0321 99.00 99.00 22.58
The data range from T+28929.5 s (0.33 d) to T+44953.5 s (0.52 d)
Wrote uvot_fluxes_221207d06h30m56s192474usUT.qdp
Wrote uvot_fluxes_221207d06h30m56s192474usUT.gif
Wrote uvot_fluxes_221207d06h30m56s192474usUT.ps
Wrote uvot_fluxes_221207d06h30m56s192474usUT_vis.qdp
Wrote uvot_fluxes_221207d06h30m56s192474usUT_uv.qdp
Wrote uvot_fluxes_221207d06h30m56s192474usUT_vis.gif
Wrote uvot_fluxes_221207d06h30m56s192474usUT_vis.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  u (0)  , v (0)  , white (0)  , b (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.526   34757.5  10196.0  -5828.0    0.0000   0.0366 99.00 99.00   34757.5    0.0000   0.0366 99.00 99.00 22.61
The data range from T+28929.5 s (0.33 d) to T+44953.5 s (0.52 d)
Wrote uvot_fluxes_wtd_221207d06h30m56s192474usUT.qdp
Wrote uvot_fluxes_wtd_221207d06h30m56s192474usUT.gif
Wrote uvot_fluxes_wtd_221207d06h30m56s192474usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem