# uvot_fluxes_wget.pl vrs. 2015-09-01 fem at 150913d03h19m05s180067usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020557992 -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
# ========= GRB150912 ===================
Used archived BAT position of 248.44350 -21.03370
Reference: GCN_FOM_Notice_Sat_12_Sep_15_19:29:15_UT
The position is (16:33:46.44, -21:02:01.3)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(248.4435,-21.0337,3") # color=red dash=0
Region file centered at (248.4435,-21.0337), which is (16:33:46.44, -21:02:01.3)
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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 1600.0,
3 sigma should become about 4.9 sigma and 2 sigma should become about 4.3 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999919.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -15.11438 from trigger time of 463747050 in BAT summary file
# ============ Reading file sw00020557992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.250 at 463779708
The processing date in extension 0 is: 2015-09-13T03:11:34
The trigger time is: 463747065.11438. The reference is BAT GRB summary file
Using zero point of 17.130 for filter UVW2
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 6:
# 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(248.4435,-21.0337,25")
fk5;-circle(248.4435,-21.0337,12.5")
fk5;-circle(248.437190,-21.028074,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 w2463779707I   32642.8  1.00  654.3   58.5 112   2563  5780  0.000 0.012 99.00 20.2  0.0000 0.0121 99.00 20.2   654  0.000  7.305 99.00 0.022 
High bkg:   2 w2463783557I  711.8   3737  5792  0.906  0.015
   2 w2463783557I   36492.5  1.00  711.8   71.7 116   3737  5792  0.000 0.014 99.00 20.1  0.0000 0.0091 99.00 20.5  1366  0.000  5.726 99.00 0.017 
   3 w2463785689I   38624.6  1.00  422.2   46.3 116   1884  5836  0.000 0.016 99.00 19.9  0.0000 0.0080 99.00 20.6  1788  0.000  5.133 99.00 0.017 
High bkg:   4 w2463789347I 1036.9   4991  5808  0.829  0.012
   4 w2463789347I   42282.4  1.00 1036.9   96.0 112   4991  5808  0.000 0.011 99.00 20.3  0.0000 0.0064 99.00 20.9  2825  0.000  4.370 99.00 0.016 
   5 w2463791651I   44586.3  1.00  209.5   26.9 128    935  5848  0.000 0.024 99.00 19.4  0.0000 0.0062 99.00 20.9  3035  0.000  4.269 99.00 0.015 
High bkg:   6 w2463795048I 1508.6   7137  5760  0.821  0.010
   6 w2463795048I   47983.0  1.00 1508.6  144.7 108   7137  5760  0.000 0.009 99.00 20.6  0.0000 0.0050 99.00 21.1  4543  0.000  3.732 99.00 0.014 
   7 w2463797261I   50196.2  1.00  246.1   23.4 104   1049  5768  0.000 0.020 99.00 19.7  0.0000 0.0049 99.00 21.2  4789  0.000  3.657 99.00 0.014 
    Sum (T+ 32643 to  50446):             431.4        431.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  21.18
  0  4789 463789635   42570.1   7876.2  -9927.3    0.0000   0.0049 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 3.622 snr:  0.0 mag: 99.00 UL: 14.00
Rebinned Data for sw00020557992uw2_sk.img using a zero point of 17.130:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.78e+03   42570.0   7876.2  -9927.3    0.0000   0.0049 99.00 99.00   42570.0    0.0000   0.0049 99.00 99.00 21.65
The data range from T+32642.8 s (0.38 d) to T+50446.3 s (0.58 d)
Wrote uvot_fluxes_150913d03h19m05s180067usUT.qdp
Wrote uvot_fluxes_150913d03h19m05s180067usUT.gif
Wrote uvot_fluxes_150913d03h19m05s180067usUT.ps
Wrote uvot_fluxes_150913d03h19m05s180067usUT_vis.qdp
Wrote uvot_fluxes_150913d03h19m05s180067usUT_uv.qdp
Wrote uvot_fluxes_150913d03h19m05s180067usUT_uv.gif
Wrote uvot_fluxes_150913d03h19m05s180067usUT_uv.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2015-09-01 fem