# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190124d14h08m40s652284usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00885456992 -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
# ========= GRB190124 ===================
Could not find/read custom source region custom_885456_src.reg
Used archived XRT position of 247.80920 -47.80660 4.00
Reference: GCN_Notice_Thu_24_Jan_19_03:19:48_UT-ground
The position is (16:31:14.21, -47:48:23.8)
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.8092,-47.8066,4") # color=red dash=0
Source region spec. is: 247.8092 -47.8066 4"
Region file centered at (247.8092,-47.8066), which is (16:31:14.21, -47:48:23.8)
Could not find/read custom background region custom_885456_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.2855 from uncorrected trigger time of 569992641.69 in BAT summary file
# ============ Reading file sw00885456992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.204 at 569992784
The processing date in extension 0 is: 2019-01-24T13:58:46
The trigger time is: 569992663.9755. 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.8092,-47.8066,25")
fk5;-circle(247.8092,-47.8066,12.5")
fk5;-circle(247.805433,-47.801328,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 wh569992784I     120.4  0.91  116.3 1088.6 198  30246  5438 -0.123 0.328 99.00 20.1 -0.1229 0.3276 99.00 20.1   116 -0.029  0.077 99.00 0.409 
   2 wh569992784E     120.4  0.91  114.0 1089.9 198  30200  5437 -0.100 0.335 99.00 20.1 
High bkg:   5 wh569993522I    6.4   2819  5453 81.375  1.533
   5 wh569993522I     858.3  0.85    6.4   88.9 200   2819  5391 -2.977 1.836 99.00 18.6 -0.2618 0.3242 99.00 20.3   123 -0.033  0.077 99.00 0.378 
above line uses coinc_corr_src:  0.855 corr_bkg:  0.845
    Sum (T+   120 to   1010):            1177.5       1205.7 (est. in src region)   SNR_unwtd_sum:  -0.81 0.9987 signif. UL:  20.25
  0   123 569992897     233.5    776.2   -113.1   -0.2618   0.3242 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.033 +/- 0.076 snr: -0.4 mag: 99.00 UL: 21.73
Rebinned Data for sw00885456992uwh_sk.img using a zero point of 20.086:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      106     195.2     74.9    -74.9   -0.1229   0.3276 99.00 99.00     195.2   -0.1229   0.3276 99.00 99.00 20.13
  1     5.43     934.0     75.7    -75.7   -2.9774   1.8362 99.00 99.00     231.2   -0.2618   0.3242 99.00 99.00 20.25
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00885456992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.260 at 569992766
The processing date in extension 0 is:  2019-01-24T13:58:28
The trigger time is: 569992663.9755. 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.8092,-47.8066,25")
fk5;-circle(247.8092,-47.8066,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 vv569992766E     102.3  0.97   10.0   27.0 200    606  5884  0.684 0.558 18.04 16.7 
   2 vv569993273E     609.9  0.97    9.3   28.6 200    774  5856  0.242 0.621 19.17 16.8  0.2420 0.6208 19.17 16.8     9  1.738  4.458 19.69 0.047 
High bkg:   3 vv569993447E    6.7    756  5836 19.295  0.702
   3 vv569993447E     783.1  0.96    6.7   22.4 199    756  5840 -0.536 0.769 99.00 16.8 -0.0833 0.4836 99.00 17.2    16  0.106  3.781 22.73 0.038 
    Sum (T+   610 to    797):              51.0         52.2 (est. in src region)   SNR_unwtd_sum:  -0.17 0.9987 signif. UL:  17.20
  0    16 569993355     691.4    106.0    -81.4   -0.0833   0.4836 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.033 +/- 0.075 snr: -0.4 mag: 99.00 UL: 19.28
Rebinned Data for sw00885456992uvv_sk.img using a zero point of 17.630:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     15.5     691.1    106.4    -81.1   -0.0833   0.4836 99.00 99.00     691.1   -0.0833   0.4836 99.00 99.00 17.20
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00885456992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.149 at 569993200
The processing date in extension 0 is:  2019-01-24T13:58:43
The trigger time is: 569992663.9755. 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.8092,-47.8066,25")
fk5;-circle(247.8092,-47.8066,12.5")
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00885456992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.161 at 569992944
The processing date in extension 0 is:  2019-01-24T13:58:46
The trigger time is: 569992663.9755. 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.8092,-47.8066,25")
fk5;-circle(247.8092,-47.8066,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 uu569992943I     279.7  0.98  194.6  415.7 196  11949  5839  0.079 0.112 20.93 19.1  0.0794 0.1121 20.93 19.1   195  0.225  0.317 21.91 0.168 
   2 uu569992943E     279.7  0.98  194.5  426.5 203  11973  5842  0.057 0.114 21.29 19.1 
   3 uu569993348E     684.2  0.97   12.7   40.3 200    992  5863  0.543 0.539 18.84 17.3  0.1076 0.1103 20.60 19.1   207  0.265  0.315 21.73 0.161 
    Sum (T+   280 to    704):             456.1        434.9 (est. in src region)   SNR_unwtd_sum:   0.98 0.9987 signif. UL:  19.06
  0   207 569993086     422.4    281.5   -142.8    0.1076   0.1103 20.600 78.400  -0.766
Total wtd_rate (for all exposures so far): -0.015 +/- 0.073 snr: -0.2 mag: 99.00 UL: 19.80
Rebinned Data for sw00885456992uuu_sk.img using a zero point of 18.179:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      191     404.7    125.1   -125.1    0.0794   0.1121 20.93  0.95     404.7    0.0794   0.1121 20.93  0.95 19.11
  1     12.3     694.0      9.9     -9.9    0.5432   0.5391 18.84  0.75     422.3    0.1076   0.1103 20.60  0.77 19.06
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00885456992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.402 at 569993324
The processing date in extension 0 is:  2019-01-24T13:58:44
The trigger time is: 569992663.9755. The reference is BAT GRB summary file
Using zero point of 17.038 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(247.8092,-47.8066,25")
fk5;-circle(247.8092,-47.8066,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 w1569993323E   19.6    268  5844  2.349  0.143
   1 w1569993323E     659.8  1.00   19.6    6.8 200    268  5843 -0.125 0.142 99.00 18.1 -0.1247 0.1422 99.00 18.1    20 -1.670  1.903 99.00 0.158 
High bkg:   2 w1569993496E   19.5    458  5840  4.026  0.188
   2 w1569993496E     832.5  0.99   19.5   13.9 199    458  5841 -0.090 0.204 99.00 17.6 -0.1074 0.1240 99.00 18.3    39 -1.629  1.669 99.00 0.105 
    Sum (T+   660 to    852):              20.8         24.8 (est. in src region)   SNR_unwtd_sum:  -0.87 0.9987 signif. UL:  18.26
  0    39 569993420     755.9     96.4    -96.1   -0.1074   0.1240 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.018 +/- 0.073 snr: -0.2 mag: 99.00 UL: 18.67
Rebinned Data for sw00885456992uw1_sk.img using a zero point of 17.038:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.8     755.7     96.6    -95.9   -0.1074   0.1240 99.00 99.00     755.7   -0.1074   0.1240 99.00 99.00 18.26
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00885456992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.380 at 569993298
The processing date in extension 0 is:  2019-01-24T13:58:44
The trigger time is: 569992663.9755. The reference is BAT GRB summary 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 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(247.8092,-47.8066,25")
fk5;-circle(247.8092,-47.8066,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 m2569993298E   14.3     40  5850  0.478  0.076
   1 m2569993298E     634.4  1.00   14.3    0.0 198     40  5845 -0.098 0.074 99.00 18.4 -0.0976 0.0739 99.00 18.4    14 -2.121  1.607 99.00 0.486 
High bkg:   2 m2569993471E   19.4     58  5856  0.508  0.067
   2 m2569993471E     807.8  1.00   19.4    1.0 195     58  5852 -0.049 0.055 99.00 18.6 -0.0697 0.0322 99.00 19.5    34 -1.779  1.116 99.00 0.415 
    Sum (T+   634 to    828):               1.0          3.3 (est. in src region)   SNR_unwtd_sum:  -2.16 0.9987 signif. UL:  19.48
  0    34 569993408     744.3     83.2   -109.9   -0.0697   0.0322 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.023 +/- 0.073 snr: -0.3 mag: 99.00 UL: 18.12
Rebinned Data for sw00885456992um2_sk.img using a zero point of 16.470:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     33.7     744.3     83.3   -109.9   -0.0697   0.0444 99.00 99.00     744.3   -0.0697   0.0444 99.00 99.00 18.98
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00885456992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.490 at 569993249
The processing date in extension 0 is:  2019-01-24T13:58:44
The trigger time is: 569992663.9755. The reference is BAT GRB summary file
Using zero point of 16.890 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(247.8092,-47.8066,25")
fk5;-circle(247.8092,-47.8066,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 w2569993249E   19.5    129  5843  1.139  0.100
   1 w2569993249E     585.4  1.00   19.5    3.1 200    129  5843 -0.073 0.096 99.00 18.4 -0.0726 0.0956 99.00 18.4    19 -0.990  1.304 99.00 0.321 
High bkg:   2 w2569993422E   14.9    130  5842  1.496  0.131
   2 w2569993422E     758.8  1.00   14.9    7.5 204    130  5850  0.204 0.193 18.62 17.1  0.0470 0.0994 20.21 18.0    34  0.175  1.300 22.18 0.253 
High bkg:   3 w2569993677E   19.5    192  5846  1.688  0.122
   3 w2569993677E    1014.0  1.00   19.5    7.7 200    192  5846  0.058 0.150 19.98 17.6  0.0509 0.0834 20.12 18.2    54  0.346  1.223 21.44 0.199 
    Sum (T+   585 to   1034):              18.2         15.5 (est. in src region)   SNR_unwtd_sum:   0.61 0.9987 signif. UL:  18.16
  0    54 569993462     798.2    235.5   -212.8    0.0509   0.0834 20.123 78.877  -1.054
Total wtd_rate (for all exposures so far): -0.022 +/- 0.073 snr: -0.3 mag: 99.00 UL: 18.54
Rebinned Data for sw00885456992uw2_sk.img using a zero point of 16.890:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     53.6     798.1    235.6   -212.8    0.0509   0.0834 20.12  1.05     798.1    0.0509   0.0834 20.12  1.05 18.16
The data range from T+120.4 s (0.00 d) to T+1033.7 s (0.01 d)
Wrote uvot_fluxes_190124d14h08m40s652284usUT.qdp
Wrote uvot_fluxes_190124d14h08m40s652284usUT.gif
Wrote uvot_fluxes_190124d14h08m40s652284usUT.ps
Wrote uvot_fluxes_190124d14h08m40s652284usUT_vis.qdp
Wrote uvot_fluxes_190124d14h08m40s652284usUT_uv.qdp
Wrote uvot_fluxes_190124d14h08m40s652284usUT_vis.gif
Wrote uvot_fluxes_190124d14h08m40s652284usUT_vis.ps
Wrote uvot_fluxes_190124d14h08m40s652284usUT_uv.gif
Wrote uvot_fluxes_190124d14h08m40s652284usUT_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      139     195.2     74.9    -74.9   -0.1482   0.3951 99.00 99.00     195.2   -0.1482   0.3951 99.00 99.00 20.13
  1     1.45     410.0    387.4   -130.3    0.6287   0.7653 20.79  0.87     197.5   -0.1316   0.3870 99.00 99.00 20.14
  2    0.194     934.0     75.7    -75.7   -3.5915   2.2150 99.00 99.00     198.5   -0.1539   0.3848 99.00 99.00 20.16
The data range from T+120.4 s (0.00 d) to T+1033.7 s (0.01 d)
Wrote uvot_fluxes_wtd_190124d14h08m40s652284usUT.qdp
Wrote uvot_fluxes_wtd_190124d14h08m40s652284usUT.gif
Wrote uvot_fluxes_wtd_190124d14h08m40s652284usUT.ps
Found 9 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem