# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190210d05h56m13s512197usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020867002 -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
# ========= GRB190129B ===================
Could not find/read custom source region custom_020867_src.reg
Used archived opt source position of 117.46175 0.93503 3.00
Reference: GCN_Circ-23829
The position is (07:49:50.82, +00:56:06.1)
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(117.46175,0.935028,3") # color=red dash=0
Source region spec. is: 117.46175 0.935028 3"
Region file centered at (117.46175,0.935028), which is (07:49:50.82, +00:56:06.1)
Could not find/read custom background region custom_020867_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.
Found 1 bright star(s) within 50.0 arcsec of 117.46175 0.935028:
ra: 117.4683 dec: 0.9302 mag: 10.48
Subtract UTCF of -22.32894 from uncorrected trigger time of 570456934 in BAT summary file
# ============ Reading file sw00020867002um2_sk.img ================
Use keyword TRIGTIME of 570456956.33 for trigger time.
Long-term sensitivity correction to zero point is -0.381 at 570631736
The processing date in extension 0 is: 2019-02-10T05:43:00
The trigger time is: 570456956.33. The reference is keyword in image file
Using zero point of 16.469 for filter UVM2
Use aperture correction of 1.106 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(117.46175,0.935028,25")
fk5;-circle(117.46175,0.935028,12.5")
fk5;-circle(117.4683222,0.9302061,25")
 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 m2570631735I  174779.2  1.00  655.0    8.2 112    362  4024 -0.003 0.005 99.00 21.1 -0.0031 0.0049 99.00 21.1   655 -18.248 29.142 99.00 0.011 
   2 m2570637488I  180532.4  1.00 1311.2   21.2 112    813  4028 -0.001 0.004 99.00 21.3 -0.0018 0.0031 99.00 21.6  1966 -11.476 18.610 99.00 0.010 
   3 m2570648955I  191999.6  1.00  654.6   12.9 112    380  4000  0.004 0.006 22.49 20.6 -0.0004 0.0028 99.00 21.6  2621 -3.088 17.006 99.00 0.010 
   4 m2570660362I  203405.9  1.00  707.4   13.1 112    517  4012 -0.002 0.006 99.00 20.9 -0.0008 0.0025 99.00 21.8  3328 -4.805 15.622 99.00 0.009 
   5 m2570666196I  209240.6  1.00  692.9   13.3 104    387  3973  0.005 0.006 22.21 20.6  0.0002 0.0023 25.54 21.8  4021  1.725 14.718 19.70 0.009 
    Sum (T+174779 to 209945):              68.7         67.9 (est. in src region)   SNR_unwtd_sum:   0.10 0.9987 signif. UL:  21.76
  0  4021 570647839  190882.3  19062.3 -16103.1    0.0002   0.0023 25.535 73.465  -2.581
Total wtd_rate (for all exposures so far):  1.725 +/-14.522 snr:  0.1 mag: 19.70 UL: 12.26
Rebinned Data for sw00020867002um2_sk.img using a zero point of 16.469:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.02e+03  190881.7  19062.9 -16102.6    0.0002   0.0023 25.54  2.58  190881.7    0.0002   0.0023 25.54  2.58 21.76
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020867001uw2_sk.img ================
Use keyword TRIGTIME of 570456956.385 for trigger time.
Long-term sensitivity correction to zero point is -0.492 at 570564339
The processing date in extension 0 is:  2019-01-30T21:48:31
The trigger time is: 570456956.385. The reference is keyword in image file
Using zero point of 16.888 for filter UVW2
Use aperture correction of  1.108 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(117.46175,0.935028,25")
fk5;-circle(117.46175,0.935028,12.5")
fk5;-circle(117.4683222,0.9302061,25")
 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 w2570564338I  107382.1  1.00  976.1   40.5 124    992  4036  0.011 0.007 21.74 20.6  0.0114 0.0073 21.74 20.6   976 28.289 18.104 16.66 0.013 
   2 w2570568573I  111617.3  1.00 1963.3   76.5 108   2328  3988  0.008 0.005 22.19 21.0  0.0089 0.0041 22.02 21.1  2939 22.723 10.516 16.90 0.012 
    Sum (T+107382 to 113612):             117.0         93.5 (est. in src region)   SNR_unwtd_sum:   2.15 0.9987 signif. UL:  21.07
  0  2939 570567998  111041.7   2570.3  -3659.6    0.0089   0.0041 22.019  0.679  -0.415
Total wtd_rate (for all exposures so far): 16.587 +/- 8.500 snr:  2.0 mag: 17.24 UL: 12.82
Rebinned Data for sw00020867001uw2_sk.img using a zero point of 16.888:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.94e+03  111041.6   2570.4  -3659.4    0.0089   0.0041 22.02  0.41  111041.6    0.0089   0.0041 22.02  0.41 21.07
The data range from T+107382.1 s (1.24 d) to T+209944.6 s (2.43 d)
Wrote uvot_fluxes_190210d05h56m13s512197usUT.qdp
Wrote uvot_fluxes_190210d05h56m13s512197usUT.gif
Wrote uvot_fluxes_190210d05h56m13s512197usUT.ps
Wrote uvot_fluxes_190210d05h56m13s512197usUT_vis.qdp
Wrote uvot_fluxes_190210d05h56m13s512197usUT_uv.qdp
Wrote uvot_fluxes_190210d05h56m13s512197usUT_uv.gif
Wrote uvot_fluxes_190210d05h56m13s512197usUT_uv.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem