# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190129d13h33m18s819066usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00886486992 -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
# ========= GRB190129 ===================
Could not find/read custom source region custom_886486_src.reg
Used archived XRT position of 247.80860 -47.80710 4.00
Reference: GCN_Notice_Tue_29_Jan_19_09:30:56_UT-ground
The position is (16:31:14.06, -47:48:25.6)
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.8086,-47.8071,4") # color=red dash=0
Source region spec. is: 247.8086 -47.8071 4"
Region file centered at (247.8086,-47.8071), which is (16:31:14.06, -47:48:25.6)
Could not find/read custom background region custom_886486_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 570446409.67 in BAT summary file
# ============ Reading file sw00886486992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.204 at 570446568
The processing date in extension 0 is: 2019-01-29T13:26:21
The trigger time is: 570446431.99144. 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 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.8086,-47.8071,25")
fk5;-circle(247.8086,-47.8071,12.5")
fk5;-circle(247.805498,-47.801393,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 wh570446567I  147.4  51089  5481 63.242  0.280
   1 wh570446567I     136.0  0.88  147.4 1867.6 201  51089  5483 -0.041 0.352 99.00 20.0 -0.0411 0.3516 99.00 20.0   147 -0.010  0.089 99.00 0.272 
above line uses coinc_corr_src:  0.879 corr_bkg:  0.879
High bkg:   2 wh570446567E  146.7  50920  5485 63.264  0.280
   2 wh570446567E     136.0  0.88  146.7 1825.4 197  50920  5489 -0.016 0.348 99.00 20.0 
above line uses coinc_corr_src:  0.880 corr_bkg:  0.880
    Sum (T+   136 to    286):            1867.6       1872.7 (est. in src region)   SNR_unwtd_sum:  -0.12 0.9987 signif. UL:  19.98
  0   147 570446643     210.9     74.9    -74.9   -0.0411   0.3516 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.010 +/- 0.088 snr: -0.1 mag: 99.00 UL: 21.49
Rebinned Data for sw00886486992uwh_sk.img using a zero point of 20.086:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      129     210.9     74.9    -74.9   -0.0411   0.3516 99.00 99.00     210.9   -0.0411   0.3516 99.00 99.00 19.98
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00886486992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.260 at 570446551
The processing date in extension 0 is:  2019-01-29T13:25:56
The trigger time is: 570446431.99144. 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(247.8086,-47.8071,25")
fk5;-circle(247.8086,-47.8071,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 vv570446551E     119.1  0.97    9.3   31.4 198    852  5847  0.289 0.651 18.98 16.7 
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00886486992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.149 at 570450129
The processing date in extension 0 is:  2019-01-29T13:26:21
The trigger time is: 570446431.99144. The reference is BAT GRB summary 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(247.8086,-47.8071,25")
fk5;-circle(247.8086,-47.8071,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 bb570450129I    3697.2  0.97  125.9  364.1 204  10104  5826  0.087 0.164 21.61 19.5  0.0870 0.1638 21.61 19.5   126  1.113  2.095 20.17 0.027 
    Sum (T+  3697 to   3825):             364.1        353.8 (est. in src region)   SNR_unwtd_sum:   0.53 0.9987 signif. UL:  19.52
  0   126 570450193    3761.2     64.0    -64.0    0.0870   0.1638 21.612 77.388  -1.149
Total wtd_rate (for all exposures so far): -0.008 +/- 0.088 snr: -0.1 mag: 99.00 UL: 20.36
Rebinned Data for sw00886486992ubb_sk.img using a zero point of 18.961:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      123    3761.2     64.0    -64.0    0.0870   0.1638 21.61  1.15    3761.2    0.0870   0.1638 21.61  1.15 19.52
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00886486992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.161 at 570446726
The processing date in extension 0 is:  2019-01-29T13:26:21
The trigger time is: 570446431.99144. The reference is BAT GRB summary 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.8086,-47.8071,25")
fk5;-circle(247.8086,-47.8071,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 uu570446726I  107.8  11548  5845 18.326  0.171
   1 uu570446726I     294.0  0.97  107.8  376.7 200  11548  5843 -0.184 0.196 99.00 18.9 -0.1844 0.1959 99.00 18.9   108 -0.449  0.478 99.00 0.108 
High bkg:   2 uu570446726E  107.8  11587  5846 18.386  0.171
   2 uu570446726E     294.0  0.97  107.8  375.7 199  11587  5843 -0.188 0.196 99.00 18.9 
    Sum (T+   294 to    404):             376.7        395.2 (est. in src region)   SNR_unwtd_sum:  -0.94 0.9987 signif. UL:  18.93
  0   108 570446781     348.8     54.8    -54.8   -0.1844   0.1959 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.023 +/- 0.086 snr: -0.3 mag: 99.00 UL: 19.64
Rebinned Data for sw00886486992uuu_sk.img using a zero point of 18.179:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      104     348.8     54.8    -54.8   -0.1844   0.1959 99.00 99.00     348.8   -0.1844   0.1959 99.00 99.00 18.93
The data range from T+136.0 s (0.00 d) to T+3825.1 s (0.04 d)
Wrote uvot_fluxes_190129d13h33m18s819066usUT.qdp
Wrote uvot_fluxes_190129d13h33m18s819066usUT.gif
Wrote uvot_fluxes_190129d13h33m18s819066usUT.ps
Wrote uvot_fluxes_190129d13h33m18s819066usUT_vis.qdp
Wrote uvot_fluxes_190129d13h33m18s819066usUT_uv.qdp
Wrote uvot_fluxes_190129d13h33m18s819066usUT_vis.gif
Wrote uvot_fluxes_190129d13h33m18s819066usUT_vis.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      104     211.7    191.9    -75.7   -0.0619   0.4202 99.00 99.00     211.7   -0.0619   0.4202 99.00 99.00 20.00
  1    0.067    3761.2     64.0    -64.0    0.2958   0.5571 21.61  1.15     214.0   -0.0579   0.4155 99.00 99.00 20.01
The data range from T+136.0 s (0.00 d) to T+3825.1 s (0.04 d)
Wrote uvot_fluxes_wtd_190129d13h33m18s819066usUT.qdp
Wrote uvot_fluxes_wtd_190129d13h33m18s819066usUT.gif
Wrote uvot_fluxes_wtd_190129d13h33m18s819066usUT.ps
Found 4 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem