# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180226d11h36m10s545607usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00811686992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB180225 ===================
Could not find/read custom source region custom_811686_src.reg
Used archived BAT position of 185.60900 29.29300
Reference: GCN_Position_Notice_Sun_25_Feb_18_20:32:09_UT
The position is (12:22:26.16, +29:17:34.8)
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(185.609,+29.293,3") # color=red dash=0
Source region spec. is: 185.609 +29.293 3"
Region file centered at (185.609,+29.293), which is (12:22:26.16, +29:17:34.8)
Could not find/read custom background region custom_811686_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 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -20.5355 from uncorrected trigger time of 541283451.46 in BAT summary file
# ============ Reading file sw00811686992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.189 at 541283650
The processing date in extension 0 is: 2018-02-26T11:19:01
The trigger time is: 541283471.9955. The reference is BAT GRB summary file
Using zero point of 20.101 for filter WHITE
Use aperture correction of 1.108 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(185.609,+29.293,25")
fk5;-circle(185.609,+29.293,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 wh541283650I     178.1  0.97  147.4  200.8 112  11889  5843  0.000 0.118 99.00 20.7  0.0000 0.1176 99.00 20.7   147  0.000  0.035 99.00 2.093 
   2 wh541283650E     178.1  0.97  147.4  192.9 112  11891  5843  0.000 0.118 99.00 20.7 
   3 wh541284088E     616.1  0.97   19.5   34.8 115   1551  5844  0.000 0.326 99.00 19.6  0.0000 0.1106 99.00 20.7   167  0.000  0.035 99.00 1.944 
   4 wh541284260E     788.8  0.97   19.4   32.4 114   1548  5844  0.000 0.325 99.00 19.6  0.0000 0.1047 99.00 20.8   186  0.000  0.035 99.00 1.809 
   5 wh541284338I     866.3  0.97  147.4  262.0 114  11869  5842  0.000 0.119 99.00 20.6  0.0000 0.0785 99.00 21.1   334  0.000  0.034 99.00 1.250 
   6 wh541284640E    1169.0  0.97   19.5   24.5 110   1583  5846  0.000 0.322 99.00 19.6  0.0000 0.0763 99.00 21.1   353  0.000  0.034 99.00 1.207 
   7 wh541284806E    1334.3  0.97   19.4   28.5 116   1672  5852  0.000 0.341 99.00 19.5  0.0000 0.0744 99.00 21.2   373  0.000  0.034 99.00 1.159 
   8 wh541284980E    1508.2  0.95   19.4   37.4 112   2706  5842  0.000 0.434 99.00 19.2  0.0000 0.0739 99.00 21.2   392  0.000  0.033 99.00 1.080 
   9 wh541285154E    1682.0  0.92   19.4   97.6 111   4916  5845  0.000 0.607 99.00 18.9  0.0000 0.0756 99.00 21.1   411  0.000  0.033 99.00 0.954 
    Sum (T+   178 to   1702):             728.4        728.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.14
  0   411 541284238     765.9    935.8   -587.8    0.0000   0.0756 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.033 snr:  0.0 mag: 99.00 UL: 22.03
Rebinned Data for sw00811686992uwh_sk.img using a zero point of 20.101:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      144     253.0     74.9    -74.9    0.0000   0.1176 99.00 99.00     253.0    0.0000   0.1176 99.00 99.00 21.16
  1      200     920.4    268.4   -304.3    0.0000   0.1002 99.00 99.00     641.7    0.0000   0.0763 99.00 99.00 21.63
  2     55.2    1514.6    187.1   -180.4    0.0000   0.2703 99.00 99.00     762.6    0.0000   0.0756 99.00 99.00 21.64
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00811686992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.241 at 541283627
The processing date in extension 0 is:  2018-02-26T11:18:46
The trigger time is: 541283471.9955. The reference is BAT GRB summary file
Using zero point of 17.649 for filter V
Use aperture correction of  1.087 based on aperture of  3.00
Using background region based on sources found in extension 6:
# 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(185.609,+29.293,25")
fk5;-circle(185.609,+29.293,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 vv541283627E     155.3  0.99   10.7    3.0 115    210  5841  0.000 0.209 99.00 17.6 
   2 vv541284137E     665.7  0.99   19.5    7.0 115    341  5850  0.000 0.147 99.00 18.0  0.0000 0.1469 99.00 18.0    19  0.000  1.130 99.00 0.375 
#  3 vv541284310E     839.0  0.99   19.5    3.9 113    380  5847 
   4 vv541284518E    1046.4  0.99   19.4    8.1 114    345  5850  0.000 0.147 99.00 18.0  0.0000 0.1041 99.00 18.3    39  0.000  0.953 99.00 0.307 
   5 vv541284690E    1218.8  0.99   19.5    5.3 112    369  5839  0.000 0.151 99.00 17.9  0.0000 0.0857 99.00 18.6    58  0.000  0.869 99.00 0.268 
   6 vv541284855E    1383.8  0.99   19.5    7.0 115    387  5845  0.000 0.157 99.00 17.9  0.0000 0.0753 99.00 18.7    78  0.000  0.820 99.00 0.239 
   7 vv541285030E    1558.3  0.99   19.4   11.9 110    641  5856  0.000 0.198 99.00 17.6  0.0000 0.0721 99.00 18.7    97  0.000  0.799 99.00 0.194 
#  8 vv541285204E    1732.3  0.98    4.3    3.1 113    230  5847 
    Sum (T+   666 to   1578):              40.2         40.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.74
  0    97 541284656    1184.5    393.6   -518.7    0.0000   0.0721 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.033 snr:  0.0 mag: 99.00 UL: 19.60
Rebinned Data for sw00811686992uvv_sk.img using a zero point of 17.649:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0       58     986.8    251.8   -321.1    0.0000   0.0857 99.00 99.00     986.8    0.0000   0.0857 99.00 99.00 19.05
  1     38.6    1480.7     97.3    -96.9    0.0000   0.1262 99.00 99.00    1184.1    0.0000   0.0721 99.00 99.00 19.24
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00811686992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.138 at 541284064
The processing date in extension 0 is:  2018-02-26T11:18:53
The trigger time is: 541283471.9955. The reference is BAT GRB summary file
Using zero point of 18.972 for filter B
Use aperture correction of  1.108 based on aperture of  3.00
Using background region based on sources found in extension 3:
# 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(185.609,+29.293,25")
fk5;-circle(185.609,+29.293,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 bb541284063E     591.8  0.99   19.5   11.0 116    647  5852  0.000 0.208 99.00 18.9  0.0000 0.2083 99.00 18.9    19  0.000  0.422 99.00 0.740 
   2 bb541284235E     763.8  0.99   19.5    8.1 115    633  5850  0.000 0.205 99.00 18.9  0.0000 0.1461 99.00 19.3    39  0.000  0.331 99.00 0.668 
   3 bb541284616E    1144.6  0.99   19.5   14.7 111    702  5842  0.000 0.212 99.00 18.9  0.0000 0.1204 99.00 19.5    58  0.000  0.307 99.00 0.565 
   4 bb541284781E    1309.9  0.99   19.5   13.9 112    651  5840  0.000 0.205 99.00 18.9  0.0000 0.1039 99.00 19.7    78  0.000  0.291 99.00 0.512 
   5 bb541284955E    1483.8  0.98   19.5   19.9 113    963  5840  0.000 0.252 99.00 18.7  0.0000 0.0972 99.00 19.7    97  0.000  0.284 99.00 0.430 
#  6 bb541285129E    1657.5  0.97   19.5   36.4 113   2097  5847 
    Sum (T+   592 to   1504):              69.7         69.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.74
  0    97 541284541    1068.6    434.9   -476.8    0.0000   0.0972 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.033 snr:  0.0 mag: 99.00 UL: 20.91
Rebinned Data for sw00811686992ubb_sk.img using a zero point of 18.972:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     57.7     843.2    321.1   -251.4    0.0000   0.1204 99.00 99.00     843.2    0.0000   0.1204 99.00 99.00 20.00
  1     38.4    1406.5     97.1    -96.6    0.0000   0.1625 99.00 99.00    1068.1    0.0000   0.0972 99.00 99.00 20.23
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00811686992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.149 at 541283808
The processing date in extension 0 is:  2018-02-26T11:19:02
The trigger time is: 541283471.9955. The reference is BAT GRB summary file
Using zero point of 18.191 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(185.609,+29.293,25")
fk5;-circle(185.609,+29.293,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 uu541283808I     336.1  1.00  245.8   53.0 112   3161  5841  0.000 0.035 99.00 20.1  0.0000 0.0353 99.00 20.1   246  0.000  0.113 99.00 1.267 
   2 uu541283808E     336.1  1.00  245.8   58.8 115   3169  5845  0.000 0.036 99.00 20.0 
#  3 uu541284211E     739.1  1.00   19.5    3.4 113    259  5847 
#  4 uu541284591E    1119.8  1.00   19.6    8.2 113    277  5847 
#  5 uu541284759E    1287.7  1.00   17.0    5.0 113    235  5847 
#  6 uu541284929E    1457.2  0.99   19.4   12.3 113    422  5847 
#  7 uu541285104E    1632.4  0.98   19.5   21.3 113   1082  5847 
    Sum (T+   336 to    586):              60.6         60.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.05
  0   246 541283933     461.0    124.9   -124.9    0.0000   0.0353 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.031 snr:  0.0 mag: 99.00 UL: 20.18
Rebinned Data for sw00811686992uuu_sk.img using a zero point of 18.191:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      245     461.0    124.9   -124.9    0.0000   0.0353 99.00 99.00     461.0    0.0000   0.0353 99.00 99.00 20.55
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00811686992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.340 at 541284187
The processing date in extension 0 is:  2018-02-26T11:18:54
The trigger time is: 541283471.9955. The reference is BAT GRB summary file
Using zero point of 17.100 for filter UVW1
Use aperture correction of  1.123 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(185.609,+29.293,25")
fk5;-circle(185.609,+29.293,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 w1541284186E     714.8  1.00   19.4    1.8 109     56  5843  0.000 0.059 99.00 18.4  0.0000 0.0594 99.00 18.4    19  0.000  0.812 99.00 1.371 
   2 w1541284567E    1095.6  1.00   19.5    0.0 115     51  5850  0.000 0.058 99.00 18.4  0.0000 0.0416 99.00 18.8    39  0.000  0.675 99.00 1.159 
#  3 w1541284739E    1267.9  1.00   16.4    0.6 113     71  5847 
   4 w1541284904E    1433.0  1.00   19.5    0.0 112     60  5839  0.000 0.063 99.00 18.3  0.0000 0.0347 99.00 19.0    58  0.000  0.628 99.00 0.963 
#  5 w1541285079E    1607.3  1.00   19.4    0.0 113     89  5847 
    Sum (T+   715 to   1453):               3.2          3.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.98
  0    58 541284563    1091.1    361.7   -376.3    0.0000   0.0347 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.032 snr:  0.0 mag: 99.00 UL: 19.07
Rebinned Data for sw00811686992uw1_sk.img using a zero point of 17.100:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.9     915.2    200.2   -200.3    0.0000   0.0416 99.00 99.00     915.2    0.0000   0.0416 99.00 99.00 19.29
  1     19.4    1442.9      9.9     -9.9    0.0000   0.0626 99.00 99.00    1091.1    0.0000   0.0347 99.00 99.00 19.48
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00811686992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.327 at 541284162
The processing date in extension 0 is:  2018-02-26T11:18:54
The trigger time is: 541283471.9955. The reference is BAT GRB summary file
Using zero point of 16.523 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00811686992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.413 at 541284113
The processing date in extension 0 is:  2018-02-26T11:18:53
The trigger time is: 541283471.9955. The reference is BAT GRB summary file
Using zero point of 16.967 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.00
There are no aspect corrected images to process.
The data range from T+178.1 s (0.00 d) to T+1701.7 s (0.02 d)
Wrote uvot_fluxes_180226d11h36m10s545607usUT.qdp
Wrote uvot_fluxes_180226d11h36m10s545607usUT.gif
Wrote uvot_fluxes_180226d11h36m10s545607usUT.ps
Wrote uvot_fluxes_180226d11h36m10s545607usUT_vis.qdp
Wrote uvot_fluxes_180226d11h36m10s545607usUT_uv.qdp
Wrote uvot_fluxes_180226d11h36m10s545607usUT_vis.gif
Wrote uvot_fluxes_180226d11h36m10s545607usUT_vis.ps
Wrote uvot_fluxes_180226d11h36m10s545607usUT_uv.gif
Wrote uvot_fluxes_180226d11h36m10s545607usUT_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      671     253.0     74.9    -74.9    0.0000   0.1399 99.00 99.00     253.0    0.0000   0.1399 99.00 99.00 21.16
  1     37.3     619.4    189.2   -283.3    0.0000   0.2025 99.00 99.00     272.3    0.0000   0.1255 99.00 99.00 21.27
  2     57.5    1005.1    696.6   -138.8    0.0000   0.1195 99.00 99.00     327.4    0.0000   0.1004 99.00 99.00 21.52
The data range from T+178.1 s (0.00 d) to T+1701.7 s (0.02 d)
Wrote uvot_fluxes_wtd_180226d11h36m10s545607usUT.qdp
Wrote uvot_fluxes_wtd_180226d11h36m10s545607usUT.gif
Wrote uvot_fluxes_wtd_180226d11h36m10s545607usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem