# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 130830d03h00m59s221740usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020292992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -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
# ========= GRB130828A ===================
Used archived XRT position of 259.73233 27.99569 4.00
Reference: GCN_Circulars-15135-Thu,_29_Aug_2013_21:53:45_-0400_(EDT)
The position is (17:18:55.76, +27:59:44.5)
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(259.73233,27.99569,4") # color=red dash=0
Region file centered at (259.73233,27.99569), which is (17:18:55.76, +27:59:44.5)
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.95062 from trigger time of 399367200.15 in BAT summary file
# ============ Reading file sw00020292992uuu_sk.img ================
Long-term sensitivity correction is 0.089 at 399472825
The processing date in extension 0 is: 2013-08-30T02:45:45
The trigger time is: 399367211.10062. The reference is BAT GRB summary file
Using zero point of 18.429 for filter U
Use aperture correction of 1.032 based on aperture of 4.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(259.73233,27.99569,25")
fk5;-circle(259.73233,27.99569,12.5")
 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 uu399472824I  105613.8  0.99  219.3  151.1 204   2199  5863  0.354 0.059 19.56 19.1  0.3537 0.0588 19.56 19.1   219 207.660 34.529 14.50 0.005 
   2 uu399477647I  110436.6  0.99  390.4  271.5 200   4053  5894  0.357 0.044 19.55 19.2  0.3555 0.0354 19.55 19.3   610 214.718 21.358 14.46 0.005 
   3 uu399483330I  116119.7  0.99  626.9  391.3 200   6809  5884  0.265 0.033 19.87 19.5  0.3096 0.0242 19.70 19.5  1237 194.716 15.165 14.57 0.004 
   4 uu399489098I  121887.5  0.99  625.1  384.2 196   6441  5872  0.281 0.033 19.81 19.5  0.3000 0.0195 19.74 19.5  1862 193.517 12.544 14.57 0.004 
   5 uu399493572I  126361.2  0.98  633.1 1002.6 196  25515  5884  0.253 0.053 19.92 19.4  0.2882 0.0198 19.78 19.6  2495 192.460 11.964 14.58 0.002 
   6 uu399501647I  134436.2  0.99   73.2   55.9 192    704  5850  0.466 0.107 19.26 18.7  0.2933 0.0195 19.76 19.6  2568 197.028 11.847 14.55 0.003 
   7 uu399505064I  137853.3  0.97  221.4  660.4 204  15305  5906  0.632 0.125 18.93 18.4  0.3197 0.0204 19.67 19.5  2789 200.071 11.765 14.54 0.002 
    Sum (T+105614 to 138078):            2916.9       2062.2 (est. in src region)   SNR_unwtd_sum:  15.64 0.9987 signif. UL:  19.48
  0  2789 399487794  120583.0  17495.2 -14969.2    0.3197   0.0204 19.667  0.072  -0.067
Total wtd_rate (for all exposures so far): 200.071 +/-11.656 snr: 17.2 mag: 14.54 UL: 12.50
Rebinned Data for sw00020292992uuu_sk.img using a zero point of 18.429:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.85e+03  115897.5   6625.0 -10283.7    0.3000   0.0195 19.74  0.07  115897.5    0.3000   0.0195 19.74  0.07 19.54
  1      910  129969.6   8108.7  -3608.5    0.3595   0.0476 19.54  0.14  120541.1    0.3197   0.0204 19.67  0.07 19.48
The data range from T+105613.8 s (1.22 d) to T+138078.3 s (1.60 d)
Wrote uvot_fluxes_130830d03h00m59s221740usUT.qdp
Wrote uvot_fluxes_130830d03h00m59s221740usUT.gif
Wrote uvot_fluxes_130830d03h00m59s221740usUT.ps
Wrote uvot_fluxes_130830d03h00m59s221740usUT_vis.qdp
Wrote uvot_fluxes_130830d03h00m59s221740usUT_uv.qdp
Wrote uvot_fluxes_130830d03h00m59s221740usUT_vis.gif
Wrote uvot_fluxes_130830d03h00m59s221740usUT_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.290:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  0.00115  115614.3   6908.2 -10000.5    1.6639   0.1083 19.74  0.07  115614.3    1.6639   0.1083 19.74  0.07 19.54
  1 0.000176  129185.8   8892.5  -2824.6    1.8522   0.2473 19.62  0.14  117420.5    1.6914   0.0993 19.72  0.06 19.54
The data range from T+105613.8 s (1.22 d) to T+138078.3 s (1.60 d)
Wrote uvot_fluxes_wtd_130830d03h00m59s221740usUT.qdp
Wrote uvot_fluxes_wtd_130830d03h00m59s221740usUT.gif
Wrote uvot_fluxes_wtd_130830d03h00m59s221740usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem