# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 150209d19h30m21s459394usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020477001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -usex -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
# ========= GRB150204A ===================
Used archived XRT position of 160.23730 -64.03870 4.00
Reference: GCN_Circulars-17409
The position is (10:40:56.95, -64:02:19.3)
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(160.2373,-64.0387,4") # color=red dash=0
Region file centered at (160.2373,-64.0387), which is (10:40:56.95, -64:02:19.3)
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.1395 from trigger time of 444724268 in BAT summary file
# ============ Reading file sw00020477001uvv_sk.img ================
Long-term sensitivity correction is 0.151 at 444781649
The processing date in extension 0 is: 2015-02-05T12:12:17
The trigger time is: 444724281.1395. 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 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(160.2373,-64.0387,25")
fk5;-circle(160.2373,-64.0387,12.5")
fk5;-circle(160.237219,-64.032450,6")
fk5;-circle(160.228497,-64.032379,6")
fk5;-circle(160.232201,-64.033266,6")
fk5;-circle(160.241023,-64.036978,6")
fk5;-circle(160.253223,-64.043213,6")
fk5;-circle(160.235432,-64.044412,6")
fk5;-circle(160.237000,-64.046703,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 vv444781649I   57368.0  0.99  295.0  317.8 192   8914  4677 -0.170 0.064 99.00 20.4 -0.1699 0.0644 99.00 20.4   295 -77.587 29.382 99.00 0.002 
   2 vv444781953I   57672.0  0.99  295.0  432.7 204  10973  4672 -0.164 0.075 99.00 20.1 -0.1672 0.0496 99.00 20.8   590 -76.664 22.406 99.00 0.002 
   3 vv444782257I   57975.9  0.98  295.0  530.4 200  14326  4682 -0.290 0.084 99.00 20.3 -0.2081 0.0433 99.00 21.3   885 -90.859 19.391 99.00 0.001 
    Sum (T+ 57368 to  58276):            1280.8       1457.1 (est. in src region)   SNR_unwtd_sum:  -4.81 0.9987 signif. UL:  21.26
  0   885 444782103   57821.8    453.8   -453.8   -0.2081   0.0433 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -90.859 +/-18.941 snr: -4.8 mag: 99.00 UL: 14.65
Rebinned Data for sw00020477001uvv_sk.img using a zero point of 18.041:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      872   57821.0    454.6   -453.0   -0.2081   0.0433 99.00 99.00   57821.0   -0.2081   0.0433 99.00 99.00 21.26
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020477001uuu_sk.img ================
Long-term sensitivity correction is  0.103 at 444776370
The processing date in extension 0 is:  2015-02-05T12:12:17
The trigger time is: 444724281.1395. 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 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(160.2373,-64.0387,25")
fk5;-circle(160.2373,-64.0387,12.5")
fk5;-circle(160.237265,-64.032403,6")
fk5;-circle(160.232286,-64.033270,6")
fk5;-circle(160.236932,-64.046632,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 uu444776369I   52088.4  0.98  295.0  721.9 204  17963  5139  0.032 0.098 22.20 19.6  0.0315 0.0981 22.20 19.6   295  9.026 28.079 17.90 0.001 
High bkg:   2 uu444776673I  272.7  25101  5140 17.906  0.113
   2 uu444776673I   52392.4  0.96  272.7 1038.7 200  25101  5150  0.251 0.129 19.95 18.9  0.1361 0.0800 20.61 19.5   568 32.775 22.388 16.50 0.001 
    Sum (T+ 52088 to  52670):            1760.6       1687.9 (est. in src region)   SNR_unwtd_sum:   1.70 0.9987 signif. UL:  19.50
  0   568 444776660   52378.9    290.7   -290.5    0.1361   0.0800 20.608  0.962  -0.502
Total wtd_rate (for all exposures so far): -33.223 +/-14.408 snr: -2.3 mag: 99.00 UL: 14.86
Rebinned Data for sw00020477001uuu_sk.img using a zero point of 18.443:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      551   52378.0    291.6   -289.5    0.1361   0.0800 20.61  0.50   52378.0    0.1361   0.0800 20.61  0.50 19.50
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020477001uw1_sk.img ================
Long-term sensitivity correction is  0.103 at 444775463
The processing date in extension 0 is:  2015-02-05T12:12:17
The trigger time is: 444724281.1395. The reference is BAT GRB summary file
Using zero point of 17.543 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(160.2373,-64.0387,25")
fk5;-circle(160.2373,-64.0387,12.5")
fk5;-circle(160.236875,-64.046566,6")
fk5;-circle(160.237206,-64.032411,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 w1444775462I  885.6  11887  5464  2.457  0.023
   1 w1444775462I   51181.5  1.00  885.6  388.2 200  11887  5462 -0.055 0.024 99.00 20.9 -0.0552 0.0236 99.00 20.9   886 -35.813 15.296 99.00 0.003 
High bkg:   2 w1444787304I  609.0   8320  5444  2.509  0.028
   2 w1444787304I   63023.4  1.00  609.0  323.3 200   8320  5445  0.030 0.031 21.34 19.8 -0.0204 0.0189 99.00 20.9  1495 -17.304 13.062 99.00 0.003 
    Sum (T+ 51181 to  63642):             711.5        740.9 (est. in src region)   SNR_unwtd_sum:  -1.08 0.9987 signif. UL:  20.86
  0  1495 444780681   56399.5   7242.7  -5218.0   -0.0204   0.0189 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -24.385 +/- 9.587 snr: -2.5 mag: 99.00 UL: 14.45
Rebinned Data for sw00020477001uw1_sk.img using a zero point of 17.543:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      882   51631.4    449.9   -449.9   -0.0552   0.0236 99.00 99.00   51631.4   -0.0552   0.0236 99.00 99.00 20.93
  1      606   63332.8    309.4   -309.4    0.0303   0.0312 21.34  0.77   56398.0   -0.0204   0.0189 99.00 99.00 20.86
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020477001um2_sk.img ================
Long-term sensitivity correction is  0.103 at 444782563
The processing date in extension 0 is:  2015-02-05T12:12:18
The trigger time is: 444724281.1395. The reference is BAT GRB summary file
Using zero point of 16.953 for filter UVM2
Use aperture correction of  1.031 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(160.2373,-64.0387,25")
fk5;-circle(160.2373,-64.0387,12.5")
fk5;-circle(160.236842,-64.046573,6")
fk5;-circle(160.237338,-64.032425,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 m2444782562I  141.5    884  5448  1.147  0.039
   1 m2444782562I   58281.4  1.00  141.5   26.5 196    884  5446 -0.039 0.038 99.00 19.5 -0.0392 0.0383 99.00 19.5   142 -49.394 48.380 99.00 0.004 
High bkg:   2 m2444786397I  885.6   5011  5468  1.035  0.015
   2 m2444786397I   62116.3  1.00  885.6  178.0 196   5011  5468 -0.002 0.016 99.00 20.2 -0.0070 0.0146 99.00 20.4  1027 -9.200 19.627 99.00 0.004 
    Sum (T+ 58281 to  63016):             204.5        211.5 (est. in src region)   SNR_unwtd_sum:  -0.48 0.9987 signif. UL:  20.39
  0  1027 444786267   61985.7   1030.3  -3704.3   -0.0070   0.0146 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -21.264 +/- 8.559 snr: -2.5 mag: 99.00 UL: 13.97
Rebinned Data for sw00020477001um2_sk.img using a zero point of 16.953:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.03e+03   61985.7   1030.4  -3704.3   -0.0070   0.0146 99.00 99.00   61985.7   -0.0070   0.0146 99.00 99.00 20.39
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020477001uw2_sk.img ================
Long-term sensitivity correction is  0.103 at 444780742
The processing date in extension 0 is:  2015-02-05T12:12:17
The trigger time is: 444724281.1395. The reference is BAT GRB summary file
Using zero point of 17.483 for filter UVW2
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(160.2373,-64.0387,25")
fk5;-circle(160.2373,-64.0387,12.5")
fk5;-circle(160.236943,-64.046683,6")
fk5;-circle(160.237081,-64.032444,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 w2444780742I  885.6  10146  5444  2.105  0.021
   1 w2444780742I   56461.1  1.00  885.6  334.9 192  10146  5442 -0.027 0.022 99.00 20.7 -0.0270 0.0219 99.00 20.7   886 -20.389 16.509 99.00 0.003 
    Sum (T+ 56461 to  57361):             334.9        358.0 (est. in src region)   SNR_unwtd_sum:  -1.23 0.9987 signif. UL:  20.68
  0   886 444781192   56911.0    449.9   -449.9   -0.0270   0.0219 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -21.136 +/- 7.590 snr: -2.8 mag: 99.00 UL: 14.70
Rebinned Data for sw00020477001uw2_sk.img using a zero point of 17.483:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      882   56911.0    449.9   -449.9   -0.0270   0.0219 99.00 99.00   56911.0   -0.0270   0.0219 99.00 99.00 20.68
The data range from T+51181.5 s (0.59 d) to T+63642.2 s (0.74 d)
Wrote uvot_fluxes_150209d19h30m21s459394usUT.qdp
Wrote uvot_fluxes_150209d19h30m21s459394usUT.gif
Wrote uvot_fluxes_150209d19h30m21s459394usUT.ps
Wrote uvot_fluxes_150209d19h30m21s459394usUT_vis.qdp
Wrote uvot_fluxes_150209d19h30m21s459394usUT_uv.qdp
Wrote uvot_fluxes_150209d19h30m21s459394usUT_vis.gif
Wrote uvot_fluxes_150209d19h30m21s459394usUT_vis.ps
Wrote uvot_fluxes_150209d19h30m21s459394usUT_uv.gif
Wrote uvot_fluxes_150209d19h30m21s459394usUT_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.000364   52345.0    324.5   -256.6    0.6125   0.4276 20.82  0.57   52345.0    0.6125   0.4276 20.82  0.57 19.59
  1 0.000335   57765.8    509.8   -397.8   -1.5764   0.3356 99.00 99.00   54942.8   -0.4904   0.2713 99.00 99.00 20.90
The data range from T+51181.5 s (0.59 d) to T+63642.2 s (0.74 d)
Wrote uvot_fluxes_wtd_150209d19h30m21s459394usUT.qdp
Wrote uvot_fluxes_wtd_150209d19h30m21s459394usUT.gif
Wrote uvot_fluxes_wtd_150209d19h30m21s459394usUT.ps
Found 6 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem