# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 130504d07h16m36s257146usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020266002 -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
# ========= GRB130502B ===================
Used archived XRT position of 66.76208 71.06069 4.00
Reference: GCN_Circulars-14540-Fri,_3_May_2013_09:18:02_-0400_(EDT)
The position is (04:27:02.90, +71:03:38.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(66.76208,71.06069,4") # color=red dash=0
Region file centered at (66.76208,71.06069), which is (04:27:02.90, +71:03:38.5)
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.48926 from trigger time of 389173871.76 in BAT summary file
# ============ Reading file sw00020266001uwh_sk.img ================
Long-term sensitivity correction is 0.085 at 389228983
The processing date in extension 0 is: 2013-05-03T13:12:07
The trigger time is: 389173882.24926. The reference is BAT GRB summary file
Using zero point of 20.375 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.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(66.76208,71.06069,25")
fk5;-circle(66.76208,71.06069,12.5")
fk5;-circle(66.768162,71.054653,6")
fk5;-circle(66.760953,71.056698,6")
fk5;-circle(66.779741,71.065857,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 wh389228983I   55100.9  0.94  105.1  661.1 200  16555  5172  0.219 0.281 22.02 20.3  0.2187 0.2813 22.02 20.3   105 11.153 14.343 17.67 0.003 
   2 wh389229092I   55210.4  0.90  527.3 5334.7 196 139839  5067 -0.161 0.165 99.00 21.3 -0.0959 0.1448 99.00 21.4   632 -3.039  7.308 99.00 0.002 
   3 wh389230164I   56282.1  0.89   57.2  625.9 188  17229  5086 -0.222 0.529 99.00 19.9 -0.1062 0.1398 99.00 21.4   690 -3.593  7.064 99.00 0.002 
above line uses coinc_corr_src:  0.890 corr_bkg:  0.890
   4 wh389234620I   60737.8  0.96  113.0  495.6 192  12745  5073  0.127 0.217 22.61 20.6 -0.0717 0.1234 99.00 21.5   803 -0.910  6.111 99.00 0.002 
   5 wh389234737I   60855.4  0.91  640.1 5676.0 196 148208  5109 -0.018 0.138 99.00 21.3 -0.0478 0.0921 99.00 21.8  1443 -0.946  4.825 99.00 0.002 
High bkg:   6 wh389235895I   62.3  21690  5124 67.893  0.461
   6 wh389235895I   62013.4  0.87   62.3  827.3 200  21690  5129 -0.351 0.572 99.00 19.9 -0.0598 0.0913 99.00 21.9  1505 -1.349  4.774 99.00 0.002 
above line uses coinc_corr_src:  0.871 corr_bkg:  0.872
   7 wh389240447I   66565.4  0.95  106.1  563.4 204  13467  5129  0.285 0.248 21.74 20.3 -0.0362 0.0867 99.00 21.9  1611  0.357  4.557 21.41 0.002 
   8 wh389240558I   66676.3  0.90  575.8 5686.7 196 146134  5111  0.164 0.156 22.34 20.9  0.0162 0.0759 24.85 21.9  2187  2.172  4.122 19.45 0.002 
   9 wh389241643I   67761.0  0.89   59.2  702.1 200  17748  5087  0.086 0.541 23.04 19.7  0.0180 0.0752 24.74 21.9  2246  2.219  4.092 19.43 0.002 
above line uses coinc_corr_src:  0.890 corr_bkg:  0.888
  10 wh389246226I   72344.4  0.95  102.1  489.2 204  13089  5112 -0.352 0.240 99.00 21.0  0.0011 0.0726 27.74 21.9  2348  0.787  3.966 20.55 0.002 
  11 wh389246333I   72451.0  0.90  553.4 5565.0 192 149376  5129 -0.057 0.161 99.00 21.2 -0.0098 0.0663 99.00 22.1  2902  0.244  3.725 21.82 0.002 
High bkg:  12 wh389247382I   59.4  22135  5100 73.046  0.491
  12 wh389247382I   73500.7  0.86   59.4  906.1 204  22135  5104  0.434 0.637 21.28 19.4 -0.0013 0.0661 99.00 22.1  2961  0.468  3.711 21.11 0.002 
above line uses coinc_corr_src:  0.860 corr_bkg:  0.861
  13 wh389251963I   78081.6  0.96  102.1  456.8 204  12428  5132 -0.395 0.231 99.00 21.1 -0.0151 0.0643 99.00 22.1  3063 -0.762  3.624 99.00 0.002 
  14 wh389252070I   78188.4  0.91  572.1 5495.3 200 140020  5112  0.035 0.153 24.02 21.1 -0.0073 0.0593 99.00 22.2  3635 -0.444  3.446 99.00 0.002 
High bkg:  15 wh389253118I   59.3  19246  5080 63.891  0.461
  15 wh389253118I   79235.9  0.88   59.3  745.9 192  19246  5080  0.368 0.564 21.46 19.6 -0.0015 0.0591 99.00 22.2  3695 -0.248  3.434 99.00 0.002 
above line uses coinc_corr_src:  0.880 corr_bkg:  0.880
  16 wh389257746I   83864.1  0.95   98.2  473.8 200  12549  5105 -0.198 0.245 99.00 20.8 -0.0068 0.0578 99.00 22.2  3793 -0.694  3.380 99.00 0.002 
  17 wh389257848I   83966.6  0.91  547.2 4917.4 192 133228  5106 -0.192 0.151 99.00 21.5 -0.0301 0.0540 99.00 22.4  4340 -1.765  3.250 99.00 0.002 
High bkg:  18 wh389258855I   58.4  21472  5104 72.055  0.492
  18 wh389258855I   84973.0  0.87   58.4  823.7 204  21472  5069 -0.824 0.612 99.00 20.0 -0.0401 0.0539 99.00 22.5  4398 -2.044  3.242 99.00 0.002 
above line uses coinc_corr_src:  0.868 corr_bkg:  0.862
  19 wh389263532I   89649.8  0.95   94.3  471.9 200  12343  5145 -0.090 0.255 99.00 20.7 -0.0412 0.0530 99.00 22.5  4493 -2.164  3.205 99.00 0.002 
  20 wh389263630I   89748.3  0.91  516.6 4919.4 204 125013  5113 -0.150 0.160 99.00 21.3 -0.0524 0.0503 99.00 22.6  5009 -2.724  3.116 99.00 0.002 
High bkg:  21 wh389264591I   57.2  21095  5124 72.013  0.496
  21 wh389264591I   90708.8  0.86   57.2  829.1 200  21095  5141  0.179 0.636 22.24 19.5 -0.0500 0.0503 99.00 22.6  5066 -2.662  3.111 99.00 0.002 
above line uses coinc_corr_src:  0.858 corr_bkg:  0.861
    Sum (T+ 55101 to  90832):           46666.2      46889.0 (est. in src region)   SNR_unwtd_sum:  -0.99 0.9987 signif. UL:  22.61
  0  5066 389246479   72596.3  18235.6 -17495.4   -0.0500   0.0503 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -2.662 +/- 3.008 snr: -0.9 mag: 99.00 UL: 18.14
Rebinned Data for sw00020266001uwh_sk.img using a zero point of 20.375:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.61e+03   72599.0  18232.8 -17498.2   -0.0500   0.0503 99.00 99.00   72599.0   -0.0500   0.0503 99.00 99.00 22.61
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020266002uw1_sk.img ================
Long-term sensitivity correction is  0.085 at 389286812
The processing date in extension 0 is:  2013-05-04T06:23:47
The trigger time is: 389173882.24926. The reference is BAT GRB summary file
Using zero point of 17.525 for filter UVW1
Use aperture correction of  1.035 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(66.76208,71.06069,25")
fk5;-circle(66.76208,71.06069,12.5")
fk5;-circle(66.768004,71.054815,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 w1389286811I  112929.7  1.00  790.0  210.2 200   5837  5520 -0.002 0.019 99.00 20.6 -0.0017 0.0194 99.00 20.6   790 -2.491 28.029 99.00 0.003 
   2 w1389292618I  118736.4  1.00  702.7  202.0 204   5245  5501  0.011 0.021 22.41 20.3  0.0043 0.0144 23.44 20.8  1493  5.983 21.219 18.35 0.002 
   3 w1389298427I  124545.5  1.00  600.5  118.3 188   3965  5471 -0.031 0.019 99.00 21.0 -0.0058 0.0116 99.00 21.2  2093 -10.297 17.460 99.00 0.003 
   4 w1389304246I  130364.5  1.00  476.8  125.1 208   3236  5544  0.008 0.025 22.78 20.2 -0.0033 0.0105 99.00 21.3  2570 -6.545 16.084 99.00 0.003 
   5 w1389310078I  136196.6  1.00  333.6   84.4 196   2295  5484  0.007 0.029 22.86 20.0 -0.0021 0.0099 99.00 21.3  2904 -4.689 15.328 99.00 0.002 
High bkg:   6 w1389315897I  178.3   1418  5492  1.448  0.038
   6 w1389315897I  142015.6  1.00  178.3   57.0 204   1418  5492  0.025 0.045 21.52 19.5 -0.0005 0.0097 99.00 21.3  3082 -2.791 15.063 99.00 0.002 
    Sum (T+112930 to 142197):             797.0        798.4 (est. in src region)   SNR_unwtd_sum:  -0.05 0.9987 signif. UL:  21.31
  0  3082 389297603  123720.7  18476.1 -10790.9   -0.0005   0.0097 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -2.667 +/- 2.947 snr: -0.9 mag: 99.00 UL: 15.32
Rebinned Data for sw00020266002uw1_sk.img using a zero point of 17.525:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.07e+03  123721.4  18475.4 -10791.6   -0.0005   0.0097 99.00 99.00  123721.4   -0.0005   0.0097 99.00 99.00 21.31
The data range from T+55100.9 s (0.64 d) to T+142196.8 s (1.65 d)
Wrote uvot_fluxes_130504d07h16m36s257146usUT.qdp
Wrote uvot_fluxes_130504d07h16m36s257146usUT.gif
Wrote uvot_fluxes_130504d07h16m36s257146usUT.ps
Wrote uvot_fluxes_130504d07h16m36s257146usUT_vis.qdp
Wrote uvot_fluxes_130504d07h16m36s257146usUT_uv.qdp
Wrote uvot_fluxes_130504d07h16m36s257146usUT_vis.gif
Wrote uvot_fluxes_130504d07h16m36s257146usUT_vis.ps
Wrote uvot_fluxes_130504d07h16m36s257146usUT_uv.gif
Wrote uvot_fluxes_130504d07h16m36s257146usUT_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.112   69153.0  21678.8 -14052.2   -0.0430   0.0450 99.00 99.00   69153.0   -0.0430   0.0450 99.00 99.00 22.64
The data range from T+55100.9 s (0.64 d) to T+142196.8 s (1.65 d)
Wrote uvot_fluxes_wtd_130504d07h16m36s257146usUT.qdp
Wrote uvot_fluxes_wtd_130504d07h16m36s257146usUT.gif
Wrote uvot_fluxes_wtd_130504d07h16m36s257146usUT.ps
Found 6 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem