# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 160626d10h37m58s315186usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020669992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB160625 ===================
Used archived XRT position of 308.59688 6.91958 4.00
Reference: GCN_Circulars-19585-Sun,_26_Jun_2016_02:54:26_-0400
The position is (20:34:23.25, +06:55:10.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(308.59688,6.91958,4") # color=red dash=0
Region file centered at (308.59688,6.91958), which is (20:34:23.25, +06:55:10.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 -16.45926 from uncorrected trigger time of 488587404.82 in BAT summary file
# ============ Reading file sw00020669992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.129 at 488597028
The processing date in extension 0 is: 2016-06-26T10:32:52
The trigger time is: 488587421.27926. The reference is BAT GRB summary file
Using zero point of 18.211 for filter U
Use aperture correction of 1.032 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(308.59688,6.91958,25")
fk5;-circle(308.59688,6.91958,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 uu488597027I    9606.6  0.97  353.2  830.5 200   9354  5928  1.543 0.087 17.74 17.6  1.5433 0.0869 17.74 17.6   353 102.488  5.773 15.26 0.016 
   2 uu488604713I   17292.4  0.98   70.1  108.8 200   1966  5908  0.633 0.158 18.71 18.1  1.3915 0.0771 17.85 17.7   423 100.887  5.546 15.28 0.015 
   3 uu488608686I   21264.8  0.99  223.8  323.5 204   5324  5878  0.649 0.085 18.68 18.3  1.1330 0.0583 18.07 17.9   647 100.067  5.096 15.29 0.013 
    Sum (T+  9607 to  21492):            1262.8        566.9 (est. in src region)   SNR_unwtd_sum:  19.43 0.9987 signif. UL:  17.92
  0   647 488602033   14612.2   6880.0  -5005.6    1.1330   0.0583 18.075  0.058  -0.054
Total wtd_rate (for all exposures so far): 100.067 +/- 5.062 snr: 19.8 mag: 15.29 UL: 13.06
Rebinned Data for sw00020669992uuu_sk.img using a zero point of 18.211:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      344    9786.0    179.4   -179.4    1.5433   0.0869 17.74  0.06    9786.0    1.5433   0.0869 17.74  0.06 17.57
  1     68.9   17328.0     35.6    -35.6    0.6330   0.1579 18.71  0.24   11043.3    1.3915   0.0771 17.85  0.06 17.68
  2      221   21378.5    113.7   -113.7    0.6489   0.0850 18.68  0.13   14641.0    1.1330   0.0583 18.07  0.05 17.92
The data range from T+9606.6 s (0.11 d) to T+21492.2 s (0.25 d)
Wrote uvot_fluxes_160626d10h37m58s315186usUT.qdp
Wrote uvot_fluxes_160626d10h37m58s315186usUT.gif
Wrote uvot_fluxes_160626d10h37m58s315186usUT.ps
Wrote uvot_fluxes_160626d10h37m58s315186usUT_vis.qdp
Wrote uvot_fluxes_160626d10h37m58s315186usUT_uv.qdp
Wrote uvot_fluxes_160626d10h37m58s315186usUT_vis.gif
Wrote uvot_fluxes_160626d10h37m58s315186usUT_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.00442    9786.0    179.4   -179.4   10.4729   0.5899 17.74  0.06    9786.0   10.4729   0.5899 17.74  0.06 17.57
  1 0.000427   17328.0     35.6    -35.6    4.2953   1.0715 18.71  0.24   10450.8    9.5700   0.5275 17.84  0.06 17.67
  2  0.00097   21378.5    113.7   -113.7    4.4039   0.5765 18.68  0.13   12272.4    8.0699   0.4100 18.02  0.05 17.87
The data range from T+9606.6 s (0.11 d) to T+21492.2 s (0.25 d)
Wrote uvot_fluxes_wtd_160626d10h37m58s315186usUT.qdp
Wrote uvot_fluxes_wtd_160626d10h37m58s315186usUT.gif
Wrote uvot_fluxes_wtd_160626d10h37m58s315186usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem