# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 130914d21h14m54s330109usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020296001 -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
# ========= GRB130904 ===================
Used archived BAT position of 256.87630 -32.01140
Reference: GCN_Position_Notice_Wed_04_Sep_13_18:36:48_UT
The position is (17:07:30.31, -32:00:41.0)
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(256.8763,-32.0114,3") # color=red dash=0
Region file centered at (256.8763,-32.0114), which is (17:07:30.31, -32:00:41.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.
*** 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 5184.0,
3 sigma should become about 5.2 sigma and 2 sigma should become about 4.6 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999975.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -10.97968 from trigger time of 400005576.59 in BAT summary file
# ============ Reading file sw00020296001uwh_sk.img ================
Long-term sensitivity correction is 0.089 at 400012758
The processing date in extension 0 is: 2013-09-14T20:33:34
The trigger time is: 400005587.56968. The reference is BAT GRB summary file
Using zero point of 20.379 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.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(256.8763,-32.0114,25")
fk5;-circle(256.8763,-32.0114,12.5")
fk5;-circle(256.878165,-32.003098,6")
fk5;-circle(256.872714,-32.005479,6")
fk5;-circle(256.874829,-32.006860,6")
fk5;-circle(256.883812,-32.009606,6")
fk5;-circle(256.876134,-32.014913,6")
fk5;-circle(256.867234,-32.014948,6")
fk5;-circle(256.875423,-32.018851,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 wh400012758I  147.4  49257  4601 72.626  0.327
   1 wh400012758I    7170.9  0.86  147.4 1172.7 112  49257  4601  0.000 0.339 99.00 19.8  0.0000 0.3392 99.00 19.8   147  0.000  2.265 99.00 0.016 
above line uses coinc_corr_src:  0.861 corr_bkg:  0.861
High bkg:   2 wh400012758E  147.4  49266  4597 72.706  0.328
   2 wh400012758E    7170.9  0.86  147.4 1162.1 110  49266  4597  0.000 0.336 99.00 19.8 
above line uses coinc_corr_src:  0.863 corr_bkg:  0.863
   3 wh400014639I    9051.5  0.93  295.0 1142.7 108  50484  4576  0.000 0.149 99.00 20.7  0.0000 0.1479 99.00 20.7   442  0.000  1.103 99.00 0.021 
   4 wh400014942I    9355.3  0.93  295.0 1233.4 112  50472  4576  0.000 0.152 99.00 20.6  0.0000 0.1073 99.00 21.0   737  0.000  0.849 99.00 0.023 
   5 wh400015247I    9660.1  0.93  125.3  532.1 116  21666  4596  0.000 0.238 99.00 20.2  0.0000 0.0980 99.00 21.1   863  0.000  0.789 99.00 0.023 
    Sum (T+  7171 to   9787):            4172.7       4172.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999749228395 signif. UL:  21.12
  0   863 400014635    9047.0    740.4  -1876.1    0.0000   0.0980 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.733 snr:  0.0 mag: 99.00 UL: 18.93
Rebinned Data for sw00020296001uwh_sk.img using a zero point of 20.379:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      792    9069.8    717.7  -1898.9    0.0000   0.0980 99.00 99.00    9069.8    0.0000   0.0980 99.00 99.00 21.63
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020296001uvv_sk.img ================
Long-term sensitivity correction is  0.130 at 400012740
The processing date in extension 0 is:  2013-09-14T20:32:51
The trigger time is: 400005587.56968. The reference is BAT GRB summary file
Using zero point of 18.020 for filter V
Use aperture correction of  1.087 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00020296001ubb_sk.img ================
Long-term sensitivity correction is  0.089 at 400013122
The processing date in extension 0 is:  2013-09-14T20:33:35
The trigger time is: 400005587.56968. The reference is BAT GRB summary file
Using zero point of 19.199 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(256.8763,-32.0114,25")
fk5;-circle(256.8763,-32.0114,12.5")
fk5;-circle(256.874839,-32.006898,6")
fk5;-circle(256.876086,-32.014963,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 bb400013122I    7534.6  0.96  101.9  270.2 112  11283  5176  0.000 0.179 99.00 19.3  0.0000 0.1791 99.00 19.3   102  0.000  3.713 99.00 0.019 
    Sum (T+  7535 to   7638):             244.1        244.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999749228395 signif. UL:  19.29
  0   102 400013174    7586.3     51.7    -51.7    0.0000   0.1791 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.719 snr:  0.0 mag: 99.00 UL: 17.78
Rebinned Data for sw00020296001ubb_sk.img using a zero point of 19.199:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     97.6    7586.3     51.7    -51.7    0.0000   0.1791 99.00 99.00    7586.3    0.0000   0.1791 99.00 99.00 19.80
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020296001uuu_sk.img ================
Long-term sensitivity correction is  0.089 at 400012917
The processing date in extension 0 is:  2013-09-14T20:33:35
The trigger time is: 400005587.56968. The reference is BAT GRB summary file
Using zero point of 18.429 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(256.8763,-32.0114,25")
fk5;-circle(256.8763,-32.0114,12.5")
fk5;-circle(256.874714,-32.006749,6")
fk5;-circle(256.875930,-32.015000,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 uu400012916I    7329.4  0.98  196.6  249.3 112  11718  5128  0.000 0.092 99.00 19.2  0.0000 0.0925 99.00 19.2   197  0.000  3.814 99.00 0.018 
    Sum (T+  7329 to   7529):             255.9        255.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999749228395 signif. UL:  19.23
  0   197 400013017    7429.3     99.9    -99.9    0.0000   0.0925 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.701 snr:  0.0 mag: 99.00 UL: 17.03
Rebinned Data for sw00020296001uuu_sk.img using a zero point of 18.429:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      192    7429.3     99.9    -99.9    0.0000   0.0925 99.00 99.00    7429.3    0.0000   0.0925 99.00 99.00 19.75
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020296001uw1_sk.img ================
Long-term sensitivity correction is  0.089 at 400018558
The processing date in extension 0 is:  2013-09-14T20:33:37
The trigger time is: 400005587.56968. The reference is BAT GRB summary file
Using zero point of 17.529 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(256.8763,-32.0114,25")
fk5;-circle(256.8763,-32.0114,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 w1400018558I  607.7   6360  5796  1.806  0.023
   1 w1400018558I   12970.7  1.00  607.7  109.2 104   6360  5796  0.000 0.020 99.00 20.0  0.0000 0.0200 99.00 20.0   608  0.000  3.376 99.00 0.031 
    Sum (T+ 12971 to  13588):             114.1        114.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999749228395 signif. UL:  20.00
  0   608 400018867   13279.4    308.7   -308.7    0.0000   0.0200 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.701 snr:  0.0 mag: 99.00 UL: 16.13
Rebinned Data for sw00020296001uw1_sk.img using a zero point of 17.529:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      606   13279.4    308.7   -308.7    0.0000   0.0200 99.00 99.00   13279.4    0.0000   0.0200 99.00 99.00 20.51
The data range from T+7170.9 s (0.08 d) to T+13588.1 s (0.16 d)
Wrote uvot_fluxes_130914d21h14m54s330109usUT.qdp
Wrote uvot_fluxes_130914d21h14m54s330109usUT.gif
Wrote uvot_fluxes_130914d21h14m54s330109usUT.ps
Wrote uvot_fluxes_130914d21h14m54s330109usUT_vis.qdp
Wrote uvot_fluxes_130914d21h14m54s330109usUT_uv.qdp
Wrote uvot_fluxes_130914d21h14m54s330109usUT_vis.gif
Wrote uvot_fluxes_130914d21h14m54s330109usUT_vis.ps
Wrote uvot_fluxes_130914d21h14m54s330109usUT_uv.gif
Wrote uvot_fluxes_130914d21h14m54s330109usUT_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     1.78    9107.4    680.0  -1936.6    0.0000   0.0850 99.00 99.00    9107.4    0.0000   0.0850 99.00 99.00 21.70
The data range from T+7170.9 s (0.08 d) to T+13588.1 s (0.16 d)
Wrote uvot_fluxes_wtd_130914d21h14m54s330109usUT.qdp
Wrote uvot_fluxes_wtd_130914d21h14m54s330109usUT.gif
Wrote uvot_fluxes_wtd_130914d21h14m54s330109usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem