# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 161006d07h32m42s985660usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020701001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB160925A ===================
Used archived opt source position of 337.07425 -14.94906 3.00
Reference: GCN_Circ-19939
The position is (22:28:17.82, -14:56:56.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(337.07425,-14.94906,3") # color=red dash=0
Region file centered at (337.07425,-14.94906), which is (22:28:17.82, -14:56:56.6)
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 -16.92412 from uncorrected trigger time of 496473536.45 in BAT summary file
# ============ Reading file sw00020701001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.212 at 496596938
The processing date in extension 0 is: 2016-10-06T06:40:23
The trigger time is: 496473553.37412. The reference is BAT GRB summary file
Using zero point of 17.678 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(337.07425,-14.94906,25")
fk5;-circle(337.07425,-14.94906,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 vv496596938I  123385.0  0.96   78.0  371.3 112   2006  6045  4.839 0.279 15.97 15.8  4.8387 0.2793 15.97 15.8    78 6618.843 382.087 10.74 0.001 
   2 vv496603424I  129871.6  0.96   72.9  345.7 108   1877  6005  4.832 0.288 15.97 15.8  4.8353 0.2006 15.97 15.8   151 6775.940 281.117 10.71 0.001 
    Sum (T+123385 to 129951):             716.9         70.9 (est. in src region)   SNR_unwtd_sum:  24.11 0.9987 signif. UL:  15.84
  0   151 496600112  126558.8   3392.6  -3173.8    4.8353   0.2006 15.967  0.046  -0.044
Total wtd_rate (for all exposures so far): 6775.940 +/-280.863 snr: 24.1 mag: 10.71 UL:  7.97
Rebinned Data for sw00020701001uvv_sk.img using a zero point of 17.678:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      145  126559.2   3392.2  -3174.2    4.8353   0.2006 15.97  0.04  126559.2    4.8353   0.2006 15.97  0.04 15.84
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00020701001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.122 at 496596528
The processing date in extension 0 is:  2016-10-06T06:40:23
The trigger time is: 496473553.37412. The reference is BAT GRB summary file
Using zero point of 18.988 for filter B
Use aperture correction of  1.108 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(337.07425,-14.94906,25")
fk5;-circle(337.07425,-14.94906,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 bb496596528I  122974.8  0.88   78.5 1299.0 116   3530  6530 19.836 0.579 15.74 15.7 19.8357 0.5785 15.74 15.7    78 8096.636 236.137 10.52 0.003 
above line uses coinc_corr_src:  0.880 corr_bkg:  0.985
   2 bb496601466I  127912.7  0.88   53.9  840.3 112   2460  6505 18.603 0.676 15.81 15.7 19.3332 0.4398 15.77 15.7   132 8018.315 182.393 10.53 0.003 
above line uses coinc_corr_src:  0.881 corr_bkg:  0.985
   3 bb496603015I  129461.7  0.88   73.0 1162.1 112   3253  6535 19.043 0.587 15.79 15.7 19.2299 0.3520 15.78 15.7   205 8075.673 147.809 10.52 0.003 
above line uses coinc_corr_src:  0.881 corr_bkg:  0.985
   4 bb496607040I  133487.5  0.88   78.5 1274.0 104   3418  6567 19.604 0.574 15.76 15.7 19.3331 0.3000 15.77 15.7   284 8246.041 128.020 10.50 0.003 
above line uses coinc_corr_src:  0.878 corr_bkg:  0.986
    Sum (T+122975 to 133567):            4575.5        214.9 (est. in src region)   SNR_unwtd_sum:  64.44 0.9987 signif. UL:  15.72
  0   284 496602079  128526.0   5041.3  -5551.1   19.3331   0.3000 15.772  0.017  -0.017
Total wtd_rate (for all exposures so far): 8129.869 +/-119.495 snr: 68.0 mag: 10.52 UL:  9.17
Rebinned Data for sw00020701001ubb_sk.img using a zero point of 18.988:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      250  128522.7   5044.6  -5547.8   19.3331   0.3000 15.77  0.02  128522.7   19.3331   0.3000 15.77  0.02 15.72
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020701001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.132 at 496596444
The processing date in extension 0 is:  2016-10-06T06:40:23
The trigger time is: 496473553.37412. The reference is BAT GRB summary file
Using zero point of 18.208 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(337.07425,-14.94906,25")
fk5;-circle(337.07425,-14.94906,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 uu496596443I  122890.4  0.83   78.5 1831.4 112   1543  6995 30.374 0.720 14.50 14.4 30.3743 0.7195 14.50 14.4    79 25410.974 601.972  9.28 0.003 
above line uses coinc_corr_src:  0.833 corr_bkg:  0.994
   2 uu496601381I  127828.3  0.83   78.5 1832.7 108   1618  6948 30.404 0.720 14.50 14.4 30.3889 0.5090 14.50 14.4   157 25908.647 434.145  9.26 0.003 
above line uses coinc_corr_src:  0.833 corr_bkg:  0.993
   3 uu496602930I  129377.4  0.83   78.5 1880.2 112   1513  6967 31.224 0.730 14.47 14.4 30.6672 0.4175 14.49 14.4   236 26424.859 359.838  9.23 0.003 
above line uses coinc_corr_src:  0.832 corr_bkg:  0.994
   4 uu496606956I  133403.1  0.82   78.5 2041.3 116   1593  7135 34.505 0.774 14.36 14.3 31.6138 0.3679 14.46 14.4   314 27488.567 320.347  9.19 0.003 
above line uses coinc_corr_src:  0.818 corr_bkg:  0.993
    Sum (T+122890 to 133483):            7585.5        100.1 (est. in src region)   SNR_unwtd_sum:  85.94 0.9987 signif. UL:  14.42
  0   314 496601968  128414.5   5068.4  -5524.1   31.6138   0.3679 14.458  0.013  -0.012
Total wtd_rate (for all exposures so far): 14614.896 +/-133.563 snr: 109.4 mag:  9.88 UL:  7.77
Rebinned Data for sw00020701001uuu_sk.img using a zero point of 18.208:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      260  128391.8   5091.1  -5501.3   31.6138   0.3679 14.46  0.01  128391.8   31.6138   0.3679 14.46  0.01 14.42
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020701001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.257 at 496596278
The processing date in extension 0 is:  2016-10-06T06:40:23
The trigger time is: 496473553.37412. The reference is BAT GRB summary file
Using zero point of 17.183 for filter UVW1
Use aperture correction of  1.123 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(337.07425,-14.94906,25")
fk5;-circle(337.07425,-14.94906,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 w1496596277I  122724.2  0.86  157.2 2985.6 112    771  6737 24.582 0.452 13.71 13.6 24.5823 0.4518 13.71 13.6   157 52789.455 970.325  8.48 0.005 
above line uses coinc_corr_src:  0.864 corr_bkg:  0.998
   2 w1496601217I  127664.2  0.87  157.3 2830.9 112    772  6721 23.213 0.438 13.77 13.7 23.8961 0.3147 13.74 13.7   315 52339.149 689.483  8.49 0.005 
above line uses coinc_corr_src:  0.867 corr_bkg:  0.998
   3 w1496602766I  129213.4  0.87  157.3 2727.0 112    765  6702 22.248 0.428 13.81 13.8 23.3443 0.2537 13.76 13.7   472 51680.818 561.786  8.51 0.005 
above line uses coinc_corr_src:  0.871 corr_bkg:  0.998
   4 w1496606792I  133238.7  0.86  157.2 3063.8 112    886  6786 25.232 0.458 13.68 13.6 23.8145 0.2221 13.74 13.7   629 53157.787 497.332  8.48 0.005 
above line uses coinc_corr_src:  0.863 corr_bkg:  0.998
    Sum (T+122724 to 133398):           11607.2         53.1 (est. in src region)   SNR_unwtd_sum: 107.24 0.9987 signif. UL:  13.71
  0   629 496601843  128290.0   5108.4  -5565.8   23.8145   0.2221 13.741  0.010  -0.010
Total wtd_rate (for all exposures so far): 26305.733 +/-176.319 snr: 149.2 mag:  9.24 UL:  6.11
Rebinned Data for sw00020701001uw1_sk.img using a zero point of 17.183:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      545  128290.8   5107.7  -5566.6   23.8145   0.2221 13.74  0.01  128290.8   23.8145   0.2221 13.74  0.01 13.71
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020701001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.255 at 496597022
The processing date in extension 0 is:  2016-10-06T06:40:24
The trigger time is: 496473553.37412. The reference is BAT GRB summary file
Using zero point of 16.595 for filter UVM2
Use aperture correction of  1.106 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(337.07425,-14.94906,25")
fk5;-circle(337.07425,-14.94906,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 m2496597022I  123468.8  0.90  758.5 10490.0 116   1682  6517 16.958 0.166 13.52 13.5 16.9579 0.1660 13.52 13.5   758 63135.736 618.215  8.29 0.006 
above line uses coinc_corr_src:  0.899 corr_bkg:  0.999
   2 m2496603509I  129955.7  0.90   24.7  344.3 108     43  6473 17.084 0.923 13.51 13.3 16.9619 0.1634 13.52 13.5   783 63276.735 610.523  8.29 0.006 
    Sum (T+123469 to 129981):           10834.3         30.7 (est. in src region)   SNR_unwtd_sum: 103.79 0.9987 signif. UL:  13.49
  0   783 496597600  124046.7   5934.1   -577.9   16.9619   0.1634 13.521  0.011  -0.010
Total wtd_rate (for all exposures so far): 34736.613 +/-195.980 snr: 177.2 mag:  8.94 UL:  5.22
Rebinned Data for sw00020701001um2_sk.img using a zero point of 16.595:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      704  124047.1   5933.6   -578.4   16.9619   0.1634 13.52  0.01  124047.1   16.9619   0.1634 13.52  0.01 13.49
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020701001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.312 at 496596613
The processing date in extension 0 is:  2016-10-06T06:40:23
The trigger time is: 496473553.37412. The reference is BAT GRB summary file
Using zero point of 17.068 for filter UVW2
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(337.07425,-14.94906,25")
fk5;-circle(337.07425,-14.94906,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 w2496596613I  123060.0  0.83  314.7 7100.0 108   1152  6957 29.908 0.356 13.38 13.3 29.9083 0.3559 13.38 13.3   315 71658.686 852.598  8.15 0.006 
above line uses coinc_corr_src:  0.833 corr_bkg:  0.999
   2 w2496603100I  129547.1  0.85  309.8 6265.0 108   1101  6845 26.353 0.334 13.52 13.5 28.1297 0.2440 13.45 13.4   625 69154.307 599.813  8.19 0.006 
above line uses coinc_corr_src:  0.848 corr_bkg:  0.999
   3 w2496607126I  133573.6  0.84   50.6 1133.9 112    217  6984 29.556 0.880 13.39 13.3 28.2362 0.2351 13.44 13.4   675 69578.625 580.558  8.18 0.006 
above line uses coinc_corr_src:  0.838 corr_bkg:  0.999
    Sum (T+123060 to 133625):           14498.8         38.7 (est. in src region)   SNR_unwtd_sum: 120.09 0.9987 signif. UL:  13.41
  0   675 496600528  126974.2   6650.7  -3914.2   28.2362   0.2351 13.441  0.009  -0.009
Total wtd_rate (for all exposures so far): 42363.368 +/-198.858 snr: 213.0 mag:  8.72 UL:  5.49
Rebinned Data for sw00020701001uw2_sk.img using a zero point of 17.068:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      567  126998.1   6626.8  -3938.1   28.2362   0.2351 13.44  0.01  126998.1   28.2362   0.2351 13.44  0.01 13.41
The data range from T+122724.2 s (1.42 d) to T+133625.0 s (1.55 d)
Wrote uvot_fluxes_161006d07h32m42s985660usUT.qdp
Wrote uvot_fluxes_161006d07h32m42s985660usUT.gif
Wrote uvot_fluxes_161006d07h32m42s985660usUT.ps
Wrote uvot_fluxes_161006d07h32m42s985660usUT_vis.qdp
Wrote uvot_fluxes_161006d07h32m42s985660usUT_uv.qdp
Wrote uvot_fluxes_161006d07h32m42s985660usUT_vis.gif
Wrote uvot_fluxes_161006d07h32m42s985660usUT_vis.ps
Wrote uvot_fluxes_161006d07h32m42s985660usUT_uv.gif
Wrote uvot_fluxes_161006d07h32m42s985660usUT_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 4.06e-07  122930.3     39.9    -39.9  206.7104   4.8969 14.50  0.03  122930.3  206.7104   4.8969 14.50  0.03 14.43
  1  5.4e-06  123014.7     39.9    -39.9   65.8184   1.9196 15.74  0.03  123008.8   75.6452   1.8181 15.59  0.03 15.52
  2 6.18e-07  123424.6     39.6    -39.6   53.6266   3.0957 15.97  0.06  123048.8   73.5217   1.6696 15.62  0.02 15.55
  3 3.74e-07  127868.1     39.9    -39.9  206.9105   4.9010 14.50  0.03  123313.9   81.1296   1.5990 15.52  0.02 15.45
  4 3.66e-06  127940.1     27.4    -27.4   61.7282   2.2434 15.81  0.04  124931.8   74.1811   1.3034 15.61  0.02 15.56
  5 3.56e-07  129417.3     39.9    -39.9  212.4924   4.9653 14.47  0.03  125079.3   78.8892   1.2704 15.55  0.02 15.50
  6 5.26e-06  129542.4    409.0    -80.7   62.2249   1.7820 15.80  0.03  126539.7   73.3070   1.0344 15.63  0.02 15.58
  7 2.98e-07  133443.0     39.9    -39.9  234.8201   5.2648 14.36  0.02  126665.2   76.4005   1.0196 15.58  0.01 15.54
  8 4.66e-06  133527.4     39.9    -39.9   65.0498   1.9040 15.76  0.03  128186.1   73.7800   0.8990 15.62  0.01 15.58
The data range from T+122724.2 s (1.42 d) to T+133625.0 s (1.55 d)
Wrote uvot_fluxes_wtd_161006d07h32m42s985660usUT.qdp
Wrote uvot_fluxes_wtd_161006d07h32m42s985660usUT.gif
Wrote uvot_fluxes_wtd_161006d07h32m42s985660usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem