# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 201220d03h46m51s536024usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021407002 -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
# ========= GRB201214B ===================
Could not find/read custom source region custom_021407_src.reg
Used archived BAT position of 188.03200 9.04500
Reference: GCN_Circ-29045
The position is (12:32:07.68, +09:02:42.0)
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(188.032,+9.045,3") # color=red dash=0
Source region spec. is: 188.032 +9.045 3"
Region file centered at (188.032,+9.045), which is (12:32:07.68, +09:02:42.0)
Could not find/read custom background region custom_021407_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 -26.16542 from uncorrected trigger time of 629654866 in BAT summary file
# ============ Reading file sw00021407001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.180 at 629682251
The processing date in extension 0 is: 2020-12-15T02:11:21
The trigger time is: 629654892.16542. The reference is BAT GRB summary 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 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(188.032,+9.045,25")
fk5;-circle(188.032,+9.045,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 wh629682250I   27358.8  0.95  100.1  290.8 104  15369  5860  0.000 0.194 99.00 20.2  0.0000 0.1937 99.00 20.2   100  0.000  6.268 99.00 0.011 
   2 wh629682355I   27463.3  0.93  705.0 2736.1 112 139047  5860  0.000 0.087 99.00 21.0  0.0000 0.0802 99.00 21.1   805  0.000  2.623 99.00 0.008 
    Sum (T+ 27359 to  28480):            2930.3       2930.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  21.12
  0   805 629682794   27901.8    578.3   -543.0    0.0000   0.0802 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 2.598 snr:  0.0 mag: 99.00 UL: 17.34
# ============ Reading file sw00021407002uwh_sk.img ================
Use keyword TRIGTIME of 629654892.227 for trigger time.
Long-term sensitivity correction to zero point is -0.180 at 630072432
The processing date in extension 0 is:  2020-12-19T17:20:45
The trigger time is: 629654892.227. 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(188.032,+9.045,25")
fk5;-circle(188.032,+9.045,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 wh630072432I  417540.1  0.95   72.6  178.0 120  10325  5872  0.000 0.235 99.00 19.9  0.0000 0.2349 99.00 19.9    73  0.000 115.769 99.00 0.001 
   2 wh630072509I  417617.3  0.94  556.4 2053.4 120 105682  5880  0.000 0.100 99.00 20.9  0.0000 0.0921 99.00 21.0   629  0.000 45.236 99.00 0.001 
   3 wh630073251I  418359.2  0.91   32.0  149.3 104   9341  5848  0.000 0.497 99.00 19.1  0.0000 0.0908 99.00 21.0   661  0.000 44.486 99.00 0.000 
   4 wh630076811I  421919.4  0.95  138.5  340.6 112  18972  5848  0.000 0.161 99.00 20.4  0.0000 0.0801 99.00 21.1   800  0.000 38.910 99.00 0.001 
   5 wh630076955I  422062.9  0.95 1297.1 3488.2 112 183348  5844  0.000 0.054 99.00 21.6  0.0000 0.0450 99.00 21.7  2097  0.000 22.046 99.00 0.001 
   6 wh630078373I  423480.8  0.95   83.0  286.8 112  13208  5820  0.000 0.227 99.00 20.0  0.0000 0.0442 99.00 21.8  2180  0.000 21.640 99.00 0.001 
    Sum (T+417540 to 423589):            6665.3       6665.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  21.76
  0  2180 630076183  421290.4   2298.4  -3750.3    0.0000   0.0442 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 2.579 snr:  0.0 mag: 99.00 UL: 17.35
Rebinned Data for sw00021407002uwh_sk.img using a zero point of 20.110:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      754   27900.7    579.4   -542.0    0.0000   0.0802 99.00 99.00   27900.7    0.0000   0.0802 99.00 99.00 21.58
  1 2.07e+03  421306.0   2282.8  -3765.9    0.0000   0.0442 99.00 99.00  316127.8    0.0000   0.0388 99.00 99.00 22.37
The data range from T+27358.8 s (0.32 d) to T+423588.8 s (4.90 d)
Wrote uvot_fluxes_201220d03h46m51s536024usUT.qdp
Wrote uvot_fluxes_201220d03h46m51s536024usUT.gif
Wrote uvot_fluxes_201220d03h46m51s536024usUT.ps
Wrote uvot_fluxes_201220d03h46m51s536024usUT_vis.qdp
Wrote uvot_fluxes_201220d03h46m51s536024usUT_uv.qdp
Wrote uvot_fluxes_201220d03h46m51s536024usUT_vis.gif
Wrote uvot_fluxes_201220d03h46m51s536024usUT_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.123   27873.3    606.8   -514.5    0.0000   0.0941 99.00 99.00   27873.3    0.0000   0.0941 99.00 99.00 21.59
  1  0.00181  421597.4   1991.4  -4057.3    0.0000   0.0513 99.00 99.00   33572.2    0.0000   0.0775 99.00 99.00 21.80
The data range from T+27358.8 s (0.32 d) to T+423588.8 s (4.90 d)
Wrote uvot_fluxes_wtd_201220d03h46m51s536024usUT.qdp
Wrote uvot_fluxes_wtd_201220d03h46m51s536024usUT.gif
Wrote uvot_fluxes_wtd_201220d03h46m51s536024usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem