# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 130705d13h54m24s083136usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00032876004 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -search_src_reg -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB130702A ===================
Used archived uvot source position of 217.31158 15.77405 3.00
Reference: uvotdetect
The position is (14:29:14.78, +15:46:26.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(217.31158,15.77405,3") # color=red dash=0
Region file centered at (217.31158,15.77405), which is (14:29:14.78, +15:46:26.6)
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 -10.72648 from trigger time of 394416323.08 in BAT summary file
# ============ Reading file sw00032876001uwh_sk.img ================
Long-term sensitivity correction is 0.087 at 394505444
The processing date in extension 0 is: 2013-07-04T08:55:09
The trigger time is: 394416333.80648. The reference is BAT GRB summary file
Using zero point of 20.377 for filter WHITE
Use aperture correction of 1.108 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(217.31158,15.77405,25")
fk5;-circle(217.31158,15.77405,12.5")
fk5;-circle(217.312687,15.769885,6")
fk5;-circle(217.310779,15.772191,6")
fk5;-circle(217.306268,15.775223,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 wh394505444I   89110.6  0.93  116.9  812.8 112   7942  5236  6.523 0.297 18.34 18.2  6.5226 0.2975 18.34 18.2   117 536.846 24.484 13.46 0.008 
   2 wh394505566I   89232.3  0.94 1173.0 8178.5 112  76620  5190  6.581 0.093 18.33 18.3  6.5760 0.0891 18.33 18.3  1290 544.892  7.387 13.45 0.008 
   3 wh394506763I   90429.3  0.94   96.7  665.0 112   6408  5223  6.453 0.324 18.35 18.2  6.5674 0.0859 18.33 18.3  1387 544.482  7.125 13.45 0.008 
   4 wh394510064I   93730.7  0.90  212.4 1761.4 108  39380  5154  5.410 0.257 18.54 18.4  6.4185 0.0818 18.36 18.3  1599 541.044  6.877 13.46 0.006 
   5 wh394510283I   93949.7  0.94 1932.7 12786.1 104 144802  5184  6.055 0.071 18.42 18.4  6.2191 0.0537 18.39 18.4  3532 535.578  4.623 13.47 0.007 
   6 wh394515827I   99494.2  0.89  211.1 1994.9 120  41693  5202  6.087 0.280 18.42 18.3  6.2119 0.0530 18.39 18.4  3743 535.949  4.569 13.47 0.006 
above line uses coinc_corr_src:  0.891 corr_bkg:  0.922
   7 wh394516046I   99712.9  0.94 1030.0 6815.6 108  83498  5157  5.817 0.097 18.46 18.4  6.1263 0.0466 18.41 18.4  4773 536.380  4.081 13.47 0.006 
    Sum (T+ 89111 to 100820):           33014.2       8401.2 (est. in src region)   SNR_unwtd_sum: 131.53 0.9987 signif. UL:  18.38
  0  4773 394511100   94766.1   6053.5  -5655.5    6.1263   0.0466 18.409  0.008  -0.008
Total wtd_rate (for all exposures so far): 536.380 +/- 3.977 snr: 134.9 mag: 13.47 UL: 13.53
Rebinned Data for sw00032876001uwh_sk.img using a zero point of 20.377:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.45e+03   94758.0   6061.6  -5647.4    6.1263   0.0466 18.41  0.01   94758.0    6.1263   0.0466 18.41  0.01 18.38
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00032876004uvv_sk.img ================
Long-term sensitivity correction is  0.128 at 394667601
The processing date in extension 0 is:  2013-07-05T10:04:22
The trigger time is: 394416333.80648. The reference is BAT GRB summary file
Using zero point of 18.018 for filter V
Use aperture correction of  1.087 based on aperture of  3.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(217.31158,15.77405,25")
fk5;-circle(217.31158,15.77405,12.5")
fk5;-circle(217.312591,15.769822,6")
fk5;-circle(217.310796,15.772115,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 vv394667601I  251267.4  0.99  314.7  169.2 116   5079  5436  0.212 0.046 19.70 19.2  0.2117 0.0456 19.70 19.2   315 431.408 92.898 13.70 0.001 
    Sum (T+251267 to 251587):             169.2        108.4 (est. in src region)   SNR_unwtd_sum:   4.64 0.9987 signif. UL:  19.16
  0   315 394667761  251427.3    159.9   -159.9    0.2117   0.0456 19.704  0.263  -0.212
Total wtd_rate (for all exposures so far): 526.530 +/- 3.902 snr: 134.9 mag: 13.49 UL: 11.19
Rebinned Data for sw00032876004uvv_sk.img using a zero point of 18.018:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      312  251427.3    159.9   -159.9    0.2117   0.0456 19.70  0.21  251427.3    0.2117   0.0456 19.70  0.21 19.16
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00032876004ubb_sk.img ================
Long-term sensitivity correction is  0.087 at 394666791
The processing date in extension 0 is:  2013-07-05T10:04:22
The trigger time is: 394416333.80648. The reference is BAT GRB summary file
Using zero point of 19.197 for filter B
Use aperture correction of  1.108 based on aperture of  3.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(217.31158,15.77405,25")
fk5;-circle(217.31158,15.77405,12.5")
fk5;-circle(217.311035,15.772073,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 bb394666790I  250456.8  0.99  157.2  140.9 108   4836  5817  0.364 0.085 20.29 19.7  0.3642 0.0851 20.29 19.7   157 249.709 58.349 14.30 0.003 
    Sum (T+250457 to 250617):             140.9         89.8 (est. in src region)   SNR_unwtd_sum:   4.28 0.9987 signif. UL:  19.71
  0   157 394666870  250536.7     79.9    -79.9    0.3642   0.0851 20.294  0.289  -0.228
Total wtd_rate (for all exposures so far): 535.843 +/- 3.969 snr: 135.0 mag: 13.47 UL: 12.35
Rebinned Data for sw00032876004ubb_sk.img using a zero point of 19.197:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      155  250536.7     79.9    -79.9    0.3642   0.0851 20.29  0.23  250536.7    0.3642   0.0851 20.29  0.23 19.71
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00032876002uuu_sk.img ================
Long-term sensitivity correction is  0.087 at 394567701
The processing date in extension 0 is:  2013-07-04T10:46:27
The trigger time is: 394416333.80648. The reference is BAT GRB summary file
Using zero point of 18.427 for filter U
Use aperture correction of  1.100 based on aperture of  3.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(217.31158,15.77405,25")
fk5;-circle(217.31158,15.77405,12.5")
fk5;-circle(217.312562,15.769802,6")
fk5;-circle(217.310621,15.772114,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 uu394567700I  151367.0  0.99 1963.0 2225.4 108  35993  5422  0.855 0.027 18.60 18.5  0.8549 0.0268 18.60 18.5  1963 724.405 22.727 13.14 0.003 
    Sum (T+151367 to 153361):            2225.4        716.9 (est. in src region)   SNR_unwtd_sum:  31.87 0.9987 signif. UL:  18.50
  0  1963 394568698  152364.2    997.2   -997.2    0.8549   0.0268 18.597  0.035  -0.033
Total wtd_rate (for all exposures so far): 535.908 +/- 3.887 snr: 137.9 mag: 13.47 UL: 11.58
# ============ Reading file sw00032876003uuu_sk.img ================
Long-term sensitivity correction is  0.087 at 394619586
The processing date in extension 0 is:  2013-07-05T04:31:33
The trigger time is: 394416333.80648. The reference is BAT GRB summary file
Using zero point of 18.427 for filter U
Use aperture correction of  1.100 based on aperture of  3.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(217.31158,15.77405,25")
fk5;-circle(217.31158,15.77405,12.5")
fk5;-circle(217.312643,15.769829,6")
fk5;-circle(217.310838,15.772164,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 uu394619586I  203252.5  0.99 1962.6 1952.4 124  41101  5500  0.581 0.025 19.02 18.9  0.5810 0.0252 19.02 18.9  1963 660.034 28.584 13.24 0.002 
    Sum (T+203252 to 205246):            1952.4        926.6 (est. in src region)   SNR_unwtd_sum:  23.09 0.9987 signif. UL:  18.88
  0  1963 394620583  204249.5    997.0   -997.0    0.5810   0.0252 19.016  0.049  -0.046
Total wtd_rate (for all exposures so far): 537.009 +/- 3.861 snr: 139.1 mag: 13.46 UL: 11.58
# ============ Reading file sw00032876004uuu_sk.img ================
Long-term sensitivity correction is  0.087 at 394666626
The processing date in extension 0 is:  2013-07-05T10:04:22
The trigger time is: 394416333.80648. The reference is BAT GRB summary file
Using zero point of 18.427 for filter U
Use aperture correction of  1.100 based on aperture of  3.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(217.31158,15.77405,25")
fk5;-circle(217.31158,15.77405,12.5")
fk5;-circle(217.312735,15.769788,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 uu394666626I  250292.2  0.99  157.3  100.4 116   1928  5487  0.419 0.071 19.37 18.9  0.4193 0.0708 19.37 18.9   157 583.801 98.566 13.37 0.003 
   2 uu394671871I  255537.4  0.99  115.4  114.3 120   3221  5483  0.423 0.104 19.36 18.8  0.4207 0.0600 19.37 19.0   273 587.644 83.215 13.37 0.002 
    Sum (T+250292 to 255655):             214.6        111.3 (est. in src region)   SNR_unwtd_sum:   7.02 0.9987 signif. UL:  18.98
  0   273 394668917  252583.2   3071.5  -2291.0    0.4207   0.0600 19.367  0.167  -0.144
Total wtd_rate (for all exposures so far): 537.066 +/- 3.857 snr: 139.2 mag: 13.46 UL: 11.58
Rebinned Data for sw00032876004uuu_sk.img using a zero point of 18.427:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.94e+03  152364.2    997.2   -997.2    0.8549   0.0268 18.60  0.03  152364.2    0.8549   0.0268 18.60  0.03 18.50
  1 1.94e+03  204249.5    997.0   -997.0    0.5810   0.0252 19.02  0.05  178312.6    0.7179   0.0184 18.79  0.03 18.71
  2      270  252574.6   3080.0  -2282.5    0.4207   0.0600 19.37  0.14  183146.1    0.6986   0.0176 18.82  0.03 18.74
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00032876004uw1_sk.img ================
Long-term sensitivity correction is  0.087 at 394666302
The processing date in extension 0 is:  2013-07-05T10:04:21
The trigger time is: 394416333.80648. The reference is BAT GRB summary file
Using zero point of 17.527 for filter UVW1
Use aperture correction of  1.123 based on aperture of  3.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(217.31158,15.77405,25")
fk5;-circle(217.31158,15.77405,12.5")
fk5;-circle(217.312605,15.769613,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 w1394666301I  249967.8  1.00  314.7   62.2 112    775  5425  0.165 0.028 19.48 19.0  0.1651 0.0283 19.48 19.0   315 526.156 90.077 13.49 0.006 
   2 w1394671546I  255212.8  1.00  314.7   97.2 112   1623  5433  0.228 0.035 19.13 18.7  0.1966 0.0227 19.29 19.0   629 594.047 71.616 13.36 0.004 
    Sum (T+249968 to 255533):             159.4         49.5 (est. in src region)   SNR_unwtd_sum:   8.68 0.9987 signif. UL:  18.97
  0   629 394669084  252750.2   2782.4  -2782.4    0.1966   0.0227 19.293  0.133  -0.119
Total wtd_rate (for all exposures so far): 548.678 +/- 3.934 snr: 139.5 mag: 13.44 UL: 10.66
Rebinned Data for sw00032876004uw1_sk.img using a zero point of 17.527:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      628  252748.2   2784.4  -2780.4    0.1966   0.0227 19.29  0.12  252748.2    0.1966   0.0227 19.29  0.12 18.97
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00032876004um2_sk.img ================
Long-term sensitivity correction is  0.087 at 394667926
The processing date in extension 0 is:  2013-07-05T10:04:23
The trigger time is: 394416333.80648. The reference is BAT GRB summary file
Using zero point of 16.937 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.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(217.31158,15.77405,25")
fk5;-circle(217.31158,15.77405,12.5")
fk5;-circle(217.312645,15.769942,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 m2394667925I  251591.8  1.00  415.5   40.7 108    264  5483  0.095 0.017 19.50 19.0  0.0945 0.0170 19.50 19.0   416 522.262 93.952 13.49 0.014 
    Sum (T+251592 to 252014):              40.7          5.2 (est. in src region)   SNR_unwtd_sum:   5.56 0.9987 signif. UL:  19.03
  0   416 394668137  251802.9    211.1   -211.1    0.0945   0.0170 19.498  0.215  -0.180
Total wtd_rate (for all exposures so far): 540.099 +/- 3.872 snr: 139.5 mag: 13.46 UL: 10.08
Rebinned Data for sw00032876004um2_sk.img using a zero point of 16.937:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      415  251802.9    211.1   -211.1    0.0945   0.0170 19.50  0.18  251802.9    0.0945   0.0170 19.50  0.18 19.03
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00032876004uw2_sk.img ================
Long-term sensitivity correction is  0.087 at 394666956
The processing date in extension 0 is:  2013-07-05T10:04:22
The trigger time is: 394416333.80648. The reference is BAT GRB summary file
Using zero point of 17.467 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.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(217.31158,15.77405,25")
fk5;-circle(217.31158,15.77405,12.5")
fk5;-circle(217.312679,15.769876,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 w2394666956I  250622.2  1.00  629.7  106.1 112    691  5463  0.162 0.018 19.44 19.1  0.1620 0.0182 19.44 19.1   630 547.224 61.398 13.45 0.013 
    Sum (T+250622 to 251262):             106.1         14.2 (est. in src region)   SNR_unwtd_sum:   8.91 0.9987 signif. UL:  19.13
  0   630 394667276  250942.1    319.9   -319.9    0.1620   0.0182 19.444  0.129  -0.116
Total wtd_rate (for all exposures so far): 541.137 +/- 3.875 snr: 139.6 mag: 13.46 UL: 10.61
Rebinned Data for sw00032876004uw2_sk.img using a zero point of 17.467:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      629  250942.1    319.9   -319.9    0.1620   0.0182 19.44  0.12  250942.1    0.1620   0.0182 19.44  0.12 19.13
The data range from T+89110.6 s (1.03 d) to T+255654.7 s (2.96 d)
Wrote uvot_fluxes_130705d13h54m24s083136usUT.qdp
Wrote uvot_fluxes_130705d13h54m24s083136usUT.gif
Wrote uvot_fluxes_130705d13h54m24s083136usUT.ps
Wrote uvot_fluxes_130705d13h54m24s083136usUT_vis.qdp
Wrote uvot_fluxes_130705d13h54m24s083136usUT_uv.qdp
Wrote uvot_fluxes_130705d13h54m24s083136usUT_vis.gif
Wrote uvot_fluxes_130705d13h54m24s083136usUT_vis.ps
Wrote uvot_fluxes_130705d13h54m24s083136usUT_uv.gif
Wrote uvot_fluxes_130705d13h54m24s083136usUT_uv.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.0213   89817.6    709.9   -707.0    6.0618   0.0793 18.33  0.01   89817.6    6.0618   0.0793 18.33  0.01 18.29
  1  0.00219   93838.6    107.9   -107.9    4.9937   0.2368 18.54  0.05   90192.4    5.9582   0.0752 18.35  0.01 18.31
  2   0.0429   96793.2   4026.4  -2843.5    5.5187   0.0519 18.43  0.01   94455.0    5.6674   0.0428 18.41  0.01 18.38
  3 0.000348  152364.2    997.2   -997.2    4.7544   0.1492 18.60  0.03   94756.8    5.6598   0.0424 18.41  0.01 18.38
  4  0.00022  204249.5    997.0   -997.0    3.2315   0.1399 19.02  0.05   95116.5    5.6426   0.0421 18.41  0.01 18.39
  5 1.85e-05  250372.1     79.9    -79.9    2.3317   0.3937 19.37  0.17   95159.3    5.6402   0.0421 18.41  0.01 18.39
  6  0.00013  250956.0   4698.7   -499.2    1.1635   0.1999 20.13  0.17   95460.7    5.6175   0.0419 18.42  0.01 18.39
The data range from T+89110.6 s (1.03 d) to T+255654.7 s (2.96 d)
Wrote uvot_fluxes_wtd_130705d13h54m24s083136usUT.qdp
Wrote uvot_fluxes_wtd_130705d13h54m24s083136usUT.gif
Wrote uvot_fluxes_wtd_130705d13h54m24s083136usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem