# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 161024d03h18m31s847028usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020702002 -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
# ========= GRB161010A ===================
Used archived uvot source position of 275.21364 -28.78519 3.00
Reference: GCN_Circ_20034
The position is (18:20:51.27, -28:47:06.7)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(275.21364,-28.78519,3") # color=red dash=0
Region file centered at (275.21364,-28.78519), which is (18:20:51.27, -28:47:06.7)
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.
Found 1 bright star(s) within 50.0 arcsec of 275.21364 -28.78519:
ra: 275.2114 dec: -28.7720 mag: 9.62
Subtract UTCF of -16.9902 from uncorrected trigger time of 497799392 in BAT summary file
# ============ Reading file sw00020702001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.167 at 497813043
The processing date in extension 0 is: 2016-10-11T22:54:33
The trigger time is: 497799408.9902. The reference is BAT GRB summary file
Using zero point of 20.123 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(275.21364,-28.78519,25")
fk5;-circle(275.21364,-28.78519,12.5")
fk5;-circle(275.217581,-28.791337,6")
fk5;-circle(275.215008,-28.788469,6")
fk5;-circle(275.205245,-28.787675,6")
fk5;-circle(275.210791,-28.786642,6")
fk5;-circle(275.210145,-28.782334,6")
fk5;-circle(275.218603,-28.783990,6")
fk5;-circle(275.209539,-28.780020,6")
fk5;-circle(275.2114222,-28.7719556,25")
 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 wh497813042I   13633.8  0.85  274.1 2509.3 116  64157  4314  3.714 0.239 18.70 18.5  3.7145 0.2394 18.70 18.5   274 60.109  3.875 15.84 0.008 
above line uses coinc_corr_src:  0.853 corr_bkg:  0.892
   2 wh497819400I   19991.6  0.83  141.1 1509.4 112  32907  4385  6.308 0.369 18.12 17.9  4.5815 0.2016 18.47 18.3   415 77.471  3.548 15.57 0.008 
above line uses coinc_corr_src:  0.832 corr_bkg:  0.893
   3 wh497825406I   25997.8  0.83   47.5  478.0 112  10997  4415  5.592 0.619 18.25 17.9  4.6835 0.1917 18.45 18.3   463 81.024  3.487 15.52 0.007 
above line uses coinc_corr_src:  0.830 corr_bkg:  0.891
   4 wh497829553I   30144.1  0.87   96.6  665.5 108  22457  4166  1.095 0.343 20.02 19.3  4.0467 0.1690 18.61 18.5   559 78.521  3.358 15.55 0.007 
above line uses coinc_corr_src:  0.873 corr_bkg:  0.896
    Sum (T+ 13634 to  30242):            5162.2       3426.8 (est. in src region)   SNR_unwtd_sum:  23.95 0.9987 signif. UL:  18.48
  0   559 497818699   19289.6  10952.7  -5655.8    4.0467   0.1690 18.605  0.046  -0.045
Total wtd_rate (for all exposures so far): 78.521 +/- 3.329 snr: 23.6 mag: 15.55 UL: 15.26
Rebinned Data for sw00020702001uwh_sk.img using a zero point of 20.123:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      234   13870.7    236.9   -236.9    3.7145   0.2394 18.70  0.07   13870.7    3.7145   0.2394 18.70  0.07 18.50
  1      117   20084.0     92.4    -92.4    6.3081   0.3690 18.12  0.06   15947.8    4.5815   0.2016 18.47  0.05 18.34
  2      124   28863.9   1378.3  -2866.1    2.5279   0.3057 19.12  0.12   19311.6    4.0467   0.1690 18.61  0.05 18.48
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020702001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.212 at 497813523
The processing date in extension 0 is:  2016-10-11T22:54:33
The trigger time is: 497799408.9902. 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(275.21364,-28.78519,25")
fk5;-circle(275.21364,-28.78519,12.5")
fk5;-circle(275.217533,-28.791326,6")
fk5;-circle(275.205045,-28.787757,6")
fk5;-circle(275.214950,-28.788446,6")
fk5;-circle(275.210748,-28.786610,6")
fk5;-circle(275.210078,-28.782325,6")
fk5;-circle(275.218529,-28.783957,6")
fk5;-circle(275.209512,-28.779967,6")
fk5;-circle(275.2114222,-28.7719556,25")
 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
High bkg:   1 vv497813522I  390.9  29460  4108 18.348  0.107
   1 vv497813522I   14113.9  0.95  390.9 1141.8 108  29460  4191  1.125 0.100 17.55 17.3  1.1248 0.1002 17.55 17.3   391 178.895 15.934 14.66 0.003 
High bkg:   2 vv497819592I  120.9   9032  4120 18.133  0.191
   2 vv497819592I   20183.5  0.95  120.9  347.5 116   9032  4189  0.922 0.178 17.77 17.3  1.0769 0.0874 17.60 17.4   512 182.504 14.810 14.64 0.003 
    Sum (T+ 14114 to  20306):            1489.3       1009.4 (est. in src region)   SNR_unwtd_sum:  12.33 0.9987 signif. UL:  17.36
  0   512 497815144   15734.9   4571.4  -1621.0    1.0769   0.0874 17.597  0.092  -0.085
Total wtd_rate (for all exposures so far): 82.009 +/- 3.190 snr: 25.7 mag: 15.51 UL: 12.77
Rebinned Data for sw00020702001uvv_sk.img using a zero point of 17.678:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      370   14340.0    226.1   -226.1    1.1248   0.1002 17.55  0.09   14340.0    1.1248   0.1002 17.55  0.09 17.29
  1      115   20244.9     61.4    -61.4    0.9224   0.1783 17.77  0.19   15738.6    1.0769   0.0874 17.60  0.09 17.36
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020702001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.133 at 497811443
The processing date in extension 0 is:  2016-10-11T22:54:32
The trigger time is: 497799408.9902. The reference is BAT GRB summary file
Using zero point of 18.207 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
Using background region based on sources found in extension 7:
# 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(275.21364,-28.78519,25")
fk5;-circle(275.21364,-28.78519,12.5")
fk5;-circle(275.217518,-28.791324,6")
fk5;-circle(275.215128,-28.788600,6")
fk5;-circle(275.209971,-28.782335,6")
fk5;-circle(275.223097,-28.783980,6")
fk5;-circle(275.209350,-28.780156,6")
fk5;-circle(275.2114222,-28.7719556,25")
 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 uu497811442I   12033.8  0.97  569.1 1232.8 116  38494  4707  0.567 0.071 18.82 18.5  0.5667 0.0707 18.82 18.5   569 47.546  5.930 16.10 0.007 
   2 uu497812563I   13154.1  0.98  466.3  773.9 116  21550  4736  0.594 0.068 18.77 18.5  0.5789 0.0494 18.80 18.6  1035 50.903  4.283 16.02 0.008 
   3 uu497817210I   17801.7  0.97  561.3 1199.6 116  37977  4741  0.547 0.071 18.86 18.5  0.5679 0.0405 18.82 18.6  1597 53.937  3.846 15.96 0.007 
   4 uu497819209I   19800.3  0.98  182.0  235.9 104   7843  4653  0.373 0.095 19.28 18.7  0.5478 0.0377 18.86 18.7  1779 53.667  3.686 15.97 0.007 
   5 uu497822972I   23563.1  0.97  737.0 1333.9 116  44840  4707  0.351 0.057 19.34 18.9  0.4900 0.0314 18.98 18.8  2516 54.102  3.425 15.96 0.006 
   6 uu497825342I   25933.9  0.98   57.8   71.5 104   2675  4721  0.243 0.165 19.74 18.5  0.4844 0.0309 18.99 18.8  2573 53.966  3.402 15.96 0.006 
   7 uu497828746I   29337.6  0.98  787.2 1170.5 112  45220  4680  0.126 0.049 20.45 19.6  0.4003 0.0263 19.20 19.0  3361 51.547  3.227 16.01 0.005 
    Sum (T+ 12034 to  30137):            6018.0       4827.3 (est. in src region)   SNR_unwtd_sum:  15.20 0.9987 signif. UL:  19.00
  0  3361 497820114   20704.7   9432.7  -8670.9    0.4003   0.0263 19.201  0.074  -0.069
Total wtd_rate (for all exposures so far): 68.122 +/- 2.276 snr: 29.9 mag: 15.71 UL: 13.52
Rebinned Data for sw00020702001uuu_sk.img using a zero point of 18.207:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.01e+03   12806.2    821.7   -772.4    0.5789   0.0494 18.80  0.09   12806.2    0.5789   0.0494 18.80  0.09 18.55
  1      721   18533.3   1451.8   -731.6    0.5043   0.0583 18.95  0.12   15196.6    0.5478   0.0377 18.86  0.07 18.66
  2      774   24085.9   1906.8   -522.8    0.3429   0.0538 19.37  0.16   17945.5    0.4844   0.0309 18.99  0.07 18.80
  3      768   29737.5    399.9   -399.9    0.1263   0.0495 20.45  0.36   20716.1    0.4003   0.0263 19.20  0.07 19.00
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020702002um2_sk.img ================
Use keyword TRIGTIME of 497799408.867 for trigger time.
Long-term sensitivity correction to zero point is -0.257 at 498018204
The processing date in extension 0 is:  2016-10-24T03:02:59
The trigger time is: 497799408.867. The reference is keyword in image file
Using zero point of 16.593 for filter UVM2
Use aperture correction of  1.106 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(275.21364,-28.78519,25")
fk5;-circle(275.21364,-28.78519,12.5")
fk5;-circle(275.210096,-28.782251,6")
fk5;-circle(275.2114222,-28.7719556,25")
 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 m2498018204I  218795.2  1.00 1276.5   51.5 116   2756  5400 -0.007 0.006 99.00 21.1 -0.0067 0.0063 99.00 21.1  1276 -43.967 41.625 99.00 0.003 
   2 m2498024950I  225541.4  1.00 1250.6   46.7 112   2370  5396 -0.002 0.006 99.00 21.0 -0.0045 0.0044 99.00 21.5  2527 -29.040 29.454 99.00 0.003 
   3 m2498029709I  230300.4  1.00 1468.1   84.7 112   3050  5404  0.016 0.007 21.07 20.2  0.0031 0.0038 22.86 21.2  3995 20.338 25.605 17.02 0.003 
   4 m2498036687I  237279.1  1.00  268.7   12.3 116    528  5424  0.004 0.015 22.55 19.8  0.0032 0.0037 22.84 21.2  4264 20.870 24.866 16.99 0.003 
    Sum (T+218795 to 237552):             195.1        182.9 (est. in src region)   SNR_unwtd_sum:   0.87 0.9987 signif. UL:  21.19
  0  4264 498025955  226545.8  11006.3  -7750.5    0.0032   0.0037 22.837 76.163  -0.832
Total wtd_rate (for all exposures so far): 68.194 +/- 2.279 snr: 29.9 mag: 15.71 UL: 11.90
Rebinned Data for sw00020702002um2_sk.img using a zero point of 16.593:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.26e+03  226545.8  11006.3  -7750.5    0.0032   0.0037 22.84  0.83  226545.8    0.0032   0.0037 22.84  0.83 21.19
The data range from T+12033.8 s (0.14 d) to T+237552.1 s (2.75 d)
Wrote uvot_fluxes_161024d03h18m31s847028usUT.qdp
Wrote uvot_fluxes_161024d03h18m31s847028usUT.gif
Wrote uvot_fluxes_161024d03h18m31s847028usUT.ps
Wrote uvot_fluxes_161024d03h18m31s847028usUT_vis.qdp
Wrote uvot_fluxes_161024d03h18m31s847028usUT_uv.qdp
Wrote uvot_fluxes_161024d03h18m31s847028usUT_vis.gif
Wrote uvot_fluxes_161024d03h18m31s847028usUT_vis.ps
Wrote uvot_fluxes_161024d03h18m31s847028usUT_uv.gif
Wrote uvot_fluxes_161024d03h18m31s847028usUT_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   0.0651   13743.0    364.6  -1709.2    4.2894   0.2501 18.71  0.06   13743.0    4.2894   0.2501 18.71  0.06 18.53
  1 0.000355   14340.0    226.1   -226.1   12.4752   1.1112 17.55  0.09   13746.2    4.3357   0.2488 18.70  0.06 18.52
  2  0.00281   18651.2   1333.9   -849.5    3.3315   0.3875 18.98  0.12   13948.2    4.2804   0.2361 18.71  0.06 18.54
  3   0.0115   20084.8    221.5    -93.2    7.3735   0.4285 18.12  0.06   14834.0    4.8849   0.2076 18.57  0.05 18.44
  4   0.0019   24120.6   1872.1   -557.5    2.3169   0.3645 19.38  0.16   15049.9    4.7892   0.2003 18.59  0.04 18.46
  5  0.00243   26021.9     24.1    -24.1    6.5237   0.7219 18.25  0.11   15366.6    4.8740   0.1937 18.57  0.04 18.45
  6  0.00734   30102.4    139.9   -764.8    1.1951   0.3280 20.10  0.26   16549.0    4.3371   0.1722 18.70  0.04 18.57
The data range from T+12033.8 s (0.14 d) to T+237552.1 s (2.75 d)
Wrote uvot_fluxes_wtd_161024d03h18m31s847028usUT.qdp
Wrote uvot_fluxes_wtd_161024d03h18m31s847028usUT.gif
Wrote uvot_fluxes_wtd_161024d03h18m31s847028usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem