# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 131225d07h40m40s606330usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020333001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/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/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB131209A ===================
Used archived XRT position of 136.83000 -33.85556 4.00
Reference: GCN_Circulars-15592-Wed,_11_Dec_2013_11:28:11_-0500_(EST)
The position is (09:07:19.20, -33:51:20.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(136.83000,-33.85556,4") # color=red dash=0
Region file centered at (136.83000,-33.85556), which is (09:07:19.20, -33:51:20.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 -11.35734 from trigger time of 408287276.97 in BAT summary file
# ============ Reading file sw00020333001uw2_sk.img ================
Long-term sensitivity correction is 0.092 at 408810278
The processing date in extension 0 is: 2013-12-25T07:32:13
The trigger time is: 408287288.32734. The reference is BAT GRB summary file
Using zero point of 17.472 for filter UVW2
Use aperture correction of 1.035 based on aperture of 4.00
Using background region based on sources found in extension 1:
# 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(136.83000,-33.85556,25")
fk5;-circle(136.83000,-33.85556,12.5")
fk5;-circle(136.831529,-33.856860,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 w2408810277I  522989.5  1.00 1499.1  171.6 200   4605  5861  0.010 0.009 22.47 21.0  0.0100 0.0092 22.47 21.0  1499 70.192 64.557 15.67 0.001 
   2 w2408815443I  528155.4  1.00  666.5   68.8 204   1622  5841  0.019 0.013 21.79 20.6  0.0127 0.0075 22.21 21.1  2166 92.289 53.027 15.38 0.001 
   3 w2408828412I  541124.3  1.00  657.9   74.6 204   2269  5844 -0.007 0.014 99.00 21.0  0.0081 0.0066 22.71 21.3  2823 64.954 47.021 15.76 0.001 
   4 w2408839393I  552104.7  1.00  362.1   35.0 204    903  5829  0.010 0.017 22.51 20.5  0.0082 0.0062 22.68 21.4  3186 65.713 44.105 15.75 0.001 
    Sum (T+522989 to 552473):             350.0        324.6 (est. in src region)   SNR_unwtd_sum:   1.33 0.9987 signif. UL:  21.39
  0  3186 408818932  531643.7  20828.9  -8654.3    0.0082   0.0062 22.682  1.507  -0.607
Total wtd_rate (for all exposures so far): 65.713 +/-43.428 snr:  1.5 mag: 15.75 UL: 11.73
Rebinned Data for sw00020333001uw2_sk.img using a zero point of 17.472:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.18e+03  531644.0  20828.6  -8654.5    0.0082   0.0062 22.68  0.61  531644.0    0.0082   0.0062 22.68  0.61 21.39
The data range from T+522989.5 s (6.05 d) to T+552472.6 s (6.39 d)
Wrote uvot_fluxes_131225d07h40m40s606330usUT.qdp
Wrote uvot_fluxes_131225d07h40m40s606330usUT.gif
Wrote uvot_fluxes_131225d07h40m40s606330usUT.ps
Wrote uvot_fluxes_131225d07h40m40s606330usUT_vis.qdp
Wrote uvot_fluxes_131225d07h40m40s606330usUT_uv.qdp
Wrote uvot_fluxes_131225d07h40m40s606330usUT_uv.gif
Wrote uvot_fluxes_131225d07h40m40s606330usUT_uv.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem