# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140820d05h13m47s446969usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020403002 -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
# ========= GRB140808A ===================
Used archived opt source position of 221.22222 49.21421 3.00
Reference: GCN_Circulars-16668
The position is (14:44:53.33, +49:12:51.2)
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(221.22222,49.21421,3") # color=red dash=0
Region file centered at (221.22222,49.21421), which is (14:44:53.33, +49:12:51.2)
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 -12.33946 from trigger time of 428633640.62 in BAT summary file
# ============ Reading file sw00020403001uwh_sk.img ================
Long-term sensitivity correction is 0.098 at 429194004
The processing date in extension 0 is: 2014-08-18T08:37:58
The trigger time is: 428633652.95946. The reference is BAT GRB summary file
Using zero point of 20.388 for filter WHITE
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(221.22222,49.21421,25")
fk5;-circle(221.22222,49.21421,12.5")
fk5;-circle(221.228390,49.220371,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 wh429194003I  560351.0  0.98   96.2  146.3 120   5580  5741  0.349 0.144 21.53 20.7  0.3494 0.1435 21.53 20.7    96 178.940 73.496 14.66 0.002 
   2 wh429198413I  564760.9  0.98  738.9  968.0 112  49503  5724 -0.001 0.048 99.00 22.4  0.0395 0.0457 23.90 22.2   835 22.026 23.634 16.93 0.001 
    Sum (T+560351 to 565512):            1114.3       1085.2 (est. in src region)   SNR_unwtd_sum:   0.86 0.9987 signif. UL:  22.25
  0   835 429198243  564590.5    921.1  -4239.5    0.0395   0.0457 23.898 75.102  -0.836
Total wtd_rate (for all exposures so far): 22.026 +/-23.411 snr:  0.9 mag: 16.93 UL: 15.46
Rebinned Data for sw00020403001uwh_sk.img using a zero point of 20.388:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      816  564590.1    921.5  -4239.1    0.0395   0.0457 23.90  0.84  564590.1    0.0395   0.0457 23.90  0.84 22.25
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020403001uvv_sk.img ================
Long-term sensitivity correction is  0.144 at 429194108
The processing date in extension 0 is:  2014-08-18T08:37:58
The trigger time is: 428633652.95946. The reference is BAT GRB summary file
Using zero point of 18.034 for filter V
Use aperture correction of  1.087 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(221.22222,49.21421,25")
fk5;-circle(221.22222,49.21421,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 vv429194107I  560454.8  1.00   90.1   28.4 112   1209  5835  0.063 0.065 21.04 19.5  0.0628 0.0651 21.04 19.5    90 281.241 291.689 14.17 0.001 
   2 vv429199171I  565518.6  1.00  738.9  245.5 124  10131  5889  0.048 0.023 21.34 20.4  0.0492 0.0220 21.30 20.4   829 223.039 99.382 14.42 0.001 
   3 vv429199926I  566273.4  0.99   28.5    8.0 108    391  5851  0.032 0.110 21.79 19.1  0.0486 0.0216 21.32 20.4   857 220.062 97.450 14.43 0.001 
    Sum (T+560455 to 566302):             281.9        243.7 (est. in src region)   SNR_unwtd_sum:   2.25 0.9987 signif. UL:  20.39
  0   857 429198993  565340.5    961.9  -4885.7    0.0486   0.0216 21.317  0.637  -0.399
Total wtd_rate (for all exposures so far): 33.485 +/-22.368 snr:  1.5 mag: 16.48 UL: 13.02
Rebinned Data for sw00020403001uvv_sk.img using a zero point of 18.034:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      853  565340.6    961.7  -4885.8    0.0486   0.0216 21.32  0.40  565340.6    0.0486   0.0216 21.32  0.40 20.39
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020403001uuu_sk.img ================
Long-term sensitivity correction is  0.098 at 429193901
The processing date in extension 0 is:  2014-08-18T08:37:58
The trigger time is: 428633652.95946. The reference is BAT GRB summary file
Using zero point of 18.438 for filter U
Use aperture correction of  1.100 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(221.22222,49.21421,25")
fk5;-circle(221.22222,49.21421,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 uu429193901I  560248.2  1.00   96.2   20.4 108    891  5850  0.046 0.052 21.79 20.2  0.0456 0.0522 21.79 20.2    96 140.793 161.034 14.92 0.002 
   2 uu429197656I  564003.5  0.99  738.9  287.4 108  16514  5799 -0.030 0.026 99.00 21.5 -0.0214 0.0235 99.00 21.5   835 -36.344 71.951 99.00 0.001 
   3 uu429203629I  569976.8  0.99  376.6  140.0 120   7375  5883 -0.031 0.035 99.00 21.0 -0.0243 0.0195 99.00 21.8  1212 -53.256 60.302 99.00 0.001 
    Sum (T+560248 to 570359):             447.8        474.4 (est. in src region)   SNR_unwtd_sum:  -1.24 0.9987 signif. UL:  21.77
  0  1212 429199507  565854.1   4505.3  -5605.9   -0.0243   0.0195 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): 23.409 +/-21.154 snr:  1.1 mag: 16.87 UL: 13.58
Rebinned Data for sw00020403001uuu_sk.img using a zero point of 18.438:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.2e+03  565853.4   4506.1  -5605.2   -0.0243   0.0195 99.00 99.00  565853.4   -0.0243   0.0195 99.00 99.00 21.77
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020403002uw1_sk.img ================
Long-term sensitivity correction is  0.098 at 429376339
The processing date in extension 0 is:  2014-08-20T04:59:03
The trigger time is: 428633652.95946. The reference is BAT GRB summary file
Using zero point of 17.538 for filter UVW1
Use aperture correction of  1.123 based on aperture of  3.00
Using background region based on sources found in extension 10:
# 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(221.22222,49.21421,25")
fk5;-circle(221.22222,49.21421,12.5")
fk5;-circle(221.227725,49.220449,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 w1429376338I  742685.5  1.00  219.0    9.3 116    648  5663 -0.020 0.016 99.00 21.1 -0.0204 0.0159 99.00 21.1   219 -190.812 148.803 99.00 0.002 
   2 w1429382292I  748639.8  1.00  441.1   18.3 116    984  5663 -0.005 0.011 99.00 21.3 -0.0099 0.0091 99.00 21.7   660 -84.247 85.901 99.00 0.002 
   3 w1429383959I  750306.7  1.00  184.3    6.9 116    332  5704  0.001 0.016 25.06 20.7 -0.0075 0.0079 99.00 21.8   844 -58.695 75.169 99.00 0.002 
   4 w1429388144I  754491.2  1.00  410.3   23.6 116    849  5680  0.017 0.013 21.95 20.6  0.0006 0.0069 25.68 21.7  1255 17.206 65.969 17.20 0.002 
   5 w1429389858I  756205.5  1.00   43.6    0.0 112     90  5665 -0.046 0.026 99.00 20.7 -0.0010 0.0067 99.00 21.7  1298  0.728 64.218 20.63 0.002 
   6 w1429393139I  759486.4  1.00  809.6   80.1 116   3505  5672  0.012 0.013 22.36 20.8  0.0039 0.0063 23.56 21.6  2108 26.940 56.675 16.71 0.002 
   7 w1429395625I  761972.5  1.00   33.6    1.6 116     65  5697  0.011 0.043 22.47 19.6  0.0040 0.0063 23.54 21.6  2142 28.548 56.168 16.65 0.002 
   8 w1429398842I  765189.7  1.00  746.4   67.4 112   3218  5668  0.006 0.012 23.14 20.9  0.0044 0.0057 23.42 21.7  2888 33.366 50.914 16.48 0.002 
Low  bkg:   9 w1429401265I  147.9    250  5664  0.298  0.019
   9 w1429401265I  767612.5  1.00  147.9    5.5 116    250  5663  0.003 0.018 23.97 20.6  0.0044 0.0055 23.44 21.7  3036 32.772 48.859 16.50 0.002 
  10 w1429405583I  771930.4  1.00 1080.2   43.1 116   2061  5668  0.001 0.007 25.12 21.6  0.0035 0.0044 23.69 22.0  4116 24.768 39.520 16.80 0.002 
  11 w1429410460I  776807.1  1.00  650.4   44.5 116   2351  5671 -0.006 0.012 99.00 21.2  0.0021 0.0041 24.21 22.1  4766 16.608 37.374 17.24 0.002 
  12 w1429421912I  788259.2  1.00   69.1    3.1 116    409  5666 -0.085 0.030 99.00 20.8  0.0009 0.0041 25.15 22.2  4836 11.437 37.192 17.64 0.002 
    Sum (T+742686 to 788329):             303.5        299.6 (est. in src region)   SNR_unwtd_sum:   0.22 0.9987 signif. UL:  22.18
  0  4836 429397596  763943.4  24386.0 -21257.9    0.0009   0.0041 25.151 73.849  -1.859
Total wtd_rate (for all exposures so far): 20.717 +/-18.636 snr:  1.1 mag: 17.00 UL: 12.81
Rebinned Data for sw00020403002uw1_sk.img using a zero point of 17.538:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.83e+03  763943.0  24386.4 -21257.4    0.0009   0.0041 25.15  1.86  763943.0    0.0009   0.0041 25.15  1.86 22.18
The data range from T+560248.2 s (6.48 d) to T+788329.4 s (9.12 d)
Wrote uvot_fluxes_140820d05h13m47s446969usUT.qdp
Wrote uvot_fluxes_140820d05h13m47s446969usUT.gif
Wrote uvot_fluxes_140820d05h13m47s446969usUT.ps
Wrote uvot_fluxes_140820d05h13m47s446969usUT_vis.qdp
Wrote uvot_fluxes_140820d05h13m47s446969usUT_uv.qdp
Wrote uvot_fluxes_140820d05h13m47s446969usUT_vis.gif
Wrote uvot_fluxes_140820d05h13m47s446969usUT_vis.ps
Wrote uvot_fluxes_140820d05h13m47s446969usUT_uv.gif
Wrote uvot_fluxes_140820d05h13m47s446969usUT_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.000211  560397.2    149.2   -149.0    0.3183   0.1263 21.53  0.36  560397.2    0.3183   0.1263 21.53  0.36 20.68
  1  0.00182  565170.6   5188.8  -1167.1   -0.0024   0.0428 99.00 99.00  564675.2    0.0306   0.0405 24.07  0.91 22.31
The data range from T+560248.2 s (6.48 d) to T+788329.4 s (9.12 d)
Wrote uvot_fluxes_wtd_140820d05h13m47s446969usUT.qdp
Wrote uvot_fluxes_wtd_140820d05h13m47s446969usUT.gif
Wrote uvot_fluxes_wtd_140820d05h13m47s446969usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem