# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 140915d11h32m26s202837usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020416001 -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
# ========= GRB140901B ===================
Used archived BAT position of 112.18400 -29.20900
Reference: GCN_Circ-16773
The position is (07:28:44.16, -29:12:32.4)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(112.184,-29.209,3") # color=red dash=0
Region file centered at (112.184,-29.209), which is (07:28:44.16, -29:12:32.4)
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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 1600.0,
3 sigma should become about 4.9 sigma and 2 sigma should become about 4.3 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999919.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -12.47956 from trigger time of 431245044 in BAT summary file
# ============ Reading file sw00020416001uvv_sk.img ================
Long-term sensitivity correction is 0.145 at 431573735
The processing date in extension 0 is: 2014-09-15T11:22:56
The trigger time is: 431245056.47956. The reference is BAT GRB summary file
Using zero point of 18.035 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(112.184,-29.209,25")
fk5;-circle(112.184,-29.209,12.5")
 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 vv431573735I  328678.6  0.99   78.5   65.1 116   2658  5880  0.000 0.102 99.00 18.8  0.0000 0.1024 99.00 18.8    79  0.000 268.666 99.00 0.001 
   2 vv431579501I  334445.4  0.99   78.5   63.2 116   2555  5884  0.000 0.100 99.00 18.8  0.0000 0.0717 99.00 19.2   157  0.000 189.685 99.00 0.001 
    Sum (T+328679 to 334525):             102.8        102.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  19.16
  0   157 431576658  331601.7   2923.5  -2923.1    0.0000   0.0717 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-187.841 snr:  0.0 mag: 99.00 UL: 10.62
Rebinned Data for sw00020416001uvv_sk.img using a zero point of 18.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      155  331602.3   2922.9  -2923.7    0.0000   0.0717 99.00 99.00  331602.3    0.0000   0.0717 99.00 99.00 19.63
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020416001uw1_sk.img ================
Long-term sensitivity correction is  0.099 at 431573244
The processing date in extension 0 is:  2014-09-15T11:22:55
The trigger time is: 431245056.47956. The reference is BAT GRB summary file
Using zero point of 17.539 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(112.184,-29.209,25")
fk5;-circle(112.184,-29.209,12.5")
 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 w1431573243I  328187.1  1.00  157.3   21.1 116   1116  5872  0.000 0.034 99.00 19.5  0.0000 0.0339 99.00 19.5   157  0.000 140.430 99.00 0.002 
   2 w1431579010I  333953.7  1.00  157.2   24.7 116   1055  5860  0.000 0.033 99.00 19.5  0.0000 0.0237 99.00 19.9   314  0.000 98.814 99.00 0.002 
    Sum (T+328187 to 334113):              42.9         42.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  19.87
  0   314 431576207  331150.1   2963.4  -2963.0    0.0000   0.0237 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-87.367 snr:  0.0 mag: 99.00 UL: 10.95
Rebinned Data for sw00020416001uw1_sk.img using a zero point of 17.539:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      314  331150.2   2963.2  -2963.1    0.0000   0.0237 99.00 99.00  331150.2    0.0000   0.0237 99.00 99.00 20.33
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020416001um2_sk.img ================
Long-term sensitivity correction is  0.099 at 431573819
The processing date in extension 0 is:  2014-09-15T11:22:56
The trigger time is: 431245056.47956. The reference is BAT GRB summary file
Using zero point of 16.949 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(112.184,-29.209,25")
fk5;-circle(112.184,-29.209,12.5")
 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 m2431573819I 1808.8   5157  5852  0.487  0.007
   1 m2431573819I  328762.5  1.00 1808.8   91.1 112   5157  5852  0.000 0.006 99.00 20.7  0.0000 0.0061 99.00 20.7  1809  0.000 43.907 99.00 0.003 
    Sum (T+328763 to 330600):              98.7         98.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  20.75
  0  1809 431574738  329681.4    918.9   -918.9    0.0000   0.0061 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-38.813 snr:  0.0 mag: 99.00 UL: 11.24
Rebinned Data for sw00020416001um2_sk.img using a zero point of 16.949:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.81e+03  329681.4    918.9   -918.9    0.0000   0.0061 99.00 99.00  329681.4    0.0000   0.0061 99.00 99.00 21.21
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020416001uw2_sk.img ================
Long-term sensitivity correction is  0.099 at 431573411
The processing date in extension 0 is:  2014-09-15T11:22:55
The trigger time is: 431245056.47956. The reference is BAT GRB summary file
Using zero point of 17.479 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.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(112.184,-29.209,25")
fk5;-circle(112.184,-29.209,12.5")
 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 w2431573410I  314.7   1714  5864  0.929  0.022
   1 w2431573410I  328354.3  1.00  314.7   31.4 112   1714  5864  0.000 0.020 99.00 20.0  0.0000 0.0204 99.00 20.0   315  0.000 89.121 99.00 0.002 
High bkg:   2 w2431579177I  314.7   1731  5824  0.944  0.023
   2 w2431579177I  334121.0  1.00  314.7   31.7 104   1731  5824  0.000 0.020 99.00 20.0  0.0000 0.0142 99.00 20.4   629  0.000 62.637 99.00 0.002 
    Sum (T+328354 to 334441):              63.6         63.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  20.37
  0   629 431576454  331397.6   3043.2  -3043.3    0.0000   0.0142 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-32.951 snr:  0.0 mag: 99.00 UL: 11.95
Rebinned Data for sw00020416001uw2_sk.img using a zero point of 17.479:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      628  331397.6   3043.2  -3043.3    0.0000   0.0142 99.00 99.00  331397.6    0.0000   0.0142 99.00 99.00 20.83
The data range from T+328187.1 s (3.80 d) to T+334525.2 s (3.87 d)
Wrote uvot_fluxes_140915d11h32m26s202837usUT.qdp
Wrote uvot_fluxes_140915d11h32m26s202837usUT.gif
Wrote uvot_fluxes_140915d11h32m26s202837usUT.ps
Wrote uvot_fluxes_140915d11h32m26s202837usUT_vis.qdp
Wrote uvot_fluxes_140915d11h32m26s202837usUT_uv.qdp
Wrote uvot_fluxes_140915d11h32m26s202837usUT_vis.gif
Wrote uvot_fluxes_140915d11h32m26s202837usUT_vis.ps
Wrote uvot_fluxes_140915d11h32m26s202837usUT_uv.gif
Wrote uvot_fluxes_140915d11h32m26s202837usUT_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 3.48e-06  331610.7   2914.5  -2932.1    0.0000   0.5720 99.00 99.00  331610.7    0.0000   0.5720 99.00 99.00 19.63
The data range from T+328187.1 s (3.80 d) to T+334525.2 s (3.87 d)
Wrote uvot_fluxes_wtd_140915d11h32m26s202837usUT.qdp
Wrote uvot_fluxes_wtd_140915d11h32m26s202837usUT.gif
Wrote uvot_fluxes_wtd_140915d11h32m26s202837usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem