# uvot_fluxes_wget.pl vrs. 2011-03-30 fem at 110609d00h06m41s601872usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020163001 -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
# ========= GRB110608 ===================
Used archived BAT position of 315.28120 32.04130
Reference: GCN_Notice_Wed_08_Jun_11_16:56:58_UT
The position is (21:01:07.49, +32:02:28.7)
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(315.2812,+32.0413,3")
Region file centered at (315.2812,+32.0413), which is (21:01:07.49, +32:02:28.7)
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 5098.0,
3 sigma should become about 5.2 sigma and 2 sigma should become about 4.6 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999974.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -7.03076 from trigger time of 329241723.51 in BAT summary file
# ============ Reading file sw00020163992uwh_sk.img ================
The processing date in extension 0 is: 2011-06-08T23:29:57
The trigger time is: 329241730.54076. The reference is BAT GRB summary 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 5:
# 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(315.2812,+32.0413,25")
fk5;-circle(315.2812,+32.0413,12.5")
fk5;-circle(315.282870,32.037802,6")
fk5;-circle(315.275081,32.040077,6")
fk5;-circle(315.288844,32.042146,6")
fk5;-circle(315.281679,32.045425,6")
fk5;-circle(315.281288,32.049185,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 wh329244454I    2723.9  0.97   78.5  152.8 104   6076  4384  0.000 0.177 99.00 20.4  0.0000 0.1772 99.00 20.4    79  0.000  0.490 99.00 0.191 
   2 wh329244536I    2806.4  0.94  592.4 2105.0 112  75521  4368  0.000 0.091 99.00 21.1  0.0000 0.0829 99.00 21.2   671  0.000  0.251 99.00 0.097 
   3 wh329245338I    3608.2  0.91   30.4  173.9 112   6490  4376  0.000 0.539 99.00 19.2  0.0000 0.0825 99.00 21.2   701  0.000  0.249 99.00 0.093 
   4 wh329248594I    6863.5  0.97  214.3  433.4 120  15770  4416  0.000 0.112 99.00 20.9  0.0000 0.0683 99.00 21.4   916  0.000  0.237 99.00 0.089 
   5 wh329248814I    7084.3  0.96 1991.2 4492.7 116 168354  4404  0.000 0.039 99.00 22.0  0.0000 0.0342 99.00 22.2  2907  0.000  0.190 99.00 0.067 
   6 wh329250998I    9268.3  0.90   74.3  480.6 116  17618  4376  0.000 0.375 99.00 19.6  0.0000 0.0346 99.00 22.2  2981  0.000  0.190 99.00 0.063 
above line uses coinc_corr_src:  0.897 corr_bkg:  0.897
   7 wh329254402I   12671.7  0.97  211.4  387.2 108  15477  4396  0.000 0.107 99.00 20.9  0.0000 0.0330 99.00 22.2  3193  0.000  0.188 99.00 0.062 
   8 wh329254620I   12889.6  0.96 1978.4 4471.6 116 166015  4396  0.000 0.039 99.00 22.0  0.0000 0.0253 99.00 22.5  5171  0.000  0.178 99.00 0.051 
   9 wh329256779I   15048.5  0.92   28.9  127.1 116   5223  4372  0.000 0.507 99.00 19.2  0.0000 0.0253 99.00 22.5  5200  0.000  0.178 99.00 0.051 
    Sum (T+  2724 to  15109):           12476.2      12476.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999744996038 signif. UL:  22.50
  0  5200    9896.0   5212.9  -7172.1    0.0000   0.0253 99.00 99.00
Total wtd_rate (for all exposures so far):  0.000 +/- 0.173 snr:  0.0 mag: 99.00 UL: 20.41
# ============ Reading file sw00020163001uwh_sk.img ================
The processing date in extension 0 is:  2011-06-08T23:30:20
The trigger time is: 329241730.54076. The reference is BAT GRB summary 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 5:
# 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(315.2812,+32.0413,25")
fk5;-circle(315.2812,+32.0413,12.5")
fk5;-circle(315.275103,32.040097,6")
fk5;-circle(315.282882,32.037813,6")
fk5;-circle(315.288859,32.042159,6")
fk5;-circle(315.281691,32.045437,6")
fk5;-circle(315.281310,32.049201,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 wh329244454I    2723.9  0.97   78.5  156.0 108   6097  4396  0.000 0.181 99.00 20.4  0.0000 0.1808 99.00 20.4    79  0.000  0.500 99.00 0.183 
   2 wh329244536I    2806.4  0.94  592.4 2103.5 112  75959  4384  0.000 0.091 99.00 21.1  0.0000 0.0832 99.00 21.2   671  0.000  0.253 99.00 0.096 
   3 wh329245338I    3608.2  0.90   30.4  173.7 112   6534  4400  0.000 0.543 99.00 19.2  0.0000 0.0829 99.00 21.2   701  0.000  0.251 99.00 0.093 
   4 wh329248594I    6863.5  0.97  214.3  459.9 128  15789  4424  0.000 0.116 99.00 20.9  0.0000 0.0689 99.00 21.4   916  0.000  0.239 99.00 0.088 
   5 wh329248814I    7084.3  0.96 1991.2 4497.1 116 170028  4448  0.000 0.039 99.00 22.0  0.0000 0.0343 99.00 22.2  2907  0.000  0.191 99.00 0.066 
   6 wh329250998I    9268.3  0.90   74.3  453.6 108  17624  4372  0.000 0.358 99.00 19.6  0.0000 0.0346 99.00 22.2  2981  0.000  0.191 99.00 0.063 
   7 wh329254402I   12671.7  0.97  211.4  376.4 104  15388  4372  0.000 0.105 99.00 21.0  0.0000 0.0330 99.00 22.2  3193  0.000  0.189 99.00 0.062 
   8 wh329254620I   12889.6  0.96 1978.4 4318.4 112 166928  4416  0.000 0.038 99.00 22.1  0.0000 0.0251 99.00 22.5  5171  0.000  0.178 99.00 0.052 
   9 wh329256779I   15048.5  0.92   28.9  121.5 112   5246  4392  0.000 0.500 99.00 19.3  0.0000 0.0251 99.00 22.5  5200  0.000  0.178 99.00 0.052 
    Sum (T+  2724 to  15109):           12316.5      12316.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999744996038 signif. UL:  22.51
  0  5200    9896.0   5212.9  -7172.1    0.0000   0.0251 99.00 99.00
Total wtd_rate (for all exposures so far):  0.000 +/- 0.123 snr:  0.0 mag: 99.00 UL: 20.79
Rebinned Data for sw00020163001uwh_sk.img using a zero point of 20.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      663    3174.5    500.6   -450.7    0.0000   0.0825 99.00 99.00    3174.5    0.0000   0.0825 99.00 99.00 21.73
  1  2.4e+03    8495.1   4391.4  -1631.6    0.0000   0.0355 99.00 99.00    7343.0    0.0000   0.0330 99.00 99.00 22.72
  2 1.93e+03   13980.9   1128.0  -1091.3    0.0000   0.0391 99.00 99.00    9913.0    0.0000   0.0253 99.00 99.00 23.02
The data range from T+2723.9 s (0.03 d) to T+15108.9 s (0.17 d)
Wrote uvot_fluxes_110609d00h06m41s601872usUT.qdp
Wrote uvot_fluxes_110609d00h06m41s601872usUT.gif
Wrote uvot_fluxes_110609d00h06m41s601872usUT.ps
Wrote uvot_fluxes_110609d00h06m41s601872usUT_vis.qdp
Wrote uvot_fluxes_110609d00h06m41s601872usUT_uv.qdp
Wrote uvot_fluxes_110609d00h06m41s601872usUT_vis.gif
Wrote uvot_fluxes_110609d00h06m41s601872usUT_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     17.8    3456.5   3624.8   -732.6    0.0000   0.0686 99.00 99.00    3456.5    0.0000   0.0686 99.00 99.00 21.93
  1     13.9    9776.1   5332.8  -2691.8    0.0000   0.0275 99.00 99.00    6224.4    0.0000   0.0285 99.00 99.00 22.88
The data range from T+2723.9 s (0.03 d) to T+15108.9 s (0.17 d)
Wrote uvot_fluxes_wtd_110609d00h06m41s601872usUT.qdp
Wrote uvot_fluxes_wtd_110609d00h06m41s601872usUT.gif
Wrote uvot_fluxes_wtd_110609d00h06m41s601872usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2011-03-30 fem