# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 150528d06h36m32s458431usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020521002 -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
# ========= GRB150523A ===================
Used archived uvot source position of 115.28613 -45.42011 3.00
Reference: GCN_Circ_17872
The position is (07:41:08.67, -45:25:12.4)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(115.28613,-45.42011,3") # color=red dash=0
Region file centered at (115.28613,-45.42011), which is (07:41:08.67, -45:25:12.4)
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 -13.6179 from trigger time of 454066188.08 in BAT summary file
# ============ Reading file sw00020521002uw2_sk.img ================
Use keyword TRIGTIME of 454066201.468 for trigger time.
Long-term sensitivity correction is 0.106 at 454386738
The processing date in extension 0 is: 2015-05-28T06:25:53
The trigger time is: 454066201.468. The reference is keyword in image file
Using zero point of 17.486 for filter UVW2
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(115.28613,-45.42011,25")
fk5;-circle(115.28613,-45.42011,12.5")
fk5;-circle(115.282849,-45.415157,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
High bkg:   1 w2454386738I  927.6   4986  5412  0.993  0.014
   1 w2454386738I  320537.0  1.00  927.6   96.9 112   4986  5411 -0.008 0.012 99.00 21.2 -0.0075 0.0119 99.00 21.2   928 -31.903 50.577 99.00 0.002 
High bkg:   2 w2454392303I 1060.1   5650  5448  0.978  0.013
   2 w2454392303I  326102.4  1.00 1060.1  119.1 112   5650  5448  0.003 0.012 23.75 21.0 -0.0018 0.0083 99.00 21.5  1988 -7.934 35.549 99.00 0.002 
High bkg:   3 w2454398069I 1054.2   5524  5360  0.978  0.013
   3 w2454398069I  331868.4  1.00 1054.2  104.0 112   5524  5359 -0.012 0.011 99.00 21.4 -0.0054 0.0066 99.00 21.9  3042 -23.171 28.539 99.00 0.002 
High bkg:   4 w2454404049I  837.6   4494  5428  0.988  0.015
   4 w2454404049I  337848.5  1.00  837.6   81.3 112   4494  5427 -0.015 0.012 99.00 21.3 -0.0075 0.0058 99.00 22.1  3879 -32.286 25.256 99.00 0.002 
High bkg:   5 w2454461697I  849.5   4543  5448  0.982  0.015
   5 w2454461697I  395496.4  1.00  849.5  100.4 116   4543  5447  0.005 0.013 23.29 20.8 -0.0053 0.0053 99.00 22.2  4729 -24.955 23.741 99.00 0.002 
    Sum (T+320537 to 396359):             501.7        524.3 (est. in src region)   SNR_unwtd_sum:  -1.00 0.9987 signif. UL:  22.16
  0  4729 454407529  341327.2  55032.3 -20790.2   -0.0053   0.0053 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -24.955 +/-23.486 snr: -1.1 mag: 99.00 UL: 13.07
Rebinned Data for sw00020521002uw2_sk.img using a zero point of 17.486:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.72e+03  341327.8  55031.6 -20790.8   -0.0053   0.0053 99.00 99.00  341327.8   -0.0053   0.0053 99.00 99.00 22.16
The data range from T+320537.0 s (3.71 d) to T+396359.5 s (4.59 d)
Wrote uvot_fluxes_150528d06h36m32s458431usUT.qdp
Wrote uvot_fluxes_150528d06h36m32s458431usUT.gif
Wrote uvot_fluxes_150528d06h36m32s458431usUT.ps
Wrote uvot_fluxes_150528d06h36m32s458431usUT_vis.qdp
Wrote uvot_fluxes_150528d06h36m32s458431usUT_uv.qdp
Wrote uvot_fluxes_150528d06h36m32s458431usUT_uv.gif
Wrote uvot_fluxes_150528d06h36m32s458431usUT_uv.ps
Found 5 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem