# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 160609d19h51m31s912361usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020631001 -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.44900 -26.20000
Reference: GCN_FOM_Notice_Mon_30_May_16_12:36:43_UT
The position is (07:57:47.76, -26:11:60.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.449,-26.200,3") # color=red dash=0
Region file centered at (119.449,-26.200), which is (07:57:47.76, -26:11:60.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 00020631
# ============ Reading file sw00020631001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.128 at 486304625
The processing date in extension 0 is: 2016-06-09T19:37:45
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 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(119.449,-26.200,25")
fk5;-circle(119.449,-26.200,12.5")
fk5;-circle(119.452845,-26.198110,6")
fk5;-circle(119.456295,-26.198804,6")
fk5;-circle(119.446831,-26.195429,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 uu486304624I 486304624.9  0.99   41.0   22.2 104    852  4804  0.000 0.117 99.00 18.8  0.0000 0.1174 99.00 18.8    41  0.000 387079.546 99.00 0.000 
   2 uu486310337I 486310337.6  0.99   38.3   20.6 108    801  4804  0.000 0.124 99.00 18.7  0.0000 0.0854 99.00 19.1    79  0.000 281463.822 99.00 0.000 
   3 uu486315422I 486315422.1  0.99   39.9   24.9 112    929  4836  0.000 0.130 99.00 18.7  0.0000 0.0716 99.00 19.3   119  0.000 235471.937 99.00 0.000 
   4 uu486331657I 486331657.3  0.98   45.3   58.3 108   2575  4804  0.000 0.191 99.00 18.2  0.0000 0.0737 99.00 19.3   164  0.000 220567.140 99.00 0.000 
   5 uu486343869I 486343869.4  0.99   41.6   26.4 116    974  4864  0.000 0.130 99.00 18.7  0.0000 0.0644 99.00 19.4   206  0.000 196162.923 99.00 0.000 
   6 uu486350048I 486350048.7  0.99   42.0   24.2 112    910  4836  0.000 0.123 99.00 18.7  0.0000 0.0574 99.00 19.5   248  0.000 176474.382 99.00 0.000 
   7 uu486360447I 486360447.4  0.98   47.1   53.0 104   2218  4788  0.000 0.167 99.00 18.4  0.0000 0.0550 99.00 19.6   295  0.000 168027.531 99.00 0.000 
   8 uu486366230I 486366230.5  0.98   43.2   53.8 112   1983  4836  0.000 0.178 99.00 18.3  0.0000 0.0531 99.00 19.6   338  0.000 161518.666 99.00 0.000 
   9 uu486372087I 486372087.1  0.98   46.0   41.1 112   1920  4836  0.000 0.164 99.00 18.4  0.0000 0.0507 99.00 19.7   384  0.000 154758.515 99.00 0.000 
  10 uu486377905I 486377905.9  0.99   45.1   44.4 112   1503  4836  0.000 0.147 99.00 18.5  0.0000 0.0479 99.00 19.7   430  0.000 147465.441 99.00 0.000 
  11 uu486383620I 486383620.6  0.99   42.5   36.3 112   1442  4836  0.000 0.153 99.00 18.5  0.0000 0.0457 99.00 19.8   472  0.000 141555.998 99.00 0.000 
  12 uu486389498I 486389498.9  0.99   46.6   37.5 104   1533  4792  0.000 0.139 99.00 18.6  0.0000 0.0435 99.00 19.9   519  0.000 135296.503 99.00 0.000 
    Sum (T+486304625 to 486389546):             400.2        400.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.85
  0   519 486351749 486351749.0  37797.2 -47124.1    0.0000   0.0435 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-133784.862 snr:  0.0 mag: 99.00 UL:  3.63
Rebinned Data for sw00020631001uuu_sk.img using a zero point of 18.212:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      512 486351698.9  37847.3 -47074.0    0.0000   0.0435 99.00 99.00 486351698.9    0.0000   0.0435 99.00 99.00 20.35
The data range from T+486304624.9 s (5628.53 d) to T+486389546.2 s (5629.51 d)
Wrote uvot_fluxes_160609d19h51m31s912361usUT.qdp
Wrote uvot_fluxes_160609d19h51m31s912361usUT.gif
Wrote uvot_fluxes_160609d19h51m31s912361usUT.ps
Wrote uvot_fluxes_160609d19h51m31s912361usUT_vis.qdp
Wrote uvot_fluxes_160609d19h51m31s912361usUT_uv.qdp
Wrote uvot_fluxes_160609d19h51m31s912361usUT_vis.gif
Wrote uvot_fluxes_160609d19h51m31s912361usUT_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 8.06e-12 486346154.9  43391.4 -41530.0    0.0000   0.2782 99.00 99.00 486346154.9    0.0000   0.2782 99.00 99.00 20.41
The data range from T+486304624.9 s (5628.53 d) to T+486389546.2 s (5629.51 d)
Wrote uvot_fluxes_wtd_160609d19h51m31s912361usUT.qdp
Wrote uvot_fluxes_wtd_160609d19h51m31s912361usUT.gif
Wrote uvot_fluxes_wtd_160609d19h51m31s912361usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem