# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 160519d09h25m13s378053usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020614002 -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
# ========= GRB160509A ===================
Used archived opt source position of 311.75388 76.10811 3.00
Reference: GCN_Circulars-19410
The position is (20:47:00.93, +76:06:29.2)
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(311.75388,76.10811,3") # color=red dash=0
Region file centered at (311.75388,76.10811), which is (20:47:00.93, +76:06:29.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 -16.22714 from uncorrected trigger time of 484477144.36 in BAT summary file
# ============ Reading file sw00020614002uw2_sk.img ================
Use keyword TRIGTIME of 484477160.4 for trigger time.
Long-term sensitivity correction to zero point is -0.288 at 484519851
The processing date in extension 0 is: 2016-05-19T09:01:39
The trigger time is: 484477160.4. The reference is keyword in image file
Using zero point of 17.092 for filter UVW2
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(311.75388,76.10811,25")
fk5;-circle(311.75388,76.10811,12.5")
fk5;-circle(311.756451,76.112967,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 w2484519850I   42690.5  1.00  562.2   19.9 112    665  5416  0.012 0.009 21.88 20.6  0.0121 0.0089 21.88 20.6   562  9.928  7.242 17.80 0.050 
   2 w2484525075I   47915.5  1.00 1048.3   29.4 104   1402  5376  0.002 0.006 23.64 21.3  0.0058 0.0049 22.68 21.3  1611  5.448  4.335 18.45 0.045 
   3 w2484531356I   54195.7  1.00  504.9   10.6 104    644  5384 -0.004 0.007 99.00 21.3  0.0035 0.0041 23.24 21.6  2115  3.646  3.791 18.89 0.043 
   4 w2484541620I   64459.9  1.00 1319.6   41.1 104   2006  5388  0.002 0.005 23.84 21.4  0.0029 0.0033 23.43 21.8  3435  3.382  3.305 18.97 0.037 
   5 w2484547614I   70453.8  1.00  853.2   26.4 108   1326  5388 -0.000 0.007 99.00 21.3  0.0023 0.0029 23.70 22.0  4288  2.990  3.109 19.10 0.034 
   6 w2484553066I   75906.2  1.00  919.6   32.1 116   1320  5429  0.005 0.007 22.91 21.1  0.0027 0.0027 23.51 22.0  5208  3.331  2.969 18.98 0.032 
   7 w2484564497I   87336.7  1.00  948.6   43.0 112   1514  5424  0.014 0.008 21.75 20.7  0.0044 0.0026 22.98 21.9  6156  4.520  2.897 18.65 0.029 
   8 w2484570248I   93088.3  1.00 1676.6   47.7 112   2513  5424 -0.003 0.005 99.00 21.8  0.0029 0.0023 23.45 22.1  7833  3.662  2.738 18.88 0.027 
   9 w2484576034I   98874.3  1.00 1617.4   54.9 108   2459  5380  0.004 0.005 23.14 21.4  0.0030 0.0021 23.39 22.2  9450  3.920  2.635 18.81 0.025 
  10 w2484582746I  105585.9  1.00  318.9    7.1 112    419  5376 -0.006 0.009 99.00 21.1  0.0027 0.0020 23.50 22.2  9769  3.703  2.612 18.87 0.025 
    Sum (T+ 42691 to 105910):             312.2        288.1 (est. in src region)   SNR_unwtd_sum:   1.35 0.9987 signif. UL:  22.22
  0  9769 484554431   77270.3  28639.6 -34579.8    0.0027   0.0020 23.498  1.457  -0.601
Total wtd_rate (for all exposures so far):  3.703 +/- 2.589 snr:  1.4 mag: 18.87 UL: 14.43
Rebinned Data for sw00020614002uw2_sk.img using a zero point of 17.092:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  5.2e+03   61272.6  15568.0 -18582.0    0.0027   0.0027 23.51  0.75   61272.6    0.0027   0.0027 23.51  0.75 21.99
  1 4.56e+03   95533.8  10376.2  -8197.1    0.0028   0.0030 23.48  0.80   77269.7    0.0027   0.0020 23.50  0.60 22.22
The data range from T+42690.5 s (0.49 d) to T+105910.0 s (1.23 d)
Wrote uvot_fluxes_160519d09h25m13s378053usUT.qdp
Wrote uvot_fluxes_160519d09h25m13s378053usUT.gif
Wrote uvot_fluxes_160519d09h25m13s378053usUT.ps
Wrote uvot_fluxes_160519d09h25m13s378053usUT_vis.qdp
Wrote uvot_fluxes_160519d09h25m13s378053usUT_uv.qdp
Wrote uvot_fluxes_160519d09h25m13s378053usUT_uv.gif
Wrote uvot_fluxes_160519d09h25m13s378053usUT_uv.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem