# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140321d06h08m04s850723usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020370001 -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
# ========= GRB140320B ===================
Used archived opt source position of 145.55904 60.26825 3.00
Reference: GCN_Circ-16003
The position is (09:42:14.17, +60:16:05.7)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(145.55904,+60.26825,3") # color=red dash=0
Region file centered at (145.55904,+60.26825), which is (09:42:14.17, +60:16:05.7)
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 -11.78192 from trigger time of 417000360 in BAT summary file
# ============ Reading file sw00020370001uwh_sk.img ================
Long-term sensitivity correction is 0.094 at 417012347
The processing date in extension 0 is: 2014-03-21T05:52:48
The trigger time is: 417000371.78192. The reference is BAT GRB summary file
Using zero point of 20.384 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 8:
# 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(145.55904,+60.26825,25")
fk5;-circle(145.55904,+60.26825,12.5")
fk5;-circle(145.565756,60.261281,6")
fk5;-circle(145.561842,60.264037,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 wh417012346I   11974.9  0.98   55.9   82.3 108   3637  5353  0.181 0.186 22.24 20.7  0.1813 0.1857 22.24 20.7    56  1.996  2.044 19.54 0.068 
   2 wh417012406I   12034.4  0.98  368.8  519.3 116  23360  5353  0.040 0.071 23.87 21.8  0.0588 0.0662 23.46 21.8   425  0.669  0.740 20.73 0.064 
   3 wh417016354I   15983.2  0.97  201.5  325.4 124  14729  5402 -0.072 0.103 99.00 21.8  0.0168 0.0558 24.82 22.2   626  0.357  0.665 21.41 0.055 
   4 wh417016563I   16191.9  0.98 1473.7 1995.6 108  96481  5354  0.038 0.035 23.93 22.5  0.0318 0.0295 24.13 22.7  2100  0.499  0.419 21.05 0.050 
   5 wh417021988I   21617.0  0.98  211.4  292.8 112  14974  5339 -0.114 0.093 99.00 22.0  0.0184 0.0281 24.72 22.8  2311  0.375  0.409 21.36 0.048 
   6 wh417022206I   21834.8  0.98 1589.0 2441.3 128 103731  5388 -0.017 0.036 99.00 22.9  0.0042 0.0221 26.33 23.2  3900  0.211  0.358 21.98 0.040 
   7 wh417027781I   27409.3  0.97  209.4  311.0 112  15086  5357 -0.024 0.097 99.00 21.7  0.0027 0.0216 26.79 23.2  4110  0.194  0.354 22.07 0.040 
   8 wh417027996I   27625.1  0.98 1755.4 2319.6 116 115175  5383 -0.105 0.031 99.00 23.7 -0.0295 0.0178 99.00 23.9  5865 -0.235  0.325 99.00 0.036 
    Sum (T+ 11975 to  29409):            8287.4       8439.8 (est. in src region)   SNR_unwtd_sum:  -1.66 0.9987 signif. UL:  23.91
  0  5865 417022499   22126.9   7281.7 -10152.0   -0.0295   0.0178 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.235 +/- 0.322 snr: -0.7 mag: 99.00 UL: 20.54
Rebinned Data for sw00020370001uwh_sk.img using a zero point of 20.384:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.81e+03   18961.0   4488.2  -6986.2    0.0042   0.0221 26.33  2.00   18961.0    0.0042   0.0221 26.33  2.00 23.20
  1 1.92e+03   28410.5    998.1  -1001.1   -0.0963   0.0299 99.00 99.00   22126.7   -0.0295   0.0178 99.00 99.00 23.91
The data range from T+11974.9 s (0.14 d) to T+29408.6 s (0.34 d)
Wrote uvot_fluxes_140321d06h08m04s850723usUT.qdp
Wrote uvot_fluxes_140321d06h08m04s850723usUT.gif
Wrote uvot_fluxes_140321d06h08m04s850723usUT.ps
Wrote uvot_fluxes_140321d06h08m04s850723usUT_vis.qdp
Wrote uvot_fluxes_140321d06h08m04s850723usUT_uv.qdp
Wrote uvot_fluxes_140321d06h08m04s850723usUT_vis.gif
Wrote uvot_fluxes_140321d06h08m04s850723usUT_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     10.3   19224.2  10184.3  -7249.4   -0.0147   0.0169 99.00 99.00   19224.2   -0.0147   0.0169 99.00 99.00 23.68
The data range from T+11974.9 s (0.14 d) to T+29408.6 s (0.34 d)
Wrote uvot_fluxes_wtd_140321d06h08m04s850723usUT.qdp
Wrote uvot_fluxes_wtd_140321d06h08m04s850723usUT.gif
Wrote uvot_fluxes_wtd_140321d06h08m04s850723usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem