# uvot_fluxes_wget.pl vrs. 2011-11-14 fem at 111213d21h28m34s186127usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020190002 -use_uvot -rebin -plot_mag -wrk_dir=/local/data/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/data/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB111208A ===================
Used archived XRT position of 290.22433 40.67617 4.00
Reference: GCN_Circulars-12658-Sat,_10_Dec_2011_20:25:04_-0500_(EST)
The position is (19:20:53.84, +40:40:34.2)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global color=red font="helvetica 10 normal" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source
fk5;circle(290.22433,40.67617,4")
Region file centered at (290.22433,40.67617), which is (19:20:53.84, +40:40:34.2)
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 -7.66154 from trigger time of 345025690.79 in BAT summary file
# ============ Reading file sw00020190001uwh_sk.img ================
The processing date in extension 0 is: 2011-12-08T23:42:01
The trigger time is: 345025698.45154. The reference is BAT GRB summary file
Using zero point of 20.29 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Using background region based on sources found in extension 9:
# 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(290.22433,40.67617,25")
fk5;-circle(290.22433,40.67617,12.5")
fk5;-circle(290.227601,40.674579,6")
fk5;-circle(290.224907,40.673084,6")
fk5;-circle(290.233599,40.678864,6")
fk5;-circle(290.218024,40.679376,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 wh345049973I   24275.2  0.95   18.5  109.0 208   2514  5007  0.273 0.643 21.70 19.4  0.2726 0.6432 21.70 19.4    18  6.619 15.620 18.24 0.007 
   2 wh345049995I   24296.6  0.95  190.7  900.0 200  23160  4975 -0.177 0.174 99.00 21.2 -0.1373 0.1685 99.00 21.2   209 -3.472  4.100 99.00 0.008 
   3 wh345050191I   24493.3  0.97    6.7   20.8 204    712  4908 -1.393 0.742 99.00 19.8 -0.1772 0.1649 99.00 21.3   216 -4.572  4.006 99.00 0.008 
   4 wh345053435I   27736.6  0.93  201.7 1464.5 204  36811  4978 -0.242 0.221 99.00 20.9 -0.2083 0.1360 99.00 21.6   418 -5.247  3.356 99.00 0.006 
   5 wh345053650I   27952.4  0.95  683.7 3580.1 200  91765  4965 -0.186 0.098 99.00 22.0 -0.1942 0.0800 99.00 22.4  1101 -5.270  2.151 99.00 0.006 
   6 wh345059173I   33475.5  0.92  168.9 1466.9 196  38079  4983 -0.207 0.268 99.00 20.7 -0.1958 0.0777 99.00 22.4  1270 -5.363  2.092 99.00 0.005 
   7 wh345059392I   33694.3  0.95  830.1 4287.9 196 109076  4977 -0.010 0.088 99.00 21.7 -0.1221 0.0583 99.00 22.6  2100 -3.717  1.716 99.00 0.005 
   8 wh345064952I   39254.0  0.93  203.8 1470.3 196  37162  4971  0.028 0.219 24.16 20.6 -0.1090 0.0566 99.00 22.6  2304 -3.522  1.683 99.00 0.005 
   9 wh345065172I   39473.6  0.95  960.0 5185.8 200 125339  4978  0.171 0.085 22.21 21.2 -0.0265 0.0470 99.00 22.5  3264 -1.375  1.508 99.00 0.005 
    Sum (T+ 24275 to  40842):           18485.2      18564.2 (est. in src region)   SNR_unwtd_sum:  -0.56 0.9987 signif. UL:  22.49
  0  3264   34023.1   6819.3  -9747.9   -0.0265   0.0470 99.00 99.00
Total wtd_rate (for all exposures so far): -1.375 +/- 1.465 snr: -0.9 mag: 99.00 UL: 18.85
Rebinned Data for sw00020190001uwh_sk.img using a zero point of 20.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.04e+03   27543.1   1419.3  -3267.9   -0.1942   0.0800 99.00 99.00   27543.1   -0.1942   0.0800 99.00 99.00 22.37
  1 2.04e+03   37323.1   3519.3  -3847.7    0.0592   0.0582 23.36  0.74   34017.9   -0.0265   0.0470 99.00 99.00 22.49
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020190002uuu_sk.img ================
Use keyword TRIGTIME of 345025698.607 for trigger time.
The processing date in extension 0 is:  2011-12-13T20:53:50
The trigger time is: 345025698.607. The reference is keyword in image file
Using zero point of 18.34 for filter U
Use aperture correction of  1.032 based on aperture of  4.00
Using background region based on sources found in extension 9:
# 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(290.22433,40.67617,25")
fk5;-circle(290.22433,40.67617,12.5")
fk5;-circle(290.227566,40.674652,6")
fk5;-circle(290.233694,40.679018,6")
fk5;-circle(290.217988,40.679449,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 uu345429347I  403648.6  0.99  426.9  542.6 200  14364  5217 -0.020 0.058 99.00 20.2 -0.0197 0.0581 99.00 20.2   427 -47.865 141.475 99.00 0.000 
   2 uu345435107I  409408.7  0.99  485.8  664.4 192  16797  5173  0.088 0.056 20.97 19.8  0.0378 0.0405 21.89 20.3   913 92.166 99.314 15.38 0.000 
   3 uu345440867I  415169.0  0.99  485.5  671.4 200  17357  5183  0.004 0.057 24.45 20.2  0.0259 0.0330 22.30 20.6  1398 65.349 81.448 15.75 0.000 
   4 uu345446627I  420929.1  0.99  485.5  671.6 208  17226  5238 -0.027 0.057 99.00 20.3  0.0123 0.0285 23.11 20.8  1884 33.975 70.946 16.46 0.000 
   5 uu345452408I  426710.1  0.99  464.8  650.9 204  16655  5175 -0.013 0.059 99.00 20.2  0.0073 0.0257 23.68 21.0  2348 21.942 64.176 16.94 0.000 
   6 uu345458168I  432470.2  0.99  523.7  648.9 208  16420  5256 -0.002 0.052 99.00 20.3  0.0057 0.0230 23.95 21.1  2872 17.072 57.962 17.21 0.000 
   7 uu345463930I  438231.6  0.99  522.4  620.7 204  16592  5212 -0.057 0.051 99.00 20.6 -0.0040 0.0210 99.00 21.3  3395 -8.424 53.214 99.00 0.000 
   8 uu345469689I  443990.5  0.99  523.3  708.1 196  18503  5188  0.018 0.054 22.69 20.2 -0.0011 0.0196 99.00 21.4  3918 -1.559 49.952 99.00 0.000 
   9 uu345487028I  461330.1  0.99  642.0  954.5 208  24400  5239 -0.023 0.051 99.00 20.4 -0.0042 0.0183 99.00 21.5  4560 -8.338 47.152 99.00 0.000 
  10 uu345492849I  467150.9  0.99  406.3  571.9 208  15737  5244 -0.135 0.063 99.00 20.6 -0.0148 0.0176 99.00 21.7  4966 -31.080 45.573 99.00 0.000 
    Sum (T+403649 to 467564):            6705.0       6775.5 (est. in src region)   SNR_unwtd_sum:  -0.85 0.9987 signif. UL:  21.68
  0  4966  433022.4  34541.3 -29373.8   -0.0148   0.0176 99.00 99.00
Total wtd_rate (for all exposures so far): -1.403 +/- 1.460 snr: -1.0 mag: 99.00 UL: 16.91
Rebinned Data for sw00020190002uuu_sk.img using a zero point of 18.34:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  4.9e+03  433018.6  34545.1 -29370.0   -0.0148   0.0176 99.00 99.00  433018.6   -0.0148   0.0176 99.00 99.00 21.68
The data range from T+24275.2 s (0.28 d) to T+467563.7 s (5.41 d)
Wrote uvot_fluxes_111213d21h28m34s186127usUT.qdp
Wrote uvot_fluxes_111213d21h28m34s186127usUT.gif
Wrote uvot_fluxes_111213d21h28m34s186127usUT.ps
Wrote uvot_fluxes_111213d21h28m34s186127usUT_vis.qdp
Wrote uvot_fluxes_111213d21h28m34s186127usUT_uv.qdp
Wrote uvot_fluxes_111213d21h28m34s186127usUT_vis.gif
Wrote uvot_fluxes_111213d21h28m34s186127usUT_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.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0    0.217   27206.9   1755.6  -2931.7   -0.1982   0.0790 99.00 99.00   27206.9   -0.1982   0.0790 99.00 99.00 22.40
  1    0.224   36837.6   4004.8  -3362.1    0.0591   0.0574 23.36  0.74   32099.8   -0.0482   0.0470 99.00 99.00 22.61
  2    8e-05  430854.1  36709.6 -27205.5   -0.0821   0.1057 99.00 99.00   32172.3   -0.0483   0.0468 99.00 99.00 22.61
The data range from T+24275.2 s (0.28 d) to T+467563.7 s (5.41 d)
Wrote uvot_fluxes_wtd_111213d21h28m34s186127usUT.qdp
Wrote uvot_fluxes_wtd_111213d21h28m34s186127usUT.gif
Wrote uvot_fluxes_wtd_111213d21h28m34s186127usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2011-11-14 fem