# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180714d12h10m09s116106usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020799001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB180703 ===================
Could not find/read custom source region custom_020799_src.reg
Used archived opt source position of 6.46812 -67.17872 3.00
Reference: GCN_Circulars-22892
The position is (00:25:52.35, -67:10:43.4)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(6.46812,-67.17872,3") # color=red dash=0
Source region spec. is: 6.46812 -67.17872 3"
Region file centered at (6.46812,-67.17872), which is (00:25:52.35, -67:10:43.4)
Could not find/read custom background region custom_020799_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.21556 from uncorrected trigger time of 552344500.5 in BAT summary file
# ============ Reading file sw00020799001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.142 at 552361853
The processing date in extension 0 is: 2018-07-14T11:57:38
The trigger time is: 552344521.71556. The reference is BAT GRB summary file
Using zero point of 18.968 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(6.46812,-67.17872,25")
fk5;-circle(6.46812,-67.17872,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 bb552361852I   17330.9  0.99   24.4   18.0 120   1082  5868 -0.187 0.198 99.00 19.7 -0.1874 0.1978 99.00 19.7    24 -10.986 11.596 99.00 0.019 
   2 bb552373339I   28817.5  0.98   22.4   18.7 116   1156  5866 -0.211 0.219 99.00 19.6 -0.1988 0.1472 99.00 20.1    47 -13.169 10.193 99.00 0.014 
    Sum (T+ 17331 to  28840):              36.7         45.0 (est. in src region)   SNR_unwtd_sum:  -1.35 0.9987 signif. UL:  20.13
  0    47 552367365   22843.6   5996.7  -5512.7   -0.1988   0.1472 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -13.169 +/-10.068 snr: -1.3 mag: 99.00 UL: 15.53
Rebinned Data for sw00020799001ubb_sk.img using a zero point of 18.968:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     46.2   22835.5   6004.8  -5504.6   -0.1988   0.1472 99.00 99.00   22835.5   -0.1988   0.1472 99.00 99.00 20.13
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020799001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.154 at 552361823
The processing date in extension 0 is:  2018-07-14T11:57:38
The trigger time is: 552344521.71556. The reference is BAT GRB summary file
Using zero point of 18.186 for filter U
Use aperture correction of  1.100 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(6.46812,-67.17872,25")
fk5;-circle(6.46812,-67.17872,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 uu552361823I   17301.7  0.99   24.4   11.9 104    665  5813 -0.001 0.158 99.00 18.9 -0.0009 0.1583 99.00 18.9    24 -0.107 19.024 99.00 0.017 
Low  bkg:   2 uu552367106I   69.6    592  5864  1.450  0.060
   2 uu552367106I   22585.0  1.00   69.6   14.3 104    592  5867  0.060 0.060 21.24 19.7  0.0444 0.0606 21.57 19.8    94  7.980  8.528 18.04 0.029 
   3 uu552373311I   28789.6  0.99   22.4   13.4 108    575  5819  0.134 0.182 20.37 18.6  0.0617 0.0602 21.21 19.7   116  8.923  8.304 17.91 0.023 
    Sum (T+ 17302 to  28812):              39.6         33.1 (est. in src region)   SNR_unwtd_sum:   1.02 0.9987 signif. UL:  19.71
  0   116 552367221   22699.2   6113.2  -5397.5    0.0617   0.0602 21.211  4.044  -0.739
Total wtd_rate (for all exposures so far):  2.349 +/- 6.509 snr:  0.4 mag: 19.36 UL: 14.79
Rebinned Data for sw00020799001uuu_sk.img using a zero point of 18.186:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      116   22699.6   6112.8  -5397.9    0.0617   0.0602 21.21  0.74   22699.6    0.0617   0.0602 21.21  0.74 19.71
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020799001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.363 at 552361769
The processing date in extension 0 is:  2018-07-14T11:57:38
The trigger time is: 552344521.71556. The reference is BAT GRB summary file
Using zero point of 17.077 for filter UVW1
Use aperture correction of  1.123 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(6.46812,-67.17872,25")
fk5;-circle(6.46812,-67.17872,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 w1552361769I   17247.6  1.00   49.0    5.5 104    260  5825  0.019 0.054 21.39 18.9  0.0188 0.0541 21.39 18.9    49  6.245 18.009 18.30 0.032 
Low  bkg:   2 w1552366960I  139.5    243  5880  0.296  0.019
   2 w1552366960I   22438.8  1.00  139.5    3.5 116    243  5879 -0.010 0.015 99.00 20.5 -0.0026 0.0181 99.00 20.2   189 -2.483  6.342 99.00 0.050 
   3 w1552373261I   28739.6  1.00   45.0    2.1 108    108  5819  0.003 0.037 23.51 19.4 -0.0016 0.0162 99.00 20.3   234 -2.043  6.073 99.00 0.048 
    Sum (T+ 17248 to  28785):              11.1         11.4 (est. in src region)   SNR_unwtd_sum:  -0.10 0.9987 signif. UL:  20.31
  0   234 552367139   22617.1   6168.3  -5369.5   -0.0016   0.0162 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.304 +/- 4.512 snr:  0.1 mag: 21.58 UL: 14.16
Rebinned Data for sw00020799001uw1_sk.img using a zero point of 17.077:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      233   22618.7   6166.7  -5371.1   -0.0016   0.0162 99.00 99.00   22618.7   -0.0016   0.0162 99.00 99.00 20.31
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020799001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.441 at 552361884
The processing date in extension 0 is:  2018-07-14T11:57:38
The trigger time is: 552344521.71556. The reference is BAT GRB summary file
Using zero point of 16.939 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(6.46812,-67.17872,25")
fk5;-circle(6.46812,-67.17872,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 w2552361884I   17362.7  1.00   48.9    1.0 104    106  5794 -0.021 0.023 99.00 20.0 -0.0206 0.0230 99.00 20.0    49 -7.857  8.775 99.00 0.067 
   2 w2552373367I   28845.9  1.00   48.2    4.4 108     99  5821  0.059 0.048 20.02 18.7  0.0187 0.0266 21.26 19.4    97  4.197 10.416 18.73 0.055 
    Sum (T+ 17363 to  28895):               5.4          3.7 (est. in src region)   SNR_unwtd_sum:   0.70 0.9987 signif. UL:  19.43
  0    97 552367608   23086.6   5808.3  -5723.9    0.0187   0.0266 21.260 77.740  -0.962
Total wtd_rate (for all exposures so far):  0.918 +/- 4.087 snr:  0.2 mag: 20.38 UL: 14.08
Rebinned Data for sw00020799001uw2_sk.img using a zero point of 16.939:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     97.1   23085.6   5809.3  -5722.9    0.0187   0.0266 21.26  0.96   23085.6    0.0187   0.0266 21.26  0.96 19.43
The data range from T+17247.6 s (0.20 d) to T+28894.9 s (0.33 d)
Wrote uvot_fluxes_180714d12h10m09s116106usUT.qdp
Wrote uvot_fluxes_180714d12h10m09s116106usUT.gif
Wrote uvot_fluxes_180714d12h10m09s116106usUT.ps
Wrote uvot_fluxes_180714d12h10m09s116106usUT_vis.qdp
Wrote uvot_fluxes_180714d12h10m09s116106usUT_uv.qdp
Wrote uvot_fluxes_180714d12h10m09s116106usUT_vis.gif
Wrote uvot_fluxes_180714d12h10m09s116106usUT_vis.ps
Wrote uvot_fluxes_180714d12h10m09s116106usUT_uv.gif
Wrote uvot_fluxes_180714d12h10m09s116106usUT_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  0.00496   20800.0   8040.3  -3498.3   -0.1885   0.3282 99.00 99.00   20800.0   -0.1885   0.3282 99.00 99.00 20.38
The data range from T+17247.6 s (0.20 d) to T+28894.9 s (0.33 d)
Wrote uvot_fluxes_wtd_180714d12h10m09s116106usUT.qdp
Wrote uvot_fluxes_wtd_180714d12h10m09s116106usUT.gif
Wrote uvot_fluxes_wtd_180714d12h10m09s116106usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem