# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190126d22h57m26s674091usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00885807001 -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
# ========= GRB190126 ===================
Could not find/read custom source region custom_885807_src.reg
Used archived XRT position of 207.04750 -63.25290 4.00
Reference: GCN_Notice_Sat_26_Jan_19_10:49:10_UT-spacecraft
The position is (13:48:11.40, -63:15:10.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(207.0475,-63.2529,4") # color=red dash=0
Source region spec. is: 207.0475 -63.2529 4"
Region file centered at (207.0475,-63.2529), which is (13:48:11.40, -63:15:10.4)
Could not find/read custom background region custom_885807_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.30024 from uncorrected trigger time of 570191873.68 in BAT summary file
# ============ Reading file sw00885807992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.204 at 570194034
The processing date in extension 0 is: 2019-01-26T14:48:12
The trigger time is: 570191895.98024. The reference is BAT GRB summary file
Using zero point of 20.086 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(207.0475,-63.2529,25")
fk5;-circle(207.0475,-63.2529,12.5")
fk5;-circle(207.040522,-63.259038,6")
fk5;-circle(207.054781,-63.258923,6")
fk5;-circle(207.053947,-63.256898,6")
fk5;-circle(207.057980,-63.254773,6")
fk5;-circle(207.040279,-63.249322,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 wh570194034I   12.2   3586  4230 69.337  1.158
   1 wh570194034I    2138.4  0.85   12.2  176.6 199   3586  4306  1.080 1.346 20.00 18.3  1.0802 1.3463 20.00 18.3    12  2.795  3.483 19.17 0.024 
above line uses coinc_corr_src:  0.853 corr_bkg:  0.869
High bkg:   2 wh570194034E   12.2   3563  4221 69.084  1.157
   2 wh570194034E    2138.4  0.85   12.2  179.5 196   3563  4300  1.691 1.357 19.52 18.2 
above line uses coinc_corr_src:  0.853 corr_bkg:  0.869
   3 wh570197375I    5479.5  0.93  147.4 1204.1 200  16713  4323  3.260 0.266 18.80 18.6  3.1053 0.2652 18.86 18.6   160 18.909  1.602 17.10 0.026 
   4 wh570197375E    5479.5  0.93  147.4 1227.6 208  16726  4322  3.193 0.269 18.83 18.6 
    Sum (T+  2138 to   5629):            1380.7        938.9 (est. in src region)   SNR_unwtd_sum:  11.71 0.9987 signif. UL:  18.61
  0   160 570197189    5293.2    336.1  -3154.8    3.1053   0.2652 18.856  0.097  -0.089
Total wtd_rate (for all exposures so far): 18.909 +/- 1.578 snr: 12.0 mag: 17.10 UL: 16.65
Rebinned Data for sw00885807992uwh_sk.img using a zero point of 20.086:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     10.4    2144.6      6.2     -6.2    1.0802   1.3463 20.00  0.88    2144.6    1.0802   1.3463 20.00  0.88 18.29
  1      137    5554.4     74.9    -74.9    3.2598   0.2664 18.80  0.09    5312.7    3.1053   0.2652 18.86  0.09 18.61
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00885807992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.260 at 570197533
The processing date in extension 0 is:  2019-01-26T14:48:12
The trigger time is: 570191895.98024. The reference is BAT GRB summary file
Using zero point of 17.630 for filter V
Use aperture correction of  1.030 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(207.0475,-63.2529,25")
fk5;-circle(207.0475,-63.2529,12.5")
fk5;-circle(207.040217,-63.249233,6")
fk5;-circle(207.057977,-63.254787,6")
fk5;-circle(207.053936,-63.256899,6")
fk5;-circle(207.040455,-63.259009,6")
fk5;-circle(207.054834,-63.258905,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 vv570197533I    5637.2  0.98  196.6  418.8 204   5230  4263  0.899 0.111 17.75 17.4  0.8990 0.1107 17.75 17.4   197 59.752  7.359 15.85 0.012 
    Sum (T+  5637 to   5837):             418.8        250.3 (est. in src region)   SNR_unwtd_sum:   8.12 0.9987 signif. UL:  17.40
  0   197 570197633    5737.1     99.9    -99.9    0.8990   0.1107 17.746  0.143  -0.126
Total wtd_rate (for all exposures so far): 20.879 +/- 1.536 snr: 13.6 mag: 16.99 UL: 14.11
# ============ Reading file sw00885807001uvv_sk.img ================
Use keyword TRIGTIME of 570191896 for trigger time.
Long-term sensitivity correction to zero point is -0.260 at 570226328
The processing date in extension 0 is:  2019-01-26T22:51:09
The trigger time is: 570191896. The reference is keyword in image file
Using zero point of 17.630 for filter V
Use aperture correction of  1.030 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(207.0475,-63.2529,25")
fk5;-circle(207.0475,-63.2529,12.5")
fk5;-circle(207.040266,-63.259022,6")
fk5;-circle(207.054424,-63.258871,6")
fk5;-circle(207.053746,-63.256885,6")
fk5;-circle(207.057727,-63.254785,6")
fk5;-circle(207.040104,-63.249242,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 vv570226327I   34431.5  0.98  706.4 1558.7 208  19503  4270  0.904 0.060 17.74 17.5  0.9044 0.0595 17.74 17.5   706 364.522 23.990 13.89 0.002 
    Sum (T+ 34432 to  35149):            1558.7        950.0 (est. in src region)   SNR_unwtd_sum:  15.19 0.9987 signif. UL:  17.54
  0   706 570226686   34790.4    358.9   -358.9    0.9044   0.0595 17.739  0.074  -0.069
Total wtd_rate (for all exposures so far): 22.467 +/- 1.532 snr: 14.7 mag: 16.91 UL: 14.05
Rebinned Data for sw00885807001uvv_sk.img using a zero point of 17.630:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      193    5737.1     99.9    -99.9    0.8990   0.1107 17.75  0.13    5737.1    0.8990   0.1107 17.75  0.13 17.40
  1      693   34790.4    358.9   -358.9    0.9044   0.0595 17.74  0.07   28461.6    0.9032   0.0524 17.74  0.06 17.57
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00885807992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.149 at 570198354
The processing date in extension 0 is:  2019-01-26T14:48:12
The trigger time is: 570191896. The reference is keyword in image file
Using zero point of 18.961 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(207.0475,-63.2529,25")
fk5;-circle(207.0475,-63.2529,12.5")
fk5;-circle(207.058000,-63.254796,6")
fk5;-circle(207.054018,-63.256880,6")
fk5;-circle(207.040505,-63.259054,6")
fk5;-circle(207.054772,-63.258921,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 bb570198353I    6457.9  0.97  178.4  543.5 196   9350  4677  0.904 0.141 19.07 18.7  0.9044 0.1411 19.07 18.7   178 20.136  3.141 17.03 0.020 
    Sum (T+  6458 to   6639):             543.5        391.8 (est. in src region)   SNR_unwtd_sum:   6.41 0.9987 signif. UL:  18.65
  0   178 570198445    6548.5     90.6    -90.6    0.9044   0.1411 19.070  0.185  -0.157
Total wtd_rate (for all exposures so far): 22.115 +/- 1.379 snr: 16.0 mag: 16.93 UL: 15.41
Rebinned Data for sw00885807992ubb_sk.img using a zero point of 18.961:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      174    6548.5     90.6    -90.6    0.9044   0.1411 19.07  0.16    6548.5    0.9044   0.1411 19.07  0.16 18.65
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00885807992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.161 at 570198148
The processing date in extension 0 is:  2019-01-26T14:48:12
The trigger time is: 570191896. 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(207.0475,-63.2529,25")
fk5;-circle(207.0475,-63.2529,12.5")
fk5;-circle(207.040434,-63.258970,6")
fk5;-circle(207.054640,-63.258841,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 uu570198148I    6252.4  0.99  196.6  241.9 204   5362  5375  0.204 0.084 19.91 19.0  0.2037 0.0838 19.91 19.0   197  9.041  3.722 17.90 0.022 
    Sum (T+  6252 to   6452):             241.9        203.5 (est. in src region)   SNR_unwtd_sum:   2.43 0.9987 signif. UL:  19.03
  0   197 570198248    6352.2     99.9    -99.9    0.2037   0.0838 19.907  0.576  -0.375
Total wtd_rate (for all exposures so far): 20.725 +/- 1.290 snr: 16.1 mag: 17.00 UL: 14.70
# ============ Reading file sw00885807001uuu_sk.img ================
Use keyword TRIGTIME of 570191896 for trigger time.
Long-term sensitivity correction to zero point is -0.161 at 570227053
The processing date in extension 0 is:  2019-01-26T22:51:10
The trigger time is: 570191896. 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(207.0475,-63.2529,25")
fk5;-circle(207.0475,-63.2529,12.5")
fk5;-circle(207.040215,-63.259053,6")
fk5;-circle(207.054368,-63.258957,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 uu570227052I   35156.8  0.99  264.2  393.8 208   8203  5410  0.310 0.080 19.45 18.8  0.3101 0.0797 19.45 18.8   264 76.469 19.657 15.58 0.003 
    Sum (T+ 35157 to  35425):             393.8        315.4 (est. in src region)   SNR_unwtd_sum:   3.89 0.9987 signif. UL:  18.83
  0   264 570227187   35291.0    134.2   -134.2    0.3101   0.0797 19.450  0.323  -0.248
Total wtd_rate (for all exposures so far): 20.939 +/- 1.287 snr: 16.3 mag: 16.99 UL: 14.69
Rebinned Data for sw00885807001uuu_sk.img using a zero point of 18.179:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    6352.2     99.9    -99.9    0.2037   0.0838 19.91  0.38    6352.2    0.2037   0.0838 19.91  0.38 19.03
  1      261   35291.0    134.2   -134.2    0.3101   0.0797 19.45  0.25   22931.3    0.2646   0.0580 19.62  0.22 19.07
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00885807992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.403 at 570197943
The processing date in extension 0 is:  2019-01-26T14:48:12
The trigger time is: 570191896. The reference is keyword in image file
Using zero point of 17.037 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(207.0475,-63.2529,25")
fk5;-circle(207.0475,-63.2529,12.5")
fk5;-circle(207.040342,-63.259034,6")
fk5;-circle(207.054727,-63.258862,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 w1570197943I  196.6   1483  5380  1.402  0.036
   1 w1570197943I    6047.3  1.00  196.6   58.1 204   1483  5381  0.010 0.041 22.04 19.2  0.0100 0.0410 22.04 19.2   197  1.224  5.036 20.07 0.028 
    Sum (T+  6047 to   6247):              58.1         56.2 (est. in src region)   SNR_unwtd_sum:   0.24 0.9987 signif. UL:  19.18
  0   197 570198043    6147.2     99.9    -99.9    0.0100   0.0410 22.042 76.958  -1.772
Total wtd_rate (for all exposures so far): 20.077 +/- 1.252 snr: 16.0 mag: 17.03 UL: 13.59
Rebinned Data for sw00885807992uw1_sk.img using a zero point of 17.037:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    6147.2     99.9    -99.9    0.0100   0.0410 22.04  1.77    6147.2    0.0100   0.0410 22.04  1.77 19.18
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00885807992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.380 at 570197738
The processing date in extension 0 is:  2019-01-26T14:48:12
The trigger time is: 570191896. 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(207.0475,-63.2529,25")
fk5;-circle(207.0475,-63.2529,12.5")
fk5;-circle(207.040527,-63.259152,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 m2570197737I  196.6    608  5628  0.550  0.022
   1 m2570197737I    5842.0  1.00  196.6   28.6 196    608  5630  0.039 0.028 20.00 18.7  0.0389 0.0284 20.00 18.7   197  7.798  5.700 18.06 0.046 
    Sum (T+  5842 to   6042):              28.6         21.2 (est. in src region)   SNR_unwtd_sum:   1.37 0.9987 signif. UL:  18.73
  0   197 570197838    5941.8     99.9    -99.9    0.0389   0.0284 19.995  1.425  -0.596
Total wtd_rate (for all exposures so far): 19.459 +/- 1.218 snr: 16.0 mag: 17.07 UL: 13.06
Rebinned Data for sw00885807992um2_sk.img using a zero point of 16.470:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5941.8     99.9    -99.9    0.0389   0.0284 20.00  0.60    5941.8    0.0389   0.0284 20.00  0.60 18.73
The data range from T+2138.4 s (0.02 d) to T+35425.3 s (0.41 d)
Wrote uvot_fluxes_190126d22h57m26s674091usUT.qdp
Wrote uvot_fluxes_190126d22h57m26s674091usUT.gif
Wrote uvot_fluxes_190126d22h57m26s674091usUT.ps
Wrote uvot_fluxes_190126d22h57m26s674091usUT_vis.qdp
Wrote uvot_fluxes_190126d22h57m26s674091usUT_uv.qdp
Wrote uvot_fluxes_190126d22h57m26s674091usUT_vis.gif
Wrote uvot_fluxes_190126d22h57m26s674091usUT_vis.ps
Wrote uvot_fluxes_190126d22h57m26s674091usUT_uv.gif
Wrote uvot_fluxes_190126d22h57m26s674091usUT_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.0683    2144.6      6.2     -6.2    1.3031   1.6242 20.00  0.88    2144.6    1.3031   1.6242 20.00  0.88 18.29
  1     0.26    5554.4     74.9    -74.9    3.9325   0.3213 18.80  0.09    4845.3    3.6904   0.3278 18.87  0.09 18.61
  2  0.00159    5737.1     99.9    -99.9   10.4149   1.2828 17.75  0.13    4849.6    3.7288   0.3260 18.86  0.09 18.61
  3   0.0103    6352.2     99.9    -99.9    1.4233   0.5859 19.91  0.38    4895.2    3.6381   0.3140 18.89  0.09 18.64
  4   0.0298    6548.5     90.6    -90.6    3.0749   0.4797 19.07  0.16    5028.3    3.5790   0.2856 18.91  0.08 18.67
  5  0.00015   34790.4    358.9   -358.9   10.4777   0.6896 17.74  0.07    5040.3    3.5983   0.2848 18.90  0.08 18.67
  6  0.00037   35291.0    134.2   -134.2    2.1668   0.5570 19.45  0.25    5070.6    3.5883   0.2828 18.90  0.08 18.67
The data range from T+2138.4 s (0.02 d) to T+35425.3 s (0.41 d)
Wrote uvot_fluxes_wtd_190126d22h57m26s674091usUT.qdp
Wrote uvot_fluxes_wtd_190126d22h57m26s674091usUT.gif
Wrote uvot_fluxes_wtd_190126d22h57m26s674091usUT.ps
Found 4 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem