# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190327d17h51m56s058698usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00895257992 -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
# ========= GRB190327 ===================
Could not find/read custom source region custom_895257_src.reg
Used archived XRT position of 314.69530 41.77720 4.00
Reference: GCN_Notice_Wed_27_Mar_19_09:02:52_UT-spacecraft
The position is (20:58:46.87, +41:46:37.9)
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(314.6953,+41.7772,4") # color=red dash=0
Source region spec. is: 314.6953 +41.7772 4"
Region file centered at (314.6953,+41.7772), which is (20:58:46.87, +41:46:37.9)
Could not find/read custom background region custom_895257_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.633 from uncorrected trigger time of 575370017.36 in BAT summary file
# ============ Reading file sw00895257992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.263 at 575370155
The processing date in extension 0 is: 2019-03-27T17:07:24
The trigger time is: 575370039.993. The reference is BAT GRB summary file
Using zero point of 17.627 for filter V
Use aperture correction of 1.030 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(314.6953,+41.7772,25")
fk5;-circle(314.6953,+41.7772,12.5")
fk5;-circle(314.686344,41.774059,6")
fk5;-circle(314.698024,41.776995,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 vv575370155E     115.5  0.99    9.1   16.1 196    373  5682  0.372 0.468 18.70 17.0 
   2 vv575370453E     413.8  0.98   19.5   38.7 201   1190  5690 -0.179 0.343 99.00 17.7 -0.1786 0.3426 99.00 17.7    19 -0.879  1.687 99.00 0.092 
   3 vv575370579E     539.5  0.97   19.5   48.7 199   1242  5709  0.292 0.385 18.96 17.2  0.0561 0.2575 20.75 17.8    39  0.119  1.397 22.60 0.080 
   4 vv575370704E     664.6  0.98   19.5   38.0 200   1258  5671 -0.346 0.340 99.00 17.8 -0.0783 0.2056 99.00 18.2    58 -0.426  1.239 99.00 0.072 
   5 vv575370829E     789.3  0.97   19.5   71.2 203   1363  5728  1.248 0.466 17.39 16.6  0.2513 0.1931 19.13 17.8    78  0.892  1.201 20.41 0.064 
    Sum (T+   414 to    809):             196.5        178.0 (est. in src region)   SNR_unwtd_sum:   1.30 0.9987 signif. UL:  17.82
  0    78 575370652     611.6    197.4   -197.8    0.2513   0.1931 19.126  1.588  -0.619
Total wtd_rate (for all exposures so far):  0.892 +/- 1.181 snr:  0.8 mag: 20.41 UL: 15.98
Rebinned Data for sw00895257992uvv_sk.img using a zero point of 17.627:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0       76     611.3    197.7   -197.5    0.2513   0.1931 19.13  0.62     611.3    0.2513   0.1931 19.13  0.62 17.82
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00895257992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.163 at 575370174
The processing date in extension 0 is:  2019-03-27T17:07:33
The trigger time is: 575370039.993. The reference is BAT GRB summary file
Using zero point of 18.177 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(314.6953,+41.7772,25")
fk5;-circle(314.6953,+41.7772,12.5")
fk5;-circle(314.686449,41.774063,6")
fk5;-circle(314.698098,41.777016,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 uu575370171E     133.7  0.98  241.8  367.2 198   9280  5687  0.191 0.084 19.97 19.1  0.1913 0.0844 19.97 19.1   242  0.345  0.152 21.45 0.409 
   2 uu575370527E     487.4  0.98   19.5   44.0 198   1039  5681  0.425 0.365 19.11 17.7  0.2086 0.0826 19.88 19.0   261  0.362  0.151 21.39 0.383 
   3 uu575370653E     613.2  0.98   19.4   40.3 194   1125  5667  0.094 0.349 20.74 18.0  0.2007 0.0806 19.92 19.1   281  0.362  0.150 21.39 0.357 
   4 uu575370778E     738.0  0.97   19.5   46.0 199   1272  5687  0.081 0.375 20.91 17.9  0.1930 0.0792 19.96 19.1   300  0.363  0.150 21.39 0.329 
    Sum (T+   134 to    758):             497.5        442.4 (est. in src region)   SNR_unwtd_sum:   2.44 0.9987 signif. UL:  19.09
  0   300 575370369     328.5    429.2   -194.8    0.1930   0.0792 19.963  0.574  -0.373
Total wtd_rate (for all exposures so far):  0.370 +/- 0.146 snr:  2.5 mag: 21.37 UL: 18.40
Rebinned Data for sw00895257992uuu_sk.img using a zero point of 18.177:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      238     257.5    123.8   -123.8    0.1913   0.0844 19.97  0.40     257.5    0.1913   0.0844 19.97  0.40 19.05
  1     57.1     622.6    135.2   -135.2    0.2001   0.2095 19.92  0.78     328.2    0.1930   0.0792 19.96  0.37 19.09
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00895257992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.415 at 575370503
The processing date in extension 0 is:  2019-03-27T17:07:33
The trigger time is: 575370039.993. The reference is BAT GRB summary file
Using zero point of 17.025 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(314.6953,+41.7772,25")
fk5;-circle(314.6953,+41.7772,12.5")
fk5;-circle(314.698122,41.777024,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 w1575370502E     462.9  1.00   19.5    2.9 198    121  5822 -0.063 0.093 99.00 18.5 -0.0633 0.0934 99.00 18.5    19 -0.605  0.893 99.00 0.493 
   2 w1575370628E     588.6  1.00   19.5    7.7 198    133  5827  0.171 0.150 18.95 17.5  0.0536 0.0882 20.20 18.2    39  0.360  0.868 21.40 0.420 
   3 w1575370753E     713.6  1.00   19.5    4.6 200    158  5809 -0.047 0.116 99.00 18.2  0.0200 0.0704 21.27 18.6    58  0.181  0.776 22.15 0.352 
High bkg:   4 w1575370878E   19.5    204  5810  1.807  0.126
   4 w1575370878E     838.6  1.00   19.5    1.6 200    204  5796 -0.290 0.072 99.00 19.5 -0.0576 0.0558 99.00 19.2    78 -0.272  0.716 99.00 0.288 
    Sum (T+   463 to    858):              16.8         21.1 (est. in src region)   SNR_unwtd_sum:  -1.03 0.9987 signif. UL:  19.16
  0    78 575370701     660.8    197.6   -197.9   -0.0576   0.0558 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.348 +/- 0.144 snr:  2.4 mag: 21.43 UL: 17.29
Rebinned Data for sw00895257992uw1_sk.img using a zero point of 17.025:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     77.7     660.9    197.5   -198.0   -0.0576   0.0558 99.00 99.00     660.9   -0.0576   0.0558 99.00 99.00 19.16
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00895257992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.391 at 575370478
The processing date in extension 0 is:  2019-03-27T17:07:33
The trigger time is: 575370039.993. The reference is BAT GRB summary file
Using zero point of 16.459 for filter UVM2
Use aperture correction of  1.031 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(314.6953,+41.7772,25")
fk5;-circle(314.6953,+41.7772,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 m2575370478E     438.1  1.00   19.5    1.1 199     39  5840 
   2 m2575370603E     563.9  1.00   19.5    1.0 200     35  5832 -0.010 0.054 99.00 18.4 -0.0099 0.0540 99.00 18.4    19 -0.193  1.056 99.00 0.839 
   3 m2575370728E     688.9  1.00   19.5    0.0 197     30  5837 -0.053 0.054 99.00 18.6 -0.0314 0.0274 99.00 19.4    39 -0.667  0.818 99.00 0.830 
#  4 m2575370853E     813.9  1.00   19.5    0.1 199     31  5840 
    Sum (T+   564 to    709):               1.0          2.2 (est. in src region)   SNR_unwtd_sum:  -1.14 0.9987 signif. UL:  19.39
  0    39 575370676     636.3     72.4    -72.4   -0.0314   0.0274 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.322 +/- 0.141 snr:  2.3 mag: 21.52 UL: 16.78
Rebinned Data for sw00895257992um2_sk.img using a zero point of 16.459:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.9     636.3     72.3    -72.4   -0.0314   0.0381 99.00 99.00     636.3   -0.0314   0.0381 99.00 99.00 18.95
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00895257992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.506 at 575370429
The processing date in extension 0 is:  2019-03-27T17:07:33
The trigger time is: 575370039.993. The reference is BAT GRB summary file
Using zero point of 16.874 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(314.6953,+41.7772,25")
fk5;-circle(314.6953,+41.7772,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 w2575370429E   19.5     92  5841  0.812  0.084
   1 w2575370429E     389.4  1.00   19.5    3.0 200     92  5837 -0.008 0.094 99.00 18.2 -0.0082 0.0939 99.00 18.2    19 -0.077  0.872 99.00 0.662 
High bkg:   2 w2575370555E   19.5     98  5847  0.865  0.087
   2 w2575370555E     515.1  1.00   19.5    2.5 198     98  5845 -0.043 0.087 99.00 18.4 -0.0255 0.0638 99.00 18.7    39 -0.234  0.676 99.00 0.568 
High bkg:   3 w2575370680E   19.5    109  5845  0.956  0.092
   3 w2575370680E     640.2  1.00   19.5    7.1 198    109  5852  0.180 0.143 18.74 17.4  0.0428 0.0638 20.30 18.4    58  0.275  0.672 21.69 0.489 
High bkg:   4 w2575370804E   19.5    110  5840  0.971  0.092
   4 w2575370804E     764.9  1.00   19.5    2.0 200    110  5833 -0.095 0.077 99.00 18.7  0.0083 0.0516 22.08 18.8    78  0.063  0.619 23.28 0.434 
    Sum (T+   389 to    785):              14.6         14.0 (est. in src region)   SNR_unwtd_sum:   0.16 0.9987 signif. UL:  18.78
  0    78 575370627     587.2    197.4   -197.8    0.0083   0.0516 22.080 76.920  -2.150
Total wtd_rate (for all exposures so far):  0.311 +/- 0.138 snr:  2.3 mag: 21.56 UL: 17.22
Rebinned Data for sw00895257992uw2_sk.img using a zero point of 16.874:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     58.3     524.7    135.3   -135.3    0.0428   0.0638 20.30  0.99     524.7    0.0428   0.0638 20.30  0.99 18.42
  1     19.4     774.7      9.9     -9.9   -0.0953   0.0775 99.00 99.00     587.2    0.0083   0.0516 22.08  2.15 18.78
The data range from T+133.7 s (0.00 d) to T+858.4 s (0.01 d)
Wrote uvot_fluxes_190327d17h51m56s058698usUT.qdp
Wrote uvot_fluxes_190327d17h51m56s058698usUT.gif
Wrote uvot_fluxes_190327d17h51m56s058698usUT.ps
Wrote uvot_fluxes_190327d17h51m56s058698usUT_vis.qdp
Wrote uvot_fluxes_190327d17h51m56s058698usUT_uv.qdp
Wrote uvot_fluxes_190327d17h51m56s058698usUT_vis.gif
Wrote uvot_fluxes_190327d17h51m56s058698usUT_vis.ps
Wrote uvot_fluxes_190327d17h51m56s058698usUT_uv.gif
Wrote uvot_fluxes_190327d17h51m56s058698usUT_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     6.18     257.5    123.8   -123.8    1.3392   0.5906 19.97  0.40     257.5    1.3392   0.5906 19.97  0.40 19.05
  1    0.249     574.1    234.9   -160.3    1.3480   1.2538 19.97  0.71     269.8    1.3399   0.5517 19.97  0.37 19.10
The data range from T+133.7 s (0.00 d) to T+858.4 s (0.01 d)
Wrote uvot_fluxes_wtd_190327d17h51m56s058698usUT.qdp
Wrote uvot_fluxes_wtd_190327d17h51m56s058698usUT.gif
Wrote uvot_fluxes_wtd_190327d17h51m56s058698usUT.ps
Found 5 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem