# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 120909d22h52m16s430575usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020231001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/data/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/data/khamseen10/uvot_tdrss/uvot_lc
# ========= unknown GRB ===================
Used archived BAT position of 230.64000 -25.79000
Reference: GCN_FOM_Notice_Sun_09_Sep_12_13:34:48_UT
The position is (15:22:33.60, -25:47:24.0)
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(230.640,-25.790,3") # color=red dash=0
Region file centered at (230.640,-25.790), which is (15:22:33.60, -25:47:24.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.
*** 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 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -9.55448 from trigger time of 368836513 in BAT summary file
# ============ Reading file sw00020231001uwh_sk.img ================
Long-term sensitivity correction is 0.079 at 368890906
The processing date in extension 0 is: 2012-09-09T22:28:10
The trigger time is: 368836522.55448. The reference is BAT GRB summary file
Using zero point of 20.369 for filter WHITE
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(230.640,-25.790,25")
fk5;-circle(230.640,-25.790,12.5")
fk5;-circle(230.631738,-25.790354,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 wh368890905I   54383.4  0.89  165.5 1128.9 116  56099  5720  0.000 0.273 99.00 20.0  0.0000 0.2727 99.00 20.0   166  0.000 13.818 99.00 0.003 
above line uses coinc_corr_src:  0.887 corr_bkg:  0.887
   2 wh368891119I   54597.1  0.93 1129.8 4646.2 104 249457  5728  0.000 0.074 99.00 21.4  0.0000 0.0729 99.00 21.4  1295  0.000  3.682 99.00 0.004 
   3 wh368893241I   56719.0  0.93   93.4  435.1 116  19820  5744  0.000 0.265 99.00 20.0  0.0000 0.0703 99.00 21.5  1389  0.000  3.561 99.00 0.004 
   4 wh368896656I   60133.9  0.89  134.8  842.6 116  43816  5744  0.000 0.296 99.00 19.9  0.0000 0.0691 99.00 21.5  1523  0.000  3.482 99.00 0.004 
above line uses coinc_corr_src:  0.892 corr_bkg:  0.892
   5 wh368898129I   61607.3  0.93   88.3  388.0 116  19108  5720  0.000 0.282 99.00 20.0  0.0000 0.0671 99.00 21.5  1612  0.000  3.404 99.00 0.004 
   6 wh368898222I   61699.7  0.93  533.6 2211.9 112 113334  5724  0.000 0.109 99.00 21.0  0.0000 0.0572 99.00 21.7  2145  0.000  2.996 99.00 0.004 
   7 wh368899129I   62607.0  0.93   34.6  145.3 108   7335  5672  0.000 0.422 99.00 19.5  0.0000 0.0567 99.00 21.7  2180  0.000  2.974 99.00 0.004 
   8 wh368902471I   65948.5  0.89  165.4 1000.1 104  55262  5696  0.000 0.256 99.00 20.1  0.0000 0.0557 99.00 21.7  2345  0.000  2.922 99.00 0.004 
above line uses coinc_corr_src:  0.890 corr_bkg:  0.890
   9 wh368904423I   67900.9  0.93   20.9   63.2 104   4489  5720  0.000 0.546 99.00 19.3  0.0000 0.0554 99.00 21.7  2366  0.000  2.912 99.00 0.004 
    Sum (T+ 54383 to  67922):           10787.4      10787.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.74
  0  2366 368895026   58503.8   9418.4  -4120.4    0.0000   0.0554 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 2.795 snr:  0.0 mag: 99.00 UL: 17.49
Rebinned Data for sw00020231001uwh_sk.img using a zero point of 20.3688051350122:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.18e+03   58493.2   9428.9  -4109.8    0.0000   0.0554 99.00 99.00   58493.2    0.0000   0.0554 99.00 99.00 22.24
The data range from T+54383.4 s (0.63 d) to T+67922.1 s (0.79 d)
Wrote uvot_fluxes_120909d22h52m16s430575usUT.qdp
Wrote uvot_fluxes_120909d22h52m16s430575usUT.gif
Wrote uvot_fluxes_120909d22h52m16s430575usUT.ps
Wrote uvot_fluxes_120909d22h52m16s430575usUT_vis.qdp
Wrote uvot_fluxes_120909d22h52m16s430575usUT_uv.qdp
Wrote uvot_fluxes_120909d22h52m16s430575usUT_vis.gif
Wrote uvot_fluxes_120909d22h52m16s430575usUT_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.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0    0.127   57912.8  10009.3  -3529.4    0.0000   0.0503 99.00 99.00   57912.8    0.0000   0.0503 99.00 99.00 22.27
The data range from T+54383.4 s (0.63 d) to T+67922.1 s (0.79 d)
Wrote uvot_fluxes_wtd_120909d22h52m16s430575usUT.qdp
Wrote uvot_fluxes_wtd_120909d22h52m16s430575usUT.gif
Wrote uvot_fluxes_wtd_120909d22h52m16s430575usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem