# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 140901d01h44m49s096820usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020415992 -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
# ========= GRB140831A ===================
Used archived opt source position of 0.24650 32.81269 3.00
Reference: Cenko_email
The position is (00:00:59.16, +32:48:45.7)
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(0.2465,+32.81269,3") # color=red dash=0
Region file centered at (0.2465,+32.81269), which is (00:00:59.16, +32:48:45.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.
Subtract UTCF of -12.45254 from trigger time of 431168347.22 in BAT summary file
# ============ Reading file sw00020415992uwh_sk.img ================
Long-term sensitivity correction is 0.099 at 431185889
The processing date in extension 0 is: 2014-08-31T19:36:34
The trigger time is: 431168359.67254. The reference is BAT GRB summary file
Using zero point of 20.389 for filter WHITE
Use aperture correction of 1.108 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(0.2465,+32.81269,25")
fk5;-circle(0.2465,+32.81269,12.5")
fk5;-circle(0.238063,32.812208,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 wh431185889I   17529.6  0.97  203.5  337.1 112  15981  5694  0.128 0.104 22.62 21.3  0.1276 0.1037 22.62 21.3   204  2.055  1.670 19.51 0.039 
   2 wh431186099I   17739.4  0.97 2034.2 3342.9 112 166423  5659  0.028 0.033 24.29 22.6  0.0367 0.0312 23.98 22.6  2238  0.641  0.532 20.77 0.035 
   3 wh431188172I   19813.2  0.93  151.6  665.3 116  32517  5677  0.007 0.215 25.73 20.8  0.0349 0.0321 24.03 22.6  2389  0.631  0.527 20.79 0.032 
   4 wh431191675I   23315.4  0.97  200.6  322.9 112  15693  5677  0.075 0.103 23.20 21.4  0.0380 0.0307 23.94 22.6  2590  0.685  0.513 20.70 0.032 
   5 wh431191881I   23522.3  0.97 2012.5 3459.8 116 166246  5673  0.034 0.034 24.05 22.5  0.0364 0.0227 23.99 22.8  4602  0.711  0.424 20.66 0.029 
   6 wh431193933I   25574.0  0.93  155.6  596.1 104  32634  5618 -0.061 0.198 99.00 21.0  0.0333 0.0228 24.08 22.9  4758  0.692  0.422 20.69 0.028 
   7 wh431197430I   29070.4  0.97  112.5  161.6 108   9000  5660 -0.102 0.130 99.00 21.5  0.0302 0.0225 24.19 22.9  4870  0.646  0.419 20.77 0.028 
    Sum (T+ 17530 to  29185):            8885.8       8757.4 (est. in src region)   SNR_unwtd_sum:   1.34 0.9987 signif. UL:  22.90
  0  4870 431190155   21795.2   7389.5  -4265.6    0.0302   0.0225 24.190  1.488  -0.605
Total wtd_rate (for all exposures so far):  0.646 +/- 0.415 snr:  1.6 mag: 20.77 UL: 19.69
Rebinned Data for sw00020415992uwh_sk.img using a zero point of 20.389:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.72e+03   21792.8   7391.9  -4263.2    0.0302   0.0225 24.19  0.61   21792.8    0.0302   0.0225 24.19  0.61 22.90
The data range from T+17529.6 s (0.20 d) to T+29184.7 s (0.34 d)
Wrote uvot_fluxes_140901d01h44m49s096820usUT.qdp
Wrote uvot_fluxes_140901d01h44m49s096820usUT.gif
Wrote uvot_fluxes_140901d01h44m49s096820usUT.ps
Wrote uvot_fluxes_140901d01h44m49s096820usUT_vis.qdp
Wrote uvot_fluxes_140901d01h44m49s096820usUT_uv.qdp
Wrote uvot_fluxes_140901d01h44m49s096820usUT_vis.gif
Wrote uvot_fluxes_140901d01h44m49s096820usUT_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     6.24   20870.9   8313.8  -3341.3    0.0306   0.0201 24.08  0.55   20870.9    0.0306   0.0201 24.08  0.55 22.89
The data range from T+17529.6 s (0.20 d) to T+29184.7 s (0.34 d)
Wrote uvot_fluxes_wtd_140901d01h44m49s096820usUT.qdp
Wrote uvot_fluxes_wtd_140901d01h44m49s096820usUT.gif
Wrote uvot_fluxes_wtd_140901d01h44m49s096820usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem