# uvot_fluxes_wget.pl vrs. 2011-11-14 fem at 120101d05h41m57s074128usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020194002 -use_uvot -rebin -plot_mag -wrk_dir=/local/data/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/data/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB111222A ===================
Used archived XRT position of 179.21975 69.07117 4.00
Reference: GCN_Circulars-12716-Fri,_23_Dec_2011_16:24:30_-0500_(EST)
The position is (11:56:52.74, +69:04:16.2)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global color=red font="helvetica 10 normal" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source
fk5;circle(179.21975,69.07117,4")
Region file centered at (179.21975,69.07117), which is (11:56:52.74, +69:04:16.2)
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 -7.69774 from trigger time of 346258315 in BAT summary file
# ============ Reading file sw00020194002uwh_sk.img ================
The processing date in extension 0 is: 2012-01-01T04:59:37
The trigger time is: 346258322.69774. The reference is BAT GRB summary file
Using zero point of 20.29 for filter WHITE
Use aperture correction of 1.035 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(179.21975,69.07117,25")
fk5;-circle(179.21975,69.07117,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 wh347015573I  757251.0  0.97  102.1  323.4 204   6204  5872  1.125 0.190 20.16 19.7  1.1246 0.1896 20.16 19.7   102 851.678 143.577 12.96 0.001 
   2 wh347015680I  757357.8  0.97 1025.4 3137.9 200  62487  5890  1.055 0.059 20.23 20.1  1.0609 0.0562 20.23 20.1  1127 803.903 42.566 13.03 0.001 
   3 wh347016727I  758404.3  0.97  112.2  355.0 204   6791  5905  1.143 0.181 20.14 19.7  1.0684 0.0536 20.22 20.1  1240 809.573 40.656 13.02 0.001 
   4 wh347021455I  763132.6  0.97   96.2  302.3 200   5885  5886  1.130 0.194 20.16 19.7  1.0728 0.0517 20.21 20.1  1336 813.344 39.207 13.01 0.001 
   5 wh347021556I  763233.4  0.97  963.3 3127.6 208  59631  5921  1.141 0.062 20.15 20.0  1.1013 0.0399 20.18 20.1  2299 836.773 30.296 12.98 0.001 
   6 wh347022539I  764216.8  0.97   60.5  198.9 200   3670  5885  1.308 0.251 20.00 19.5  1.1066 0.0394 20.18 20.1  2360 840.990 29.927 12.98 0.001 
   7 wh347027174I  768852.2  0.97   94.3  276.4 200   5724  5864  0.915 0.190 20.39 19.9  1.0993 0.0385 20.19 20.1  2454 835.706 29.318 12.98 0.001 
   8 wh347027274I  768951.4  0.97  943.7 2821.6 200  57025  5865  0.988 0.061 20.30 20.1  1.0683 0.0325 20.22 20.1  3398 814.676 24.814 13.01 0.001 
   9 wh347028237I  769914.8  0.97  121.6  338.9 192   7396  5870  0.848 0.163 20.47 20.0  1.0607 0.0319 20.23 20.1  3519 808.863 24.342 13.02 0.001 
  10 wh347033034I  774711.6  0.97   90.3  274.2 208   5447  5923  0.975 0.197 20.32 19.8  1.0585 0.0315 20.23 20.1  3610 807.568 24.039 13.02 0.001 
  11 wh347033128I  774806.2  0.97  907.2 2759.4 204  54870  5866  0.997 0.062 20.29 20.1  1.0462 0.0281 20.24 20.2  4517 800.846 21.521 13.03 0.001 
  12 wh347034055I  775732.6  0.97   64.6  218.1 200   4019  5881  1.344 0.246 19.97 19.5  1.0504 0.0279 20.24 20.2  4581 804.121 21.387 13.03 0.001 
  13 wh347067679I  809356.7  0.97   23.4   70.3 200   1393  5874  1.040 0.386 20.25 19.4  1.0504 0.0279 20.24 20.2  4605 804.299 21.337 13.03 0.001 
  14 wh347067705I  809383.0  0.97  234.0  716.0 204  14401  5879  0.982 0.123 20.31 20.0  1.0471 0.0272 20.24 20.2  4839 803.902 20.863 13.03 0.001 
  15 wh347067946I  809623.9  0.97   73.1  199.7 188   4414  5858  0.844 0.208 20.48 19.9  1.0440 0.0269 20.24 20.2  4912 802.143 20.705 13.03 0.001 
    Sum (T+757251 to 809698):           15119.8      10298.3 (est. in src region)   SNR_unwtd_sum:  38.76 0.9987 signif. UL:  20.16
  0  4912  769171.5  40526.7 -11920.5    1.0440   0.0269 20.24  0.03
Total wtd_rate (for all exposures so far): 802.143 +/-20.466 snr: 39.2 mag: 13.03 UL: 12.95
Rebinned Data for sw00020194002uwh_sk.img using a zero point of 20.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.78e+03  769177.1  40521.1 -11926.1    1.0440   0.0269 20.24  0.03  769177.1    1.0440   0.0269 20.24  0.03 20.16
The data range from T+757251.0 s (8.76 d) to T+809698.2 s (9.37 d)
Wrote uvot_fluxes_120101d05h41m57s074128usUT.qdp
Wrote uvot_fluxes_120101d05h41m57s074128usUT.gif
Wrote uvot_fluxes_120101d05h41m57s074128usUT.ps
Wrote uvot_fluxes_120101d05h41m57s074128usUT_vis.qdp
Wrote uvot_fluxes_120101d05h41m57s074128usUT_uv.qdp
Wrote uvot_fluxes_120101d05h41m57s074128usUT_vis.gif
Wrote uvot_fluxes_120101d05h41m57s074128usUT_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.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  0.00233  768948.3  40749.9 -11697.3    1.0415   0.0269 20.25  0.03  768948.3    1.0415   0.0269 20.25  0.03 20.16
The data range from T+757251.0 s (8.76 d) to T+809698.2 s (9.37 d)
Wrote uvot_fluxes_wtd_120101d05h41m57s074128usUT.qdp
Wrote uvot_fluxes_wtd_120101d05h41m57s074128usUT.gif
Wrote uvot_fluxes_wtd_120101d05h41m57s074128usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2011-11-14 fem