# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190930d03h49m15s682581usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020948001 -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
# ========= GRB190919B ===================
Could not find/read custom source region custom_020948_src.reg
Used archived opt source position of 311.87765 -44.69533 3.00
Reference: GCN_Circ-24687
The position is (20:47:30.64, -44:41:43.2)
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(311.87765,-44.69533,3") # color=red dash=0
Source region spec. is: 311.87765 -44.69533 3"
Region file centered at (311.87765,-44.69533), which is (20:47:30.64, -44:41:43.2)
Could not find/read custom background region custom_020948_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 -23.6194 from uncorrected trigger time of 590629580 in BAT summary file
# ============ Reading file sw00020948001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.274 at 590659861
The processing date in extension 0 is: 2019-09-30T03:37:02
The trigger time is: 590629603.6194. The reference is BAT GRB summary file
Using zero point of 17.616 for filter V
Use aperture correction of 1.087 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(311.87765,-44.69533,25")
fk5;-circle(311.87765,-44.69533,12.5")
fk5;-circle(311.887660,-44.691703,6")
fk5;-circle(311.872033,-44.690748,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 vv590659861I   30257.7  0.99  205.5   83.7 108   4122  5440  0.010 0.049 22.61 19.6  0.0101 0.0492 22.61 19.6   205  3.591 17.545 18.90 0.007 
   2 vv590666023I   36420.3  0.99   19.1    6.2 104    372  5454 -0.051 0.144 99.00 18.5  0.0049 0.0467 23.40 19.6   225  1.939 16.888 19.57 0.007 
    Sum (T+ 30258 to  36440):              89.9         88.9 (est. in src region)   SNR_unwtd_sum:   0.10 0.9987 signif. UL:  19.65
  0   225 590660482   30877.9   5561.8   -620.2    0.0049   0.0467 23.400 75.600  -2.564
Total wtd_rate (for all exposures so far):  1.939 +/-16.725 snr:  0.1 mag: 19.57 UL: 13.26
Rebinned Data for sw00020948001uvv_sk.img using a zero point of 17.616:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      223   30878.3   5561.4   -620.6    0.0049   0.0467 23.40  2.56   30878.3    0.0049   0.0467 23.40  2.56 19.65
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00020948001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.156 at 590658805
The processing date in extension 0 is:  2019-09-30T03:37:02
The trigger time is: 590629603.6194. The reference is BAT GRB summary file
Using zero point of 18.954 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(311.87765,-44.69533,25")
fk5;-circle(311.87765,-44.69533,12.5")
fk5;-circle(311.887651,-44.691689,6")
fk5;-circle(311.872061,-44.690742,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 bb590658804I   29201.3  0.99  205.5  168.6 104   6830  5419  0.204 0.071 20.68 19.9  0.2044 0.0714 20.68 19.9   205 20.504  7.159 17.01 0.015 
   2 bb590665528I   35925.2  0.99   95.2   59.9 108   3097  5403 -0.024 0.092 99.00 20.3  0.1321 0.0568 21.15 20.2   301 15.065  6.094 17.34 0.014 
    Sum (T+ 29201 to  36022):             228.4        193.0 (est. in src region)   SNR_unwtd_sum:   2.33 0.9987 signif. UL:  20.25
  0   301 590661021   31417.5   4604.5  -2216.2    0.1321   0.0568 21.152  0.610  -0.389
Total wtd_rate (for all exposures so far): 13.818 +/- 5.705 snr:  2.4 mag: 17.44 UL: 15.22
Rebinned Data for sw00020948001ubb_sk.img using a zero point of 18.954:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      297   31417.9   4604.1  -2216.6    0.1321   0.0568 21.15  0.39   31417.9    0.1321   0.0568 21.15  0.39 20.25
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020948001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.169 at 590658591
The processing date in extension 0 is:  2019-09-30T03:37:01
The trigger time is: 590629603.6194. The reference is BAT GRB summary file
Using zero point of 18.171 for filter U
Use aperture correction of  1.100 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(311.87765,-44.69533,25")
fk5;-circle(311.87765,-44.69533,12.5")
fk5;-circle(311.887592,-44.691689,6")
fk5;-circle(311.872089,-44.690758,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 uu590658590I   28987.0  1.00  205.5   58.5 112   2812  5426  0.002 0.042 24.84 20.3  0.0021 0.0415 24.84 20.3   205  0.440  8.502 21.18 0.017 
   2 uu590665426I   35823.1  1.00   95.3   21.6 112   1319  5432 -0.064 0.055 99.00 20.4 -0.0189 0.0332 99.00 20.7   301 -3.436  7.272 99.00 0.016 
    Sum (T+ 28987 to  35920):              80.1         85.3 (est. in src region)   SNR_unwtd_sum:  -0.57 0.9987 signif. UL:  20.75
  0   301 590660843   31238.9   4680.9  -2252.0   -0.0189   0.0332 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  8.018 +/- 4.474 snr:  1.8 mag: 18.03 UL: 14.84
Rebinned Data for sw00020948001uuu_sk.img using a zero point of 18.171:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      299   31239.4   4680.5  -2252.4   -0.0189   0.0332 99.00 99.00   31239.4   -0.0189   0.0332 99.00 99.00 20.75
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020948001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.452 at 590658168
The processing date in extension 0 is:  2019-09-30T03:37:01
The trigger time is: 590629603.6194. The reference is BAT GRB summary file
Using zero point of 16.988 for filter UVW1
Use aperture correction of  1.123 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(311.87765,-44.69533,25")
fk5;-circle(311.87765,-44.69533,12.5")
fk5;-circle(311.887492,-44.691711,6")
fk5;-circle(311.871953,-44.690813,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 w1590658167I   28564.4  1.00  411.2   18.5 108   1235  5408 -0.017 0.012 99.00 20.9 -0.0169 0.0119 99.00 20.9   411 -10.156  7.178 99.00 0.028 
   2 w1590665228I   35624.8  1.00  190.7   11.9 116    442  5457  0.015 0.021 21.56 19.8 -0.0068 0.0104 99.00 20.8   602 -4.457  6.673 99.00 0.027 
    Sum (T+ 28564 to  35819):              30.4         34.1 (est. in src region)   SNR_unwtd_sum:  -0.65 0.9987 signif. UL:  20.84
  0   602 590660578   30974.8   4843.8  -2410.4   -0.0068   0.0104 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  4.691 +/- 3.776 snr:  1.2 mag: 18.61 UL: 13.96
Rebinned Data for sw00020948001uw1_sk.img using a zero point of 16.988:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      601   30974.8   4843.7  -2410.4   -0.0068   0.0104 99.00 99.00   30974.8   -0.0068   0.0104 99.00 99.00 20.84
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020948001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.422 at 590660074
The processing date in extension 0 is:  2019-09-30T03:37:02
The trigger time is: 590629603.6194. The reference is BAT GRB summary file
Using zero point of 16.428 for filter UVM2
Use aperture correction of  1.106 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(311.87765,-44.69533,25")
fk5;-circle(311.87765,-44.69533,12.5")
fk5;-circle(311.887552,-44.691662,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 m2590660074I   30470.9  1.00  262.2    3.7 104    209  5800 -0.000 0.008 99.00 20.4 -0.0004 0.0081 99.00 20.4   262 -0.436  8.739 99.00 0.065 
    Sum (T+ 30471 to  30737):               3.7          3.8 (est. in src region)   SNR_unwtd_sum:  -0.05 0.9987 signif. UL:  20.40
  0   262 590660208   30604.1    133.2   -133.2   -0.0004   0.0081 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  3.881 +/- 3.417 snr:  1.1 mag: 18.82 UL: 13.54
Rebinned Data for sw00020948001um2_sk.img using a zero point of 16.428:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      262   30604.1    133.2   -133.2   -0.0004   0.0081 99.00 99.00   30604.1   -0.0004   0.0081 99.00 99.00 20.40
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020948001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.553 at 590659020
The processing date in extension 0 is:  2019-09-30T03:37:02
The trigger time is: 590629603.6194. The reference is BAT GRB summary file
Using zero point of 16.827 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(311.87765,-44.69533,25")
fk5;-circle(311.87765,-44.69533,12.5")
fk5;-circle(311.887628,-44.691702,6")
fk5;-circle(311.872116,-44.690849,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 w2590659019I   29416.1  1.00  822.6   20.9 116    874  5412  0.003 0.006 23.17 21.0  0.0029 0.0062 23.17 21.0   823  2.105  4.502 19.48 0.061 
   2 w2590665631I   36027.8  1.00  381.7    2.4 108    393  5403 -0.016 0.005 99.00 22.2 -0.0030 0.0045 99.00 21.6  1204 -2.032  3.503 99.00 0.059 
    Sum (T+ 29416 to  36416):              23.3         26.6 (est. in src region)   SNR_unwtd_sum:  -0.67 0.9987 signif. UL:  21.60
  0  1204 590661462   31858.4   4557.2  -2442.3   -0.0030   0.0045 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  1.166 +/- 2.440 snr:  0.5 mag: 20.12 UL: 14.47
Rebinned Data for sw00020948001uw2_sk.img using a zero point of 16.827:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.2e+03   31858.6   4556.9  -2442.6   -0.0030   0.0045 99.00 99.00   31858.6   -0.0030   0.0045 99.00 99.00 21.60
The data range from T+28564.4 s (0.33 d) to T+36439.7 s (0.42 d)
Wrote uvot_fluxes_190930d03h49m15s682581usUT.qdp
Wrote uvot_fluxes_190930d03h49m15s682581usUT.gif
Wrote uvot_fluxes_190930d03h49m15s682581usUT.ps
Wrote uvot_fluxes_190930d03h49m15s682581usUT_vis.qdp
Wrote uvot_fluxes_190930d03h49m15s682581usUT_uv.qdp
Wrote uvot_fluxes_190930d03h49m15s682581usUT_vis.gif
Wrote uvot_fluxes_190930d03h49m15s682581usUT_vis.ps
Wrote uvot_fluxes_190930d03h49m15s682581usUT_uv.gif
Wrote uvot_fluxes_190930d03h49m15s682581usUT_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.011   31136.0   5303.7  -2149.1    0.2906   0.1530 21.63  0.46   31136.0    0.2906   0.1530 21.63  0.46 20.60
The data range from T+28564.4 s (0.33 d) to T+36439.7 s (0.42 d)
Wrote uvot_fluxes_wtd_190930d03h49m15s682581usUT.qdp
Wrote uvot_fluxes_wtd_190930d03h49m15s682581usUT.gif
Wrote uvot_fluxes_wtd_190930d03h49m15s682581usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem