# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 160827d09h54m52s750968usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020685001 -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
# ========= GRB160816A ===================
Used archived opt source position of 322.41062 37.13300 3.00
Reference: GCN_Circulars-19809
The position is (21:29:38.55, +37:07:58.8)
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(322.41062,37.13300,3") # color=red dash=0
Region file centered at (322.41062,37.13300), which is (21:29:38.55, +37:07:58.8)
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.74486 from uncorrected trigger time of 493061457.97 in BAT summary file
# ============ Reading file sw00020685001uwh_sk.img ================
Use keyword TRIGTIME of 493061474.544 for trigger time.
Long-term sensitivity correction to zero point is -0.165 at 493089075
The processing date in extension 0 is: 2016-08-27T09:31:21
The trigger time is: 493061474.544. The reference is keyword in image file
Using zero point of 20.125 for filter WHITE
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(322.41062,37.13300,25")
fk5;-circle(322.41062,37.13300,12.5")
fk5;-circle(322.411796,37.125291,6")
fk5;-circle(322.409953,37.125452,6")
fk5;-circle(322.418646,37.127546,6")
fk5;-circle(322.415196,37.128867,6")
fk5;-circle(322.419687,37.134161,6")
fk5;-circle(322.416161,37.133695,6")
fk5;-circle(322.402495,37.135683,6")
fk5;-circle(322.412629,37.136750,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 wh493089075I   27600.9  0.97   53.9  107.4 108   3227  4187  0.513 0.222 20.85 19.9  0.5132 0.2224 20.85 19.9    54 16.507  7.154 17.25 0.019 
   2 wh493093314I   31839.7  0.97    6.5   11.6 128    363  4257  0.112 0.600 22.50 19.4  0.4696 0.2087 20.95 20.0    60 15.533  6.820 17.31 0.019 
   3 wh493099004I   37530.1  0.97  252.2  460.4 112  14916  4201  0.283 0.098 21.49 20.7  0.3193 0.0889 21.36 20.7   313 13.370  3.642 17.48 0.015 
   4 wh493104745I   43271.3  0.97  565.9 1008.8 112  33629  4201  0.226 0.065 21.74 21.1  0.2592 0.0523 21.59 21.1   879 12.343  2.440 17.56 0.013 
   5 wh493110538I   49063.5  0.97   74.2  140.8 116   4360  4230  0.327 0.185 21.34 20.3  0.2644 0.0504 21.57 21.1   953 12.670  2.377 17.53 0.013 
    Sum (T+ 27601 to  49139):            1729.0       1508.1 (est. in src region)   SNR_unwtd_sum:   5.25 0.9987 signif. UL:  21.08
  0   953 493102921   41446.8   7692.1 -13845.9    0.2644   0.0504 21.569  0.229  -0.189
Total wtd_rate (for all exposures so far): 12.670 +/- 2.350 snr:  5.4 mag: 17.53 UL: 16.89
Rebinned Data for sw00020685001uwh_sk.img using a zero point of 20.125:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     58.5   28087.1   3759.2   -486.2    0.4696   0.2087 20.95  0.40   28087.1    0.4696   0.2087 20.95  0.40 20.02
  1      867   42352.1   6786.8  -4822.1    0.2506   0.0519 21.63  0.21   41450.5    0.2644   0.0504 21.57  0.19 21.08
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020685001uvv_sk.img ================
Use keyword TRIGTIME of 493061474.544 for trigger time.
Long-term sensitivity correction to zero point is -0.209 at 493089136
The processing date in extension 0 is:  2016-08-27T09:31:21
The trigger time is: 493061474.544. The reference is keyword in image file
Using zero point of 17.681 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(322.41062,37.13300,25")
fk5;-circle(322.41062,37.13300,12.5")
fk5;-circle(322.411762,37.125260,6")
fk5;-circle(322.409889,37.125396,6")
fk5;-circle(322.419757,37.134103,6")
fk5;-circle(322.416021,37.133791,6")
fk5;-circle(322.402418,37.135643,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 vv493089135I   27661.2  0.99   41.2   21.3 116    664  5027  0.158 0.124 19.68 18.4  0.1582 0.1237 19.68 18.4    41 48.445 37.869 16.08 0.009 
    Sum (T+ 27661 to  27703):              21.3         15.3 (est. in src region)   SNR_unwtd_sum:   1.28 0.9987 signif. UL:  18.36
  0    41 493089157   27682.2     20.9    -20.9    0.1582   0.1237 19.682  1.653  -0.627
Total wtd_rate (for all exposures so far): 12.601 +/- 2.303 snr:  5.5 mag: 17.54 UL: 14.45
Rebinned Data for sw00020685001uvv_sk.img using a zero point of 17.681:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     40.9   27682.2     20.9    -20.9    0.1582   0.1237 19.68  0.63   27682.2    0.1582   0.1237 19.68  0.63 18.36
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020685001uuu_sk.img ================
Use keyword TRIGTIME of 493061474.544 for trigger time.
Long-term sensitivity correction to zero point is -0.131 at 493086697
The processing date in extension 0 is:  2016-08-27T09:31:21
The trigger time is: 493061474.544. The reference is keyword in image file
Using zero point of 18.209 for filter U
Use aperture correction of  1.100 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(322.41062,37.13300,25")
fk5;-circle(322.41062,37.13300,12.5")
fk5;-circle(322.409980,37.125523,6")
fk5;-circle(322.411824,37.125306,6")
fk5;-circle(322.418681,37.127617,6")
fk5;-circle(322.415147,37.128791,6")
fk5;-circle(322.419698,37.134186,6")
fk5;-circle(322.416130,37.133685,6")
fk5;-circle(322.402496,37.135667,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 uu493086696I   25222.2  0.99  673.5  267.8 116   7884  4510  0.107 0.027 20.64 20.0  0.1068 0.0271 20.64 20.0   673 18.561  4.713 17.12 0.019 
   2 uu493089015I   27540.9  1.00   53.9   13.8 116    632  4516 -0.050 0.077 99.00 19.9  0.0952 0.0258 20.76 20.1   727 16.759  4.507 17.23 0.019 
   3 uu493092527I   31053.2  0.99  767.5  259.1 116   8591  4517  0.055 0.023 21.35 20.5  0.0748 0.0174 21.02 20.4  1495 14.670  3.353 17.37 0.018 
   4 uu493098193I   36718.6  1.00  792.1  275.7 116   9084  4520  0.059 0.023 21.27 20.4  0.0694 0.0140 21.11 20.6  2287 14.743  2.917 17.37 0.016 
   5 uu493103934I   42459.8  0.99  792.1  264.9 116   9238  4536  0.040 0.023 21.70 20.6  0.0619 0.0119 21.23 20.7  3079 14.286  2.675 17.40 0.015 
   6 uu493109749I   48274.9  1.00  768.5  246.7 112   8636  4531  0.048 0.023 21.51 20.5  0.0590 0.0106 21.28 20.8  3847 14.446  2.522 17.39 0.014 
    Sum (T+ 25222 to  49056):            1328.0       1122.4 (est. in src region)   SNR_unwtd_sum:   5.58 0.9987 signif. UL:  20.81
  0  3847 493098794   37319.3  11736.4 -12097.1    0.0590   0.0106 21.281  0.215  -0.179
Total wtd_rate (for all exposures so far): 13.552 +/- 1.703 snr:  8.0 mag: 17.46 UL: 15.03
Rebinned Data for sw00020685001uuu_sk.img using a zero point of 18.209:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      724   25713.1   1882.7   -490.9    0.0952   0.0258 20.76  0.26   25713.1    0.0952   0.0258 20.76  0.26 20.12
  1      764   31443.1    389.9   -389.9    0.0554   0.0234 21.35  0.38   28655.2    0.0748   0.0174 21.02  0.23 20.45
  2 1.58e+03   39991.5   3273.1  -3272.9    0.0497   0.0164 21.47  0.31   34488.3    0.0619   0.0119 21.23  0.19 20.73
  3      765   48665.3    390.4   -390.4    0.0477   0.0228 21.51  0.43   37321.1    0.0590   0.0106 21.28  0.18 20.81
The data range from T+25222.2 s (0.29 d) to T+49138.9 s (0.57 d)
Wrote uvot_fluxes_160827d09h54m52s750968usUT.qdp
Wrote uvot_fluxes_160827d09h54m52s750968usUT.gif
Wrote uvot_fluxes_160827d09h54m52s750968usUT.ps
Wrote uvot_fluxes_160827d09h54m52s750968usUT_vis.qdp
Wrote uvot_fluxes_160827d09h54m52s750968usUT_uv.qdp
Wrote uvot_fluxes_160827d09h54m52s750968usUT_vis.gif
Wrote uvot_fluxes_160827d09h54m52s750968usUT_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.0242   27061.2    641.9  -1839.0    0.6061   0.1903 20.83  0.30   27061.2    0.6061   0.1903 20.83  0.30 20.11
  1   0.0118   33527.0   3996.4  -2473.7    0.3529   0.1376 21.42  0.36   29184.8    0.5106   0.1294 21.02  0.25 20.40
  2    0.129   41425.2   2421.1  -3895.1    0.2851   0.0615 21.65  0.21   38761.2    0.3221   0.0557 21.52  0.17 21.07
  3   0.0103   48991.9    147.0   -717.0    0.3665   0.1659 21.38  0.41   39361.0    0.3253   0.0530 21.51  0.16 21.08
The data range from T+25222.2 s (0.29 d) to T+49138.9 s (0.57 d)
Wrote uvot_fluxes_wtd_160827d09h54m52s750968usUT.qdp
Wrote uvot_fluxes_wtd_160827d09h54m52s750968usUT.gif
Wrote uvot_fluxes_wtd_160827d09h54m52s750968usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem