# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200719d06h40m34s802875usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021016001 -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/data/khamseenssd/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB200709B ===================
Could not find/read custom source region custom_021016_src.reg
Used archived XRT position of 252.07550 15.09210 4.00
Reference: GCN_Circulars-28072
The position is (16:48:18.12, +15:05:31.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(252.0755,15.0921,4") # color=red dash=0
Source region spec. is: 252.0755 15.0921 4"
Region file centered at (252.0755,15.0921), which is (16:48:18.12, +15:05:31.6)
Could not find/read custom background region custom_021016_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 -25.265 from uncorrected trigger time of 615962621 in BAT summary file
# ============ Reading file sw00021016001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.291 at 616003101
The processing date in extension 0 is: 2020-07-10T04:46:04
The trigger time is: 615962646.265. The reference is BAT GRB summary file
Using zero point of 17.599 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(252.0755,15.0921,25")
fk5;-circle(252.0755,15.0921,12.5")
fk5;-circle(252.073566,15.091450,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 vv616003100I   40454.4  0.99  295.0  248.9 192   4292  5827  0.378 0.056 18.65 18.3  0.3784 0.0560 18.65 18.3   295 183.159 27.125 14.63 0.004 
   2 vv616003404I   40758.0  0.99  154.2  149.7 204   2340  5836  0.458 0.083 18.45 18.0  0.4057 0.0466 18.58 18.3   449 195.798 22.548 14.56 0.004 
    Sum (T+ 40454 to  40915):             398.7        223.2 (est. in src region)   SNR_unwtd_sum:   8.71 0.9987 signif. UL:  18.26
  0   449 616003330   40684.0    230.7   -229.5    0.4057   0.0466 18.579  0.132  -0.118
Total wtd_rate (for all exposures so far): 195.798 +/-22.339 snr:  8.8 mag: 14.56 UL: 11.55
Rebinned Data for sw00021016001uvv_sk.img using a zero point of 17.599:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      445   40683.9    230.8   -229.5    0.4057   0.0466 18.58  0.12   40683.9    0.4057   0.0466 18.58  0.12 18.26
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00021016001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.165 at 616009001
The processing date in extension 0 is:  2020-07-10T04:46:05
The trigger time is: 615962646.265. The reference is BAT GRB summary file
Using zero point of 18.945 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(252.0755,15.0921,25")
fk5;-circle(252.0755,15.0921,12.5")
fk5;-circle(252.073573,15.091458,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 bb616009000I   46354.7  0.98  295.0  475.6 204   7459  5875  0.772 0.078 19.23 18.9  0.7716 0.0784 19.23 18.9   295 123.891 12.591 15.06 0.007 
   2 bb616009304I   46658.2  0.99   16.2   24.1 200    400  5905  0.681 0.321 19.36 18.4  0.7669 0.0762 19.23 18.9   311 123.122 12.233 15.06 0.007 
    Sum (T+ 46355 to  46675):             499.7        272.6 (est. in src region)   SNR_unwtd_sum:  10.07 0.9987 signif. UL:  18.95
  0   311 616009159   46513.0    161.7   -158.3    0.7669   0.0762 19.233  0.113  -0.103
Total wtd_rate (for all exposures so far): 139.380 +/-10.664 snr: 13.1 mag: 14.93 UL: 13.36
Rebinned Data for sw00021016001ubb_sk.img using a zero point of 18.945:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      306   46513.0    161.7   -158.3    0.7669   0.0762 19.23  0.10   46513.0    0.7669   0.0762 19.23  0.10 18.95
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00021016001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.521 at 616014352
The processing date in extension 0 is:  2020-07-10T04:46:05
The trigger time is: 615962646.265. The reference is BAT GRB summary file
Using zero point of 16.919 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(252.0755,15.0921,25")
fk5;-circle(252.0755,15.0921,12.5")
fk5;-circle(252.073566,15.091711,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 w1616014351I   51705.7  1.00  379.3  123.3 196    718  5818  0.271 0.030 18.34 18.0  0.2713 0.0305 18.34 18.0   379 314.032 35.293 14.05 0.014 
    Sum (T+ 51706 to  52091):             123.3         24.2 (est. in src region)   SNR_unwtd_sum:   8.90 0.9987 signif. UL:  18.02
  0   379 616014545   51898.3    192.7   -192.7    0.2713   0.0305 18.335  0.130  -0.115
Total wtd_rate (for all exposures so far): 175.104 +/-11.124 snr: 15.7 mag: 14.68 UL: 11.12
Rebinned Data for sw00021016001uw1_sk.img using a zero point of 16.919:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      378   51898.3    192.7   -192.7    0.2713   0.0305 18.34  0.12   51898.3    0.2713   0.0305 18.34  0.12 18.02
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00021016001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.479 at 616013445
The processing date in extension 0 is:  2020-07-10T04:46:05
The trigger time is: 615962646.265. The reference is BAT GRB summary file
Using zero point of 16.371 for filter UVM2
Use aperture correction of  1.031 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(252.0755,15.0921,25")
fk5;-circle(252.0755,15.0921,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 m2616013445I   50798.8  1.00  885.6  165.5 200    598  5849  0.169 0.015 18.30 18.0  0.1691 0.0150 18.30 18.0   886 320.233 28.467 14.03 0.023 
    Sum (T+ 50799 to  51699):             165.5         20.4 (est. in src region)   SNR_unwtd_sum:  11.25 0.9987 signif. UL:  18.04
  0   886 616013895   51248.7    449.9   -449.9    0.1691   0.0150 18.301  0.101  -0.093
Total wtd_rate (for all exposures so far): 222.678 +/-11.971 snr: 18.6 mag: 14.42 UL: 10.34
Rebinned Data for sw00021016001um2_sk.img using a zero point of 16.371:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      884   51248.7    449.9   -449.9    0.1691   0.0150 18.30  0.09   51248.7    0.1691   0.0150 18.30  0.09 18.04
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00021016001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.640 at 616002193
The processing date in extension 0 is:  2020-07-10T04:46:04
The trigger time is: 615962646.265. The reference is BAT GRB summary file
Using zero point of 16.740 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(252.0755,15.0921,25")
fk5;-circle(252.0755,15.0921,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 w2616002193I   39546.9  1.00  885.6  212.2 208    982  5895  0.208 0.017 18.45 18.2  0.2079 0.0171 18.45 18.2   886 218.647 17.992 14.44 0.024 
    Sum (T+ 39547 to  40447):             212.2         34.7 (est. in src region)   SNR_unwtd_sum:  12.15 0.9987 signif. UL:  18.20
  0   886 616002643   39996.8    449.9   -449.9    0.2079   0.0171 18.446  0.093  -0.086
Total wtd_rate (for all exposures so far): 221.620 +/-10.123 snr: 21.9 mag: 14.43 UL: 10.74
Rebinned Data for sw00021016001uw2_sk.img using a zero point of 16.740:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      884   39996.8    449.9   -449.9    0.2079   0.0171 18.45  0.09   39996.8    0.2079   0.0171 18.45  0.09 18.20
The data range from T+39546.9 s (0.46 d) to T+52091.0 s (0.60 d)
Wrote uvot_fluxes_200719d06h40m34s802875usUT.qdp
Wrote uvot_fluxes_200719d06h40m34s802875usUT.gif
Wrote uvot_fluxes_200719d06h40m34s802875usUT.ps
Wrote uvot_fluxes_200719d06h40m34s802875usUT_vis.qdp
Wrote uvot_fluxes_200719d06h40m34s802875usUT_uv.qdp
Wrote uvot_fluxes_200719d06h40m34s802875usUT_vis.gif
Wrote uvot_fluxes_200719d06h40m34s802875usUT_vis.ps
Wrote uvot_fluxes_200719d06h40m34s802875usUT_uv.gif
Wrote uvot_fluxes_200719d06h40m34s802875usUT_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.000165   40676.1    238.6   -221.6    4.8053   0.5542 18.59  0.12   40676.1    4.8053   0.5542 18.59  0.12 18.26
  1  0.00194   46513.6    161.0   -158.9    2.6465   0.2630 19.23  0.10   46054.9    2.7963   0.2478 19.17  0.09 18.92
The data range from T+39546.9 s (0.46 d) to T+52091.0 s (0.60 d)
Wrote uvot_fluxes_wtd_200719d06h40m34s802875usUT.qdp
Wrote uvot_fluxes_wtd_200719d06h40m34s802875usUT.gif
Wrote uvot_fluxes_wtd_200719d06h40m34s802875usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem