# uvot_fluxes_wget.pl vrs. 2011-06-09 fem at 110810d03h28m25s643680usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020175002 -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
# ========= GRB110802A ===================
Used archived BAT position of 44.45500 32.59300
Reference: GCN_Circ
The position is (02:57:49.20, +32:35:34.8)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global color=red font="helvetica 10 normal" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source
fk5;circle(44.455,+32.593,3")
Region file centered at (44.455,+32.593), which is (02:57:49.20, +32:35:34.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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 7000.1,
3 sigma should become about 5.2 sigma and 2 sigma should become about 4.7 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999981.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -7.2168 from trigger time of 333991157 in BAT summary file
# ============ Reading file sw00020175001uuu_sk.img ================
The processing date in extension 0 is: 2011-08-04T09:41:18
The trigger time is: 333991164.2168. The reference is BAT GRB summary file
Using zero point of 18.34 for filter U
Use aperture correction of 1.100 based on aperture of 3.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(44.455,+32.593,25")
fk5;-circle(44.455,+32.593,12.5")
fk5;-circle(44.449198,32.587953,6")
fk5;-circle(44.448921,32.598683,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 uu334123576I  132412.5  0.99 1110.0  916.7 116  44583  5544  0.000 0.031 99.00 20.3  0.0000 0.0310 99.00 20.3  1110  0.000 24.837 99.00 0.001 
   2 uu334127843I  136679.2  0.99 2597.9 1561.6 116  74363  5548  0.000 0.017 99.00 21.0  0.0000 0.0151 99.00 21.1  3708  0.000 12.302 99.00 0.002 
   3 uu334133781I  142617.4  0.99  208.5   74.2 104   4123  5536  0.000 0.047 99.00 19.9  0.0000 0.0145 99.00 21.1  3916  0.000 11.773 99.00 0.002 
    Sum (T+132413 to 142829):            2565.1       2565.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999814288662 signif. UL:  21.14
  0  3916  136826.9   6002.3  -4414.4    0.0000   0.0145 99.00 99.00
Total wtd_rate (for all exposures so far):  0.000 +/-11.652 snr:  0.0 mag: 99.00 UL: 13.88
Rebinned Data for sw00020175001uuu_sk.img using a zero point of 18.34:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.87e+03  136832.3   5996.9  -4419.8    0.0000   0.0145 99.00 99.00  136832.3    0.0000   0.0145 99.00 99.00 21.67
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020175002um2_sk.img ================
The processing date in extension 0 is:  2011-08-10T02:56:21
The trigger time is: 333991164.2168. The reference is BAT GRB summary file
Using zero point of 16.82 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.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(44.455,+32.593,25")
fk5;-circle(44.455,+32.593,12.5")
fk5;-circle(44.448961,32.598681,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 m2334561405I  570241.3  1.00 1629.2   36.9 116   2082  5772  0.000 0.004 99.00 20.9  0.0000 0.0044 99.00 20.9  1629  0.000 61.884 99.00 0.003 
   2 m2334596083I  604919.3  1.00 1631.2   36.5 112   1827  5748  0.000 0.004 99.00 21.0  0.0000 0.0030 99.00 21.3  3260  0.000 43.243 99.00 0.003 
   3 m2334613443I  622279.1  1.00 1611.8   26.0 112   1803  5720  0.000 0.004 99.00 21.0  0.0000 0.0024 99.00 21.6  4872  0.000 35.595 99.00 0.003 
    Sum (T+570241 to 623917):             112.7        112.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999814288662 signif. UL:  21.56
  0  4872  599890.9  24025.7 -29649.6    0.0000   0.0024 99.00 99.00
Total wtd_rate (for all exposures so far):  0.000 +/-11.119 snr:  0.0 mag: 99.00 UL: 12.41
Rebinned Data for sw00020175002um2_sk.img using a zero point of 16.82:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.87e+03  599891.4  24025.2 -29650.1    0.0000   0.0024 99.00 99.00  599891.4    0.0000   0.0024 99.00 99.00 22.09
The data range from T+132412.5 s (1.53 d) to T+623916.7 s (7.22 d)
Wrote uvot_fluxes_110810d03h28m25s643680usUT.qdp
Wrote uvot_fluxes_110810d03h28m25s643680usUT.gif
Wrote uvot_fluxes_110810d03h28m25s643680usUT.ps
Wrote uvot_fluxes_110810d03h28m25s643680usUT_vis.qdp
Wrote uvot_fluxes_110810d03h28m25s643680usUT_uv.qdp
Wrote uvot_fluxes_110810d03h28m25s643680usUT_vis.gif
Wrote uvot_fluxes_110810d03h28m25s643680usUT_vis.ps
Wrote uvot_fluxes_110810d03h28m25s643680usUT_uv.gif
Wrote uvot_fluxes_110810d03h28m25s643680usUT_uv.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.0012  137268.6   5560.6  -4856.1    0.0000   0.0858 99.00 99.00  137268.6    0.0000   0.0858 99.00 99.00 21.69
The data range from T+132412.5 s (1.53 d) to T+623916.7 s (7.22 d)
Wrote uvot_fluxes_wtd_110810d03h28m25s643680usUT.qdp
Wrote uvot_fluxes_wtd_110810d03h28m25s643680usUT.gif
Wrote uvot_fluxes_wtd_110810d03h28m25s643680usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2011-06-09 fem