# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180301d19h03m01s205411usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020406001 -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
# ========= GRB140815 ===================
Could not find/read custom source region custom_020406_src.reg
Used archived XRT position of 86.89221 -8.68014 4.00
Reference: GCN_Circulars-16691-Sat,_16_Aug_2014_11:16:21_-0400_(EDT)
The position is (05:47:34.13, -08:40:48.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(86.89221,-8.68014,4") # color=red dash=0
Source region spec. is: 86.89221 -8.68014 4"
Region file centered at (86.89221,-8.68014), which is (05:47:34.13, -08:40:48.5)
Could not find/read custom background region custom_020406_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 -12.4061 from uncorrected trigger time of 429832510.6 in BAT summary file
# ============ Reading file sw00020406001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.170 at 429852419
The processing date in extension 0 is: 2018-03-01T16:12:16
The trigger time is: 429832523.0061. The reference is BAT GRB summary file
Using zero point of 17.720 for filter V
Use aperture correction of 1.030 based on aperture of 4.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(86.89221,-8.68014,25")
fk5;-circle(86.89221,-8.68014,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 vv429852418I   19895.8  0.99  689.7  752.3 188  23656  5819 -0.018 0.042 99.00 20.0 -0.0180 0.0421 99.00 20.0   690 -3.880  9.083 99.00 0.004 
   2 vv429853123I   20600.6  0.98  736.4 1600.9 200  47698  5827 -0.052 0.058 99.00 19.8 -0.0354 0.0362 99.00 20.3  1426 -6.403  7.446 99.00 0.003 
#  3 vv429858537I   26014.6  0.99  521.4  648.3 200  20713  5838 
#  4 vv429859071I   26548.0  0.97  548.5 1592.1 208  44906  5883 
    Sum (T+ 19896 to  21349):            2353.2       2401.4 (est. in src region)   SNR_unwtd_sum:  -0.98 0.9987 signif. UL:  20.31
  0  1426 429853145   20622.4    726.4   -726.5   -0.0354   0.0362 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -6.403 +/- 7.325 snr: -0.9 mag: 99.00 UL: 14.52
Rebinned Data for sw00020406001uvv_sk.img using a zero point of 17.720:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.4e+03   20620.5    728.3   -724.6   -0.0354   0.0362 99.00 99.00   20620.5   -0.0354   0.0362 99.00 99.00 20.31
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020406001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.107 at 429851710
The processing date in extension 0 is:  2018-03-01T16:12:16
The trigger time is: 429832523.0061. The reference is BAT GRB summary file
Using zero point of 18.233 for filter U
Use aperture correction of  1.032 based on aperture of  4.00
Using background region based on sources found in extension 1:
# 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(86.89221,-8.68014,25")
fk5;-circle(86.89221,-8.68014,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 uu429851709I   19186.6  0.99  689.7  783.9 208  22210  5879 -0.003 0.043 99.00 20.4 -0.0029 0.0431 99.00 20.4   690 -0.373  5.594 99.00 0.007 
#  2 uu429857999I   25476.6  0.99  521.4  597.8 196  17852  5823 
   3 uu429864104I   31581.9  0.99  176.7  201.9 208   5607  5885  0.022 0.085 22.38 19.6  0.0022 0.0384 24.87 20.5   866  0.079  5.341 23.05 0.006 
    Sum (T+ 19187 to  31761):             985.8        984.0 (est. in src region)   SNR_unwtd_sum:   0.06 0.9987 signif. UL:  20.49
  0   866 429854535   22011.6   9749.8  -2825.0    0.0022   0.0384 24.872 74.128  -3.162
Total wtd_rate (for all exposures so far): -2.094 +/- 4.269 snr: -0.5 mag: 99.00 UL: 15.52
Rebinned Data for sw00020406001uuu_sk.img using a zero point of 18.233:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      857   22011.5   9749.9  -2824.9    0.0022   0.0384 24.87  3.16   22011.5    0.0022   0.0384 24.87  3.16 20.49
The data range from T+19186.6 s (0.22 d) to T+31761.4 s (0.37 d)
Wrote uvot_fluxes_180301d19h03m01s205411usUT.qdp
Wrote uvot_fluxes_180301d19h03m01s205411usUT.gif
Wrote uvot_fluxes_180301d19h03m01s205411usUT.ps
Wrote uvot_fluxes_180301d19h03m01s205411usUT_vis.qdp
Wrote uvot_fluxes_180301d19h03m01s205411usUT_uv.qdp
Wrote uvot_fluxes_180301d19h03m01s205411usUT_vis.gif
Wrote uvot_fluxes_180301d19h03m01s205411usUT_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.00696   20579.6  11181.8  -1393.1   -0.0730   0.2152 99.00 99.00   20579.6   -0.0730   0.2152 99.00 99.00 20.78
The data range from T+19186.6 s (0.22 d) to T+31761.4 s (0.37 d)
Wrote uvot_fluxes_wtd_180301d19h03m01s205411usUT.qdp
Wrote uvot_fluxes_wtd_180301d19h03m01s205411usUT.gif
Wrote uvot_fluxes_wtd_180301d19h03m01s205411usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem