# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190730d04h28m15s649613usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00915381001 -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
# ========= GRB190719C ===================
Could not find/read custom source region custom_915381_src.reg
Used archived opt source position of 240.20658 13.00125 3.00
Reference: GCN_Circulars-25144
The position is (16:00:49.58, +13:00:04.5)
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(240.206583,13.001250,3") # color=red dash=0
Source region spec. is: 240.206583 13.001250 3"
Region file centered at (240.206583,13.001250), which is (16:00:49.58, +13:00:04.5)
Could not find/read custom background region custom_915381_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 -23.26692 from uncorrected trigger time of 585241114.39 in BAT summary file
# ============ Reading file sw00915381992uwh_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
Long-term sensitivity correction to zero point is -0.211 at 585241209
The processing date in extension 0 is: 2019-07-20T14:45:19
The trigger time is: 585241137.664. The reference is keyword in image file
Using zero point of 20.079 for filter WHITE
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(240.206583,13.001250,25")
fk5;-circle(240.206583,13.001250,12.5")
fk5;-circle(240.201543,12.997595,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 wh585241208I      71.0  0.97  147.2  321.3 111  13773  5498  0.337 0.141 21.26 20.4  0.3370 0.1408 21.26 20.4   147  0.060  0.025 23.35 2.888 
   2 wh585241208E      72.5  0.97  145.7  329.3 115  13631  5496  0.346 0.144 21.23 20.3 
   3 wh585241700E     563.1  0.97   19.4   38.0 116   1297  5515  0.627 0.363 20.59 19.5  0.3711 0.1314 21.16 20.4   167  0.064  0.025 23.27 2.719 
   4 wh585241873E     736.3  0.98   19.5   31.9 115   1229  5502  0.365 0.332 21.17 19.7  0.3704 0.1226 21.16 20.4   186  0.066  0.025 23.24 2.571 
    Sum (T+    71 to    756):             391.3        331.0 (est. in src region)   SNR_unwtd_sum:   3.02 0.9987 signif. UL:  20.41
  0   186 585241391     253.2    502.9   -182.2    0.3704   0.1226 21.157  0.436  -0.311
Total wtd_rate (for all exposures so far):  0.066 +/- 0.025 snr:  2.7 mag: 23.24 UL: 22.21
Rebinned Data for sw00915381992uwh_sk.img using a zero point of 20.079:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      142     145.8     74.8    -74.8    0.3370   0.1408 21.26  0.38     145.8    0.3370   0.1408 21.26  0.38 20.38
  1     37.9     659.7     96.3    -96.7    0.4957   0.2461 20.84  0.44     254.0    0.3704   0.1226 21.16  0.31 20.41
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00915381992uvv_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
Long-term sensitivity correction to zero point is -0.270 at 585241189
The processing date in extension 0 is:  2019-07-20T14:45:10
The trigger time is: 585241137.664. The reference is keyword in image file
Using zero point of 17.620 for filter V
Use aperture correction of  1.087 based on aperture of  3.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(240.206583,13.001250,25")
fk5;-circle(240.206583,13.001250,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 vv585241188E      51.3  0.99    9.5    7.2 112    246  5854  0.282 0.311 19.00 17.4 
   2 vv585241750E     612.7  1.00   19.5    6.0 111    306  5836  0.007 0.138 22.95 18.5  0.0074 0.1383 22.95 18.5    19  0.054  1.007 23.47 0.457 
   3 vv585241924E     786.9  1.00   19.5    5.1 114    302  5841 -0.045 0.128 99.00 18.7 -0.0190 0.0943 99.00 19.0    39 -0.125  0.772 99.00 0.404 
    Sum (T+   613 to    807):              11.0         11.7 (est. in src region)   SNR_unwtd_sum:  -0.20 0.9987 signif. UL:  18.97
  0    39 585241847     709.7     97.0    -97.0   -0.0190   0.0943 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.065 +/- 0.024 snr:  2.7 mag: 23.26 UL: 19.78
Rebinned Data for sw00915381992uvv_sk.img using a zero point of 17.620:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.7     709.7     97.1    -97.0   -0.0190   0.0943 99.00 99.00     709.7   -0.0190   0.0943 99.00 99.00 18.97
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00915381992ubb_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
Long-term sensitivity correction to zero point is -0.154 at 585241676
The processing date in extension 0 is:  2019-07-20T14:45:17
The trigger time is: 585241137.664. The reference is keyword in image file
Using zero point of 18.956 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(240.206583,13.001250,25")
fk5;-circle(240.206583,13.001250,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 bb585241676E     538.5  0.99   19.5    5.8 112    519  5828 -0.238 0.140 99.00 20.3 -0.2382 0.1404 99.00 20.3    19 -0.446  0.263 99.00 1.035 
   2 bb585241849E     711.9  0.99   19.4    9.6 112    547  5845 -0.053 0.180 99.00 19.6 -0.1457 0.1140 99.00 20.4    39 -0.335  0.231 99.00 0.886 
    Sum (T+   538 to    732):              15.4         20.4 (est. in src region)   SNR_unwtd_sum:  -1.28 0.9987 signif. UL:  20.38
  0    39 585241773     635.1     96.6    -96.6   -0.1457   0.1140 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.063 +/- 0.024 snr:  2.6 mag: 23.29 UL: 21.12
# ============ Reading file sw00915381001ubb_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
Long-term sensitivity correction to zero point is -0.154 at 585287706
The processing date in extension 0 is:  2019-07-30T04:16:32
The trigger time is: 585241137.664. The reference is keyword in image file
Using zero point of 18.956 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(240.206583,13.001250,25")
fk5;-circle(240.206583,13.001250,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 bb585287706I   46568.8  0.99   53.6   30.2 108   1458  5812  0.064 0.115 21.95 19.9  0.0637 0.1154 21.95 19.9    54 10.142 18.375 17.77 0.012 
    Sum (T+ 46569 to  46623):              30.2         27.1 (est. in src region)   SNR_unwtd_sum:   0.55 0.9987 signif. UL:  19.89
  0    54 585287734   46596.0     27.2    -27.2    0.0637   0.1154 21.946 77.054  -1.123
Total wtd_rate (for all exposures so far):  0.063 +/- 0.024 snr:  2.6 mag: 23.29 UL: 21.12
Rebinned Data for sw00915381001ubb_sk.img using a zero point of 18.956:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.6     634.9     96.8    -96.5   -0.1457   0.1140 99.00 99.00     634.9   -0.1457   0.1140 99.00 99.00 20.38
  1     53.1   46596.0     27.2    -27.2    0.0637   0.1154 21.95  1.12   27266.4   -0.0244   0.0823 99.00 99.00 20.48
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00915381992uuu_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
Long-term sensitivity correction to zero point is -0.167 at 585241421
The processing date in extension 0 is:  2019-07-20T14:45:19
The trigger time is: 585241137.664. The reference is keyword in image file
Using zero point of 18.173 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(240.206583,13.001250,25")
fk5;-circle(240.206583,13.001250,12.5")
fk5;-circle(240.201419,12.997614,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 uu585241420I     282.9  1.00  245.8   45.1 109   2664  5501 -0.035 0.030 99.00 21.0 -0.0347 0.0305 99.00 21.0   246 -0.099  0.087 99.00 1.620 
   2 uu585241420E     282.9  1.00  245.8   46.7 113   2660  5508 -0.035 0.031 99.00 21.0 
   3 uu585241823E     686.3  1.00   19.4    2.1 112    209  5501 -0.120 0.084 99.00 20.0 -0.0409 0.0289 99.00 21.1   265 -0.112  0.086 99.00 1.569 
    Sum (T+   283 to    706):              47.2         57.0 (est. in src region)   SNR_unwtd_sum:  -1.42 0.9987 signif. UL:  21.12
  0   265 585241567     428.9    277.1   -146.0   -0.0409   0.0289 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.053 +/- 0.023 snr:  2.3 mag: 23.48 UL: 20.45
# ============ Reading file sw00915381001uuu_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
Long-term sensitivity correction to zero point is -0.167 at 585286794
The processing date in extension 0 is:  2019-07-30T04:16:32
The trigger time is: 585241137.664. The reference is keyword in image file
Using zero point of 18.173 for filter U
Use aperture correction of  1.100 based on aperture of  3.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(240.206583,13.001250,25")
fk5;-circle(240.206583,13.001250,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 uu585286793I   45656.2  0.99  295.0  175.7 104  10744  5853 -0.057 0.050 99.00 20.4 -0.0573 0.0504 99.00 20.4   295 -18.432 16.237 99.00 0.005 
   2 uu585287097I   45959.7  0.99  295.0   77.3 108   4909  5822 -0.051 0.033 99.00 21.0 -0.0544 0.0302 99.00 21.2   590 -17.246  8.991 99.00 0.006 
   3 uu585287400I   46263.2  1.00  295.0   68.9 128   3436  5895 -0.021 0.031 99.00 20.8 -0.0434 0.0227 99.00 21.5   885 -12.638  6.760 99.00 0.008 
    Sum (T+ 45656 to  46563):             321.9        356.6 (est. in src region)   SNR_unwtd_sum:  -1.91 0.9987 signif. UL:  21.50
  0   885 585287247   46109.6    453.4   -453.4   -0.0434   0.0227 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.053 +/- 0.023 snr:  2.3 mag: 23.49 UL: 20.45
Rebinned Data for sw00915381001uuu_sk.img using a zero point of 18.173:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      245     407.8    124.9   -124.9   -0.0347   0.0305 99.00 99.00     407.8   -0.0347   0.0305 99.00 99.00 20.99
  1     19.4     696.2      9.9     -9.9   -0.1200   0.0844 99.00 99.00     428.9   -0.0409   0.0289 99.00 99.00 21.12
  2      879   46110.4    452.6   -454.2   -0.0434   0.0227 99.00 99.00   35549.0   -0.0428   0.0187 99.00 99.00 21.80
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00915381992uw1_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
Long-term sensitivity correction to zero point is -0.439 at 585241800
The processing date in extension 0 is:  2019-07-20T14:45:18
The trigger time is: 585241137.664. The reference is keyword in image file
Using zero point of 17.001 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(240.206583,13.001250,25")
fk5;-circle(240.206583,13.001250,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 w1585241799E     662.0  1.00   19.4    1.0 110     44  5856  0.010 0.058 22.02 18.8  0.0098 0.0583 22.02 18.8    19  0.136  0.809 22.45 1.684 
   2 w1585241973E     836.1  1.00   19.4    0.9 114     35  5848  0.014 0.056 21.61 18.8  0.0121 0.0404 21.80 19.1    39  0.186  0.626 22.11 1.660 
    Sum (T+   662 to    856):               1.9          1.5 (est. in src region)   SNR_unwtd_sum:   0.30 0.9987 signif. UL:  19.14
  0    39 585241897     758.9     96.9    -96.9    0.0121   0.0404 21.795 77.205  -1.595
Total wtd_rate (for all exposures so far):  0.054 +/- 0.024 snr:  2.3 mag: 23.46 UL: 19.25
Rebinned Data for sw00915381992uw1_sk.img using a zero point of 17.001:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.9     758.9     96.9    -96.9    0.0121   0.0404 21.80  1.60     758.9    0.0121   0.0404 21.80  1.60 19.14
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00915381992um2_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
Long-term sensitivity correction to zero point is -0.411 at 585241775
The processing date in extension 0 is:  2019-07-20T14:45:18
The trigger time is: 585241137.664. The reference is keyword in image file
Using zero point of 16.439 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.00
There are no aspect corrected images to process.
# ============ Reading file sw00915381001um2_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
Long-term sensitivity correction to zero point is -0.411 at 585292509
The processing date in extension 0 is:  2019-07-30T04:16:32
The trigger time is: 585241137.664. The reference is keyword in image file
Using zero point of 16.439 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(240.206583,13.001250,25")
fk5;-circle(240.206583,13.001250,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 m2585292509I   51371.7  1.00  611.3   10.9 104    469  5841  0.005 0.006 22.29 20.5  0.0046 0.0060 22.29 20.5   611  8.192 10.772 18.01 0.041 
    Sum (T+ 51372 to  51993):              10.9          8.3 (est. in src region)   SNR_unwtd_sum:   0.76 0.9987 signif. UL:  20.53
  0   611 585292820   51682.2    310.6   -310.6    0.0046   0.0060 22.290 76.710  -0.911
Total wtd_rate (for all exposures so far):  0.053 +/- 0.023 snr:  2.3 mag: 23.48 UL: 18.71
Rebinned Data for sw00915381001um2_sk.img using a zero point of 16.439:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      611   51682.2    310.6   -310.6    0.0046   0.0060 22.29  0.91   51682.2    0.0046   0.0060 22.29  0.91 20.53
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00915381992uw2_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
Long-term sensitivity correction to zero point is -0.536 at 585241726
The processing date in extension 0 is:  2019-07-20T14:45:18
The trigger time is: 585241137.664. The reference is keyword in image file
Using zero point of 16.844 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw00915381992ugu_sk.img ================
Use keyword TRIGTIME of 585241137.664 for trigger time.
The data range from T+71.0 s (0.00 d) to T+51992.8 s (0.60 d)
Wrote uvot_fluxes_190730d04h28m15s649613usUT.qdp
Wrote uvot_fluxes_190730d04h28m15s649613usUT.gif
Wrote uvot_fluxes_190730d04h28m15s649613usUT.ps
Wrote uvot_fluxes_190730d04h28m15s649613usUT_vis.qdp
Wrote uvot_fluxes_190730d04h28m15s649613usUT_uv.qdp
Wrote uvot_fluxes_190730d04h28m15s649613usUT_vis.gif
Wrote uvot_fluxes_190730d04h28m15s649613usUT_vis.ps
Wrote uvot_fluxes_190730d04h28m15s649613usUT_uv.gif
Wrote uvot_fluxes_190730d04h28m15s649613usUT_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.32e+03     145.8     74.8    -74.8    0.4094   0.1711 21.26  0.38     145.8    0.4094   0.1711 21.26  0.38 20.38
  1     47.3     546.1    260.6   -263.2    0.1617   0.1837 22.27  0.82     159.6    0.3802   0.1524 21.34  0.37 20.48
  2  0.00399   46277.6    345.7   -621.4   -0.1684   0.1432 99.00 99.00     159.7    0.3797   0.1523 21.34  0.37 20.48
The data range from T+71.0 s (0.00 d) to T+51992.8 s (0.60 d)
Wrote uvot_fluxes_wtd_190730d04h28m15s649613usUT.qdp
Wrote uvot_fluxes_wtd_190730d04h28m15s649613usUT.gif
Wrote uvot_fluxes_wtd_190730d04h28m15s649613usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem