# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 181119d04h06m09s992118usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00872470992 -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
# ========= GRB181118 ===================
Could not find/read custom source region custom_872470_src.reg
Used archived BAT position of 299.27000 -15.66500
Reference: GCN_Position_Notice_Sun_18_Nov_18_17:37:12_UT
The position is (19:57:04.80, -15:39:54.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(299.270,-15.665,3") # color=red dash=0
Source region spec. is: 299.270 -15.665 3"
Region file centered at (299.270,-15.665), which is (19:57:04.80, -15:39:54.0)
Could not find/read custom background region custom_872470_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 -21.89638 from uncorrected trigger time of 564255214.41 in BAT summary file
# ============ Reading file sw00872470992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.201 at 564256310
The processing date in extension 0 is: 2018-11-19T03:56:35
The trigger time is: 564255236.30638. The reference is BAT GRB summary file
Using zero point of 20.089 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(299.270,-15.665,25")
fk5;-circle(299.270,-15.665,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 wh564256310I    1073.8  0.92  147.4  651.3 116  34920  5844  0.000 0.217 99.00 20.0  0.0000 0.2168 99.00 20.0   147  0.000  0.300 99.00 0.142 
   2 wh564256310E    1073.8  0.92  147.4  640.8 115  34954  5846  0.000 0.216 99.00 20.0 
   3 wh564256590E    1354.3  0.92   19.4   85.6 113   4592  5835  0.000 0.588 99.00 18.9  0.0000 0.2034 99.00 20.1   167  0.000  0.286 99.00 0.140 
   4 wh564256763E    1527.2  0.92   19.5  101.3 115   4572  5844  0.000 0.591 99.00 18.9  0.0000 0.1923 99.00 20.1   186  0.000  0.277 99.00 0.136 
   5 wh564260801I    5565.3  0.92  152.8  688.7 112  36734  5872  0.000 0.210 99.00 20.0  0.0000 0.1419 99.00 20.4   339  0.000  0.272 99.00 0.089 
    Sum (T+  1074 to   5721):            1572.7       1572.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.44
  0   339 564258445    3208.3   2512.2  -2134.5    0.0000   0.1419 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.269 snr:  0.0 mag: 99.00 UL: 19.75
Rebinned Data for sw00872470992uwh_sk.img using a zero point of 20.089:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      172    1211.8    335.1   -138.0    0.0000   0.1923 99.00 99.00    1211.8    0.0000   0.1923 99.00 99.00 20.61
  1      141    5642.9     77.6    -77.6    0.0000   0.2104 99.00 99.00    3207.1    0.0000   0.1419 99.00 99.00 20.94
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00872470992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.256 at 564256467
The processing date in extension 0 is:  2018-11-19T03:56:27
The trigger time is: 564255236.30638. The reference is BAT GRB summary file
Using zero point of 17.634 for filter V
Use aperture correction of  1.087 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(299.270,-15.665,25")
fk5;-circle(299.270,-15.665,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 vv564256467E    1231.0  0.98   19.5   28.6 114   1188  5845  0.000 0.277 99.00 17.3  0.0000 0.2771 99.00 17.3    19  0.000  3.970 99.00 0.057 
   2 vv564256640E    1404.1  0.98   19.4   36.3 112   1185  5845  0.000 0.275 99.00 17.3  0.0000 0.1951 99.00 17.6    39  0.000  2.972 99.00 0.054 
   3 vv564256813E    1577.1  0.98   19.5   21.2 111   1213  5842  0.000 0.277 99.00 17.3  0.0000 0.1594 99.00 17.9    58  0.000  2.563 99.00 0.051 
    Sum (T+  1231 to   1597):              68.9         68.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  17.86
  0    58 564256650    1413.9    183.0   -182.9    0.0000   0.1594 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.263 snr:  0.0 mag: 99.00 UL: 17.32
Rebinned Data for sw00872470992uvv_sk.img using a zero point of 17.634:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     57.2    1413.9    183.0   -182.9    0.0000   0.1594 99.00 99.00    1413.9    0.0000   0.1594 99.00 99.00 18.36
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00872470992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.146 at 564256566
The processing date in extension 0 is:  2018-11-19T03:56:35
The trigger time is: 564255236.30638. The reference is BAT GRB summary file
Using zero point of 18.964 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(299.270,-15.665,25")
fk5;-circle(299.270,-15.665,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 bb564256566E    1329.9  0.97   19.5   46.3 112   2082  5841  0.000 0.376 99.00 18.3  0.0000 0.3763 99.00 18.3    19  0.000  1.711 99.00 0.103 
   2 bb564256739E    1502.9  0.97   19.5   31.4 113   1888  5841  0.000 0.359 99.00 18.3  0.0000 0.2600 99.00 18.7    39  0.000  1.253 99.00 0.102 
   3 bb564260596I    5360.6  0.96  196.6  468.4 116  22523  5872  0.000 0.125 99.00 19.5  0.0000 0.1126 99.00 19.6   236  0.000  1.102 99.00 0.035 
    Sum (T+  1330 to   5560):             521.4        521.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.57
  0   236 564260030    4794.1    766.2  -3464.2    0.0000   0.1126 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.260 snr:  0.0 mag: 99.00 UL: 18.66
Rebinned Data for sw00872470992ubb_sk.img using a zero point of 18.964:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     37.6    1426.4     96.2    -96.5    0.0000   0.2600 99.00 99.00    1426.4    0.0000   0.2600 99.00 99.00 19.16
  1      189    5460.5     99.9    -99.9    0.0000   0.1247 99.00 99.00    4791.6    0.0000   0.1126 99.00 99.00 20.07
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00872470992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.158 at 564256542
The processing date in extension 0 is:  2018-11-19T03:56:35
The trigger time is: 564255236.30638. The reference is BAT GRB summary file
Using zero point of 18.182 for filter U
Use aperture correction of  1.100 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(299.270,-15.665,25")
fk5;-circle(299.270,-15.665,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 uu564256541E    1305.2  0.99   19.5    9.4 110    790  5841  0.000 0.223 99.00 18.0  0.0000 0.2229 99.00 18.0    19  0.000  2.044 99.00 0.141 
   2 uu564256714E    1477.8  0.99   19.4   11.9 111    789  5843  0.000 0.224 99.00 18.0  0.0000 0.1580 99.00 18.4    39  0.000  1.535 99.00 0.132 
   3 uu564260391I    5155.4  0.98  196.6  204.7 112  11038  5828  0.000 0.084 99.00 19.1  0.0000 0.0746 99.00 19.2   236  0.000  1.373 99.00 0.038 
    Sum (T+  1305 to   5355):             242.0        242.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.23
  0   236 564259855    4618.8    736.3  -3313.6    0.0000   0.0746 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.253 snr:  0.0 mag: 99.00 UL: 17.91
Rebinned Data for sw00872470992uuu_sk.img using a zero point of 18.182:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.4    1401.3     96.2    -96.1    0.0000   0.1580 99.00 99.00    1401.3    0.0000   0.1580 99.00 99.00 18.92
  1      193    5255.3     99.9    -99.9    0.0000   0.0838 99.00 99.00    4616.0    0.0000   0.0746 99.00 99.00 19.73
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00872470992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.389 at 564256517
The processing date in extension 0 is:  2018-11-19T03:56:35
The trigger time is: 564255236.30638. The reference is BAT GRB summary file
Using zero point of 17.051 for filter UVW1
Use aperture correction of  1.123 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(299.270,-15.665,25")
fk5;-circle(299.270,-15.665,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 w1564256517E    1281.0  1.00   19.5    0.1 115    153  5849  0.000 0.101 99.00 17.8  0.0000 0.1013 99.00 17.8    19  0.000  2.581 99.00 0.254 
   2 w1564256689E    1453.2  1.00   19.5    1.3 114    145  5846  0.000 0.098 99.00 17.8  0.0000 0.0706 99.00 18.2    39  0.000  1.911 99.00 0.246 
High bkg:   3 w1564260186I  196.6   1921  5872  1.663  0.038
   3 w1564260186I    4950.5  1.00  196.6   37.1 116   1921  5872  0.000 0.036 99.00 18.9  0.0000 0.0320 99.00 19.0   236  0.000  1.683 99.00 0.078 
   4 w1564266624I   11387.9  1.00  262.3   41.4 108   2077  5816  0.000 0.027 99.00 19.2  0.0000 0.0207 99.00 19.5   498  0.000  1.623 99.00 0.055 
    Sum (T+  1281 to  11654):              82.3         82.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.49
  0   498 564263409    8173.0   3481.4  -6892.0    0.0000   0.0207 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.256 snr:  0.0 mag: 99.00 UL: 16.77
Rebinned Data for sw00872470992uw1_sk.img using a zero point of 17.051:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.8    1377.0     96.0    -96.0    0.0000   0.0706 99.00 99.00    1377.0    0.0000   0.0706 99.00 99.00 18.66
  1      196    5050.4     99.9    -99.9    0.0000   0.0356 99.00 99.00    4443.3    0.0000   0.0320 99.00 99.00 19.52
  2      262   11521.1    133.3   -133.3    0.0000   0.0269 99.00 99.00    8173.8    0.0000   0.0207 99.00 99.00 19.99
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00872470992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.369 at 564256492
The processing date in extension 0 is:  2018-11-19T03:56:35
The trigger time is: 564255236.30638. The reference is BAT GRB summary file
Using zero point of 16.481 for filter UVM2
Use aperture correction of  1.106 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(299.270,-15.665,25")
fk5;-circle(299.270,-15.665,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 m2564256491E    1255.3  1.00   19.4    0.7 111     33  5844  0.000 0.045 99.00 18.1  0.0000 0.0452 99.00 18.1    19  0.000  1.909 99.00 0.743 
#  2 m2564256664E    1428.4  1.00   19.4    0.0 112     29  5839 
   3 m2564259980I    4744.2  1.00  196.6    6.1 116    329  5836  0.000 0.015 99.00 19.3  0.0000 0.0138 99.00 19.4   216  0.000  1.482 99.00 0.234 
   4 m2564265717I   10481.3  1.00  885.6   14.7 104   1272  5836  0.000 0.006 99.00 20.3  0.0000 0.0055 99.00 20.4  1102  0.000  1.228 99.00 0.137 
    Sum (T+  1255 to  11381):              29.8         29.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.36
  0  1102 564264911    9674.2   1706.9  -8418.9    0.0000   0.0055 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.246 snr:  0.0 mag: 99.00 UL: 16.23
Rebinned Data for sw00872470992um2_sk.img using a zero point of 16.481:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     19.4    1265.1      9.9     -9.9    0.0000   0.0452 99.00 99.00    1265.1    0.0000   0.0452 99.00 99.00 18.57
  1      197    4844.1     99.9    -99.9    0.0000   0.0145 99.00 99.00    4522.0    0.0000   0.0138 99.00 99.00 19.86
  2      885   10931.2    449.9   -449.9    0.0000   0.0060 99.00 99.00    9674.3    0.0000   0.0055 99.00 99.00 20.86
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00872470992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.474 at 564256616
The processing date in extension 0 is:  2018-11-19T03:56:35
The trigger time is: 564255236.30638. The reference is BAT GRB summary file
Using zero point of 16.906 for filter UVW2
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(299.270,-15.665,25")
fk5;-circle(299.270,-15.665,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 w2564256615E    1379.5  1.00   19.5    1.8 113     49  5846  0.000 0.056 99.00 18.3  0.0000 0.0559 99.00 18.3    19  0.000  1.754 99.00 0.656 
   2 w2564256789E    1552.9  1.00   19.5    0.0 115     55  5840  0.000 0.060 99.00 18.2  0.0000 0.0411 99.00 18.6    39  0.000  1.351 99.00 0.575 
   3 w2564262463I    7227.1  1.00  107.0    5.9 108    305  5820  0.000 0.025 99.00 19.2  0.0000 0.0213 99.00 19.3   146  0.000  1.283 99.00 0.237 
    Sum (T+  1380 to   7336):               7.7          7.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.32
  0   146 564260970    5733.4   1602.5  -4353.8    0.0000   0.0213 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.242 snr:  0.0 mag: 99.00 UL: 16.68
Rebinned Data for sw00872470992uw2_sk.img using a zero point of 16.906:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.9    1476.1     96.6    -96.5    0.0000   0.0411 99.00 99.00    1476.1    0.0000   0.0411 99.00 99.00 19.11
  1      107    7281.5     54.4    -54.4    0.0000   0.0249 99.00 99.00    5733.3    0.0000   0.0213 99.00 99.00 19.82
The data range from T+1073.8 s (0.01 d) to T+11654.4 s (0.13 d)
Wrote uvot_fluxes_181119d04h06m09s992118usUT.qdp
Wrote uvot_fluxes_181119d04h06m09s992118usUT.gif
Wrote uvot_fluxes_181119d04h06m09s992118usUT.ps
Wrote uvot_fluxes_181119d04h06m09s992118usUT_vis.qdp
Wrote uvot_fluxes_181119d04h06m09s992118usUT_uv.qdp
Wrote uvot_fluxes_181119d04h06m09s992118usUT_vis.gif
Wrote uvot_fluxes_181119d04h06m09s992118usUT_vis.ps
Wrote uvot_fluxes_181119d04h06m09s992118usUT_uv.gif
Wrote uvot_fluxes_181119d04h06m09s992118usUT_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     11.1    1196.5    400.4   -122.7    0.0000   0.2266 99.00 99.00    1196.5    0.0000   0.2266 99.00 99.00 20.63
  1    0.478    5609.5    111.0   -454.1    0.0000   0.2229 99.00 99.00    1378.5    0.0000   0.1923 99.00 99.00 20.81
The data range from T+1073.8 s (0.01 d) to T+11654.4 s (0.13 d)
Wrote uvot_fluxes_wtd_181119d04h06m09s992118usUT.qdp
Wrote uvot_fluxes_wtd_181119d04h06m09s992118usUT.gif
Wrote uvot_fluxes_wtd_181119d04h06m09s992118usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem