# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 191017d16h20m51s934463usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00929744001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB191016A ===================
Could not find/read custom source region custom_929744_src.reg
Used archived opt source position of 30.26979 24.51022 3.00
Reference: GCN_Circulars-26010
The position is (02:01:04.75, +24:30:36.8)
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(30.26979,24.51022,3") # color=red dash=0
Source region spec. is: 30.26979 24.51022 3"
Region file centered at (30.26979,24.51022), which is (02:01:04.75, +24:30:36.8)
Could not find/read custom background region custom_929744_bkg.reg
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 -23.7286 from uncorrected trigger time of 592891740.91 in BAT summary file
# ============ Reading file sw00929744001uwh_sk.img ================
Use keyword TRIGTIME of 592891764.672 for trigger time.
Long-term sensitivity correction to zero point is -0.215 at 592936787
The processing date in extension 0 is: 2019-10-17T14:14:08
The trigger time is: 592891764.672. The reference is keyword in image file
Using zero point of 20.075 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 2:
# 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(30.26979,24.51022,25")
fk5;-circle(30.26979,24.51022,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 wh592936787I   45022.5  0.96  203.5  468.3 112  21189  5867  0.361 0.123 21.18 20.4  0.3610 0.1234 21.18 20.4   204 19.862  6.790 17.05 0.009 
   2 wh592936996I   45232.2  0.96 1618.9 3350.8 104 166622  5811  0.262 0.041 21.53 21.1  0.2726 0.0393 21.49 21.1  1822 15.245  2.199 17.33 0.009 
   3 wh592942575I   50811.2  0.97  199.6  429.5 108  20450  5837  0.294 0.120 21.41 20.5  0.2747 0.0373 21.48 21.1  2022 15.487  2.109 17.32 0.009 
   4 wh592942781I   51016.9  0.96 1595.3 3654.5 112 164950  5859  0.361 0.044 21.18 20.8  0.3128 0.0285 21.34 21.1  3617 18.220  1.680 17.14 0.008 
   5 wh592948184I   56419.7  0.97  209.4  441.3 112  21852  5858  0.128 0.116 22.30 20.9  0.3027 0.0276 21.37 21.1  3827 17.852  1.644 17.16 0.008 
   6 wh592948400I   56635.5  0.96  296.8  656.5 116  30917  5877  0.179 0.100 21.94 20.9  0.2938 0.0267 21.40 21.1  4123 17.576  1.600 17.18 0.008 
    Sum (T+ 45022 to  56937):            9001.0       7946.4 (est. in src region)   SNR_unwtd_sum:  11.02 0.9987 signif. UL:  21.14
  0  4123 592941546   49781.6   7155.6  -4759.1    0.2938   0.0267 21.404  0.104  -0.094
Total wtd_rate (for all exposures so far): 17.576 +/- 1.587 snr: 11.1 mag: 17.18 UL: 16.70
Rebinned Data for sw00929744001uwh_sk.img using a zero point of 20.075:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.49e+03   48815.4   3822.3  -3793.0    0.3128   0.0285 21.34  0.09   48815.4    0.3128   0.0285 21.34  0.09 21.07
  1      489   56678.6    258.6   -258.9    0.1582   0.0758 22.08  0.43   49781.9    0.2938   0.0267 21.40  0.09 21.14
The data range from T+45022.5 s (0.52 d) to T+56937.1 s (0.66 d)
Wrote uvot_fluxes_191017d16h20m51s934463usUT.qdp
Wrote uvot_fluxes_191017d16h20m51s934463usUT.gif
Wrote uvot_fluxes_191017d16h20m51s934463usUT.ps
Wrote uvot_fluxes_191017d16h20m51s934463usUT_vis.qdp
Wrote uvot_fluxes_191017d16h20m51s934463usUT_uv.qdp
Wrote uvot_fluxes_191017d16h20m51s934463usUT_vis.gif
Wrote uvot_fluxes_191017d16h20m51s934463usUT_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.291   48357.4   4280.4  -3334.9    0.3756   0.0347 21.35  0.10   48357.4    0.3756   0.0347 21.35  0.10 21.09
  1   0.0299   56674.8    262.4   -255.1    0.1921   0.0924 22.08  0.43   49133.2    0.3559   0.0325 21.41  0.09 21.15
The data range from T+45022.5 s (0.52 d) to T+56937.1 s (0.66 d)
Wrote uvot_fluxes_wtd_191017d16h20m51s934463usUT.qdp
Wrote uvot_fluxes_wtd_191017d16h20m51s934463usUT.gif
Wrote uvot_fluxes_wtd_191017d16h20m51s934463usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem