# uvot_fluxes_wget.pl vrs. 2015-09-01 fem at 150913d12h53m33s040925usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020550001 -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
# ========= GRB150903 ===================
Used archived BAT position of 239.16720 -33.81260
Reference: GCN_Notice_Thu_03_Sep_15_17:32:58_UT
The position is (15:56:40.13, -33:48:45.4)
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(239.1672,-33.8126,3") # color=red dash=0
Region file centered at (239.1672,-33.8126), which is (15:56:40.13, -33:48:45.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.
*** 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 5184.0,
3 sigma should become about 5.2 sigma and 2 sigma should become about 4.6 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999975.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -15.07446 from trigger time of 462976193.59 in BAT summary file
# ============ Reading file sw00020550001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.209 at 462996342
The processing date in extension 0 is: 2015-09-13T12:42:10
The trigger time is: 462976208.66446. The reference is BAT GRB summary file
Using zero point of 16.641 for filter UVM2
Use aperture correction of 1.106 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(239.1672,-33.8126,25")
fk5;-circle(239.1672,-33.8126,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 m2462996342I   20133.8  1.00  372.5   16.4 116    886  5836 
   2 m2463002070I   25861.7  1.00  581.2   29.5 112   1309  5848  0.000 0.010 99.00 19.9  0.0000 0.0096 99.00 19.9   581  0.000  7.251 99.00 0.031 
#  3 m2463004362I   28153.8  1.00  287.6    9.3 116    536  5872 
   4 m2463007968I   31760.1  1.00  622.2   25.9 108   1286  5824  0.000 0.009 99.00 20.0  0.0000 0.0065 99.00 20.3  1203  0.000  5.402 99.00 0.030 
   5 m2463010375I   34166.4  1.00   24.1    1.3 116     59  5852  0.000 0.050 99.00 18.1  0.0000 0.0064 99.00 20.3  1228  0.000  5.370 99.00 0.029 
   6 m2463013705I   37497.1  1.00  999.2   40.2 112   2147  5868  0.000 0.007 99.00 20.2  0.0000 0.0048 99.00 20.7  2227  0.000  4.429 99.00 0.026 
High bkg:   7 m2463019375I  556.4   1830  5828  0.564  0.013
   7 m2463019375I   43167.0  1.00  556.4   29.9 116   1830  5828  0.000 0.012 99.00 19.7  0.0000 0.0045 99.00 20.7  2783  0.000  4.251 99.00 0.022 
    Sum (T+ 25862 to  43732):             127.5        127.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999749228395 signif. UL:  20.72
  0  2783 463011469   35260.5   8471.8  -9398.8    0.0000   0.0045 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 4.211 snr:  0.0 mag: 99.00 UL: 13.30
Rebinned Data for sw00020550001um2_sk.img using a zero point of 16.641:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.78e+03   35259.9   8472.3  -9398.3    0.0000   0.0045 99.00 99.00   35259.9    0.0000   0.0045 99.00 99.00 21.23
The data range from T+25861.7 s (0.30 d) to T+43732.3 s (0.51 d)
Wrote uvot_fluxes_150913d12h53m33s040925usUT.qdp
Wrote uvot_fluxes_150913d12h53m33s040925usUT.gif
Wrote uvot_fluxes_150913d12h53m33s040925usUT.ps
Wrote uvot_fluxes_150913d12h53m33s040925usUT_vis.qdp
Wrote uvot_fluxes_150913d12h53m33s040925usUT_uv.qdp
Wrote uvot_fluxes_150913d12h53m33s040925usUT_uv.gif
Wrote uvot_fluxes_150913d12h53m33s040925usUT_uv.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2015-09-01 fem