# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180716d11h41m02s735837usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00846299001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB180705A ===================
Could not find/read custom source region custom_846299_src.reg
Used archived XRT position of 212.61321 -11.64744 4.00
Reference: GCN_Circulars-22906-Thu,_5_Jul_2018_15:09:13_-0400
The position is (14:10:27.17, -11:38:50.8)
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(212.61321,-11.64744,4") # color=red dash=0
Source region spec. is: 212.61321 -11.64744 4"
Region file centered at (212.61321,-11.64744), which is (14:10:27.17, -11:38:50.8)
Could not find/read custom background region custom_846299_bkg.reg
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 -21.21556 from uncorrected trigger time of 552498074.78 in BAT summary file
# ============ Reading file sw00846299992uwh_sk.img ================
Use keyword TRIGTIME of 552498095.251 for trigger time.
Long-term sensitivity correction to zero point is -0.195 at 552501463
The processing date in extension 0 is: 2018-07-05T23:19:42
The trigger time is: 552498095.251. The reference is keyword in image file
Using zero point of 20.095 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Using background region based on sources found in extension 3:
# 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(212.61321,-11.64744,25")
fk5;-circle(212.61321,-11.64744,12.5")
fk5;-circle(212.613381,-11.654721,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 wh552501462I    3367.6  0.91  115.3 1105.8 202  31780  5674 -0.251 0.334 99.00 20.2 -0.2512 0.3337 99.00 20.2   115 -1.030  1.368 99.00 0.023 
   2 wh552501462E    3367.6  0.91  115.3 1116.5 199  31842  5680  0.008 0.336 25.37 20.0 
   3 wh552503222I    5127.5  0.96  196.6  784.6 196  21915  5681  0.156 0.156 22.11 20.6  0.0105 0.1557 25.04 20.8   312  0.325  0.794 21.51 0.030 
    Sum (T+  3368 to   5327):            1890.4       1887.4 (est. in src region)   SNR_unwtd_sum:   0.07 0.9987 signif. UL:  20.83
  0   312 552502657    4561.6    765.7  -1194.0    0.0105   0.1557 25.040 73.960  -2.996
Total wtd_rate (for all exposures so far):  0.325 +/- 0.781 snr:  0.4 mag: 21.51 UL: 18.99
Rebinned Data for sw00846299992uwh_sk.img using a zero point of 20.095:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      294    4584.3    743.0  -1216.7    0.0105   0.1557 25.04  3.00    4584.3    0.0105   0.1557 25.04  3.00 20.83
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00846299992uvv_sk.img ================
Use keyword TRIGTIME of 552498095.251 for trigger time.
Long-term sensitivity correction to zero point is -0.248 at 552501445
The processing date in extension 0 is:  2018-07-05T23:19:42
The trigger time is: 552498095.251. The reference is keyword in image file
Using zero point of 17.642 for filter V
Use aperture correction of  1.030 based on aperture of  4.00
Using background region based on sources found in extension 3:
# 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(212.61321,-11.64744,25")
fk5;-circle(212.61321,-11.64744,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 vv552501444E    3349.7  0.97    9.5   28.3 201    650  5873  0.680 0.603 18.06 16.6 
   2 vv552502198I    4103.2  0.99  196.6  212.0 204   5411  5877  0.128 0.078 19.88 18.7  0.1278 0.0782 19.88 18.7   197  6.155  3.767 18.32 0.022 
   3 vv552503633I    5538.0  0.99  196.6  214.1 200   5251  5827  0.179 0.079 19.51 18.6  0.1535 0.0554 19.68 18.9   393  8.143  3.025 18.01 0.019 
    Sum (T+  4103 to   5738):             426.1        368.1 (est. in src region)   SNR_unwtd_sum:   2.77 0.9987 signif. UL:  18.88
  0   393 552503016    4920.5    817.3   -817.4    0.1535   0.0554 19.677  0.486  -0.335
Total wtd_rate (for all exposures so far):  0.881 +/- 0.752 snr:  1.2 mag: 20.43 UL: 16.39
Rebinned Data for sw00846299992uvv_sk.img using a zero point of 17.642:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      389    4920.5    817.3   -817.4    0.1535   0.0554 19.68  0.34    4920.5    0.1535   0.0554 19.68  0.34 18.88
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00846299992ubb_sk.img ================
Use keyword TRIGTIME of 552498095.251 for trigger time.
Long-term sensitivity correction to zero point is -0.142 at 552503018
The processing date in extension 0 is:  2018-07-05T23:19:42
The trigger time is: 552498095.251. The reference is keyword in image file
Using zero point of 18.968 for filter B
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(212.61321,-11.64744,25")
fk5;-circle(212.61321,-11.64744,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 bb552503018I    4922.9  0.98  196.6  328.1 196   9245  5833  0.093 0.098 21.55 20.0  0.0931 0.0984 21.55 20.0   197  1.581  1.671 19.79 0.037 
   2 bb552509628I   11532.8  0.99  114.8  156.3 196   5227  5841 -0.175 0.116 99.00 20.4 -0.0057 0.0755 99.00 20.5   311  0.719  1.571 20.65 0.029 
    Sum (T+  4923 to  11649):             484.3        486.0 (est. in src region)   SNR_unwtd_sum:  -0.08 0.9987 signif. UL:  20.52
  0   311 552505540    7444.6   4204.8  -2521.7   -0.0057   0.0755 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.853 +/- 0.679 snr:  1.3 mag: 20.46 UL: 17.80
Rebinned Data for sw00846299992ubb_sk.img using a zero point of 18.968:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      193    5022.8     99.9    -99.9    0.0931   0.0984 21.55  0.78    5022.8    0.0931   0.0984 21.55  0.78 19.98
  1      113   11591.1     58.3    -58.3   -0.1745   0.1163 99.00 99.00    7448.8   -0.0057   0.0755 99.00 99.00 20.52
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00846299992uuu_sk.img ================
Use keyword TRIGTIME of 552498095.251 for trigger time.
Long-term sensitivity correction to zero point is -0.154 at 552502813
The processing date in extension 0 is:  2018-07-05T23:19:42
The trigger time is: 552498095.251. The reference is keyword in image file
Using zero point of 18.186 for filter U
Use aperture correction of  1.032 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(212.61321,-11.64744,25")
fk5;-circle(212.61321,-11.64744,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 uu552502812I    4717.7  0.99  196.6  140.4 208   3577  5897  0.075 0.064 21.00 19.6  0.0751 0.0636 21.00 19.6   197  2.513  2.126 19.29 0.046 
   2 uu552508715I   10620.4  0.99  295.1  180.6 200   5421  5853 -0.016 0.048 99.00 20.3  0.0203 0.0385 22.42 20.3   492  1.637  1.833 19.75 0.031 
   3 uu552509019I   10924.0  0.99  295.0  172.7 192   5368  5820 -0.015 0.047 99.00 20.3  0.0069 0.0298 23.59 20.7   787  1.104  1.636 20.18 0.028 
   4 uu552509322I   11227.4  0.99  295.0  156.6 188   5283  5798 -0.052 0.045 99.00 20.6 -0.0091 0.0249 99.00 21.0  1082  0.294  1.487 21.62 0.026 
    Sum (T+  4718 to  11527):             650.3        659.8 (est. in src region)   SNR_unwtd_sum:  -0.37 0.9987 signif. UL:  21.02
  0  1082 552508032    9936.6   1590.5  -5218.9   -0.0091   0.0249 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.752 +/- 0.615 snr:  1.2 mag: 20.60 UL: 17.14
Rebinned Data for sw00846299992uuu_sk.img using a zero point of 18.186:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    4817.6     99.9    -99.9    0.0751   0.0636 21.00  0.67    4817.6    0.0751   0.0636 21.00  0.67 19.61
  1      880   11073.9    453.3   -453.5   -0.0278   0.0269 99.00 99.00    9937.2   -0.0091   0.0249 99.00 99.00 21.02
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00846299992uw1_sk.img ================
Use keyword TRIGTIME of 552498095.251 for trigger time.
Long-term sensitivity correction to zero point is -0.363 at 552502608
The processing date in extension 0 is:  2018-07-05T23:19:42
The trigger time is: 552498095.251. The reference is keyword in image file
Using zero point of 17.077 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(212.61321,-11.64744,25")
fk5;-circle(212.61321,-11.64744,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 w1552502608I    4513.2  1.00  196.6   16.3 196    758  5874 -0.047 0.022 99.00 20.5 -0.0474 0.0218 99.00 20.5   197 -4.221  1.939 99.00 0.087 
   2 w1552507238I    9143.6  1.00  146.9   31.3 200    978  5819 -0.016 0.040 99.00 19.4 -0.0341 0.0212 99.00 20.4   344 -4.094  1.882 99.00 0.051 
   3 w1552514843I   16747.8  1.00  139.3   14.6 196    392  5853  0.011 0.029 21.98 19.6 -0.0211 0.0173 99.00 20.5   483 -3.622  1.858 99.00 0.048 
    Sum (T+  4513 to  16889):              62.2         72.0 (est. in src region)   SNR_unwtd_sum:  -1.22 0.9987 signif. UL:  20.53
  0   483 552507630    9535.2   7354.1  -5022.0   -0.0211   0.0173 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.437 +/- 0.587 snr:  0.7 mag: 21.19 UL: 16.20
Rebinned Data for sw00846299992uw1_sk.img using a zero point of 17.077:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    4613.1     99.9    -99.9   -0.0474   0.0218 99.00 99.00    4613.1   -0.0474   0.0218 99.00 99.00 20.51
  1      286   12919.2   3970.1  -3775.7   -0.0030   0.0250 99.00 99.00    9534.7   -0.0211   0.0173 99.00 99.00 20.53
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00846299992um2_sk.img ================
Use keyword TRIGTIME of 552498095.251 for trigger time.
Long-term sensitivity correction to zero point is -0.347 at 552502403
The processing date in extension 0 is:  2018-07-05T23:19:42
The trigger time is: 552498095.251. The reference is keyword in image file
Using zero point of 16.503 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.00
Using background region based on sources found in extension 3:
# 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(212.61321,-11.64744,25")
fk5;-circle(212.61321,-11.64744,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 m2552502403I    4308.0  1.00  196.6    5.5 196    189  5868 -0.004 0.013 99.00 20.1 -0.0042 0.0125 99.00 20.1   197 -0.612  1.809 99.00 0.216 
   2 m2552503838I    5742.8  1.00  166.1    4.9 196    160  5820 -0.003 0.014 99.00 19.9 -0.0039 0.0093 99.00 20.4   363 -0.626  1.495 99.00 0.191 
   3 m2552513011I   14915.9  1.00  284.3   19.2 200    316  5845  0.031 0.016 20.29 19.3  0.0113 0.0088 21.37 20.1   647  0.412  1.491 21.25 0.125 
    Sum (T+  4308 to  15205):              29.6         22.5 (est. in src region)   SNR_unwtd_sum:   1.28 0.9987 signif. UL:  20.05
  0   647 552507549    9453.3   5751.5  -5145.3    0.0113   0.0088 21.374  1.643  -0.626
Total wtd_rate (for all exposures so far):  0.432 +/- 0.543 snr:  0.8 mag: 21.20 UL: 15.69
Rebinned Data for sw00846299992um2_sk.img using a zero point of 16.503:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      363    5057.8    853.8   -749.8   -0.0039   0.0093 99.00 99.00    5057.8   -0.0039   0.0093 99.00 99.00 20.42
  1      284   15060.3    144.4   -144.4    0.0306   0.0161 20.29  0.46    9452.7    0.0113   0.0088 21.37  0.63 20.05
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00846299992uw2_sk.img ================
Use keyword TRIGTIME of 552498095.251 for trigger time.
Long-term sensitivity correction to zero point is -0.442 at 552503428
The processing date in extension 0 is:  2018-07-05T23:19:42
The trigger time is: 552498095.251. The reference is keyword in image file
Using zero point of 16.938 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(212.61321,-11.64744,25")
fk5;-circle(212.61321,-11.64744,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 w2552503428I    5333.2  1.00  196.6    7.6 204    274  5839 -0.010 0.015 99.00 20.4 -0.0102 0.0148 99.00 20.4   197 -1.220  1.768 99.00 0.173 
    Sum (T+  5333 to   5533):               7.6          9.6 (est. in src region)   SNR_unwtd_sum:  -0.69 0.9987 signif. UL:  20.42
  0   197 552503528    5433.1     99.9    -99.9   -0.0102   0.0148 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.312 +/- 0.521 snr:  0.6 mag: 21.55 UL: 16.22
# ============ Reading file sw00846299001uw2_sk.img ================
Use keyword TRIGTIME of 552498096 for trigger time.
Long-term sensitivity correction to zero point is -0.442 at 552541624
The processing date in extension 0 is:  2018-07-16T11:31:54
The trigger time is: 552498096. The reference is keyword in image file
Using zero point of 16.938 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.00
Using background region based on sources found in extension 3:
# 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(212.61321,-11.64744,25")
fk5;-circle(212.61321,-11.64744,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 w2552541623I   43527.9  1.00  528.6   38.7 204   1287  5847 -0.012 0.012 99.00 20.7 -0.0121 0.0124 99.00 20.7   529 -11.630 11.932 99.00 0.012 
   2 w2552547444I   49348.4  1.00  410.0   27.6 184    993  5795 -0.010 0.014 99.00 20.5 -0.0111 0.0092 99.00 21.1   939 -11.270  9.256 99.00 0.012 
   3 w2552553108I   55012.3  1.00 1567.4  110.8 200   2823  5840  0.009 0.007 22.02 20.7  0.0017 0.0056 23.89 21.2  2506  2.346  6.367 19.36 0.013 
    Sum (T+ 43528 to  56605):             177.1        173.1 (est. in src region)   SNR_unwtd_sum:   0.30 0.9987 signif. UL:  21.23
  0  2506 552550348   52252.1   4352.7  -8724.2    0.0017   0.0056 23.894 75.106  -1.605
Total wtd_rate (for all exposures so far):  0.327 +/- 0.519 snr:  0.6 mag: 21.50 UL: 16.22
Rebinned Data for sw00846299001uw2_sk.img using a zero point of 16.938:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5433.1     99.9    -99.9   -0.0102   0.0148 99.00 99.00    5433.1   -0.0102   0.0148 99.00 99.00 20.42
  1  2.5e+03   52252.3   4352.6  -8724.3    0.0017   0.0056 23.89  1.60   48845.0    0.0008   0.0053 24.70  2.22 21.32
The data range from T+3367.6 s (0.04 d) to T+56604.9 s (0.66 d)
Wrote uvot_fluxes_180716d11h41m02s735837usUT.qdp
Wrote uvot_fluxes_180716d11h41m02s735837usUT.gif
Wrote uvot_fluxes_180716d11h41m02s735837usUT.ps
Wrote uvot_fluxes_180716d11h41m02s735837usUT_vis.qdp
Wrote uvot_fluxes_180716d11h41m02s735837usUT_uv.qdp
Wrote uvot_fluxes_180716d11h41m02s735837usUT_vis.gif
Wrote uvot_fluxes_180716d11h41m02s735837usUT_vis.ps
Wrote uvot_fluxes_180716d11h41m02s735837usUT_uv.gif
Wrote uvot_fluxes_180716d11h41m02s735837usUT_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.47    4654.7   1083.2  -1287.1    0.1053   0.1560 22.73  0.99    4654.7    0.1053   0.1560 22.73  0.99 20.87
  1   0.0479   11230.1    419.4   -609.7   -0.3180   0.1769 99.00 99.00    4861.7    0.0745   0.1452 23.11  1.18 20.98
The data range from T+3367.6 s (0.04 d) to T+56604.9 s (0.66 d)
Wrote uvot_fluxes_wtd_180716d11h41m02s735837usUT.qdp
Wrote uvot_fluxes_wtd_180716d11h41m02s735837usUT.gif
Wrote uvot_fluxes_wtd_180716d11h41m02s735837usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem