# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 160623d22h59m43s942692usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020666992 -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
# ========= GRB160623A ===================
Used archived XRT position of 315.29675 42.22047 4.00
Reference: GCN_Circulars-19558-Thu,_23_Jun_2016_17:03:55_-0400
The position is (21:01:11.22, +42:13:13.7)
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(315.29675,42.22047,4") # color=red dash=0
Region file centered at (315.29675,42.22047), which is (21:01:11.22, +42:13:13.7)
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 -16.4062 from uncorrected trigger time of 488350834.22 in BAT summary file
# ============ Reading file sw00020666992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.206 at 488391507
The processing date in extension 0 is: 2016-06-23T22:51:27
The trigger time is: 488350850.6262. The reference is BAT GRB summary file
Using zero point of 17.684 for filter V
Use aperture correction of 1.030 based on aperture of 4.00
Using background region based on sources found in extension 4:
# 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(315.29675,42.22047,25")
fk5;-circle(315.29675,42.22047,12.5")
fk5;-circle(315.298629,42.228910,6")
fk5;-circle(315.293849,42.226699,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 vv488391507I   40656.6  0.99  388.5  302.5 204   9074  5561 -0.081 0.047 99.00 20.2 -0.0811 0.0474 99.00 20.2   389 -36.556 21.348 99.00 0.003 
   2 vv488391905I   41054.8  0.99  403.7  325.8 196   9719  5599 -0.037 0.047 99.00 19.9 -0.0588 0.0335 99.00 20.6   792 -26.593 15.157 99.00 0.003 
   3 vv488396341I   45491.0  0.99  816.7  591.0 188  18826  5533 -0.062 0.031 99.00 20.7 -0.0603 0.0229 99.00 21.2  1609 -28.808 10.976 99.00 0.003 
   4 vv488397175I   46325.2  0.99  866.9  674.2 204  20248  5533 -0.087 0.032 99.00 20.8 -0.0695 0.0186 99.00 21.6  2476 -33.642  9.115 99.00 0.002 
   5 vv488402112I   51262.0  0.99  383.4  274.6 188   8848  5521 -0.072 0.046 99.00 20.2 -0.0699 0.0172 99.00 21.8  2859 -34.443  8.599 99.00 0.002 
    Sum (T+ 40657 to  51652):            2168.0       2360.6 (est. in src region)   SNR_unwtd_sum:  -4.06 0.9987 signif. UL:  21.77
  0  2859 488396419   45568.4   6083.2  -4911.8   -0.0699   0.0172 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -34.443 +/- 8.438 snr: -4.1 mag: 99.00 UL: 15.05
Rebinned Data for sw00020666992uvv_sk.img using a zero point of 17.684:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.84e+03   45569.2   6082.4  -4912.6   -0.0699   0.0172 99.00 99.00   45569.2   -0.0699   0.0172 99.00 99.00 21.77
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020666992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.129 at 488391104
The processing date in extension 0 is:  2016-06-23T22:51:26
The trigger time is: 488350850.6262. The reference is BAT GRB summary file
Using zero point of 18.211 for filter U
Use aperture correction of  1.032 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(315.29675,42.22047,25")
fk5;-circle(315.29675,42.22047,12.5")
fk5;-circle(315.298584,42.228883,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 uu488391104I   40253.8  0.99  388.5  216.0 204   6755  5838 -0.053 0.040 99.00 20.8 -0.0535 0.0400 99.00 20.8   389 -14.675 10.975 99.00 0.006 
   2 uu488395502I   44652.3  0.99  816.7  478.8 208  14389  5862 -0.040 0.028 99.00 21.2 -0.0446 0.0231 99.00 21.5  1205 -13.227  6.799 99.00 0.005 
   3 uu488401287I   50436.8  0.99  802.9  469.2 204  13967  5839 -0.024 0.028 99.00 21.0 -0.0364 0.0180 99.00 21.8  2008 -11.613  5.593 99.00 0.005 
    Sum (T+ 40254 to  51253):            1164.0       1234.5 (est. in src region)   SNR_unwtd_sum:  -2.03 0.9987 signif. UL:  21.82
  0  2008 488397335   46484.0   4768.5  -6230.2   -0.0364   0.0180 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -18.304 +/- 4.605 snr: -4.0 mag: 99.00 UL: 16.21
Rebinned Data for sw00020666992uuu_sk.img using a zero point of 18.211:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0    2e+03   46483.7   4768.8  -6229.9   -0.0364   0.0180 99.00 99.00   46483.7   -0.0364   0.0180 99.00 99.00 21.82
The data range from T+40253.8 s (0.47 d) to T+51651.6 s (0.60 d)
Wrote uvot_fluxes_160623d22h59m43s942692usUT.qdp
Wrote uvot_fluxes_160623d22h59m43s942692usUT.gif
Wrote uvot_fluxes_160623d22h59m43s942692usUT.ps
Wrote uvot_fluxes_160623d22h59m43s942692usUT_vis.qdp
Wrote uvot_fluxes_160623d22h59m43s942692usUT_uv.qdp
Wrote uvot_fluxes_160623d22h59m43s942692usUT_vis.gif
Wrote uvot_fluxes_160623d22h59m43s942692usUT_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.00594   45625.1   6026.5  -5371.3   -0.3594   0.1047 99.00 99.00   45625.1   -0.3594   0.1047 99.00 99.00 22.29
The data range from T+40253.8 s (0.47 d) to T+51651.6 s (0.60 d)
Wrote uvot_fluxes_wtd_160623d22h59m43s942692usUT.qdp
Wrote uvot_fluxes_wtd_160623d22h59m43s942692usUT.gif
Wrote uvot_fluxes_wtd_160623d22h59m43s942692usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem