# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 160609d19h32m44s618315usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020650001 -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
# ========= unknown GRB ===================
Used archived BAT position of 119.63700 -25.32500
Reference: GCN_FOM_Notice_Mon_30_May_16_13:53:31_UT
The position is (07:58:32.88, -25:19:30.0)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(119.637,-25.325,3") # color=red dash=0
Region file centered at (119.637,-25.325), which is (07:58:32.88, -25:19:30.0)
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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Failed to find trigger time in BAT summary file for trigger 00020650
# ============ Reading file sw00020650001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.128 at 486309241
The processing date in extension 0 is: 2016-06-09T19:18:13
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 18.212 for filter U
Use aperture correction of 1.100 based on aperture of 3.00
Using background region based on sources found in extension 5:
# 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(119.637,-25.325,25")
fk5;-circle(119.637,-25.325,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 uu486309240I 486309240.8  0.99   45.6   18.1 112   1393  5844  0.000 0.127 99.00 18.7  0.0000 0.1270 99.00 18.7    46  0.000 418931.790 99.00 0.000 
   2 uu486314845I 486314845.6  0.99   45.3   40.2 116   1715  5844  0.000 0.145 99.00 18.5  0.0000 0.0963 99.00 19.0    91  0.000 314901.513 99.00 0.000 
   3 uu486332232I 486332232.9  0.99   41.8   27.9 116   1273  5844  0.000 0.135 99.00 18.6  0.0000 0.0784 99.00 19.2   133  0.000 256916.295 99.00 0.000 
   4 uu486344156I 486344156.3  0.99   40.8   18.0 116   1020  5844  0.000 0.123 99.00 18.7  0.0000 0.0666 99.00 19.4   174  0.000 217275.823 99.00 0.000 
   5 uu486354528I 486354529.0  0.98   46.7   64.3 112   3195  5844  0.000 0.190 99.00 18.2  0.0000 0.0661 99.00 19.4   220  0.000 205320.496 99.00 0.000 
   6 uu486360523I 486360523.7  0.98   45.8   44.6 112   2515  5844  0.000 0.171 99.00 18.4  0.0000 0.0621 99.00 19.5   266  0.000 192951.069 99.00 0.000 
   7 uu486366371I 486366371.5  0.98   46.4   39.2 116   2184  5872  0.000 0.160 99.00 18.4  0.0000 0.0580 99.00 19.5   312  0.000 181173.267 99.00 0.000 
   8 uu486372161I 486372161.8  0.99   44.3   36.9 116   1852  5844  0.000 0.154 99.00 18.5  0.0000 0.0542 99.00 19.6   357  0.000 170638.622 99.00 0.000 
   9 uu486378120I 486378120.8  0.99   40.4   19.5 112   1274  5836  0.000 0.137 99.00 18.6  0.0000 0.0507 99.00 19.7   397  0.000 159692.672 99.00 0.000 
  10 uu486383912I 486383912.8  0.99   43.7   24.8 116   1344  5824  0.000 0.133 99.00 18.6  0.0000 0.0475 99.00 19.8   441  0.000 150018.350 99.00 0.000 
  11 uu486390080I 486390080.0  0.99   45.5   26.8 108   1177  5828  0.000 0.115 99.00 18.8  0.0000 0.0444 99.00 19.8   486  0.000 139462.907 99.00 0.000 
    Sum (T+486309241 to 486390126):             368.6        368.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.83
  0   486 486355049 486355048.9  35077.3 -45808.1    0.0000   0.0444 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-138125.614 snr:  0.0 mag: 99.00 UL:  3.59
Rebinned Data for sw00020650001uuu_sk.img using a zero point of 18.212:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      480 486355046.5  35079.8 -45805.7    0.0000   0.0444 99.00 99.00 486355046.5    0.0000   0.0444 99.00 99.00 20.32
The data range from T+486309240.8 s (5628.58 d) to T+486390126.3 s (5629.52 d)
Wrote uvot_fluxes_160609d19h32m44s618315usUT.qdp
Wrote uvot_fluxes_160609d19h32m44s618315usUT.gif
Wrote uvot_fluxes_160609d19h32m44s618315usUT.ps
Wrote uvot_fluxes_160609d19h32m44s618315usUT_vis.qdp
Wrote uvot_fluxes_160609d19h32m44s618315usUT_uv.qdp
Wrote uvot_fluxes_160609d19h32m44s618315usUT_vis.gif
Wrote uvot_fluxes_160609d19h32m44s618315usUT_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 7.58e-12 486355304.1  34822.1 -46063.3    0.0000   0.2868 99.00 99.00 486355304.1    0.0000   0.2868 99.00 99.00 20.38
The data range from T+486309240.8 s (5628.58 d) to T+486390126.3 s (5629.52 d)
Wrote uvot_fluxes_wtd_160609d19h32m44s618315usUT.qdp
Wrote uvot_fluxes_wtd_160609d19h32m44s618315usUT.gif
Wrote uvot_fluxes_wtd_160609d19h32m44s618315usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem