# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 181223d00h13m49s618245usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00878504992 -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
# ========= GRB181222 ===================
Could not find/read custom source region custom_878504_src.reg
Used archived BAT position of 131.37500 -5.48800
Reference: GCN_Position_Notice_Sat_22_Dec_18_21:43:25_UT
The position is (08:45:30.00, -05:29:16.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(131.375,-5.488,3") # color=red dash=0
Source region spec. is: 131.375 -5.488 3"
Region file centered at (131.375,-5.488), which is (08:45:30.00, -05:29:16.8)
Could not find/read custom background region custom_878504_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 -22.07506 from uncorrected trigger time of 567207729.87 in BAT summary file
# ============ Reading file sw00878504992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.202 at 567207899
The processing date in extension 0 is: 2018-12-22T23:57:12
The trigger time is: 567207751.94506. The reference is BAT GRB summary file
Using zero point of 20.088 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(131.375,-5.488,25")
fk5;-circle(131.375,-5.488,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 wh567207899I     147.3  0.97  147.4  204.8 110  11704  5842  0.000 0.116 99.00 20.7  0.0000 0.1156 99.00 20.7   147  0.000  0.031 99.00 2.434 
   2 wh567207899E     147.3  0.97  147.4  217.0 113  11714  5836  0.000 0.117 99.00 20.6 
   3 wh567208338E     586.5  0.97   19.5   30.6 110   1610  5841  0.000 0.325 99.00 19.5  0.0000 0.1089 99.00 20.7   167  0.000  0.031 99.00 2.245 
   4 wh567208510E     759.0  0.97   19.4   40.6 112   1853  5843  0.000 0.354 99.00 19.4  0.0000 0.1043 99.00 20.8   186  0.000  0.031 99.00 2.038 
   5 wh567208611I     859.9  0.95  147.4  437.8 108  22981  5843  0.000 0.165 99.00 20.3  0.0000 0.0927 99.00 20.9   334  0.000  0.030 99.00 0.995 
   6 wh567208915E    1163.5  0.90   19.5  112.2 112   5862  5841  0.000 0.676 99.00 18.7  0.0000 0.0947 99.00 20.9   353  0.000  0.030 99.00 0.874 
    Sum (T+   147 to   1183):             823.4        823.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.88
  0   353 567208375     622.7    560.5   -475.4    0.0000   0.0947 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.030 snr:  0.0 mag: 99.00 UL: 22.14
Rebinned Data for sw00878504992uwh_sk.img using a zero point of 20.088:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      144     222.2     74.9    -74.9    0.0000   0.1156 99.00 99.00     222.2    0.0000   0.1156 99.00 99.00 21.16
  1      178     881.1    128.5   -294.6    0.0000   0.1393 99.00 99.00     586.7    0.0000   0.0927 99.00 99.00 21.40
  2     17.5    1173.3      9.9     -9.9    0.0000   0.6765 99.00 99.00     617.0    0.0000   0.0947 99.00 99.00 21.38
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00878504992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.258 at 567207881
The processing date in extension 0 is:  2018-12-22T23:56:57
The trigger time is: 567207751.94506. The reference is BAT GRB summary file
Using zero point of 17.632 for filter V
Use aperture correction of  1.087 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(131.375,-5.488,25")
fk5;-circle(131.375,-5.488,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 vv567207881E     129.4  0.99   10.2    2.7 115    164  5847  0.000 0.194 99.00 17.6 
   2 vv567208388E     636.5  0.99   19.4    6.1 111    374  5843  0.000 0.152 99.00 17.9  0.0000 0.1517 99.00 17.9    19  0.000  1.134 99.00 0.363 
   3 vv567208560E     808.5  0.99   19.5    7.8 112    477  5847  0.000 0.172 99.00 17.8  0.0000 0.1147 99.00 18.2    39  0.000  0.930 99.00 0.285 
   4 vv567208792E    1041.0  0.99   19.5   22.2 112    864  5847  0.000 0.233 99.00 17.4  0.0000 0.1088 99.00 18.3    58  0.000  0.884 99.00 0.189 
   5 vv567208965E    1213.4  0.98   19.4   29.0 111   1492  5839  0.000 0.308 99.00 17.1  0.0000 0.1119 99.00 18.2    78  0.000  0.866 99.00 0.123 
    Sum (T+   636 to   1233):              61.2         61.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.24
  0    78 567208687     934.9    298.2   -298.4    0.0000   0.1119 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.029 snr:  0.0 mag: 99.00 UL: 19.70
Rebinned Data for sw00878504992uvv_sk.img using a zero point of 17.632:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     76.7     933.3    299.8   -296.9    0.0000   0.1119 99.00 99.00     933.3    0.0000   0.1119 99.00 99.00 18.74
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00878504992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.148 at 567208314
The processing date in extension 0 is:  2018-12-22T23:57:06
The trigger time is: 567207751.94506. The reference is BAT GRB summary file
Using zero point of 18.962 for filter B
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(131.375,-5.488,25")
fk5;-circle(131.375,-5.488,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 bb567208313E     562.0  0.99   19.5   11.8 110    617  5854  0.000 0.198 99.00 19.0  0.0000 0.1977 99.00 19.0    19  0.000  0.384 99.00 0.855 
   2 bb567208486E     734.6  0.99   19.4    9.9 113    732  5833  0.000 0.219 99.00 18.8  0.0000 0.1476 99.00 19.3    39  0.000  0.316 99.00 0.679 
   3 bb567208891E    1139.1  0.96   19.5   43.8 110   2613  5843  0.000 0.421 99.00 18.1  0.0000 0.1696 99.00 19.1    58  0.000  0.310 99.00 0.297 
    Sum (T+   562 to   1159):              75.0         75.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.12
  0    58 567208574     821.7    337.1   -259.8    0.0000   0.1696 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.030 snr:  0.0 mag: 99.00 UL: 21.02
Rebinned Data for sw00878504992ubb_sk.img using a zero point of 18.962:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.5     658.0     96.3    -96.1    0.0000   0.1476 99.00 99.00     658.0    0.0000   0.1476 99.00 99.00 19.77
  1     18.6    1149.0      9.9     -9.9    0.0000   0.4215 99.00 99.00     818.1    0.0000   0.1696 99.00 99.00 19.62
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00878504992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.160 at 567208058
The processing date in extension 0 is:  2018-12-22T23:57:12
The trigger time is: 567207751.94506. The reference is BAT GRB summary file
Using zero point of 18.180 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(131.375,-5.488,25")
fk5;-circle(131.375,-5.488,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 uu567208058I     306.3  1.00  245.8   68.0 111   3325  5840  0.000 0.036 99.00 20.0  0.0000 0.0361 99.00 20.0   246  0.000  0.108 99.00 1.287 
   2 uu567208058E     306.3  1.00  245.8   66.8 110   3325  5853  0.000 0.036 99.00 20.0 
   3 uu567208461E     709.9  0.99   19.5    5.2 114    312  5845  0.000 0.142 99.00 18.5  0.0000 0.0350 99.00 20.1   265  0.000  0.107 99.00 1.229 
   4 uu567208866E    1114.5  0.98   19.4   22.9 111   1308  5843  0.000 0.291 99.00 17.8  0.0000 0.0380 99.00 20.0   285  0.000  0.107 99.00 0.931 
    Sum (T+   306 to   1134):              94.1         94.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.96
  0   285 567208250     498.2    636.1   -191.9    0.0000   0.0380 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.028 snr:  0.0 mag: 99.00 UL: 20.28
Rebinned Data for sw00878504992uuu_sk.img using a zero point of 18.180:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      245     431.2    124.9   -124.9    0.0000   0.0361 99.00 99.00     431.2    0.0000   0.0361 99.00 99.00 20.52
  1     38.4     920.3    214.0   -210.4    0.0000   0.1609 99.00 99.00     497.4    0.0000   0.0380 99.00 99.00 20.46
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00878504992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.396 at 567208438
The processing date in extension 0 is:  2018-12-22T23:57:07
The trigger time is: 567207751.94506. The reference is BAT GRB summary file
Using zero point of 17.044 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(131.375,-5.488,25")
fk5;-circle(131.375,-5.488,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 w1567208437E     685.6  1.00   19.4    0.1 115     64  5844  0.000 0.066 99.00 18.2  0.0000 0.0657 99.00 18.2    19  0.000  0.908 99.00 1.110 
   2 w1567208842E    1090.3  1.00   19.5    3.1 113    130  5845  0.000 0.093 99.00 17.9  0.0000 0.0568 99.00 18.4    39  0.000  0.828 99.00 0.606 
High bkg:   3 w1567209014E    9.3    102  5847  1.884  0.186
   3 w1567209014E    1262.3  1.00    9.3    1.0 108    102  5847  0.000 0.168 99.00 17.2  0.0000 0.0561 99.00 18.4    48  0.000  0.813 99.00 0.469 
    Sum (T+   686 to   1272):               5.7          5.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.41
  0    48 567208721     969.1    302.6   -283.5    0.0000   0.0561 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.029 snr:  0.0 mag: 99.00 UL: 19.12
Rebinned Data for sw00878504992uw1_sk.img using a zero point of 17.044:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     48.1     968.9    302.8   -283.3    0.0000   0.0561 99.00 99.00     968.9    0.0000   0.0561 99.00 99.00 18.90
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00878504992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.375 at 567208413
The processing date in extension 0 is:  2018-12-22T23:57:07
The trigger time is: 567207751.94506. The reference is BAT GRB summary file
Using zero point of 16.475 for filter UVM2
Use aperture correction of  1.106 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(131.375,-5.488,25")
fk5;-circle(131.375,-5.488,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 m2567208412E     660.7  1.00   19.4    0.0 116     14  5853  0.000 0.030 99.00 18.5  0.0000 0.0304 99.00 18.5    19  0.000  0.685 99.00 3.079 
   2 m2567208584E     832.9  1.00   19.5    0.1 112     15  5837  0.000 0.031 99.00 18.5  0.0000 0.0216 99.00 18.9    39  0.000  0.537 99.00 2.742 
   3 m2567208817E    1065.6  1.00   19.4    0.0 115     33  5844  0.000 0.047 99.00 18.0  0.0000 0.0212 99.00 18.9    58  0.000  0.512 99.00 1.706 
   4 m2567208989E    1237.6  1.00   19.4    0.0 112     44  5839  0.000 0.053 99.00 17.9  0.0000 0.0206 99.00 18.9    78  0.000  0.499 99.00 1.239 
    Sum (T+   661 to   1257):               2.1          2.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.92
  0    78 567208711     959.1    298.3   -298.4    0.0000   0.0206 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.028 snr:  0.0 mag: 99.00 UL: 18.57
Rebinned Data for sw00878504992um2_sk.img using a zero point of 16.475:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     77.7     959.0    298.3   -298.3    0.0000   0.0206 99.00 99.00     959.0    0.0000   0.0206 99.00 99.00 19.42
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00878504992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.482 at 567208364
The processing date in extension 0 is:  2018-12-22T23:57:07
The trigger time is: 567207751.94506. The reference is BAT GRB summary file
Using zero point of 16.898 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(131.375,-5.488,25")
fk5;-circle(131.375,-5.488,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 w2567208363E     611.9  1.00   19.5    1.8 111     29  5840  0.000 0.042 99.00 18.6  0.0000 0.0424 99.00 18.6    19  0.000  0.600 99.00 2.524 
   2 w2567208536E     784.1  1.00   19.5    0.8 108     36  5826  0.000 0.047 99.00 18.5  0.0000 0.0316 99.00 18.9    39  0.000  0.489 99.00 2.032 
   3 w2567208768E    1016.7  1.00   19.5    1.0 110     49  5843  0.000 0.055 99.00 18.3  0.0000 0.0280 99.00 19.0    58  0.000  0.458 99.00 1.538 
   4 w2567208940E    1188.9  1.00   19.5    1.0 113     62  5838  0.000 0.063 99.00 18.1  0.0000 0.0263 99.00 19.1    78  0.000  0.442 99.00 1.199 
    Sum (T+   612 to   1209):               3.3          3.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.08
  0    78 567208662     910.3    298.4   -298.4    0.0000   0.0263 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.028 snr:  0.0 mag: 99.00 UL: 19.00
Rebinned Data for sw00878504992uw2_sk.img using a zero point of 16.898:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     77.8     910.3    298.4   -298.4    0.0000   0.0263 99.00 99.00     910.3    0.0000   0.0263 99.00 99.00 19.58
The data range from T+147.3 s (0.00 d) to T+1271.7 s (0.01 d)
Wrote uvot_fluxes_181223d00h13m49s618245usUT.qdp
Wrote uvot_fluxes_181223d00h13m49s618245usUT.gif
Wrote uvot_fluxes_181223d00h13m49s618245usUT.ps
Wrote uvot_fluxes_181223d00h13m49s618245usUT_vis.qdp
Wrote uvot_fluxes_181223d00h13m49s618245usUT_uv.qdp
Wrote uvot_fluxes_181223d00h13m49s618245usUT_vis.gif
Wrote uvot_fluxes_181223d00h13m49s618245usUT_vis.ps
Wrote uvot_fluxes_181223d00h13m49s618245usUT_uv.gif
Wrote uvot_fluxes_181223d00h13m49s618245usUT_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      867     222.2     74.9    -74.9    0.0000   0.1392 99.00 99.00     222.2    0.0000   0.1392 99.00 99.00 21.16
  1     38.5     582.4    245.8   -276.1    0.0000   0.2080 99.00 99.00     237.5    0.0000   0.1266 99.00 99.00 21.27
  2     25.2     944.6    288.6    -84.7    0.0000   0.1916 99.00 99.00     256.7    0.0000   0.1156 99.00 99.00 21.36
The data range from T+147.3 s (0.00 d) to T+1271.7 s (0.01 d)
Wrote uvot_fluxes_wtd_181223d00h13m49s618245usUT.qdp
Wrote uvot_fluxes_wtd_181223d00h13m49s618245usUT.gif
Wrote uvot_fluxes_wtd_181223d00h13m49s618245usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem