# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 130516d08h32m17s627145usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020269001 -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
# ========= GRB130505B ===================
Used archived uvot source position of 139.34124 1.70085 3.00
Reference: GCN_Circ_14594
The position is (09:17:21.90, +01:42:03.1)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(139.34124,1.70085,3") # color=red dash=0
Region file centered at (139.34124,1.70085), which is (09:17:21.90, +01:42:03.1)
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 -10.51904 from trigger time of 389490840 in BAT summary file
# ============ Reading file sw00020269001uuu_sk.img ================
Long-term sensitivity correction is 0.085 at 389549467
The processing date in extension 0 is: 2013-05-16T07:40:17
The trigger time is: 389490850.51904. The reference is BAT GRB summary file
Using zero point of 18.425 for filter U
Use aperture correction of 1.100 based on aperture of 3.00
Using background region based on sources found in extension 1:
# 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(139.34124,1.70085,25")
fk5;-circle(139.34124,1.70085,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 uu389549467I   58616.7  0.99  417.9  595.5 108   7083  5879  1.241 0.065 18.19 18.0  1.2409 0.0652 18.19 18.0   418 406.615 21.365 13.77 0.010 
   2 uu389555948I   65098.4  0.99  331.8  180.4 108   5574  5842  0.258 0.045 19.89 19.4  0.8045 0.0414 18.66 18.5   750 282.833 14.446 14.16 0.009 
   3 uu389561826I   70976.4  0.99  270.3  123.8 108   4434  5841  0.171 0.046 20.34 19.7  0.6362 0.0328 18.92 18.8  1020 236.040 11.973 14.36 0.009 
   4 uu389567104I   76254.2  0.99  250.1   77.9 108   4361  5831 -0.013 0.039 99.00 20.8  0.5080 0.0274 19.16 19.0  1270 201.958 10.552 14.53 0.009 
   5 uu389572037I   81187.2  0.99   42.6   14.3 108    831  5820 -0.030 0.099 99.00 19.7  0.4905 0.0267 19.20 19.0  1313 197.938 10.388 14.55 0.009 
   6 uu389572595I   81744.6  0.99    9.7    4.5 112    154  5837  0.182 0.245 20.28 18.5  0.4882 0.0266 19.20 19.0  1322 197.368 10.351 14.55 0.009 
   7 uu389572984I   82134.4  0.99  306.6  107.7 116   4997  5828  0.030 0.038 22.24 20.5  0.4017 0.0227 19.42 19.2  1629 174.096  9.302 14.69 0.008 
   8 uu389577363I   86512.8  0.99  195.2  122.3 108   6034  5833  0.060 0.063 21.48 19.9  0.3652 0.0214 19.52 19.3  1824 168.403  9.018 14.72 0.007 
    Sum (T+ 58617 to  86711):            1226.4        625.5 (est. in src region)   SNR_unwtd_sum:  17.08 0.9987 signif. UL:  19.34
  0  1824 389562638   71787.4  14923.7 -13170.7    0.3652   0.0214 19.519  0.065  -0.062
Total wtd_rate (for all exposures so far): 168.403 +/- 8.983 snr: 18.7 mag: 14.72 UL: 12.70
Rebinned Data for sw00020269001uuu_sk.img using a zero point of 18.425:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      742   61688.5   3747.0  -3071.9    0.8045   0.0414 18.66  0.05   61688.5    0.8045   0.0414 18.66  0.05 18.50
  1 1.07e+03   78836.8   7874.2  -7860.5    0.0600   0.0220 21.48  0.34   71805.7    0.3652   0.0214 19.52  0.06 19.34
The data range from T+58616.7 s (0.68 d) to T+86711.1 s (1.00 d)
Wrote uvot_fluxes_130516d08h32m17s627145usUT.qdp
Wrote uvot_fluxes_130516d08h32m17s627145usUT.gif
Wrote uvot_fluxes_130516d08h32m17s627145usUT.ps
Wrote uvot_fluxes_130516d08h32m17s627145usUT_vis.qdp
Wrote uvot_fluxes_130516d08h32m17s627145usUT_uv.qdp
Wrote uvot_fluxes_130516d08h32m17s627145usUT_vis.gif
Wrote uvot_fluxes_130516d08h32m17s627145usUT_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 0.000393   58829.0    212.3   -212.3    6.9118   0.3632 18.19  0.06   58829.0    6.9118   0.3632 18.19  0.06 18.03
  1  0.00121   67889.9   3361.1  -2791.6    1.2109   0.1792 20.08  0.15   65671.8    2.4611   0.1610 19.31  0.07 19.12
  2  0.00153   80299.5   6411.6  -4045.3    0.0833   0.1347 22.99  1.04   72817.3    1.1802   0.1038 20.11  0.09 19.86
The data range from T+58616.7 s (0.68 d) to T+86711.1 s (1.00 d)
Wrote uvot_fluxes_wtd_130516d08h32m17s627145usUT.qdp
Wrote uvot_fluxes_wtd_130516d08h32m17s627145usUT.gif
Wrote uvot_fluxes_wtd_130516d08h32m17s627145usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem