# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 150531d05h47m52s532614usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020519002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -search_src_reg -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB150518A ===================
Used archived opt source position of 234.20104 16.32981 3.00
Reference: GCN_Circulars-17829
The position is (15:36:48.25, +16:19:47.3)
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(234.20104,16.32981,3") # color=red dash=0
Region file centered at (234.20104,16.32981), which is (15:36:48.25, +16:19:47.3)
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 -13.6179 from trigger time of 453678154 in BAT summary file
# ============ Reading file sw00020519002uuu_sk.img ================
Use keyword TRIGTIME of 453678147.381 for trigger time.
Long-term sensitivity correction is 0.106 at 454008507
The processing date in extension 0 is: 2015-05-31T05:33:21
The trigger time is: 453678147.381. The reference is keyword in image file
Using zero point of 18.446 for filter U
Use aperture correction of 1.100 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(234.20104,16.32981,25")
fk5;-circle(234.20104,16.32981,12.5")
fk5;-circle(234.199460,16.326039,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 uu454008506I  330359.1  1.00  447.2  109.2 108   5475  5482  0.003 0.026 24.70 21.1  0.0032 0.0261 24.70 21.1   447  5.705 47.081 18.40 0.002 
    Sum (T+330359 to 330814):             109.2        107.9 (est. in src region)   SNR_unwtd_sum:   0.12 0.9987 signif. UL:  21.11
  0   447 454008734  330586.3    227.2   -227.2    0.0032   0.0261 24.698 74.302  -2.416
Total wtd_rate (for all exposures so far):  5.705 +/-46.629 snr:  0.1 mag: 18.40 UL: 12.97
Rebinned Data for sw00020519002uuu_sk.img using a zero point of 18.446:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      445  330586.3    227.2   -227.2    0.0032   0.0261 24.70  2.42  330586.3    0.0032   0.0261 24.70  2.42 21.11
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020519002uw1_sk.img ================
Use keyword TRIGTIME of 453678147.381 for trigger time.
Long-term sensitivity correction is  0.106 at 453882718
The processing date in extension 0 is:  2015-05-31T05:33:20
The trigger time is: 453678147.381. The reference is keyword in image file
Using zero point of 17.546 for filter UVW1
Use aperture correction of  1.123 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(234.20104,16.32981,25")
fk5;-circle(234.20104,16.32981,12.5")
fk5;-circle(234.199488,16.326168,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 w1453882717I  204570.2  1.00  652.9   36.3 112   1512  5548  0.010 0.010 22.54 21.0  0.0100 0.0105 22.54 21.0   653 25.727 26.861 16.76 0.008 
   2 w1453887737I  209590.3  1.00  613.4   36.8 112   1540  5496  0.010 0.011 22.55 20.9  0.0100 0.0077 22.55 21.2  1266 25.945 19.858 16.75 0.008 
   3 w1453905083I  226936.6  1.00  430.2   31.9 108   1305  5497  0.016 0.015 22.01 20.6  0.0116 0.0068 22.38 21.3  1696 29.810 17.981 16.60 0.007 
   4 w1453910719I  232572.6  1.00  552.1   30.2 116   1361  5556  0.004 0.011 23.62 21.1  0.0097 0.0059 22.58 21.4  2249 25.835 15.802 16.76 0.007 
   5 w1453916418I  238271.6  1.00  612.2   54.0 128   1451  5573  0.038 0.014 21.10 20.3  0.0157 0.0055 22.05 21.3  2861 41.034 14.839 16.26 0.007 
   6 w1453922164I  244017.6  1.00  625.9   39.2 112   1618  5513  0.011 0.011 22.41 20.9  0.0150 0.0049 22.11 21.4  3487 40.110 13.646 16.28 0.007 
   7 w1453945145I  266998.1  1.00  507.3   29.5 112   1252  5521  0.009 0.012 22.66 20.9  0.0142 0.0046 22.16 21.4  3994 39.159 12.937 16.31 0.007 
    Sum (T+204570 to 267514):             258.0        207.5 (est. in src region)   SNR_unwtd_sum:   3.12 0.9987 signif. UL:  21.43
  0  3994 453909341  231193.2  36320.4 -26622.9    0.0142   0.0046 22.165  0.420  -0.302
Total wtd_rate (for all exposures so far): 37.282 +/-12.401 snr:  3.0 mag: 16.36 UL: 12.86
Rebinned Data for sw00020519002uw1_sk.img using a zero point of 17.546:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.99e+03  231192.1  36321.4 -26621.9    0.0142   0.0046 22.16  0.30  231192.1    0.0142   0.0046 22.16  0.30 21.43
The data range from T+204570.2 s (2.37 d) to T+330813.5 s (3.83 d)
Wrote uvot_fluxes_150531d05h47m52s532614usUT.qdp
Wrote uvot_fluxes_150531d05h47m52s532614usUT.gif
Wrote uvot_fluxes_150531d05h47m52s532614usUT.ps
Wrote uvot_fluxes_150531d05h47m52s532614usUT_vis.qdp
Wrote uvot_fluxes_150531d05h47m52s532614usUT_uv.qdp
Wrote uvot_fluxes_150531d05h47m52s532614usUT_vis.gif
Wrote uvot_fluxes_150531d05h47m52s532614usUT_vis.ps
Wrote uvot_fluxes_150531d05h47m52s532614usUT_uv.gif
Wrote uvot_fluxes_150531d05h47m52s532614usUT_uv.ps
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem