# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190128d17h53m24s525645usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00886266992 -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
# ========= GRB190128 ===================
Could not find/read custom source region custom_886266_src.reg
Used archived uvot source position of 207.05340 -63.27450 3.00
Reference: GCN_Notice_Mon_28_Jan_19_15:14:59_UT
The position is (13:48:12.82, -63:16:28.2)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(207.0534,-63.2745,3") # color=red dash=0
Source region spec. is: 207.0534 -63.2745 3"
Region file centered at (207.0534,-63.2745), which is (13:48:12.82, -63:16:28.2)
Could not find/read custom background region custom_886266_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.32144 from uncorrected trigger time of 570376449.67 in BAT summary file
# ============ Reading file sw00886266992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.204 at 570376616
The processing date in extension 0 is: 2019-01-28T17:46:04
The trigger time is: 570376471.99144. The reference is BAT GRB summary file
Using zero point of 20.086 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 5:
# 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.0534,-63.2745,25")
fk5;-circle(207.0534,-63.2745,12.5")
fk5;-circle(207.042912,-63.275232,6")
fk5;-circle(207.071991,-63.275199,6")
fk5;-circle(207.051547,-63.280826,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 wh570376615I     143.9  0.83    4.9  101.0 111    895  5716 22.554 2.716 16.70 16.4 22.5539 2.7159 16.70 16.4     5  3.983  0.480 18.79 1.338 
above line uses coinc_corr_src:  0.831 corr_bkg:  0.932
   2 wh570376615E     144.8  0.82    4.0   86.8 110    752  5776 24.273 3.124 16.62 16.3 
above line uses coinc_corr_src:  0.821 corr_bkg:  0.931
   3 wh570380914I    4442.6  0.84  147.4 2681.8 110  21036  5722 20.286 0.462 16.82 16.7 20.3588 0.4555 16.81 16.7   152  8.219  0.471 18.00 0.109 
above line uses coinc_corr_src:  0.844 corr_bkg:  0.947
   4 wh570380914E    4442.6  0.84  147.4 2668.4 112  21042  5725 20.097 0.461 16.83 16.8 
above line uses coinc_corr_src:  0.844 corr_bkg:  0.947
   5 wh570382097I    5625.4  0.84  196.6 3730.7 116  32130  5706 20.693 0.411 16.80 16.7 20.5463 0.3054 16.80 16.8   349 11.746  0.465 17.61 0.065 
above line uses coinc_corr_src:  0.838 corr_bkg:  0.939
    Sum (T+   144 to   5825):            6513.4       1075.0 (est. in src region)   SNR_unwtd_sum:  67.28 0.9987 signif. UL:  16.76
  0   349 570381608    5136.1    689.1  -4992.3   20.5463   0.3054 16.804  0.017  -0.016
Total wtd_rate (for all exposures so far): 11.746 +/- 0.464 snr: 25.3 mag: 17.61 UL: 17.29
Rebinned Data for sw00886266992uwh_sk.img using a zero point of 20.086:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      4.1     146.4      2.5     -2.5   22.5539   2.7159 16.70  0.12     146.4   22.5539   2.7159 16.70  0.12 16.37
  1      124    4517.4     74.9    -74.9   20.2863   0.4620 16.82  0.02    4377.8   20.3588   0.4555 16.81  0.02 16.74
  2      165    5725.3     99.9    -99.9   20.6925   0.4114 16.80  0.02    5134.9   20.5463   0.3054 16.80  0.02 16.76
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00886266992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.260 at 570376597
The processing date in extension 0 is:  2019-01-28T17:46:04
The trigger time is: 570376471.99144. The reference is BAT GRB summary file
Using zero point of 17.630 for filter V
Use aperture correction of  1.087 based on aperture of  3.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(207.0534,-63.2745,25")
fk5;-circle(207.0534,-63.2745,12.5")
fk5;-circle(207.071913,-63.275133,6")
fk5;-circle(207.051466,-63.280832,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 vv570376596E     124.9  0.96   10.5   45.2 110    493  5636  3.827 0.725 16.17 15.7 
   2 vv570381071I    4599.5  0.96  196.6  930.4 108   7608  5649  4.520 0.176 15.99 15.9  4.5205 0.1759 15.99 15.9   197 246.138  9.579 14.31 0.024 
   3 vv570382507I    6036.0  0.96  196.6  977.6 112  10046  5673  4.508 0.181 15.99 15.9  4.5145 0.1263 15.99 15.9   393 268.367  7.742 14.22 0.018 
    Sum (T+  4600 to   6236):            1908.0        343.8 (est. in src region)   SNR_unwtd_sum:  35.75 0.9987 signif. UL:  15.91
  0   393 570381890    5417.6    818.1   -818.1    4.5145   0.1263 15.994  0.030  -0.030
Total wtd_rate (for all exposures so far): 12.440 +/- 0.455 snr: 27.3 mag: 17.55 UL: 14.78
Rebinned Data for sw00886266992uvv_sk.img using a zero point of 17.630:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      189    4699.4     99.9    -99.9    4.5205   0.1759 15.99  0.04    4699.4    4.5205   0.1759 15.99  0.04 15.87
  1      188    6135.9     99.9    -99.9    4.5085   0.1813 15.99  0.04    5416.0    4.5145   0.1263 15.99  0.03 15.91
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00886266992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.149 at 570381892
The processing date in extension 0 is:  2019-01-28T17:46:04
The trigger time is: 570376471.99144. The reference is BAT GRB summary file
Using zero point of 18.961 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(207.0534,-63.2745,25")
fk5;-circle(207.0534,-63.2745,12.5")
fk5;-circle(207.071953,-63.275201,6")
fk5;-circle(207.051509,-63.280876,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 bb570381892I    5420.3  0.94  196.6 1231.0 112  12217  5724  5.922 0.210 17.03 16.9  5.9220 0.2099 17.03 16.9   197 111.148  3.939 15.18 0.041 
    Sum (T+  5420 to   5620):            1231.0        239.1 (est. in src region)   SNR_unwtd_sum:  28.22 0.9987 signif. UL:  16.92
  0   197 570381992    5520.1     99.9    -99.9    5.9220   0.2099 17.030  0.039  -0.038
Total wtd_rate (for all exposures so far): 13.863 +/- 0.460 snr: 30.1 mag: 17.43 UL: 16.00
Rebinned Data for sw00886266992ubb_sk.img using a zero point of 18.961:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      186    5520.1     99.9    -99.9    5.9220   0.2099 17.03  0.04    5520.1    5.9220   0.2099 17.03  0.04 16.92
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00886266992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.161 at 570381687
The processing date in extension 0 is:  2019-01-28T17:46:04
The trigger time is: 570376471.99144. The reference is BAT GRB summary file
Using zero point of 18.179 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(207.0534,-63.2745,25")
fk5;-circle(207.0534,-63.2745,12.5")
fk5;-circle(207.051282,-63.280912,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 uu570381686I    5214.8  0.97  196.6  718.2 116   5431  5670  3.504 0.155 16.82 16.7  3.5039 0.1549 16.82 16.7   197 130.133  5.754 15.00 0.046 
    Sum (T+  5215 to   5415):             718.2        111.1 (est. in src region)   SNR_unwtd_sum:  22.62 0.9987 signif. UL:  16.68
  0   197 570381787    5314.7     99.9    -99.9    3.5039   0.1549 16.818  0.049  -0.047
Total wtd_rate (for all exposures so far): 14.571 +/- 0.455 snr: 32.0 mag: 17.38 UL: 15.17
Rebinned Data for sw00886266992uuu_sk.img using a zero point of 18.179:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      191    5314.7     99.9    -99.9    3.5039   0.1549 16.82  0.05    5314.7    3.5039   0.1549 16.82  0.05 16.68
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00886266992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.403 at 570381482
The processing date in extension 0 is:  2019-01-28T17:46:04
The trigger time is: 570376471.99144. The reference is BAT GRB summary file
Using zero point of 17.037 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(207.0534,-63.2745,25")
fk5;-circle(207.0534,-63.2745,12.5")
fk5;-circle(207.051157,-63.280894,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 w1570381481I    5009.9  0.99  196.6  118.2 108   1455  5550  0.516 0.063 17.75 17.4  0.5164 0.0626 17.75 17.4   197 52.790  6.400 15.98 0.068 
    Sum (T+  5010 to   5210):             118.2         28.3 (est. in src region)   SNR_unwtd_sum:   8.25 0.9987 signif. UL:  17.42
  0   197 570381582    5109.8     99.9    -99.9    0.5164   0.0626 17.755  0.140  -0.125
Total wtd_rate (for all exposures so far): 15.026 +/- 0.464 snr: 32.4 mag: 17.35 UL: 14.00
Rebinned Data for sw00886266992uw1_sk.img using a zero point of 17.037:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5109.8     99.9    -99.9    0.5164   0.0626 17.75  0.12    5109.8    0.5164   0.0626 17.75  0.12 17.42
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00886266992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.381 at 570381277
The processing date in extension 0 is:  2019-01-28T17:46:04
The trigger time is: 570376471.99144. The reference is BAT GRB summary file
Using zero point of 16.469 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(207.0534,-63.2745,25")
fk5;-circle(207.0534,-63.2745,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 m2570381276I  196.6    565  5828  0.493  0.021
   1 m2570381276I    4804.6  1.00  196.6   22.0 104    565  5830  0.067 0.027 19.40 18.5  0.0673 0.0265 19.40 18.5   197 11.139  4.392 17.67 0.118 
High bkg:   2 m2570382713I   27.1     84  5836  0.529  0.058
   2 m2570382713I    6241.4  1.00   27.1    3.3 112     84  5839  0.069 0.075 19.37 17.8  0.0675 0.0250 19.39 18.6   224 11.378  4.231 17.65 0.113 
    Sum (T+  4805 to   6269):              25.3         11.7 (est. in src region)   SNR_unwtd_sum:   2.70 0.9987 signif. UL:  18.58
  0   224 570381540    5068.0   1200.9   -263.5    0.0675   0.0250 19.395  0.502  -0.342
Total wtd_rate (for all exposures so far): 14.778 +/- 0.455 snr: 32.5 mag: 17.37 UL: 13.45
Rebinned Data for sw00886266992um2_sk.img using a zero point of 16.469:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      223    5068.0   1200.9   -263.4    0.0675   0.0250 19.39  0.34    5068.0    0.0675   0.0250 19.39  0.34 18.58
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00886266992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.491 at 570382303
The processing date in extension 0 is:  2019-01-28T17:46:04
The trigger time is: 570376471.99144. The reference is BAT GRB summary file
Using zero point of 16.889 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(207.0534,-63.2745,25")
fk5;-circle(207.0534,-63.2745,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 w2570382303I  196.6   1367  5880  1.182  0.032
   1 w2570382303I    5831.2  1.00  196.6   53.1 116   1367  5885  0.148 0.041 18.97 18.3  0.1476 0.0414 18.97 18.3   197 20.080  5.628 17.03 0.053 
    Sum (T+  5831 to   6031):              53.1         26.9 (est. in src region)   SNR_unwtd_sum:   3.57 0.9987 signif. UL:  18.30
  0   197 570382403    5931.1     99.9    -99.9    0.1476   0.0414 18.966  0.357  -0.268
Total wtd_rate (for all exposures so far): 14.817 +/- 0.455 snr: 32.6 mag: 17.36 UL: 13.87
Rebinned Data for sw00886266992uw2_sk.img using a zero point of 16.889:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5931.1     99.9    -99.9    0.1476   0.0414 18.97  0.27    5931.1    0.1476   0.0414 18.97  0.27 18.30
The data range from T+143.9 s (0.00 d) to T+6268.9 s (0.07 d)
Wrote uvot_fluxes_190128d17h53m24s525645usUT.qdp
Wrote uvot_fluxes_190128d17h53m24s525645usUT.gif
Wrote uvot_fluxes_190128d17h53m24s525645usUT.ps
Wrote uvot_fluxes_190128d17h53m24s525645usUT_vis.qdp
Wrote uvot_fluxes_190128d17h53m24s525645usUT_uv.qdp
Wrote uvot_fluxes_190128d17h53m24s525645usUT_vis.gif
Wrote uvot_fluxes_190128d17h53m24s525645usUT_vis.ps
Wrote uvot_fluxes_190128d17h53m24s525645usUT_uv.gif
Wrote uvot_fluxes_190128d17h53m24s525645usUT_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      3.6     146.4      2.5     -2.5   27.2104   3.2767 16.70  0.12     146.4   27.2104   3.2767 16.70  0.12 16.37
  1    0.131    4517.4     74.9    -74.9   24.4747   0.5573 16.82  0.02     299.4   25.7652   1.5735 16.76  0.06 16.58
  2 0.000941    4699.4     99.9    -99.9   52.3767   2.0383 15.99  0.04     300.5   25.8700   1.5673 16.76  0.06 16.58
  3  0.00432    5314.7     99.9    -99.9   24.4855   1.0826 16.82  0.05     306.3   25.8422   1.5360 16.76  0.06 16.58
  4    0.019    5520.1     99.9    -99.9   20.1350   0.7135 17.03  0.04     332.6   25.3645   1.4087 16.78  0.06 16.61
  5    0.103    5725.3     99.9    -99.9   24.9647   0.4964 16.80  0.02     476.0   25.2367   0.9713 16.79  0.04 16.67
  6  0.00052    6135.9     99.9    -99.9   52.2375   2.1001 15.99  0.04     476.7   25.2834   0.9697 16.78  0.04 16.66
The data range from T+143.9 s (0.00 d) to T+6268.9 s (0.07 d)
Wrote uvot_fluxes_wtd_190128d17h53m24s525645usUT.qdp
Wrote uvot_fluxes_wtd_190128d17h53m24s525645usUT.gif
Wrote uvot_fluxes_wtd_190128d17h53m24s525645usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem