# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 181109d03h10m30s119080usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00871103992 -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
# ========= GRB181108 ===================
Could not find/read custom source region custom_871103_src.reg
Used archived XRT position of 188.06288 13.34214 4.00
Reference: GRB_Auto_Processing-Thu,_08_Nov_2018_20:07:59_+0000
The position is (12:32:15.09, +13:20:31.7)
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(188.06288,13.34214,4") # color=red dash=0
Source region spec. is: 188.06288 13.34214 4"
Region file centered at (188.06288,13.34214), which is (12:32:15.09, +13:20:31.7)
Could not find/read custom background region custom_871103_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 -21.85774 from uncorrected trigger time of 563398634.11 in BAT summary file
# ============ Reading file sw00871103992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.200 at 563398868
The processing date in extension 0 is: 2018-11-09T02:55:01
The trigger time is: 563398655.96774. The reference is BAT GRB summary file
Using zero point of 20.090 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  3  187.5 187.97513  13.24270 0.134 129.3
  4  187.2 187.97504  13.24309 0.134 129.3
  5  187.1 187.97496  13.24339 0.134 129.3
  7  185.2 187.97549  13.24352 0.134 129.3
Using background region based on sources found in extension 6:
# 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(188.06288,13.34214,25")
fk5;-circle(188.06288,13.34214,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 wh563398868I     212.1  0.90  147.4 1714.6 200  37409  5961  3.589 0.327 18.70 18.4  3.5887 0.3274 18.70 18.4   147  1.238  0.113 20.06 0.306 
above line uses coinc_corr_src:  0.899 corr_bkg:  0.918
   2 wh563398868E     212.9  0.90  146.6 1692.3 197  37218  5960  3.627 0.327 18.69 18.4 
above line uses coinc_corr_src:  0.899 corr_bkg:  0.918
%  3 wh563399148E     492.3  1.00   19.5    0.0   0      0     0 
%  4 wh563399323E     667.1  1.00   19.5    0.0   0      0     0 
%  5 wh563399496E     840.6  1.00   19.4    0.0   0      0     0 
   6 wh563399519I     863.5  0.88  147.4 1982.1 201  44991  5970  3.726 0.359 18.66 18.4  3.6565 0.2429 18.68 18.5   295  1.444  0.109 19.89 0.180 
above line uses coinc_corr_src:  0.880 corr_bkg:  0.900
#  7 wh563399822E    1166.3  1.00   19.4    0.0   0      0     0 
    Sum (T+   212 to   1013):            3696.7       2769.9 (est. in src region)   SNR_unwtd_sum:  15.06 0.9987 signif. UL:  18.48
  0   295 563399269     612.7    400.6   -400.6    3.6565   0.2429 18.682  0.075  -0.070
Total wtd_rate (for all exposures so far):  1.444 +/- 0.108 snr: 13.4 mag: 19.89 UL: 19.47
Rebinned Data for sw00871103992uwh_sk.img using a zero point of 20.090:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      132     287.0     74.9    -74.9    3.5887   0.3274 18.70  0.09     287.0    3.5887   0.3274 18.70  0.09 18.44
  1      130     938.4     74.9    -74.9    3.7256   0.3594 18.66  0.10     609.4    3.6565   0.2429 18.68  0.07 18.48
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00871103992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.255 at 563398849
The processing date in extension 0 is:  2018-11-09T02:54:33
The trigger time is: 563398655.96774. The reference is BAT GRB summary file
Using zero point of 17.635 for filter V
Use aperture correction of  1.030 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  2  185.7 187.97548  13.24320 0.134 129.3
  3  186.9 187.97521  13.24292 0.134 129.3
  4  187.1 187.97503  13.24320 0.134 129.3
  5  186.3 187.97532  13.24311 0.134 129.3
  6  187.2 187.97507  13.24302 0.134 129.3
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(188.06288,13.34214,25")
fk5;-circle(188.06288,13.34214,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 vv563398849E     193.4  0.98    9.7   23.2 201    637  5833  0.139 0.530 19.78 17.0 
%  2 vv563399024E     368.8  1.00   19.5    0.0   0      0     0 
%  3 vv563399197E     542.0  1.00   19.5    0.0   0      0     0 
%  4 vv563399372E     716.7  1.00   19.4    0.0   0      0     0 
%  5 vv563399699E    1043.5  1.00   19.5    0.0   0      0     0 
%  6 vv563399871E    1215.8  1.00   19.5    0.0   0      0     0 
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00871103992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.146 at 563399124
The processing date in extension 0 is:  2018-11-09T02:54:46
The trigger time is: 563398655.96774. The reference is BAT GRB summary file
Using zero point of 18.964 for filter B
Use aperture correction of  1.035 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1  185.4 187.97541  13.24357 0.134 129.3
  2  185.6 187.97550  13.24320 0.134 129.3
  3  187.0 187.97499  13.24336 0.134 129.3
  4  187.2 187.97516  13.24283 0.134 129.3
Using background region based on sources found in extension 4:
# 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(188.06288,13.34214,25")
fk5;-circle(188.06288,13.34214,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 bb563399123E     468.0  1.00   19.4    0.0   0      0     0 
%  2 bb563399298E     642.6  1.00   19.4    0.0   0      0     0 
%  3 bb563399472E     816.3  1.00   19.4    0.0   0      0     0 
%  4 bb563399797E    1142.0  1.00   19.5    0.0   0      0     0 
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00871103992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.158 at 563399098
The processing date in extension 0 is:  2018-11-09T02:54:46
The trigger time is: 563398655.96774. The reference is BAT GRB summary file
Using zero point of 18.182 for filter U
Use aperture correction of  1.032 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1  186.4 187.97501  13.24383 0.134 129.3
  2  185.6 187.97492  13.24464 0.134 129.3
  3  188.7 187.97427  13.24389 0.134 129.3
  4  185.9 187.97492  13.24443 0.134 129.3
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(188.06288,13.34214,25")
fk5;-circle(188.06288,13.34214,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 uu563399098E     442.4  1.00   19.5    0.0   0      0     0 
#  2 uu563399273E     617.9  1.00   19.5    0.0   0      0     0 
%  3 uu563399447E     791.6  1.00   19.4    0.0   0      0     0 
#  4 uu563399773E    1117.2  1.00   19.5    0.0   0      0     0 
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00871103992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.387 at 563399074
The processing date in extension 0 is:  2018-11-09T02:54:46
The trigger time is: 563398655.96774. The reference is BAT GRB summary file
Using zero point of 17.053 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(188.06288,13.34214,25")
fk5;-circle(188.06288,13.34214,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 w1563399074E     418.2  1.00   19.5   10.9 200    120  5857  0.364 0.177 18.15 17.2  0.3638 0.1774 18.15 17.2    19  3.070  1.497 19.07 0.562 
   2 w1563399248E     592.2  1.00   19.5   12.8 200    132  5854  0.442 0.192 17.94 17.0  0.4026 0.1307 18.04 17.3    39  3.752  1.251 18.85 0.457 
   3 w1563399423E     767.1  0.99   19.4   18.8 198    129  5875  0.776 0.233 17.33 16.6  0.5266 0.1167 17.75 17.2    58  5.075  1.199 18.53 0.402 
High bkg:   4 w1563399748E   19.5    164  5840  1.441  0.113
#  4 w1563399748E    1092.5  1.00   19.5    8.1 201    164  5851 
    Sum (T+   418 to    787):              42.5         12.9 (est. in src region)   SNR_unwtd_sum:   4.51 0.9987 signif. UL:  17.19
  0    58 563399258     602.3    184.6   -184.1    0.5266   0.1167 17.749  0.272  -0.217
Total wtd_rate (for all exposures so far):  1.507 +/- 0.108 snr: 14.0 mag: 19.84 UL: 16.40
Rebinned Data for sw00871103992uw1_sk.img using a zero point of 17.053:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     19.4     428.1      9.9     -9.9    0.3638   0.1774 18.15  0.43     428.1    0.3638   0.1774 18.15  0.43 17.17
  1     19.4     602.0      9.9     -9.9    0.4415   0.1920 17.94  0.39     515.0    0.4026   0.1307 18.04  0.30 17.30
  2     19.3     777.0      9.9     -9.9    0.7756   0.2334 17.33  0.29     602.1    0.5266   0.1167 17.75  0.22 17.19
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00871103992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.367 at 563399049
The processing date in extension 0 is:  2018-11-09T02:54:46
The trigger time is: 563398655.96774. The reference is BAT GRB summary file
Using zero point of 16.483 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00871103992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.471 at 563399174
The processing date in extension 0 is:  2018-11-09T02:54:48
The trigger time is: 563398655.96774. The reference is BAT GRB summary file
Using zero point of 16.909 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.00
There are no aspect corrected images to process.
The data range from T+212.1 s (0.00 d) to T+1013.3 s (0.01 d)
Wrote uvot_fluxes_181109d03h10m30s119080usUT.qdp
Wrote uvot_fluxes_181109d03h10m30s119080usUT.gif
Wrote uvot_fluxes_181109d03h10m30s119080usUT.ps
Wrote uvot_fluxes_181109d03h10m30s119080usUT_vis.qdp
Wrote uvot_fluxes_181109d03h10m30s119080usUT_uv.qdp
Wrote uvot_fluxes_181109d03h10m30s119080usUT_vis.gif
Wrote uvot_fluxes_181109d03h10m30s119080usUT_vis.ps
Wrote uvot_fluxes_181109d03h10m30s119080usUT_uv.gif
Wrote uvot_fluxes_181109d03h10m30s119080usUT_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     65.2     287.0     74.9    -74.9    4.3155   0.3937 18.70  0.09     287.0    4.3155   0.3937 18.70  0.09 18.44
  1     5.06     938.4     74.9    -74.9    4.4801   0.4322 18.66  0.10     333.9    4.3488   0.3260 18.69  0.08 18.47
The data range from T+212.1 s (0.00 d) to T+1013.3 s (0.01 d)
Wrote uvot_fluxes_wtd_181109d03h10m30s119080usUT.qdp
Wrote uvot_fluxes_wtd_181109d03h10m30s119080usUT.gif
Wrote uvot_fluxes_wtd_181109d03h10m30s119080usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem