# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 150105d01h19m08s917580usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020464002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -search_src_reg -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB150101B ===================
Used archived XRT position of 188.02119 -10.93389 4.00
Reference: xrt_web_site
The position is (12:32:05.09, -10:56:02.0)
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(188.02119,-10.93389,4") # color=red dash=0
Region file centered at (188.02119,-10.93389), which is (12:32:05.09, -10:56:02.0)
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 -12.9926 from trigger time of 441818580 in BAT summary file
# ============ Reading file sw00020464001uwh_sk.img ================
Long-term sensitivity correction is 0.102 at 441957829
The processing date in extension 0 is: 2015-01-03T21:05:02
The trigger time is: 441818592.9926. The reference is BAT GRB summary file
Using zero point of 20.392 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
 17 7702.6 186.60660 -12.77842 0.286 113.4
Using background region based on sources found in extension 23:
# 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(188.02119,-10.93389,25")
fk5;-circle(188.02119,-10.93389,12.5")
fk5;-circle(188.020121,-10.925522,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 wh441957828I  139235.5  0.92   60.8  574.6 200  10514  5970  4.113 0.460 18.86 18.5  4.1135 0.4601 18.86 18.5    61 521.531 58.337 13.50 0.001 
   2 wh441957893I  139300.0  0.90  381.6 4438.3 196  96155  5972  3.885 0.209 18.92 18.8  3.9174 0.1907 18.91 18.8   442 499.206 24.192 13.54 0.001 
above line uses coinc_corr_src:  0.895 corr_bkg:  0.918
High bkg:   3 wh441958514I   18.7   7101  5832 65.080  0.772
   3 wh441958514I  139921.7  0.86   18.7  303.4 204   7101  5966  3.911 1.169 18.91 18.2  3.9172 0.1888 18.91 18.8   461 499.185 23.884 13.54 0.001 
above line uses coinc_corr_src:  0.856 corr_bkg:  0.876
   4 wh441961732I  143139.7  0.93  126.2 1060.0 204  16566  5991  4.374 0.296 18.79 18.6  4.0181 0.1610 18.88 18.8   587 522.668 20.455 13.49 0.001 
   5 wh441963628I  145035.1  0.92   56.9  576.8 208  10279  6035  4.418 0.495 18.78 18.5  4.0538 0.1531 18.87 18.8   644 528.255 19.521 13.48 0.001 
   6 wh441963688I  145095.6  0.89  348.7 4212.9 200  90782  6015  3.979 0.224 18.89 18.7  4.0279 0.1266 18.88 18.8   993 527.823 16.327 13.48 0.001 
above line uses coinc_corr_src:  0.891 corr_bkg:  0.914
   7 wh441964273I  145680.1  0.87   15.8  234.9 204   5362  6005  3.977 1.200 18.89 18.2  4.0272 0.1260 18.88 18.8  1009 527.820 16.244 13.48 0.001 
above line uses coinc_corr_src:  0.866 corr_bkg:  0.888
   8 wh441967507I  148914.3  0.93  211.4 1622.7 192  27590  5991  3.875 0.218 18.92 18.8  3.9999 0.1106 18.89 18.8  1220 527.254 14.277 13.48 0.001 
   9 wh441967725I  149132.0  0.93  310.9 2550.4 200  40618  6013  4.292 0.186 18.81 18.7  4.0606 0.0958 18.87 18.8  1531 542.416 12.465 13.45 0.001 
  10 wh441969634I  151041.5  0.90   36.2  412.3 204   7931  5983  4.490 0.673 18.76 18.4  4.0705 0.0948 18.87 18.8  1567 543.660 12.354 13.45 0.001 
  11 wh441969673I  151080.8  0.87  224.6 3019.9 200  69109  5998  3.775 0.302 18.95 18.7  4.0348 0.0910 18.88 18.8  1792 542.110 11.863 13.46 0.001 
above line uses coinc_corr_src:  0.873 corr_bkg:  0.896
High bkg:  12 wh441970043I    7.8   3139  5808 69.127  1.234
  12 wh441970043I  151450.0  0.85    7.8  128.1 196   3139  5940  3.823 1.840 18.94 18.0  4.0339 0.0910 18.88 18.8  1799 542.085 11.851 13.46 0.001 
above line uses coinc_corr_src:  0.850 corr_bkg:  0.870
  13 wh441973288I  154695.7  0.93  208.4 1697.5 200  27431  6009  4.188 0.227 18.84 18.7  4.0503 0.0848 18.87 18.8  2008 548.486 11.120 13.44 0.001 
  14 wh441973503I  154910.4  0.93  647.1 5556.6 208  85139  5998  4.484 0.132 18.76 18.7  4.1579 0.0717 18.84 18.8  2655 572.530  9.566 13.40 0.001 
  15 wh441975630I  157037.1  0.89   15.5  191.3 200   4405  5963  3.272 1.103 19.11 18.3  4.1529 0.0716 18.85 18.8  2671 572.227  9.549 13.40 0.001 
above line uses coinc_corr_src:  0.888 corr_bkg:  0.905
  16 wh441975648I  157055.5  0.87  119.7 1658.8 196  39128  5988  3.737 0.422 18.96 18.6  4.1357 0.0708 18.85 18.8  2790 571.517  9.438 13.40 0.001 
above line uses coinc_corr_src:  0.874 corr_bkg:  0.895
  18 wh441979021I  160428.5  0.93  210.4 1729.3 200  27858  6034  4.267 0.227 18.82 18.7  4.1451 0.0677 18.85 18.8  3001 575.697  9.080 13.39 0.001 
  19 wh441979238I  160645.3  0.93 1026.2 8759.1 208 134764  5998  4.433 0.105 18.77 18.7  4.2194 0.0570 18.83 18.8  4027 596.057  7.817 13.35 0.001 
  20 wh441984772I  166179.6  0.93  210.4 1683.9 196  27968  6016  4.084 0.224 18.86 18.7  4.2126 0.0553 18.83 18.8  4237 597.221  7.617 13.35 0.001 
  21 wh441984989I  166396.3  0.93 1441.0 11934.4 200 189555  5983  4.327 0.087 18.80 18.7  4.2419 0.0468 18.82 18.8  5678 613.045  6.604 13.32 0.001 
  22 wh441990524I  171931.5  0.93  210.4 1688.8 188  27563  5979  4.337 0.223 18.80 18.6  4.2454 0.0458 18.82 18.8  5889 615.491  6.490 13.32 0.001 
  23 wh441990741I  172148.3  0.93 1853.0 16439.2 208 275897  6028  4.174 0.080 18.84 18.8  4.2283 0.0397 18.83 18.8  7742 624.135  5.766 13.30 0.001 
High bkg:  24 wh441992887I   74.1  29005  5832 67.141  0.394
  24 wh441992887I  174294.2  0.85   74.1 1235.2 204  29005  5978  4.029 0.597 18.88 18.5  4.2265 0.0397 18.83 18.8  7816 624.175  5.756 13.30 0.001 
above line uses coinc_corr_src:  0.851 corr_bkg:  0.872
  25 wh441996278I  177685.6  0.93  210.4 1725.0 204  27298  5990  4.204 0.226 18.83 18.7  4.2259 0.0391 18.83 18.8  8026 625.576  5.686 13.30 0.001 
  26 wh441996495I  177902.7  0.93  658.3 5194.5 188  85207  5970  4.235 0.125 18.82 18.7  4.2266 0.0374 18.83 18.8  8684 630.366  5.476 13.29 0.001 
    Sum (T+139236 to 178571):           78627.8      45911.1 (est. in src region)   SNR_unwtd_sum: 113.10 0.9987 signif. UL:  18.80
  0  8684 441981643  163049.8  15521.6 -23814.3    4.2266   0.0374 18.827  0.010  -0.010
Total wtd_rate (for all exposures so far): 630.366 +/- 5.314 snr: 118.6 mag: 13.29 UL: 13.37
# ============ Reading file sw00020464002uwh_sk.img ================
Long-term sensitivity correction is  0.102 at 442059838
The processing date in extension 0 is:  2015-01-05T01:09:05
The trigger time is: 441818592.9926. The reference is BAT GRB summary file
Using zero point of 20.392 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(188.02119,-10.93389,25")
fk5;-circle(188.02119,-10.93389,12.5")
fk5;-circle(188.020152,-10.925530,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 wh442059837I  241244.6  0.93  295.0 2367.8 200  38132  5993  4.125 0.189 18.85 18.7  4.1253 0.1889 18.85 18.7   295 906.565 41.513 12.90 0.001 
   2 wh442065607I  247014.5  0.93  295.0 2302.8 200  37571  5974  3.930 0.186 18.91 18.8  4.0278 0.1326 18.88 18.8   590 895.645 29.480 12.91 0.001 
    Sum (T+241245 to 247314):            4670.6       2530.3 (est. in src region)   SNR_unwtd_sum:  30.38 0.9987 signif. UL:  18.78
  0   590 442062872  244279.4   3034.9  -3034.9    4.0278   0.1326 18.879  0.037  -0.035
Total wtd_rate (for all exposures so far): 639.404 +/- 5.225 snr: 122.4 mag: 13.28 UL: 13.35
Rebinned Data for sw00020464002uwh_sk.img using a zero point of 20.392:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.89e+03  153564.9  12828.5 -14329.3    4.2126   0.0553 18.83  0.02  153564.9    4.2126   0.0553 18.83  0.02 18.79
  1 4.12e+03  172167.7   6403.8  -5771.4    4.2398   0.0505 18.82  0.01  163139.6    4.2266   0.0374 18.83  0.01 18.80
  2      550  244281.3   3033.0  -3036.8    4.0278   0.1326 18.88  0.04  168351.9    4.2138   0.0360 18.83  0.01 18.80
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020464002uvv_sk.img ================
Long-term sensitivity correction is  0.150 at 442060143
The processing date in extension 0 is:  2015-01-05T01:09:05
The trigger time is: 441818592.9926. The reference is BAT GRB summary file
Using zero point of 18.040 for filter V
Use aperture correction of  1.030 based on aperture of  4.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(188.02119,-10.93389,25")
fk5;-circle(188.02119,-10.93389,12.5")
fk5;-circle(188.020154,-10.925536,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 vv442060143I  241550.4  0.98  292.9  638.2 188   9070  5874  1.246 0.091 17.80 17.6  1.2461 0.0911 17.80 17.6   293 2393.391 175.044 11.84 0.001 
   2 vv442065913I  247320.4  0.98  637.4 1394.2 204  19710  5869  1.167 0.062 17.87 17.7  1.1920 0.0513 17.85 17.7   930 2329.989 100.142 11.87 0.000 
    Sum (T+241550 to 247968):            2032.4        975.4 (est. in src region)   SNR_unwtd_sum:  23.26 0.9987 signif. UL:  17.72
  0   930 442064365  245772.4   2195.6  -4222.0    1.1920   0.0513 17.849  0.048  -0.046
Total wtd_rate (for all exposures so far): 641.816 +/- 5.194 snr: 123.6 mag: 13.27 UL: 10.99
Rebinned Data for sw00020464002uvv_sk.img using a zero point of 18.040:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      913  245772.3   2195.8  -4221.8    1.1920   0.0513 17.85  0.05  245772.3    1.1920   0.0513 17.85  0.05 17.72
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020464002uuu_sk.img ================
Long-term sensitivity correction is  0.102 at 442059532
The processing date in extension 0 is:  2015-01-05T01:09:05
The trigger time is: 441818592.9926. The reference is BAT GRB summary file
Using zero point of 18.442 for filter U
Use aperture correction of  1.032 based on aperture of  4.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(188.02119,-10.93389,25")
fk5;-circle(188.02119,-10.93389,12.5")
fk5;-circle(188.020122,-10.925564,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 uu442059531I  240938.7  0.99  295.0  379.3 200   6432  5872  0.566 0.070 19.06 18.7  0.5663 0.0695 19.06 18.7   295 748.972 91.932 13.10 0.001 
   2 uu442061864I  243271.3  0.97  223.9  705.1 200  17056  5866  0.586 0.128 19.02 18.5  0.5748 0.0675 19.04 18.7   519 754.686 81.622 13.10 0.000 
   3 uu442065301I  246708.1  0.99  295.0  343.3 196   6397  5845  0.455 0.066 19.30 18.9  0.5312 0.0492 19.13 18.9   814 692.881 60.346 13.19 0.001 
High bkg:   4 uu442067803I   39.3   4112  5856 17.869  0.279
   4 uu442067803I  249210.9  0.96   39.3  144.3 196   4112  5864  0.186 0.332 20.27 18.2  0.5157 0.0494 19.16 18.9   853 687.892 59.883 13.20 0.001 
    Sum (T+240939 to 249251):            1571.9       1152.6 (est. in src region)   SNR_unwtd_sum:  10.45 0.9987 signif. UL:  18.89
  0   853 442062654  244061.1   5189.7  -3122.4    0.5157   0.0494 19.161  0.109  -0.099
Total wtd_rate (for all exposures so far): 643.307 +/- 5.184 snr: 124.1 mag: 13.27 UL: 11.39
Rebinned Data for sw00020464002uuu_sk.img using a zero point of 18.442:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      839  244058.2   5192.6  -3119.5    0.5157   0.0494 19.16  0.10  244058.2    0.5157   0.0494 19.16  0.10 18.89
The data range from T+139235.5 s (1.61 d) to T+249250.8 s (2.88 d)
Wrote uvot_fluxes_150105d01h19m08s917580usUT.qdp
Wrote uvot_fluxes_150105d01h19m08s917580usUT.gif
Wrote uvot_fluxes_150105d01h19m08s917580usUT.ps
Wrote uvot_fluxes_150105d01h19m08s917580usUT_vis.qdp
Wrote uvot_fluxes_150105d01h19m08s917580usUT_uv.qdp
Wrote uvot_fluxes_150105d01h19m08s917580usUT_vis.gif
Wrote uvot_fluxes_150105d01h19m08s917580usUT_vis.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  0.00905  146821.8   8085.6  -7586.3    3.7106   0.0750 18.87  0.02  146821.8    3.7106   0.0750 18.87  0.02 18.80
  1   0.0279  167490.2  11081.2 -12579.8    3.9044   0.0375 18.81  0.01  162424.9    3.8615   0.0336 18.82  0.01 18.80
  2 2.16e-05  241088.6    149.9   -149.9    3.1066   0.3813 19.06  0.12  162470.9    3.8609   0.0336 18.82  0.01 18.80
  3 0.000637  241394.5    149.9   -149.9    3.7555   0.1720 18.85  0.05  163809.7    3.8582   0.0330 18.82  0.01 18.80
  4 4.11e-06  241699.2    148.8   -148.8    9.9024   0.7242 17.80  0.08  163818.2    3.8592   0.0330 18.82  0.01 18.80
  5  2.9e-05  246106.9    901.0  -2835.5    2.6507   0.3223 19.23  0.12  163881.6    3.8578   0.0330 18.82  0.01 18.80
  6 0.000627  247164.4    149.9   -149.9    3.5780   0.1694 18.91  0.05  165246.5    3.8509   0.0324 18.83  0.01 18.80
  7 8.46e-06  247644.2    323.8   -323.8    9.2746   0.4926 17.87  0.06  165264.7    3.8527   0.0324 18.83  0.01 18.80
  8 8.82e-07  249230.9     20.0    -20.0    1.0222   1.8236 20.27  1.11  165266.7    3.8526   0.0324 18.83  0.01 18.80
The data range from T+139235.5 s (1.61 d) to T+249250.8 s (2.88 d)
Wrote uvot_fluxes_wtd_150105d01h19m08s917580usUT.qdp
Wrote uvot_fluxes_wtd_150105d01h19m08s917580usUT.gif
Wrote uvot_fluxes_wtd_150105d01h19m08s917580usUT.ps
Found 4 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem