# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 170123d16h33m53s062079usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020729992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= unknown GRB ===================
Used archived XRT position of 72.63608 -9.24236 4.00
Reference: GCN_Circulars-20510-Mon,_23_Jan_2017_09:53:52_-0500
The position is (04:50:32.66, -09:14:32.5)
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(72.63608,-9.24236,4") # color=red dash=0
Region file centered at (72.63608,-9.24236), which is (04:50:32.66, -09:14:32.5)
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.
Failed to find trigger time in BAT summary file for trigger 00020729
# ============ Reading file sw00020729992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.172 at 506826667
The processing date in extension 0 is: 2017-01-23T16:25:00
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 20.118 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(72.63608,-9.24236,25")
fk5;-circle(72.63608,-9.24236,12.5")
fk5;-circle(72.633983,-9.240942,6")
fk5;-circle(72.633724,-9.250175,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 wh506826666I 506826666.9  0.90  206.6 2429.5 192  47282  5909  4.985 0.278 18.37 18.2  4.9849 0.2779 18.37 18.2   207 2959625.270 164984.464  4.11 0.000 
above line uses coinc_corr_src:  0.898 corr_bkg:  0.924
   2 wh506826883I 506826883.6  0.93  153.3 1349.8 192  21364  5838  4.716 0.270 18.43 18.3  4.8680 0.1961 18.40 18.3   360 2869777.899 115485.083  4.14 0.000 
   3 wh506828775I 506828775.2  0.95   36.2  249.3 204   2592  5891  4.818 0.480 18.41 18.1  4.8633 0.1833 18.40 18.3   396 2867868.750 108744.787  4.15 0.000 
   4 wh506828814I 506828814.8  0.95  362.0 2473.9 196  26571  5865  4.785 0.151 18.42 18.3  4.8251 0.1194 18.41 18.3   758 2849701.263 70034.216  4.15 0.000 
   5 wh506829185I 506829185.9  0.94   16.8  131.9 196   1282  5929  5.860 0.756 18.20 17.8  4.8478 0.1179 18.40 18.3   775 2868030.758 69238.710  4.15 0.000 
   6 wh506832446I 506832446.4  0.90  207.4 2356.4 192  45137  5884  4.884 0.271 18.40 18.2  4.8552 0.1090 18.40 18.3   982 2871344.904 64227.237  4.14 0.000 
   7 wh506832660I 506832660.2  0.94 1571.1 11449.4 208 130786  5919  4.777 0.075 18.42 18.4  4.8066 0.0623 18.41 18.4  2553 2847455.507 36630.520  4.15 0.000 
   8 wh506838191I 506838191.8  0.91  210.4 2272.8 204  41791  5856  4.408 0.260 18.51 18.3  4.7770 0.0608 18.42 18.4  2764 2839506.469 35765.260  4.16 0.000 
   9 wh506838408I 506838408.6  0.93  189.2 1516.5 188  23697  5848  4.416 0.230 18.51 18.3  4.7539 0.0588 18.43 18.4  2953 2827954.047 34631.455  4.16 0.000 
  10 wh506844952I 506844952.3  0.95  121.8  873.4 196   9014  5894  5.147 0.267 18.34 18.2  4.7697 0.0575 18.42 18.4  3075 2840351.309 33861.017  4.16 0.000 
  11 wh506845079I 506845079.0  0.95 1225.1 8703.7 204  90052  5902  4.991 0.084 18.37 18.3  4.8332 0.0475 18.41 18.4  4300 2882876.548 28048.090  4.14 0.000 
  12 wh506846329I 506846329.0  0.95   91.6  621.9 188   6729  5867  4.841 0.299 18.41 18.2  4.8334 0.0469 18.41 18.4  4392 2882636.872 27708.756  4.14 0.000 
  13 wh506849692I 506849692.7  0.90  204.5 2409.8 208  45308  5868  4.511 0.279 18.48 18.3  4.8196 0.0465 18.41 18.4  4596 2879324.786 27391.168  4.14 0.000 
  14 wh506849903I 506849903.4  0.93  150.6 1358.9 208  19538  5951  5.006 0.275 18.37 18.2  4.8255 0.0458 18.41 18.4  4747 2881323.746 27032.228  4.14 0.000 
    Sum (T+506826667 to 506850056):           38197.2      17462.2 (est. in src region)   SNR_unwtd_sum: 105.27 0.9987 signif. UL:  18.38
  0  4747 506837882 506837881.6  12174.8 -11214.7    4.8255   0.0458 18.409  0.011  -0.010
Total wtd_rate (for all exposures so far): 2881323.746 +/-26851.508 snr: 107.3 mag:  4.14 UL:  3.94
Rebinned Data for sw00020729992uwh_sk.img using a zero point of 20.118:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.45e+03 506837893.3  12163.1 -11226.4    4.8255   0.0458 18.41  0.01 506837893.3    4.8255   0.0458 18.41  0.01 18.38
The data range from T+506826666.9 s (5866.05 d) to T+506850056.4 s (5866.32 d)
Wrote uvot_fluxes_170123d16h33m53s062079usUT.qdp
Wrote uvot_fluxes_170123d16h33m53s062079usUT.gif
Wrote uvot_fluxes_170123d16h33m53s062079usUT.ps
Wrote uvot_fluxes_170123d16h33m53s062079usUT_vis.qdp
Wrote uvot_fluxes_170123d16h33m53s062079usUT_uv.qdp
Wrote uvot_fluxes_170123d16h33m53s062079usUT_vis.gif
Wrote uvot_fluxes_170123d16h33m53s062079usUT_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  1.2e-09 506837977.1  12079.3 -11310.3    5.6656   0.0527 18.41  0.01 506837977.1    5.6656   0.0527 18.41  0.01 18.38
The data range from T+506826666.9 s (5866.05 d) to T+506850056.4 s (5866.32 d)
Wrote uvot_fluxes_wtd_170123d16h33m53s062079usUT.qdp
Wrote uvot_fluxes_wtd_170123d16h33m53s062079usUT.gif
Wrote uvot_fluxes_wtd_170123d16h33m53s062079usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem