# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 120721d23h09m53s342948usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020223002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/data/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/data/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB120711 ===================
Used archived opt source position of 94.67850 -70.99911 3.00
Reference: GCN_Circulars-13430
The position is (06:18:42.84, -70:59:56.8)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(94.67850,-70.99911,3") # color=red dash=0
Region file centered at (94.67850,-70.99911), which is (06:18:42.84, -70:59:56.8)
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 -9.41256 from trigger time of 363667590.6 in BAT summary file
# ============ Reading file sw00020223002uvv_sk.img ================
Use keyword TRIGTIME of 363667497.374 for trigger time.
Long-term sensitivity correction is 0.114 at 363688082
The processing date in extension 0 is: 2012-07-21T22:15:39
The trigger time is: 363667497.374. The reference is keyword in image file
Using zero point of 18.004 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(94.67850,-70.99911,25")
fk5;-circle(94.67850,-70.99911,12.5")
fk5;-circle(94.693025,-71.000866,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 vv363688082I   20585.0  0.97   78.5  139.6 116   6516  5417  0.002 0.171 24.94 18.7  0.0017 0.1706 24.94 18.7    79  0.284 28.901 21.66 0.003 
    Sum (T+ 20585 to  20665):             139.6        139.5 (est. in src region)   SNR_unwtd_sum:   0.01 0.9987 signif. UL:  18.65
  0    79 363688122   20624.9     39.9    -39.9    0.0017   0.1706 24.942 74.058  -5.029
Total wtd_rate (for all exposures so far):  0.284 +/-28.597 snr:  0.0 mag: 21.66 UL: 13.09
Rebinned Data for sw00020223002uvv_sk.img using a zero point of 18.0037462735018:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     76.1   20624.9     39.9    -39.9    0.0017   0.1706 24.94  5.03   20624.9    0.0017   0.1706 24.94  5.03 18.65
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00020223001ubb_sk.img ================
Use keyword TRIGTIME of 363667497.374 for trigger time.
Long-term sensitivity correction is  0.077 at 363676064
The processing date in extension 0 is:  2012-07-21T21:52:11
The trigger time is: 363667497.374. The reference is keyword in image file
Using zero point of 19.187 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(94.67850,-70.99911,25")
fk5;-circle(94.67850,-70.99911,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 bb363676063I    8566.3  0.96   16.2   40.5 112   1711  5884  0.565 0.455 19.81 18.5  0.5652 0.4552 19.81 18.5    16 13.383 10.778 17.47 0.020 
    Sum (T+  8566 to   8583):              40.5         32.6 (est. in src region)   SNR_unwtd_sum:   1.24 0.9987 signif. UL:  18.46
  0    16 363676072    8574.5      8.2     -8.2    0.5652   0.4552 19.807  1.777  -0.642
Total wtd_rate (for all exposures so far): 12.102 +/-10.062 snr:  1.2 mag: 17.58 UL: 15.11
# ============ Reading file sw00020223002ubb_sk.img ================
Use keyword TRIGTIME of 363667497.374 for trigger time.
Long-term sensitivity correction is  0.077 at 363682397
The processing date in extension 0 is:  2012-07-21T22:15:38
The trigger time is: 363667497.374. The reference is keyword in image file
Using zero point of 19.187 for filter B
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(94.67850,-70.99911,25")
fk5;-circle(94.67850,-70.99911,12.5")
fk5;-circle(94.692695,-71.000886,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 bb363682396I   78.5  15399  5380 36.451  0.294
   1 bb363682396I   14899.3  0.93   78.5  313.7 108  15399  5373  0.064 0.284 22.17 19.2  0.0641 0.2836 22.17 19.2    79  2.643 11.701 19.23 0.006 
   2 bb363687671I   20173.7  0.96   78.5  180.3 108   9421  5377 -0.131 0.200 99.00 19.8 -0.0349 0.1726 99.00 19.9   157 -2.200  8.094 99.00 0.006 
    Sum (T+ 14899 to  20253):             494.1        498.7 (est. in src region)   SNR_unwtd_sum:  -0.20 0.9987 signif. UL:  19.88
  0   157 363685074   17576.6   2676.9  -2677.3   -0.0349   0.1726 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  3.921 +/- 6.207 snr:  0.6 mag: 18.81 UL: 15.77
Rebinned Data for sw00020223002ubb_sk.img using a zero point of 19.1871372843615:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     88.8   13819.8   1159.2  -5253.5    0.1522   0.2471 21.23  1.05   13819.8    0.1522   0.2471 21.23  1.05 19.28
  1     75.3   20213.6     39.9    -39.9   -0.1311   0.1997 99.00 99.00   16753.8    0.0222   0.1621 23.32  2.30 19.86
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020223001uuu_sk.img ================
Use keyword TRIGTIME of 363667497.374 for trigger time.
Long-term sensitivity correction is  0.077 at 363675979
The processing date in extension 0 is:  2012-07-21T21:52:10
The trigger time is: 363667497.374. The reference is keyword in image file
Using zero point of 18.417 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(94.67850,-70.99911,25")
fk5;-circle(94.67850,-70.99911,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 uu363675979I    8482.1  0.98   78.5   82.1 104   3768  5812  0.209 0.130 20.12 19.0  0.2086 0.1298 20.12 19.0    79  9.978  6.209 17.79 0.024 
    Sum (T+  8482 to   8562):              82.1         67.4 (est. in src region)   SNR_unwtd_sum:   1.61 0.9987 signif. UL:  18.97
  0    79 363676019    8522.0     39.9    -39.9    0.2086   0.1298 20.119  1.057  -0.526
Total wtd_rate (for all exposures so far):  7.108 +/- 4.365 snr:  1.6 mag: 18.16 UL: 15.15
# ============ Reading file sw00020223002uuu_sk.img ================
Use keyword TRIGTIME of 363667497.374 for trigger time.
Long-term sensitivity correction is  0.077 at 363682312
The processing date in extension 0 is:  2012-07-21T22:15:37
The trigger time is: 363667497.374. The reference is keyword in image file
Using zero point of 18.417 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(94.67850,-70.99911,25")
fk5;-circle(94.67850,-70.99911,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 uu363682312I   14814.9  0.97   78.5  138.3 108   6757  5836  0.192 0.171 20.21 18.8  0.1918 0.1711 20.21 18.8    79 15.989 14.267 17.28 0.007 
   2 uu363687586I   20089.5  0.98   78.5  109.2 120   4111  5879  0.360 0.150 19.52 18.6  0.2765 0.1138 19.81 18.9   157 27.193 10.961 16.70 0.008 
    Sum (T+ 14815 to  20169):             247.5        209.0 (est. in src region)   SNR_unwtd_sum:   2.43 0.9987 signif. UL:  18.94
  0   157 363684989   17491.9   2677.4  -2677.0    0.2765   0.1138 19.813  0.576  -0.375
Total wtd_rate (for all exposures so far):  9.977 +/- 4.051 snr:  2.5 mag: 17.79 UL: 15.05
Rebinned Data for sw00020223002uuu_sk.img using a zero point of 18.4171372573316:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      154   11665.7   3229.1  -3183.5    0.2003   0.1072 20.16  0.46   11665.7    0.2003   0.1072 20.16  0.46 19.12
  1       77   20129.4     39.9    -39.9    0.3604   0.1504 19.52  0.38   14492.5    0.2538   0.0873 19.91  0.32 19.13
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020223001uw1_sk.img ================
Use keyword TRIGTIME of 363667497.374 for trigger time.
Long-term sensitivity correction is  0.077 at 363675816
The processing date in extension 0 is:  2012-07-21T21:52:10
The trigger time is: 363667497.374. The reference is keyword in image file
Using zero point of 17.517 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(94.67850,-70.99911,25")
fk5;-circle(94.67850,-70.99911,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 w1363675815I    8318.2  1.00  157.2   19.0 112    823  5825  0.023 0.031 21.63 19.8  0.0226 0.0314 21.63 19.8   157  2.436  3.392 19.32 0.092 
    Sum (T+  8318 to   8478):              19.0         15.8 (est. in src region)   SNR_unwtd_sum:   0.72 0.9987 signif. UL:  19.82
  0   157 363675895    8398.0     79.9    -79.9    0.0226   0.0314 21.634 77.366  -0.947
Total wtd_rate (for all exposures so far):  5.463 +/- 2.611 snr:  2.1 mag: 18.45 UL: 14.70
# ============ Reading file sw00020223002uw1_sk.img ================
Use keyword TRIGTIME of 363667497.374 for trigger time.
Long-term sensitivity correction is  0.077 at 363682148
The processing date in extension 0 is:  2012-07-21T22:15:37
The trigger time is: 363667497.374. The reference is keyword in image file
Using zero point of 17.517 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(94.67850,-70.99911,25")
fk5;-circle(94.67850,-70.99911,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 w1363682148I  157.2   1315  5828  1.435  0.040
   1 w1363682148I   14650.8  1.00  157.2   20.1 108   1315  5828 -0.031 0.032 99.00 20.2 -0.0306 0.0325 99.00 20.2   157 -5.790  6.149 99.00 0.034 
   2 w1363687421I   19923.9  1.00  157.2   18.3 108    927  5828  0.008 0.031 22.75 20.0 -0.0112 0.0224 99.00 20.5   314 -2.368  4.900 99.00 0.035 
    Sum (T+ 14651 to  20084):              38.4         41.6 (est. in src region)   SNR_unwtd_sum:  -0.50 0.9987 signif. UL:  20.50
  0   314 363684865   17367.1   2716.5  -2716.3   -0.0112   0.0224 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  4.012 +/- 2.309 snr:  1.7 mag: 18.78 UL: 14.91
Rebinned Data for sw00020223002uw1_sk.img using a zero point of 17.5171372047425:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      314   11562.9   3247.7  -3244.8   -0.0040   0.0226 99.00 99.00   11562.9   -0.0040   0.0226 99.00 99.00 20.41
  1      157   20003.7     79.9    -79.9    0.0081   0.0309 22.75  1.71   14377.4    0.0000   0.0182 28.96  7.10 20.60
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020223002um2_sk.img ================
Use keyword TRIGTIME of 363667497.374 for trigger time.
Long-term sensitivity correction is  0.077 at 363688167
The processing date in extension 0 is:  2012-07-21T22:15:40
The trigger time is: 363667497.374. The reference is keyword in image file
Using zero point of 16.927 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(94.67850,-70.99911,25")
fk5;-circle(94.67850,-70.99911,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 m2363688166I   20669.2  1.00   89.7    0.6 116    158  5871 -0.031 0.010 99.00 21.4 -0.0310 0.0100 99.00 21.4    90 -14.215  4.597 99.00 0.063 
    Sum (T+ 20669 to  20760):               0.6          3.1 (est. in src region)   SNR_unwtd_sum:  -3.09 0.9987 signif. UL:  21.41
  0    90 363688212   20714.8     45.6    -45.6   -0.0310   0.0100 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  3.156 +/- 2.183 snr:  1.4 mag: 19.04 UL: 14.45
Rebinned Data for sw00020223002um2_sk.img using a zero point of 16.9271391333892:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     89.7   20714.8     45.6    -45.6   -0.0310   0.0100 99.00 99.00   20714.8   -0.0310   0.0100 99.00 99.00 21.41
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020223002uw2_sk.img ================
Use keyword TRIGTIME of 363667497.374 for trigger time.
Long-term sensitivity correction is  0.077 at 363682482
The processing date in extension 0 is:  2012-07-21T22:15:38
The trigger time is: 363667497.374. The reference is keyword in image file
Using zero point of 17.457 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(94.67850,-70.99911,25")
fk5;-circle(94.67850,-70.99911,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 w2363682481I   14984.6  1.00    9.5    0.1 128     41  5877 -0.093 0.040 99.00 20.3 -0.0929 0.0403 99.00 20.3    10 -18.926  8.199 99.00 0.052 
   2 w2363687757I   20260.6  1.00  314.7   19.8 108   1133  5815 -0.005 0.016 99.00 20.8 -0.0071 0.0154 99.00 20.8   324 -1.934  4.230 99.00 0.054 
    Sum (T+ 14985 to  20580):              19.9         21.9 (est. in src region)   SNR_unwtd_sum:  -0.46 0.9987 signif. UL:  20.84
  0   324 363687758   20260.9    319.4  -5276.3   -0.0071   0.0154 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  2.224 +/- 1.944 snr:  1.1 mag: 19.42 UL: 15.18
Rebinned Data for sw00020223002uw2_sk.img using a zero point of 17.4571373116991:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     9.51   14989.4      4.8     -4.8   -0.0929   0.0403 99.00 99.00   14989.4   -0.0929   0.0403 99.00 99.00 20.26
  1      314   20420.4    159.9   -159.9   -0.0045   0.0158 99.00 99.00   20260.9   -0.0071   0.0154 99.00 99.00 20.84
The data range from T+8318.2 s (0.10 d) to T+20760.3 s (0.24 d)
Wrote uvot_fluxes_120721d23h09m53s342948usUT.qdp
Wrote uvot_fluxes_120721d23h09m53s342948usUT.gif
Wrote uvot_fluxes_120721d23h09m53s342948usUT.ps
Wrote uvot_fluxes_120721d23h09m53s342948usUT_vis.qdp
Wrote uvot_fluxes_120721d23h09m53s342948usUT_uv.qdp
Wrote uvot_fluxes_120721d23h09m53s342948usUT_vis.gif
Wrote uvot_fluxes_120721d23h09m53s342948usUT_vis.ps
Wrote uvot_fluxes_120721d23h09m53s342948usUT_uv.gif
Wrote uvot_fluxes_120721d23h09m53s342948usUT_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.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0   0.0149   12919.9   7744.9  -4437.8    0.5837   0.3378 20.87  0.49   12919.9    0.5837   0.3378 20.87  0.49 19.78
The data range from T+8318.2 s (0.10 d) to T+20760.3 s (0.24 d)
Wrote uvot_fluxes_wtd_120721d23h09m53s342948usUT.qdp
Wrote uvot_fluxes_wtd_120721d23h09m53s342948usUT.gif
Wrote uvot_fluxes_wtd_120721d23h09m53s342948usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem