# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 150301d06h40m47s701702usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020483002 -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
# ========= GRB150219A ===================
Used archived XRT position of 271.25075 -41.59417 4.00
Reference: GCN_Circulars-17480-Thu,_19_Feb_2015_18:34:54_-0500_(EST)
The position is (18:05:00.18, -41:35:39.0)
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(271.25075,-41.59417,4") # color=red dash=0
Region file centered at (271.25075,-41.59417), which is (18:05:00.18, -41:35:39.0)
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 -13.20802 from trigger time of 446041874 in BAT summary file
# ============ Reading file sw00020483002uwh_sk.img ================
Long-term sensitivity correction is 0.103 at 446060224
The processing date in extension 0 is: 2015-03-01T06:23:42
The trigger time is: 446041887.20802. The reference is BAT GRB summary file
Using zero point of 20.393 for filter WHITE
Use aperture correction of 1.035 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(271.25075,-41.59417,25")
fk5;-circle(271.25075,-41.59417,12.5")
fk5;-circle(271.250422,-41.598297,6")
fk5;-circle(271.246232,-41.594420,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
High bkg:   1 wh446060224I  101.2  36767  5256 69.157  0.361
   1 wh446060224I   18337.0  0.87  101.2 1374.1 204  36767  5218 -0.740 0.466 99.00 20.4 -0.7399 0.4655 99.00 20.4   101 -12.371  7.784 99.00 0.004 
above line uses coinc_corr_src:  0.874 corr_bkg:  0.868
   2 wh446065584I   23696.8  0.91  188.4 1915.0 208  51204  5232 -0.730 0.276 99.00 21.2 -0.7336 0.2415 99.00 21.4   290 -14.485  4.748 99.00 0.004 
   3 wh446071434I   29547.7  0.91  165.4 1668.5 188  47736  5195 -0.407 0.294 99.00 20.8 -0.6138 0.1871 99.00 21.7   455 -13.559  4.073 99.00 0.004 
    Sum (T+ 18337 to  29789):            4957.6       5200.4 (est. in src region)   SNR_unwtd_sum:  -3.28 0.9987 signif. UL:  21.74
  0   455 446066635   24748.1   5041.3  -6411.2   -0.6138   0.1871 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -13.559 +/- 3.874 snr: -3.5 mag: 99.00 UL: 18.49
Rebinned Data for sw00020483002uwh_sk.img using a zero point of 20.393:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      409   24798.3   4991.1  -6461.4   -0.6138   0.1871 99.00 99.00   24798.3   -0.6138   0.1871 99.00 99.00 21.74
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020483002uvv_sk.img ================
Long-term sensitivity correction is  0.151 at 446060333
The processing date in extension 0 is:  2015-03-01T06:23:42
The trigger time is: 446041887.20802. The reference is BAT GRB summary file
Using zero point of 18.041 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(271.25075,-41.59417,25")
fk5;-circle(271.25075,-41.59417,12.5")
fk5;-circle(271.250552,-41.598405,6")
fk5;-circle(271.246291,-41.594512,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
High bkg:   1 vv446060332I   95.9  10485  5236 20.875  0.204
   1 vv446060332I   18445.4  0.96   95.9  357.0 196  10485  5216 -0.411 0.215 99.00 18.9 -0.4113 0.2147 99.00 18.9    96 -60.347 31.501 99.00 0.002 
   2 vv446065881I   23994.0  0.97  279.9  906.8 204  25086  5245 -0.261 0.117 99.00 19.7 -0.2995 0.1027 99.00 20.0   376 -53.436 18.225 99.00 0.001 
   4 vv446071682I   29795.3  0.97  238.0  729.5 196  20779  5251 -0.206 0.123 99.00 19.5 -0.2630 0.0789 99.00 20.3   614 -52.109 15.453 99.00 0.001 
    Sum (T+ 18445 to  30037):            1993.3       2145.2 (est. in src region)   SNR_unwtd_sum:  -3.33 0.9987 signif. UL:  20.33
  0   614 446067384   25496.8   4540.3  -7051.4   -0.2630   0.0789 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -15.790 +/- 3.737 snr: -4.2 mag: 99.00 UL: 16.32
Rebinned Data for sw00020483002uvv_sk.img using a zero point of 18.041:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      595   25504.9   4532.2  -7059.4   -0.2630   0.0789 99.00 99.00   25504.9   -0.2630   0.0789 99.00 99.00 20.33
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020483002uuu_sk.img ================
Long-term sensitivity correction is  0.103 at 446060116
The processing date in extension 0 is:  2015-03-01T06:23:42
The trigger time is: 446041887.20802. The reference is BAT GRB summary file
Using zero point of 18.443 for filter U
Use aperture correction of  1.032 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(271.25075,-41.59417,25")
fk5;-circle(271.25075,-41.59417,12.5")
fk5;-circle(271.250499,-41.598393,6")
fk5;-circle(271.246359,-41.594495,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
High bkg:   1 uu446060116I  101.2   8141  5264 15.290  0.169
   1 uu446060116I   18229.1  0.97  101.2  308.7 204   8141  5260 -0.074 0.188 99.00 19.1 -0.0745 0.1881 99.00 19.1   101 -7.459 18.839 99.00 0.003 
   2 uu446063614I   21727.2  0.99  321.4  429.7 200  11545  5260 -0.030 0.069 99.00 20.2 -0.0407 0.0688 99.00 20.2   423 -4.238  7.549 99.00 0.005 
   3 uu446065287I   23400.3  0.98  286.2  491.8 200  13278  5280 -0.041 0.083 99.00 20.0 -0.0408 0.0529 99.00 20.6   709 -4.584  6.166 99.00 0.005 
   4 uu446069448I   27560.9  0.99  426.0  517.0 208  14732  5240 -0.166 0.057 99.00 21.0 -0.0880 0.0393 99.00 21.2  1135 -11.114  5.029 99.00 0.005 
   5 uu446071187I   29300.5  0.98  238.0  414.2 204  12102  5240 -0.251 0.092 99.00 20.4 -0.1163 0.0362 99.00 21.6  1373 -13.972  4.762 99.00 0.004 
    Sum (T+ 18229 to  29542):            2161.3       2313.7 (est. in src region)   SNR_unwtd_sum:  -3.21 0.9987 signif. UL:  21.55
  0  1373 446066989   25101.9   4440.3  -6872.8   -0.1163   0.0362 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -15.100 +/- 2.920 snr: -5.2 mag: 99.00 UL: 17.15
Rebinned Data for sw00020483002uuu_sk.img using a zero point of 18.443:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.12e+03   24207.2   3786.4  -5978.1   -0.0880   0.0393 99.00 99.00   24207.2   -0.0880   0.0393 99.00 99.00 21.25
  1      234   29421.3    120.9   -120.9   -0.2513   0.0917 99.00 99.00   25109.7   -0.1163   0.0362 99.00 99.00 21.55
The data range from T+18229.1 s (0.21 d) to T+30037.1 s (0.35 d)
Wrote uvot_fluxes_150301d06h40m47s701702usUT.qdp
Wrote uvot_fluxes_150301d06h40m47s701702usUT.gif
Wrote uvot_fluxes_150301d06h40m47s701702usUT.ps
Wrote uvot_fluxes_150301d06h40m47s701702usUT_vis.qdp
Wrote uvot_fluxes_150301d06h40m47s701702usUT_uv.qdp
Wrote uvot_fluxes_150301d06h40m47s701702usUT_vis.gif
Wrote uvot_fluxes_150301d06h40m47s701702usUT_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.0538   21828.9   2158.6  -3599.8   -0.6306   0.1991 99.00 99.00   21828.9   -0.6306   0.1991 99.00 99.00 21.54
  1  0.00268   27435.0    558.7  -3440.9   -1.0071   0.2962 99.00 99.00   22095.5   -0.6528   0.1882 99.00 99.00 21.66
  2   0.0185   29659.4    377.7   -358.9   -0.4250   0.2541 99.00 99.00   23961.6   -0.5833   0.1520 99.00 99.00 21.97
The data range from T+18229.1 s (0.21 d) to T+30037.1 s (0.35 d)
Wrote uvot_fluxes_wtd_150301d06h40m47s701702usUT.qdp
Wrote uvot_fluxes_wtd_150301d06h40m47s701702usUT.gif
Wrote uvot_fluxes_wtd_150301d06h40m47s701702usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem