# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220528d13h02m15s900601usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01108208992 -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
# ========= GRB220527 ===================
Could not find/read custom source region custom_1108208_src.reg
Used archived XRT position of 244.97680 -15.64240 4.00
Reference: GCN_Notice_Fri_27_May_22_22:33:26_UT-ground
The position is (16:19:54.43, -15:38:32.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(244.9768,-15.6424,4") # color=red dash=0
Source region spec. is: 244.9768 -15.6424 4"
Region file centered at (244.9768,-15.6424), which is (16:19:54.43, -15:38:32.6)
Could not find/read custom background region custom_1108208_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 675383077.92 in BAT summary file
# ============ Reading file sw01108208992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 675383620
The processing date in extension 0 is: 2022-05-28T12:54:55
The trigger time is: 675383107.10016. The reference is BAT GRB summary file
Using zero point of 20.115 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.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(244.9768,-15.6424,25")
fk5;-circle(244.9768,-15.6424,12.5")
fk5;-circle(244.980708,-15.645159,6")
fk5;-circle(244.978933,-15.640626,6")
fk5;-circle(244.974350,-15.641006,6")
fk5;-circle(244.979421,-15.639938,6")
fk5;-circle(244.978822,-15.640708,6")
fk5;-circle(244.976219,-15.644579,6")
fk5;-circle(244.980258,-15.640494,6")
fk5;-circle(244.975467,-15.640944,6")
fk5;-circle(244.984192,-15.638795,6")
fk5;-circle(244.977119,-15.635755,6")
fk5;-circle(244.978419,-15.635412,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 wh675383620I     512.9  0.95  147.4  764.0 197  18607  4489 -0.390 0.210 99.00 21.0 -0.3899 0.2096 99.00 21.0   147 -0.269  0.145 99.00 0.248 
   2 wh675383620E     514.2  0.95  143.2  757.7 201  18169  4481 -0.436 0.215 99.00 21.0 
   3 wh675383875E     768.2  0.95   19.4  104.4 200   2449  4467 -0.295 0.585 99.00 19.6 -0.3788 0.1973 99.00 21.1   167 -0.269  0.140 99.00 0.240 
    Sum (T+   513 to    788):             868.4        926.3 (est. in src region)   SNR_unwtd_sum:  -1.92 0.9987 signif. UL:  21.10
  0   167 675383717     610.0    178.0    -97.1   -0.3788   0.1973 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.269 +/- 0.137 snr: -2.0 mag: 99.00 UL: 21.51
Rebinned Data for sw01108208992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      158     610.0    177.9    -97.1   -0.3788   0.1973 99.00 99.00     610.0   -0.3788   0.1973 99.00 99.00 21.10
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01108208992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.218 at 675383597
The processing date in extension 0 is:  2022-05-28T12:54:47
The trigger time is: 675383107.10016. The reference is BAT GRB summary file
Using zero point of 17.672 for filter V
Use aperture correction of  1.030 based on aperture of  4.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(244.9768,-15.6424,25")
fk5;-circle(244.9768,-15.6424,12.5")
fk5;-circle(244.979485,-15.640394,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 vv675383596E     489.9  0.99   14.5   18.8 199    586  5618 -0.140 0.317 99.00 17.8 -0.1400 0.3172 99.00 17.8    15 -0.776  1.758 99.00 0.125 
   2 vv675383925E     817.9  0.98    6.7   13.3 201    269  5649  0.578 0.576 18.27 16.7  0.0861 0.2830 20.33 17.7    21  0.097  1.685 22.82 0.109 
    Sum (T+   490 to    825):              32.1         30.3 (est. in src region)   SNR_unwtd_sum:   0.30 0.9987 signif. UL:  17.70
  0    21 675383707     599.6    225.1   -109.8    0.0861   0.2830 20.334 78.666  -1.580
Total wtd_rate (for all exposures so far): -0.266 +/- 0.135 snr: -2.0 mag: 99.00 UL: 19.07
Rebinned Data for sw01108208992uvv_sk.img using a zero point of 17.672:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0       21     599.3    225.5   -109.4    0.0861   0.2830 20.33  1.58     599.3    0.0861   0.2830 20.33  1.58 17.70
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01108208992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.189 at 675383851
The processing date in extension 0 is:  2022-05-28T12:54:54
The trigger time is: 675383107.10016. The reference is BAT GRB summary file
Using zero point of 18.921 for filter B
Use aperture correction of  1.035 based on aperture of  4.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(244.9768,-15.6424,25")
fk5;-circle(244.9768,-15.6424,12.5")
fk5;-circle(244.979463,-15.640371,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 bb675383850E     743.7  0.97   19.4   68.2 198   1301  5685  1.258 0.459 18.67 17.9  1.2580 0.4592 18.67 17.9    19  3.347  1.222 18.98 0.156 
    Sum (T+   744 to    763):              68.2         45.3 (est. in src region)   SNR_unwtd_sum:   2.74 0.9987 signif. UL:  17.87
  0    19 675383861     753.6      9.9     -9.9    1.2580   0.4592 18.671  0.493  -0.338
Total wtd_rate (for all exposures so far): -0.195 +/- 0.136 snr: -1.4 mag: 99.00 UL: 20.19
Rebinned Data for sw01108208992ubb_sk.img using a zero point of 18.921:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     18.8     753.6      9.9     -9.9    1.2580   0.4592 18.67  0.34     753.6    1.2580   0.4592 18.67  0.34 17.87
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01108208992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.205 at 675383826
The processing date in extension 0 is:  2022-05-28T12:54:53
The trigger time is: 675383107.10016. The reference is BAT GRB summary file
Using zero point of 18.135 for filter U
Use aperture correction of  1.032 based on aperture of  4.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(244.9768,-15.6424,25")
fk5;-circle(244.9768,-15.6424,12.5")
fk5;-circle(244.979411,-15.640370,6")
fk5;-circle(244.979194,-15.643493,6")
fk5;-circle(244.982919,-15.639441,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 uu675383826E     719.1  0.97   19.5   61.2 198    797  5332  1.721 0.430 17.55 16.9  1.7213 0.4296 17.55 16.9    19  9.135  2.280 17.89 0.121 
    Sum (T+   719 to    739):              61.2         29.6 (est. in src region)   SNR_unwtd_sum:   4.01 0.9987 signif. UL:  16.94
  0    19 675383836     729.0      9.9     -9.9    1.7213   0.4296 17.545  0.312  -0.242
Total wtd_rate (for all exposures so far): -0.122 +/- 0.135 snr: -0.9 mag: 99.00 UL: 19.27
Rebinned Data for sw01108208992uuu_sk.img using a zero point of 18.135:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0       19     729.0      9.9     -9.9    1.7213   0.4296 17.55  0.24     729.0    1.7213   0.4296 17.55  0.24 16.94
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01108208992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 675383802
The processing date in extension 0 is:  2022-05-28T12:54:53
The trigger time is: 675383107.10016. The reference is BAT GRB summary file
Using zero point of 17.169 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.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(244.9768,-15.6424,25")
fk5;-circle(244.9768,-15.6424,12.5")
fk5;-circle(244.979491,-15.640360,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
High bkg:   1 w1675383801E   19.4    371  5623  3.392  0.176
   1 w1675383801E     694.7  0.99   19.4   18.4 198    371  5640  0.289 0.233 18.52 17.2  0.2891 0.2333 18.52 17.2    19  3.609  2.913 18.90 0.118 
    Sum (T+   695 to    714):              18.4         13.0 (est. in src region)   SNR_unwtd_sum:   1.24 0.9987 signif. UL:  17.17
  0    19 675383812     704.6      9.9     -9.9    0.2891   0.2333 18.516  1.788  -0.642
Total wtd_rate (for all exposures so far): -0.110 +/- 0.136 snr: -0.8 mag: 99.00 UL: 18.28
Rebinned Data for sw01108208992uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     19.2     704.6      9.9     -9.9    0.2891   0.2333 18.52  0.64     704.6    0.2891   0.2333 18.52  0.64 17.17
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01108208992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 675383777
The processing date in extension 0 is:  2022-05-28T12:54:53
The trigger time is: 675383107.10016. The reference is BAT GRB summary file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01108208992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.345 at 675383901
The processing date in extension 0 is:  2022-05-28T12:54:55
The trigger time is: 675383107.10016. The reference is BAT GRB summary file
Using zero point of 17.035 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.00
There are no aspect corrected images to process.
The data range from T+489.9 s (0.01 d) to T+824.8 s (0.01 d)
Wrote uvot_fluxes_220528d13h02m15s900601usUT.qdp
Wrote uvot_fluxes_220528d13h02m15s900601usUT.gif
Wrote uvot_fluxes_220528d13h02m15s900601usUT.ps
Wrote uvot_fluxes_220528d13h02m15s900601usUT_vis.qdp
Wrote uvot_fluxes_220528d13h02m15s900601usUT_uv.qdp
Wrote uvot_fluxes_220528d13h02m15s900601usUT_vis.gif
Wrote uvot_fluxes_220528d13h02m15s900601usUT_vis.ps
Wrote uvot_fluxes_220528d13h02m15s900601usUT_uv.gif
Wrote uvot_fluxes_220528d13h02m15s900601usUT_uv.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     40.7     587.7     74.9    -97.9   -0.4588   0.2461 99.00 99.00     587.7   -0.4588   0.2461 99.00 99.00 21.02
  1   0.0264     729.0      9.9     -9.9   12.5309   3.1277 17.55  0.24     587.8   -0.4484   0.2459 99.00 99.00 21.01
  2     0.19     753.6      9.9     -9.9    4.4409   1.6209 18.67  0.34     588.6   -0.4193   0.2446 99.00 99.00 20.99
  3     2.97     778.1     46.6     -9.9   -0.3384   0.6872 99.00 99.00     601.4   -0.4122   0.2312 99.00 99.00 21.07
The data range from T+489.9 s (0.01 d) to T+824.8 s (0.01 d)
Wrote uvot_fluxes_wtd_220528d13h02m15s900601usUT.qdp
Wrote uvot_fluxes_wtd_220528d13h02m15s900601usUT.gif
Wrote uvot_fluxes_wtd_220528d13h02m15s900601usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem