# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190121d21h49m44s703547usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00884906992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB190121 ===================
Could not find/read custom source region custom_884906_src.reg
Used archived XRT position of 247.80880 -47.80650 4.00
Reference: GCN_Notice_Mon_21_Jan_19_10:15:20_UT-ground
The position is (16:31:14.11, -47:48:23.4)
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(247.8088,-47.8065,4") # color=red dash=0
Source region spec. is: 247.8088 -47.8065 4"
Region file centered at (247.8088,-47.8065), which is (16:31:14.11, -47:48:23.4)
Could not find/read custom background region custom_884906_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 -22.25 from uncorrected trigger time of 569758017.71 in BAT summary file
# ============ Reading file sw00884906992uwh_sk.img ================
Use keyword TRIGTIME of 569758040 for trigger time.
Long-term sensitivity correction to zero point is -0.203 at 569758173
The processing date in extension 0 is: 2019-01-21T21:42:39
The trigger time is: 569758040. The reference is keyword in image file
Using zero point of 20.087 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(247.8088,-47.8065,25")
fk5;-circle(247.8088,-47.8065,12.5")
fk5;-circle(247.805539,-47.801355,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 wh569758173I  147.2  56128  5419 70.358  0.297
   1 wh569758173I     133.4  0.86  147.2 2200.4 203  56128  5436  0.850 0.389 20.26 19.3  0.8499 0.3889 20.26 19.3   147  0.213  0.098 21.97 0.241 
above line uses coinc_corr_src:  0.863 corr_bkg:  0.865
High bkg:   2 wh569758173E  147.2  56110  5415 70.391  0.297
   2 wh569758173E     133.4  0.86  147.2 2152.6 198  56110  5430  0.868 0.384 20.24 19.3 
above line uses coinc_corr_src:  0.863 corr_bkg:  0.866
   3 wh569761936I    3896.2  0.93  196.6 1537.2 196  41741  5383  0.099 0.226 22.59 20.3  0.4074 0.2081 21.06 20.0   344  0.215  0.097 21.96 0.150 
    Sum (T+   133 to   4096):            3737.5       3615.7 (est. in src region)   SNR_unwtd_sum:   1.96 0.9987 signif. UL:  20.05
  0   344 569760414    2374.4   1721.6  -2240.9    0.4074   0.2081 21.062  0.776  -0.448
Total wtd_rate (for all exposures so far):  0.215 +/- 0.096 snr:  2.3 mag: 21.96 UL: 20.83
Rebinned Data for sw00884906992uwh_sk.img using a zero point of 20.087:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      127     208.2     74.8    -74.8    0.8499   0.3889 20.26  0.41     208.2    0.8499   0.3889 20.26  0.41 19.32
  1      182    3996.1     99.9    -99.9    0.0992   0.2264 22.59  1.29    2441.1    0.4074   0.2081 21.06  0.45 20.05
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00884906992uvv_sk.img ================
Use keyword TRIGTIME of 569758040 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 569758153
The processing date in extension 0 is:  2019-01-21T21:42:39
The trigger time is: 569758040. The reference is keyword in image file
Using zero point of 17.631 for filter V
Use aperture correction of  1.030 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(247.8088,-47.8065,25")
fk5;-circle(247.8088,-47.8065,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 vv569758153E     113.3  0.96   10.0   37.1 201   1006  5868  0.280 0.659 19.01 16.7 
   2 vv569763930I    5890.1  0.97  196.6  631.7 200  19063  5860 -0.102 0.138 99.00 18.7 -0.1019 0.1381 99.00 18.7   197 -7.067  9.581 99.00 0.004 
    Sum (T+  5890 to   6090):             631.7        650.6 (est. in src region)   SNR_unwtd_sum:  -0.74 0.9987 signif. UL:  18.70
  0   197 569764030    5990.0     99.9    -99.9   -0.1019   0.1381 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.214 +/- 0.095 snr:  2.2 mag: 21.96 UL: 18.38
Rebinned Data for sw00884906992uvv_sk.img using a zero point of 17.631:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      191    5990.0     99.9    -99.9   -0.1019   0.1381 99.00 99.00    5990.0   -0.1019   0.1381 99.00 99.00 18.70
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00884906992ubb_sk.img ================
Use keyword TRIGTIME of 569758040 for trigger time.
Long-term sensitivity correction to zero point is -0.148 at 569761731
The processing date in extension 0 is:  2019-01-21T21:42:39
The trigger time is: 569758040. The reference is keyword in image file
Using zero point of 18.962 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(247.8088,-47.8065,25")
fk5;-circle(247.8088,-47.8065,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 bb569761731I    3691.3  0.97  196.6  617.0 200  17794  5871  0.058 0.137 22.05 19.7  0.0583 0.1370 22.05 19.7   197  0.752  1.765 20.60 0.024 
    Sum (T+  3691 to   3891):             617.0        606.2 (est. in src region)   SNR_unwtd_sum:   0.43 0.9987 signif. UL:  19.74
  0   197 569761831    3791.2     99.9    -99.9    0.0583   0.1370 22.046 76.954  -1.311
Total wtd_rate (for all exposures so far):  0.216 +/- 0.095 snr:  2.3 mag: 21.95 UL: 19.70
Rebinned Data for sw00884906992ubb_sk.img using a zero point of 18.962:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      191    3791.2     99.9    -99.9    0.0583   0.1370 22.05  1.31    3791.2    0.0583   0.1370 22.05  1.31 19.74
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00884906992uuu_sk.img ================
Use keyword TRIGTIME of 569758040 for trigger time.
Long-term sensitivity correction to zero point is -0.161 at 569758332
The processing date in extension 0 is:  2019-01-21T21:42:39
The trigger time is: 569758040. The reference is keyword in image file
Using zero point of 18.179 for filter U
Use aperture correction of  1.032 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(247.8088,-47.8065,25")
fk5;-circle(247.8088,-47.8065,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 uu569758332I  201.1  22113  5841 18.824  0.127
   1 uu569758332I     292.4  0.96  201.1  764.9 196  22113  5846  0.125 0.150 20.43 18.8  0.1253 0.1496 20.43 18.8   201  0.346  0.413 21.44 0.095 
High bkg:   2 uu569758332E  199.2  21872  5840 18.798  0.127
   2 uu569758332E     292.4  0.96  199.2  755.3 199  21872  5846  0.058 0.150 21.28 18.9 
    Sum (T+   292 to    497):             764.9        741.4 (est. in src region)   SNR_unwtd_sum:   0.84 0.9987 signif. UL:  18.76
  0   201 569758435     394.6    102.2   -102.2    0.1253   0.1496 20.434 78.566  -0.853
Total wtd_rate (for all exposures so far):  0.222 +/- 0.093 snr:  2.4 mag: 21.92 UL: 18.93
Rebinned Data for sw00884906992uuu_sk.img using a zero point of 18.179:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194     394.6    102.2   -102.2    0.1253   0.1496 20.43  0.85     394.6    0.1253   0.1496 20.43  0.85 18.76
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00884906992um2_sk.img ================
Use keyword TRIGTIME of 569758040 for trigger time.
Long-term sensitivity correction to zero point is -0.380 at 569764136
The processing date in extension 0 is:  2019-01-21T21:42:39
The trigger time is: 569758040. The reference is keyword in image file
Using zero point of 16.470 for filter UVM2
Use aperture correction of  1.031 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(247.8088,-47.8065,25")
fk5;-circle(247.8088,-47.8065,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 m2569764135I  134.3    403  5824  0.516  0.026
   1 m2569764135I    6095.7  1.00  134.3   11.6 200    403  5824 -0.017 0.027 99.00 19.3 -0.0170 0.0267 99.00 19.3   134 -3.529  5.557 99.00 0.047 
    Sum (T+  6096 to   6232):              11.6         13.9 (est. in src region)   SNR_unwtd_sum:  -0.64 0.9987 signif. UL:  19.30
  0   134 569764204    6163.9     68.2    -68.2   -0.0170   0.0267 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.221 +/- 0.093 snr:  2.4 mag: 21.93 UL: 17.22
Rebinned Data for sw00884906992um2_sk.img using a zero point of 16.470:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      134    6163.9     68.2    -68.2   -0.0170   0.0267 99.00 99.00    6163.9   -0.0170   0.0267 99.00 99.00 19.30
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00884906992uw2_sk.img ================
Use keyword TRIGTIME of 569758040 for trigger time.
Long-term sensitivity correction to zero point is -0.490 at 569762142
The processing date in extension 0 is:  2019-01-21T21:42:39
The trigger time is: 569758040. The reference is keyword in image file
Using zero point of 16.890 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(247.8088,-47.8065,25")
fk5;-circle(247.8088,-47.8065,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 w2569762142I  149.2    918  5852  1.051  0.035
   1 w2569762142I    4102.2  1.00  149.2   33.8 196    918  5852  0.021 0.041 21.08 19.0  0.0211 0.0410 21.08 19.0   149  2.022  3.921 19.53 0.051 
    Sum (T+  4102 to   4254):              33.8         30.7 (est. in src region)   SNR_unwtd_sum:   0.52 0.9987 signif. UL:  18.96
  0   149 569762218    4178.0     75.8    -75.8    0.0211   0.0410 21.078 77.922  -1.171
Total wtd_rate (for all exposures so far):  0.223 +/- 0.093 snr:  2.4 mag: 21.92 UL: 17.64
Rebinned Data for sw00884906992uw2_sk.img using a zero point of 16.890:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      149    4178.0     75.8    -75.8    0.0211   0.0410 21.08  1.17    4178.0    0.0211   0.0410 21.08  1.17 18.96
The data range from T+133.4 s (0.00 d) to T+6232.2 s (0.07 d)
Wrote uvot_fluxes_190121d21h49m44s703547usUT.qdp
Wrote uvot_fluxes_190121d21h49m44s703547usUT.gif
Wrote uvot_fluxes_190121d21h49m44s703547usUT.ps
Wrote uvot_fluxes_190121d21h49m44s703547usUT_vis.qdp
Wrote uvot_fluxes_190121d21h49m44s703547usUT_uv.qdp
Wrote uvot_fluxes_190121d21h49m44s703547usUT_vis.gif
Wrote uvot_fluxes_190121d21h49m44s703547usUT_vis.ps
Wrote uvot_fluxes_190121d21h49m44s703547usUT_uv.gif
Wrote uvot_fluxes_190121d21h49m44s703547usUT_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     86.9     208.2     74.8    -74.8    1.0251   0.4691 20.26  0.41     208.2    1.0251   0.4691 20.26  0.41 19.32
  1    0.841     394.6    102.2   -102.2    0.8757   1.0455 20.43  0.85     210.0    1.0224   0.4611 20.27  0.40 19.33
  2    0.791    3974.0   2115.9   -282.7    0.1263   0.2473 22.54  1.18     243.6    0.8917   0.3955 20.41  0.40 19.49
The data range from T+133.4 s (0.00 d) to T+6232.2 s (0.07 d)
Wrote uvot_fluxes_wtd_190121d21h49m44s703547usUT.qdp
Wrote uvot_fluxes_wtd_190121d21h49m44s703547usUT.gif
Wrote uvot_fluxes_wtd_190121d21h49m44s703547usUT.ps
Found 6 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem