# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 140911d21h57m19s929887usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020417002 -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
# ========= GRB140909A ===================
Used archived XRT position of 193.61158 63.51678 4.00
Reference: GCN_Circulars-16811-Wed,_10_Sep_2014_03:13:47_-0400_(EDT)
The position is (12:54:26.78, +63:31:00.4)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(193.61158,63.51678,4") # color=red dash=0
Region file centered at (193.61158,63.51678), which is (12:54:26.78, +63:31:00.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.
Subtract UTCF of -12.49678 from trigger time of 431938611 in BAT summary file
# ============ Reading file sw00020417002uwh_sk.img ================
Use keyword TRIGTIME of 431938623.373 for trigger time.
Long-term sensitivity correction is 0.099 at 432086636
The processing date in extension 0 is: 2014-09-11T21:44:06
The trigger time is: 431938623.373. The reference is keyword in image file
Using zero point of 20.389 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Using background region based on sources found in extension 7:
# 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(193.61158,63.51678,25")
fk5;-circle(193.61158,63.51678,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 wh432086636I  148012.7  0.93   47.0  328.0 204  10727  5840 -1.106 0.452 99.00 20.6 -1.1062 0.4522 99.00 20.6    47 -149.508 61.112 99.00 0.001 
   2 wh432086686I  148063.1  0.93  291.3 2242.6 200  65199  5833  0.027 0.188 24.32 20.9 -0.1309 0.1735 99.00 21.2   338 -17.095 23.494 99.00 0.001 
   3 wh432103930I  165307.1  0.93   35.2  266.6 188   8023  5812  0.224 0.540 22.01 19.7 -0.0974 0.1652 99.00 21.2   373 -12.983 22.578 99.00 0.001 
   4 wh432103968I  165345.5  0.92  243.4 2018.8 208  57575  5873 -0.094 0.214 99.00 20.9 -0.0961 0.1310 99.00 21.5   617 -13.381 18.525 99.00 0.001 
   5 wh432104329I  165706.6  0.93   41.5  299.4 208   8950  5864 -0.485 0.479 99.00 20.2 -0.1207 0.1264 99.00 21.6   658 -16.875 17.949 99.00 0.001 
   6 wh432109413I  170790.2  0.94   53.9  306.2 200  10072  5830 -0.799 0.372 99.00 20.7 -0.1729 0.1201 99.00 21.8   712 -25.519 17.152 99.00 0.001 
   7 wh432109471I  170847.7  0.93  387.8 2629.4 200  81878  5826 -0.519 0.152 99.00 22.0 -0.2954 0.0944 99.00 22.4  1100 -43.976 13.907 99.00 0.001 
   8 wh432110029I  171406.2  0.93   41.4  313.0 208   9087  5856 -0.262 0.492 99.00 20.0 -0.2942 0.0927 99.00 22.5  1141 -43.884 13.686 99.00 0.001 
   9 wh432115390I  176767.1  0.93   54.9  389.8 188  12234  5841 -0.081 0.421 99.00 20.1 -0.2844 0.0906 99.00 22.5  1196 -42.625 13.417 99.00 0.001 
  10 wh432115449I  176825.6  0.93  372.8 2629.8 200  79180  5834 -0.253 0.158 99.00 21.5 -0.2770 0.0786 99.00 22.7  1569 -42.256 11.885 99.00 0.001 
  11 wh432116010I  177387.1  0.93   55.1  398.8 200  11288  5831  0.235 0.414 21.96 19.9 -0.2595 0.0773 99.00 22.7  1624 -39.687 11.704 99.00 0.001 
  12 wh432126866I  188243.1  0.93   46.0  321.1 196   9154  5831  0.323 0.450 21.61 19.8 -0.2434 0.0761 99.00 22.7  1670 -37.367 11.573 99.00 0.001 
  13 wh432126916I  188292.7  0.92  303.0 2543.5 208  71383  5880  0.068 0.193 23.31 20.8 -0.1958 0.0709 99.00 22.7  1973 -31.893 10.928 99.00 0.001 
  14 wh432127391I  188768.1  0.92   24.3  210.5 200   6265  5817 -0.228 0.697 99.00 19.6 -0.1962 0.0706 99.00 22.7  1998 -31.954 10.883 99.00 0.001 
  15 wh432150128I  211504.9  0.92   16.5  151.9 192   3860  5854  1.736 0.887 19.79 18.8 -0.1806 0.0704 99.00 22.6  2014 -30.091 10.863 99.00 0.001 
  16 wh432150147I  211524.3  0.92  135.7 1214.1 200  35395  5813 -0.030 0.301 99.00 20.4 -0.1712 0.0686 99.00 22.7  2150 -29.247 10.679 99.00 0.001 
  17 wh432150325I  211702.5  0.90   16.5  187.9 204   4732  5869  1.633 0.986 19.86 18.7 -0.1579 0.0685 99.00 22.6  2166 -27.994 10.662 99.00 0.001 
above line uses coinc_corr_src:  0.900 corr_bkg:  0.906
  18 wh432155627I  217004.0  0.94   75.6  485.2 204  14807  5826 -0.486 0.337 99.00 20.7 -0.1690 0.0671 99.00 22.7  2242 -29.650 10.529 99.00 0.001 
  19 wh432155706I  217083.4  0.93   53.5  408.2 200  12032  5871 -0.034 0.443 99.00 20.0 -0.1659 0.0664 99.00 22.7  2295 -29.312 10.454 99.00 0.001 
    Sum (T+148013 to 217138):           17345.0      17686.5 (est. in src region)   SNR_unwtd_sum:  -2.50 0.9987 signif. UL:  22.69
  0  2295 432115241  176617.1  40520.5 -28604.5   -0.1659   0.0664 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -29.312 +/-10.076 snr: -2.9 mag: 99.00 UL: 17.32
Rebinned Data for sw00020417002uwh_sk.img using a zero point of 20.389:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.51e+03  167054.0  10423.7 -19041.3   -0.2595   0.0773 99.00 99.00  167054.0   -0.2595   0.0773 99.00 99.00 22.71
  1      620  199810.5  17327.1 -11567.4    0.0623   0.1288 23.40  1.22  176587.9   -0.1659   0.0664 99.00 99.00 22.69
The data range from T+148012.7 s (1.71 d) to T+217137.7 s (2.51 d)
Wrote uvot_fluxes_140911d21h57m19s929887usUT.qdp
Wrote uvot_fluxes_140911d21h57m19s929887usUT.gif
Wrote uvot_fluxes_140911d21h57m19s929887usUT.ps
Wrote uvot_fluxes_140911d21h57m19s929887usUT_vis.qdp
Wrote uvot_fluxes_140911d21h57m19s929887usUT_uv.qdp
Wrote uvot_fluxes_140911d21h57m19s929887usUT_vis.gif
Wrote uvot_fluxes_140911d21h57m19s929887usUT_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.000293  148036.6     23.9    -23.9   -1.0099   0.4128 99.00 99.00  148036.6   -1.0099   0.4128 99.00 99.00 20.59
  1  0.00975  173347.5  43790.2 -25284.4   -0.1610   0.0612 99.00 99.00  172608.1   -0.1822   0.0605 99.00 99.00 22.80
The data range from T+148012.7 s (1.71 d) to T+217137.7 s (2.51 d)
Wrote uvot_fluxes_wtd_140911d21h57m19s929887usUT.qdp
Wrote uvot_fluxes_wtd_140911d21h57m19s929887usUT.gif
Wrote uvot_fluxes_wtd_140911d21h57m19s929887usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem