# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190710d10h52m29s406885usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00912102001 -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
# ========= GRB190630B ===================
Could not find/read custom source region custom_912102_src.reg
Used archived opt source position of 223.70079 41.52662 3.00
Reference: GCN_Circulars-24914
The position is (14:54:48.19, +41:31:35.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(223.70079,41.52662,3") # color=red dash=0
Source region spec. is: 223.70079 41.52662 3"
Region file centered at (223.70079,41.52662), which is (14:54:48.19, +41:31:35.8)
Could not find/read custom background region custom_912102_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.16406 from uncorrected trigger time of 583567328.64 in BAT summary file
# ============ Reading file sw00912102992uwh_sk.img ================
Use keyword TRIGTIME of 583567351.808 for trigger time.
Long-term sensitivity correction to zero point is -0.211 at 583567417
The processing date in extension 0 is: 2019-07-01T07:38:22
The trigger time is: 583567351.808. 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(223.70079,41.52662,25")
fk5;-circle(223.70079,41.52662,12.5")
fk5;-circle(223.695071,41.530587,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
Low  bkg:   1 wh583567417I   64.8   3431  5440  9.728  0.166
   1 wh583567417I      65.4  0.98   64.8   82.4 113   3431  5437  0.192 0.159 21.87 20.5  0.1924 0.1593 21.87 20.5    65  0.023  0.019 24.39 7.476 
Low  bkg:   2 wh583567417E   64.8   3444  5462  9.726  0.166
   2 wh583567417E      65.4  0.98   64.8   82.3 115   3444  5460  0.169 0.159 22.01 20.5 
    Sum (T+    65 to    131):              82.4         71.3 (est. in src region)   SNR_unwtd_sum:   1.21 0.9987 signif. UL:  20.50
  0    65 583567450      98.4     32.9    -32.9    0.1924   0.1593 21.869  1.911  -0.655
Total wtd_rate (for all exposures so far):  0.023 +/- 0.019 snr:  1.2 mag: 24.39 UL: 22.82
# ============ Reading file sw00912102001uwh_sk.img ================
Use keyword TRIGTIME of 583567351.808 for trigger time.
Long-term sensitivity correction to zero point is -0.211 at 583572716
The processing date in extension 0 is:  2019-07-10T10:31:18
The trigger time is: 583567351.808. 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(223.70079,41.52662,25")
fk5;-circle(223.70079,41.52662,12.5")
fk5;-circle(223.702059,41.534231,6")
fk5;-circle(223.695261,41.530645,6")
fk5;-circle(223.705722,41.527518,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
Low  bkg:   1 wh583572715I  196.6   9180  5024  9.293  0.097
   1 wh583572715I    5364.1  0.98  196.6  215.9 112   9180  5026  0.065 0.085 23.04 21.3  0.0652 0.0852 23.04 21.3   197  0.432  0.565 21.20 0.142 
    Sum (T+  5364 to   5564):             215.9        204.5 (est. in src region)   SNR_unwtd_sum:   0.77 0.9987 signif. UL:  21.29
  0   197 583572816    5464.0     99.9    -99.9    0.0652   0.0852 23.044 75.956  -0.908
Total wtd_rate (for all exposures so far):  0.023 +/- 0.019 snr:  1.2 mag: 24.37 UL: 22.81
Rebinned Data for sw00912102001uwh_sk.img using a zero point of 20.079:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     63.7      98.4     32.9    -32.9    0.1924   0.1593 21.87  0.66      98.4    0.1924   0.1593 21.87  0.66 20.50
  1      193    5464.0     99.9    -99.9    0.0652   0.0852 23.04  0.91    4132.8    0.0968   0.0753 22.61  0.62 21.30
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00912102992uvv_sk.img ================
Use keyword TRIGTIME of 583567351.808 for trigger time.
Long-term sensitivity correction to zero point is -0.269 at 583567399
The processing date in extension 0 is:  2019-07-01T07:38:21
The trigger time is: 583567351.808. The reference is keyword in image file
Using zero point of 17.621 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(223.70079,41.52662,25")
fk5;-circle(223.70079,41.52662,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 vv583567399E      47.5  0.99    9.3    4.6 115    129  5848  0.244 0.254 19.15 17.6 
# ============ Reading file sw00912102001uvv_sk.img ================
Use keyword TRIGTIME of 583567351.808 for trigger time.
Long-term sensitivity correction to zero point is -0.269 at 583573126
The processing date in extension 0 is:  2019-07-10T10:31:18
The trigger time is: 583567351.808. The reference is keyword in image file
Using zero point of 17.621 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(223.70079,41.52662,25")
fk5;-circle(223.70079,41.52662,12.5")
fk5;-circle(223.695280,41.530641,6")
fk5;-circle(223.705667,41.527574,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 vv583573126I    5774.4  1.00  196.6   42.2 116   2181  5178 -0.037 0.037 99.00 20.2 -0.0368 0.0365 99.00 20.2   197 -2.526  2.507 99.00 0.058 
    Sum (T+  5774 to   5974):              42.2         48.9 (est. in src region)   SNR_unwtd_sum:  -1.01 0.9987 signif. UL:  20.21
  0   197 583573226    5874.3     99.9    -99.9   -0.0368   0.0365 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.023 +/- 0.018 snr:  1.2 mag: 24.39 UL: 20.37
Rebinned Data for sw00912102001uvv_sk.img using a zero point of 17.621:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5874.3     99.9    -99.9   -0.0368   0.0365 99.00 99.00    5874.3   -0.0368   0.0365 99.00 99.00 20.21
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00912102001ubb_sk.img ================
Use keyword TRIGTIME of 583567351.808 for trigger time.
Long-term sensitivity correction to zero point is -0.154 at 583572511
The processing date in extension 0 is:  2019-07-10T10:31:18
The trigger time is: 583567351.808. 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(223.70079,41.52662,25")
fk5;-circle(223.70079,41.52662,12.5")
fk5;-circle(223.695214,41.530605,6")
fk5;-circle(223.705594,41.527610,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
Low  bkg:   1 bb583572510I  196.6   3649  5148  3.605  0.060
   1 bb583572510I    5159.1  0.99  196.6   80.6 108   3649  5148  0.023 0.051 23.05 20.8  0.0231 0.0514 23.05 20.8   197  0.414  0.924 21.25 0.142 
    Sum (T+  5159 to   5359):              80.6         76.5 (est. in src region)   SNR_unwtd_sum:   0.45 0.9987 signif. UL:  20.79
  0   197 583572611    5259.0     99.9    -99.9    0.0231   0.0514 23.050 75.950  -1.274
Total wtd_rate (for all exposures so far):  0.023 +/- 0.019 snr:  1.2 mag: 24.36 UL: 21.69
Rebinned Data for sw00912102001ubb_sk.img using a zero point of 18.956:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    5259.0     99.9    -99.9    0.0231   0.0514 23.05  1.27    5259.0    0.0231   0.0514 23.05  1.27 20.79
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00912102001uuu_sk.img ================
Use keyword TRIGTIME of 583567351.808 for trigger time.
Long-term sensitivity correction to zero point is -0.166 at 583570988
The processing date in extension 0 is:  2019-07-10T10:31:18
The trigger time is: 583567351.808. The reference is keyword in image file
Using zero point of 18.174 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(223.70079,41.52662,25")
fk5;-circle(223.70079,41.52662,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 uu583570987I    3635.9  0.98  170.5  241.5 108  12796  5825  0.028 0.104 22.04 19.3  0.0284 0.1036 22.04 19.3   171  0.742  2.708 20.61 0.027 
    Sum (T+  3636 to   3809):             241.5        237.2 (est. in src region)   SNR_unwtd_sum:   0.27 0.9987 signif. UL:  19.30
  0   171 583571074    3722.5     86.6    -86.6    0.0284   0.1036 22.042 76.958  -1.669
Total wtd_rate (for all exposures so far):  0.023 +/- 0.019 snr:  1.2 mag: 24.37 UL: 20.91
Rebinned Data for sw00912102001uuu_sk.img using a zero point of 18.174:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      166    3722.5     86.6    -86.6    0.0284   0.1036 22.04  1.67    3722.5    0.0284   0.1036 22.04  1.67 19.30
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00912102001um2_sk.img ================
Use keyword TRIGTIME of 583567351.808 for trigger time.
Long-term sensitivity correction to zero point is -0.407 at 583573331
The processing date in extension 0 is:  2019-07-10T10:31:18
The trigger time is: 583567351.808. The reference is keyword in image file
Using zero point of 16.443 for filter UVM2
Use aperture correction of  1.106 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(223.70079,41.52662,25")
fk5;-circle(223.70079,41.52662,12.5")
fk5;-circle(223.705859,41.527873,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
Low  bkg:   1 m2583573331I   41.8     15  5528  0.066  0.017
   1 m2583573331I    5979.3  1.00   41.8    0.0 112     15  5527 -0.008 0.027 99.00 19.2 -0.0082 0.0265 99.00 19.2    42 -1.705  5.508 99.00 0.649 
   2 m2583576728I    9376.3  1.00  189.8    5.0 112    192  5508  0.006 0.013 21.98 19.8  0.0035 0.0107 22.58 20.0   232 -0.238  3.732 99.00 0.185 
   3 m2583578091I   10739.6  1.00  206.2    4.1 112    132  5501  0.008 0.011 21.75 19.9  0.0054 0.0077 22.11 20.3   438  0.812  2.829 20.52 0.193 
   4 m2583582470I   15118.4  1.00  207.4    4.9 112    283  5520 -0.004 0.012 99.00 20.1  0.0023 0.0065 23.05 20.6   645  0.578  2.658 20.89 0.136 
   5 m2583583850I   16499.1  1.00  147.6    1.2 108     91  5496 -0.005 0.008 99.00 20.5  0.0010 0.0055 23.93 20.8   793  0.279  2.449 21.68 0.137 
   6 m2583588243I   20891.6  1.00  135.5    1.4 108    124  5487 -0.009 0.010 99.00 20.4 -0.0004 0.0049 99.00 21.0   928  0.050  2.376 23.55 0.128 
   7 m2583589550I   22199.1  1.00  206.6    3.7 112    147  5528  0.004 0.010 22.53 20.0  0.0003 0.0044 25.09 21.0  1135  0.205  2.287 22.01 0.123 
   8 m2583593982I   26630.9  1.00  155.7    2.9 108    139  5488  0.001 0.012 23.66 19.9  0.0005 0.0042 24.78 21.1  1291  0.229  2.249 21.89 0.115 
   9 m2583595310I   27958.9  1.00  206.9    0.8 112    161  5539 -0.013 0.005 99.00 21.5 -0.0014 0.0037 99.00 21.4  1497 -0.161  2.186 99.00 0.109 
  10 m2583599749I   32397.9  1.00  399.2    4.9 112    336  5540 -0.005 0.006 99.00 20.9 -0.0022 0.0032 99.00 21.6  1897 -0.388  2.118 99.00 0.097 
    Sum (T+  5979 to  32804):              28.9         32.7 (est. in src region)   SNR_unwtd_sum:  -0.70 0.9987 signif. UL:  21.60
  0  1897 583588608   21256.0  11547.5 -15276.8   -0.0022   0.0032 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.023 +/- 0.019 snr:  1.2 mag: 24.37 UL: 19.18
Rebinned Data for sw00912102001um2_sk.img using a zero point of 16.443:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      438    9787.1   1162.0  -3807.8    0.0054   0.0081 22.11  0.99    9787.1    0.0054   0.0081 22.11  0.99 20.23
  1 1.06e+03   21721.0   6448.1  -6602.6   -0.0042   0.0041 99.00 99.00   18232.0   -0.0014   0.0037 99.00 99.00 21.34
  2      399   32600.7    202.8   -202.8   -0.0053   0.0062 99.00 99.00   21256.4   -0.0022   0.0032 99.00 99.00 21.58
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00912102001uw2_sk.img ================
Use keyword TRIGTIME of 583567351.808 for trigger time.
Long-term sensitivity correction to zero point is -0.531 at 583572922
The processing date in extension 0 is:  2019-07-10T10:31:18
The trigger time is: 583567351.808. The reference is keyword in image file
Using zero point of 16.849 for filter UVW2
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(223.70079,41.52662,25")
fk5;-circle(223.70079,41.52662,12.5")
fk5;-circle(223.706064,41.527612,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
Low  bkg:   1 w2583572921I  196.6    160  5488  0.148  0.012
   1 w2583572921I    5569.8  1.00  196.6    1.9 112    160  5488 -0.008 0.008 99.00 21.1 -0.0079 0.0078 99.00 21.1   197 -1.062  1.055 99.00 0.447 
    Sum (T+  5570 to   5770):               1.9          3.3 (est. in src region)   SNR_unwtd_sum:  -1.01 0.9987 signif. UL:  21.11
  0   197 583573021    5669.7     99.9    -99.9   -0.0079   0.0078 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.023 +/- 0.019 snr:  1.2 mag: 24.37 UL: 19.58
Rebinned Data for sw00912102001uw2_sk.img using a zero point of 16.849:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5669.7     99.9    -99.9   -0.0079   0.0078 99.00 99.00    5669.7   -0.0079   0.0078 99.00 99.00 21.11
The data range from T+65.4 s (0.00 d) to T+32803.5 s (0.38 d)
Wrote uvot_fluxes_190710d10h52m29s406885usUT.qdp
Wrote uvot_fluxes_190710d10h52m29s406885usUT.gif
Wrote uvot_fluxes_190710d10h52m29s406885usUT.ps
Wrote uvot_fluxes_190710d10h52m29s406885usUT_vis.qdp
Wrote uvot_fluxes_190710d10h52m29s406885usUT_uv.qdp
Wrote uvot_fluxes_190710d10h52m29s406885usUT_vis.gif
Wrote uvot_fluxes_190710d10h52m29s406885usUT_vis.ps
Wrote uvot_fluxes_190710d10h52m29s406885usUT_uv.gif
Wrote uvot_fluxes_190710d10h52m29s406885usUT_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 2.28e+03      98.4     32.9    -32.9    0.2336   0.1934 21.87  0.66      98.4    0.2336   0.1934 21.87  0.66 20.50
  1     2.95    5430.6    543.6  -1794.7    0.0771   0.0930 23.07  0.86     105.3    0.2231   0.1806 21.92  0.64 20.57
The data range from T+65.4 s (0.00 d) to T+32803.5 s (0.38 d)
Wrote uvot_fluxes_wtd_190710d10h52m29s406885usUT.qdp
Wrote uvot_fluxes_wtd_190710d10h52m29s406885usUT.gif
Wrote uvot_fluxes_wtd_190710d10h52m29s406885usUT.ps
Found 6 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem