# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220528d21h46m01s182169usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021503002 -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
# ========= GRB220527A ===================
Could not find/read custom source region custom_021503_src.reg
Used archived uvot source position of 323.52803 -14.97169 3.00
Reference: GCN_Circ-32136
The position is (21:34:06.73, -14:58:18.1)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(323.52803,-14.97169,3") # color=red dash=0
Source region spec. is: 323.52803 -14.97169 3"
Region file centered at (323.52803,-14.97169), which is (21:34:06.73, -14:58:18.1)
Could not find/read custom background region custom_021503_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.
Subtract UTCF of -29.18016 from uncorrected trigger time of 675335835.73 in BAT summary file
# ============ Reading file sw00021503002uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.205 at 675446743
The processing date in extension 0 is: 2022-05-28T21:39:45
The trigger time is: 675335864.91016. The reference is BAT GRB summary file
Using zero point of 18.135 for filter U
Use aperture correction of 1.100 based on aperture of 3.00
Using background region based on sources found in extension 1:
# 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(323.52803,-14.97169,25")
fk5;-circle(323.52803,-14.97169,12.5")
fk5;-circle(323.522055,-14.975527,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 uu675446742I  110877.6  0.99 1317.6 1054.8 108  41180  5626  0.223 0.028 19.76 19.4  0.2232 0.0276 19.76 19.4  1318 181.271 22.441 14.64 0.002 
   2 uu675452567I  116702.2  0.99 1262.4 1019.7 112  41858  5598  0.161 0.028 20.12 19.7  0.1927 0.0198 19.92 19.6  2580 161.974 16.488 14.77 0.002 
   3 uu675458202I  122337.4  0.99  759.5  438.4 112  15316  5634  0.195 0.031 19.91 19.5  0.1933 0.0168 19.92 19.7  3339 165.602 14.159 14.74 0.002 
    Sum (T+110878 to 123109):            2512.8       1932.4 (est. in src region)   SNR_unwtd_sum:  11.49 0.9987 signif. UL:  19.67
  0  3339 675452145  116280.0   6829.1  -5402.4    0.1933   0.0168 19.919  0.099  -0.090
Total wtd_rate (for all exposures so far): 165.602 +/-14.055 snr: 11.8 mag: 14.74 UL: 12.34
Rebinned Data for sw00021503002uuu_sk.img using a zero point of 18.135:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  3.3e+03  116286.1   6823.0  -5408.5    0.1933   0.0168 19.92  0.09  116286.1    0.1933   0.0168 19.92  0.09 19.67
The data range from T+110877.6 s (1.28 d) to T+123109.1 s (1.42 d)
Wrote uvot_fluxes_220528d21h46m01s182169usUT.qdp
Wrote uvot_fluxes_220528d21h46m01s182169usUT.gif
Wrote uvot_fluxes_220528d21h46m01s182169usUT.ps
Wrote uvot_fluxes_220528d21h46m01s182169usUT_vis.qdp
Wrote uvot_fluxes_220528d21h46m01s182169usUT_uv.qdp
Wrote uvot_fluxes_220528d21h46m01s182169usUT_vis.gif
Wrote uvot_fluxes_220528d21h46m01s182169usUT_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.000688  116467.0   6642.1  -5589.4    1.4132   0.1213 19.91  0.09  116467.0    1.4132   0.1213 19.91  0.09 19.66
The data range from T+110877.6 s (1.28 d) to T+123109.1 s (1.42 d)
Wrote uvot_fluxes_wtd_220528d21h46m01s182169usUT.qdp
Wrote uvot_fluxes_wtd_220528d21h46m01s182169usUT.gif
Wrote uvot_fluxes_wtd_220528d21h46m01s182169usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem