# uvot_fluxes_wget.pl vrs. 2011-06-09 fem at 110923d16h13m34s563597usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020187001 -use_uvot -rebin -plot_mag -wrk_dir=/local/data/khamseen10/uvot_tdrss/uvot_lc -web -useprev -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/data/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB110918A ===================
Used archived opt source position of 32.53912 -27.10544 3.00
Reference: GCN_Circulars-12365
The position is (02:10:09.39, -27:06:19.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global color=red font="helvetica 10 normal" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source
fk5;circle(32.53912,-27.10544,3")
Region file centered at (32.53912,-27.10544), which is (02:10:09.39, -27:06:19.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 -7.3774 from trigger time of 338074017 in BAT summary file
# ============ Reading file sw00020187001uwh_sk.img ================
Use keyword TRIGTIME of 338074024.352 for trigger time.
The processing date in extension 0 is: 2011-09-23T15:33:48
The trigger time is: 338074024.352. The reference is keyword in image file
Using zero point of 20.29 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 8:
# 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(32.53912,-27.10544,25")
fk5;-circle(32.53912,-27.10544,12.5")
fk5;-circle(32.546698,-27.104025,6")
fk5;-circle(32.542961,-27.105245,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 wh338227296I  153272.0  0.97   69.6  170.2 104   4983  5399  1.218 0.215 20.08 19.6  1.2177 0.2152 20.08 19.6    70 186.682 32.997 14.61 0.005 
   2 wh338227369I  153345.6  0.95  698.6 2348.5 112  82298  5408  1.072 0.081 20.21 20.0  1.0854 0.0764 20.20 20.0   768 168.165 11.728 14.73 0.003 
   3 wh338228083I  154059.5  0.91   23.5  122.9 104   5943  5372  0.409 0.598 21.26 19.4  1.0662 0.0761 20.22 20.0   792 166.832 11.638 14.73 0.003 
   4 wh338232493I  158468.9  0.97  117.9  254.6 108   7864  5410  0.945 0.155 20.35 19.9  1.0503 0.0692 20.24 20.0   910 163.424 10.536 14.76 0.003 
   5 wh338232615I  158591.6  0.96 1180.9 3175.2 112 106088  5396  0.950 0.055 20.35 20.2  0.9933 0.0434 20.30 20.2  2090 156.274  6.761 14.80 0.003 
   6 wh338233820I  159796.6  0.92   74.9  406.5 108  17651  5360  0.820 0.342 20.51 19.6  0.9875 0.0435 20.30 20.2  2165 155.948  6.711 14.81 0.003 
   7 wh338237193I  163169.6  0.97  206.5  426.9 108  14266  5394  0.781 0.115 20.56 20.2  0.9693 0.0409 20.32 20.2  2372 152.650  6.320 14.83 0.003 
   8 wh338237406I  163382.3  0.97 2069.6 5044.7 112 154803  5405  1.017 0.040 20.27 20.2  0.9917 0.0286 20.30 20.2  4441 160.010  4.538 14.78 0.003 
   9 wh338239516I  165492.1  0.92  143.9  761.2 112  29805  5418  1.217 0.243 20.08 19.6  0.9985 0.0287 20.29 20.2  4585 160.473  4.510 14.78 0.003 
  10 wh338242975I  168950.8  0.97  206.5  419.4 108  14042  5394  0.764 0.114 20.58 20.2  0.9882 0.0279 20.30 20.2  4792 158.864  4.391 14.79 0.003 
  11 wh338243187I  169163.5  0.97 1971.9 4668.1 108 140942  5366  1.061 0.040 20.23 20.1  1.0095 0.0229 20.28 20.2  6764 165.640  3.687 14.74 0.003 
    Sum (T+153272 to 171167):           17798.3      11857.7 (est. in src region)   SNR_unwtd_sum:  44.09 0.9987 signif. UL:  20.21
  0  6764  163906.8   7260.2 -10634.7    1.0095   0.0229 20.28  0.03
Total wtd_rate (for all exposures so far): 165.640 +/- 3.662 snr: 45.2 mag: 14.74 UL: 14.67
Rebinned Data for sw00020187001uwh_sk.img using a zero point of 20.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 6.52e+03  163935.1   7231.9 -10663.0    1.0095   0.0229 20.28  0.03  163935.1    1.0095   0.0229 20.28  0.03 20.21
The data range from T+153272.0 s (1.77 d) to T+171167.0 s (1.98 d)
Wrote uvot_fluxes_110923d16h13m34s563597usUT.qdp
Wrote uvot_fluxes_110923d16h13m34s563597usUT.gif
Wrote uvot_fluxes_110923d16h13m34s563597usUT.ps
Wrote uvot_fluxes_110923d16h13m34s563597usUT_vis.qdp
Wrote uvot_fluxes_110923d16h13m34s563597usUT_uv.qdp
Wrote uvot_fluxes_110923d16h13m34s563597usUT_vis.gif
Wrote uvot_fluxes_110923d16h13m34s563597usUT_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.052  161569.1   7591.4  -8297.1    0.9814   0.0271 20.31  0.03  161569.1    0.9814   0.0271 20.31  0.03 20.22
  1   0.0218  170165.2   1001.7  -1001.7    1.0607   0.0398 20.23  0.04  164105.8    1.0056   0.0224 20.28  0.02 20.21
The data range from T+153272.0 s (1.77 d) to T+171167.0 s (1.98 d)
Wrote uvot_fluxes_wtd_110923d16h13m34s563597usUT.qdp
Wrote uvot_fluxes_wtd_110923d16h13m34s563597usUT.gif
Wrote uvot_fluxes_wtd_110923d16h13m34s563597usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2011-06-09 fem