# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 131128d17h47m12s229852usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020329001 -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
# ========= unknown GRB ===================
Used archived BAT position of 307.94900 0.99000
Reference: GCN_FOM_Notice_Thu_28_Nov_13_10:20:57_UT
The position is (20:31:47.76, +00:59: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(307.949,+0.990,3") # color=red dash=0
Region file centered at (307.949,+0.990), which is (20:31:47.76, +00:59: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.
Failed to find trigger time in BAT summary file for trigger 00020329
# ============ Reading file sw00020329001uvv_sk.img ================
Long-term sensitivity correction is 0.134 at 407326201
The processing date in extension 0 is: 2013-11-28T17:20:39
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 18.024 for filter V
Use aperture correction of 1.087 based on aperture of 3.00
Using background region based on sources found in extension 10:
# 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(307.949,+0.990,25")
fk5;-circle(307.949,+0.990,12.5")
fk5;-circle(307.949734,0.984917,6")
fk5;-circle(307.953513,0.991091,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 vv407326201I 407326201.2  0.99  104.1  109.3 108   3123  4968  0.000 0.088 99.00 18.9  0.0000 0.0880 99.00 18.9   104  0.000 289048.706 99.00 0.000 
   2 vv407326309I 407326309.7  0.99  188.2  216.1 112   5727  4960  0.000 0.067 99.00 19.2  0.0000 0.0535 99.00 19.4   292  0.000 175494.969 99.00 0.000 
   3 vv407326854I 407326854.7  0.99   50.0   53.1 108   1546  4972  0.000 0.129 99.00 18.5  0.0000 0.0494 99.00 19.5   342  0.000 162142.239 99.00 0.000 
   4 vv407326908I 407326908.5  0.99  500.7  526.8 116  15488  5000  0.000 0.042 99.00 19.7  0.0000 0.0321 99.00 20.0   843  0.000 105278.445 99.00 0.000 
   5 vv407327420I 407327420.9  0.99   35.2   40.4 108   1092  4972  0.000 0.154 99.00 18.3  0.0000 0.0314 99.00 20.0   878  0.000 103072.330 99.00 0.000 
   6 vv407331430I 407331430.5  0.99  148.4  152.1 116   4661  4956  0.000 0.078 99.00 19.0  0.0000 0.0292 99.00 20.1  1027  0.000 95685.720 99.00 0.000 
   7 vv407331584I 407331584.1  0.99 1483.0 1577.8 120  45470  5000  0.000 0.025 99.00 20.3  0.0000 0.0189 99.00 20.6  2510  0.000 62041.217 99.00 0.000 
   8 vv407333096I 407333096.8  0.99  122.5  122.6 108   3743  4984  0.000 0.082 99.00 19.0  0.0000 0.0184 99.00 20.6  2632  0.000 60448.419 99.00 0.000 
   9 vv407336474I 407336474.9  0.98  207.4  349.2 116  11382  5008  0.000 0.088 99.00 18.9  0.0000 0.0182 99.00 20.6  2839  0.000 59166.220 99.00 0.000 
  10 vv407336689I 407336689.7  0.99 2032.1 2213.8 112  64852  4988  0.000 0.021 99.00 20.5  0.0000 0.0137 99.00 20.9  4872  0.000 44818.734 99.00 0.000 
    Sum (T+407326201 to 407338754):            3615.2       3615.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.91
  0  4872 407333777 407333777.2   4977.1  -7576.0    0.0000   0.0137 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-44312.075 snr:  0.0 mag: 99.00 UL:  4.64
Rebinned Data for sw00020329001uvv_sk.img using a zero point of 18.024:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.81e+03 407333775.8   4978.6  -7574.5    0.0000   0.0137 99.00 99.00 407333775.8    0.0000   0.0137 99.00 99.00 21.41
The data range from T+407326201.2 s (4714.42 d) to T+407338754.4 s (4714.57 d)
Wrote uvot_fluxes_131128d17h47m12s229852usUT.qdp
Wrote uvot_fluxes_131128d17h47m12s229852usUT.gif
Wrote uvot_fluxes_131128d17h47m12s229852usUT.ps
Wrote uvot_fluxes_131128d17h47m12s229852usUT_vis.qdp
Wrote uvot_fluxes_131128d17h47m12s229852usUT_uv.qdp
Wrote uvot_fluxes_131128d17h47m12s229852usUT_vis.gif
Wrote uvot_fluxes_131128d17h47m12s229852usUT_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 6.17e-11 407333699.7   5054.6  -7498.5    0.0000   0.1100 99.00 99.00 407333699.7    0.0000   0.1100 99.00 99.00 21.42
The data range from T+407326201.2 s (4714.42 d) to T+407338754.4 s (4714.57 d)
Wrote uvot_fluxes_wtd_131128d17h47m12s229852usUT.qdp
Wrote uvot_fluxes_wtd_131128d17h47m12s229852usUT.gif
Wrote uvot_fluxes_wtd_131128d17h47m12s229852usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem