# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 130316d13h00m56s674630usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020234002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/data/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/data/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB130305A ===================
Used archived XRT position of 116.74762 52.03333 4.00
Reference: GCN_Circulars-14263-Wed,_6_Mar_2013_10:50:23_-0500_(EST)
The position is (07:46:59.43, +52:01:60.0)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(116.74762,52.03333,4") # color=red dash=0
Region file centered at (116.74762,52.03333), which is (07:46:59.43, +52:01:60.0)
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 -10.29342 from trigger time of 384176356 in BAT summary file
# ============ Reading file sw00020234001uuu_sk.img ================
Long-term sensitivity correction is 0.084 at 384207333
The processing date in extension 0 is: 2013-03-06T16:48:40
The trigger time is: 384176366.29342. The reference is BAT GRB summary file
Using zero point of 18.424 for filter U
Use aperture correction of 1.032 based on aperture of 4.00
Using background region based on sources found in extension 6:
# 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(116.74762,52.03333,25")
fk5;-circle(116.74762,52.03333,12.5")
fk5;-circle(116.749428,52.038255,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 uu384207333I   30967.0  1.00  433.0  216.8 204   5426  5397  0.028 0.036 22.30 20.6  0.0280 0.0359 22.30 20.6   433  4.878  6.241 18.57 0.012 
   2 uu384211260I   34894.2  0.98  177.6  414.2 192  11325  5386  0.062 0.123 21.43 19.3  0.0379 0.0436 21.98 20.3   611  5.328  6.041 18.47 0.006 
   3 uu384213245I   36879.4  1.00  296.4  129.5 188   3677  5380  0.004 0.040 24.53 20.6  0.0267 0.0322 22.36 20.7   907  3.803  4.897 18.84 0.007 
   4 uu384217042I   40676.6  0.98  391.9  754.3 200  19439  5373  0.082 0.075 21.13 19.7  0.0434 0.0318 21.83 20.6  1299  4.945  4.708 18.55 0.004 
   5 uu384223010I   46643.7  0.99  542.3  516.6 200  13851  5421  0.011 0.044 23.35 20.5  0.0337 0.0260 22.10 20.8  1841  4.650  4.364 18.62 0.004 
   6 uu384228634I   52267.8  0.99 1089.4  991.6 200  26458  5392  0.010 0.031 23.45 20.9  0.0248 0.0199 22.44 21.1  2931  4.322  3.929 18.70 0.004 
    Sum (T+ 30967 to  53375):            3023.1       2953.2 (est. in src region)   SNR_unwtd_sum:   1.25 0.9987 signif. UL:  21.09
  0  2931 384220623   44256.6   9118.0 -13289.6    0.0248   0.0199 22.436  1.756  -0.639
Total wtd_rate (for all exposures so far):  4.322 +/- 3.861 snr:  1.1 mag: 18.70 UL: 15.41
Rebinned Data for sw00020234001uuu_sk.img using a zero point of 18.424:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  2.9e+03   44257.0   9117.7 -13290.0    0.0248   0.0199 22.44  0.64   44257.0    0.0248   0.0199 22.44  0.64 21.09
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020234002uw2_sk.img ================
Long-term sensitivity correction is  0.084 at 384281478
The processing date in extension 0 is:  2013-03-16T12:33:14
The trigger time is: 384176366.29342. The reference is BAT GRB summary file
Using zero point of 17.464 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.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(116.74762,52.03333,25")
fk5;-circle(116.74762,52.03333,12.5")
fk5;-circle(116.749468,52.038355,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 w2384281477I  105111.2  1.00 1105.8   55.3 200   1564  5400 -0.003 0.007 99.00 21.7 -0.0025 0.0071 99.00 21.7  1106 -3.579 10.123 99.00 0.013 
   2 w2384287488I  111122.0  1.00 1133.4   38.0 192   1298  5356 -0.008 0.006 99.00 22.1 -0.0052 0.0046 99.00 22.3  2239 -7.979  6.608 99.00 0.015 
   3 w2384293706I  117340.2  1.00  700.5   30.1 200    853  5412 -0.002 0.008 99.00 21.5 -0.0044 0.0040 99.00 22.5  2940 -6.956  5.907 99.00 0.014 
   4 w2384297922I  121556.5  1.00   37.5    7.7 192    116  5375  0.097 0.077 20.00 18.7 -0.0031 0.0041 99.00 22.4  2977 -6.229  5.907 99.00 0.014 
   5 w2384299785I  123419.5  1.00  407.6   18.3 200    512  5412 -0.002 0.011 99.00 21.1 -0.0030 0.0038 99.00 22.4  3385 -5.881  5.628 99.00 0.014 
   6 w2384303756I  127390.4  1.00  201.0   17.6 200    565  5403 -0.017 0.022 99.00 20.5 -0.0038 0.0038 99.00 22.5  3586 -6.350  5.567 99.00 0.013 
   7 w2384305845I  129479.6  1.00  129.3    6.1 192    150  5376  0.006 0.020 22.98 20.4 -0.0034 0.0037 99.00 22.5  3715 -5.828  5.503 99.00 0.013 
   8 w2384309562I  133196.1  1.00  569.4   39.0 200   1114  5396 -0.004 0.012 99.00 21.1 -0.0035 0.0036 99.00 22.6  4285 -5.936  5.322 99.00 0.012 
   9 w2384315322I  138955.9  1.00  572.9   40.7 200   1100  5396 -0.000 0.012 99.00 21.0 -0.0031 0.0035 99.00 22.6  4857 -5.591  5.175 99.00 0.011 
    Sum (T+105111 to 139538):             252.9        267.4 (est. in src region)   SNR_unwtd_sum:  -0.90 0.9987 signif. UL:  22.58
  0  4857 384295567  119200.8  20337.2 -14089.5   -0.0031   0.0035 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.941 +/- 3.083 snr:  0.3 mag: 20.36 UL: 14.89
Rebinned Data for sw00020234002uw2_sk.img using a zero point of 17.464:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.86e+03  119199.6  20338.4 -14088.4   -0.0031   0.0035 99.00 99.00  119199.6   -0.0031   0.0035 99.00 99.00 22.58
The data range from T+30967.0 s (0.36 d) to T+139538.0 s (1.62 d)
Wrote uvot_fluxes_130316d13h00m56s674630usUT.qdp
Wrote uvot_fluxes_130316d13h00m56s674630usUT.gif
Wrote uvot_fluxes_130316d13h00m56s674630usUT.ps
Wrote uvot_fluxes_130316d13h00m56s674630usUT_vis.qdp
Wrote uvot_fluxes_130316d13h00m56s674630usUT_uv.qdp
Wrote uvot_fluxes_130316d13h00m56s674630usUT_vis.gif
Wrote uvot_fluxes_130316d13h00m56s674630usUT_vis.ps
Wrote uvot_fluxes_130316d13h00m56s674630usUT_uv.gif
Wrote uvot_fluxes_130316d13h00m56s674630usUT_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.290:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0   0.0116   38981.4  14393.2  -8014.4    0.1099   0.1008 22.69  0.71   38981.4    0.1099   0.1008 22.69  0.71 21.24
The data range from T+30967.0 s (0.36 d) to T+139538.0 s (1.62 d)
Wrote uvot_fluxes_wtd_130316d13h00m56s674630usUT.qdp
Wrote uvot_fluxes_wtd_130316d13h00m56s674630usUT.gif
Wrote uvot_fluxes_wtd_130316d13h00m56s674630usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem