# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200331d14h39m47s683341usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020978002 -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
# ========= GRB200325B ===================
Could not find/read custom source region custom_020978_src.reg
Used archived opt source position of 167.55213 27.82022 3.00
Reference: GCN_Circ-27446
The position is (11:10:12.51, +27:49:12.8)
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(167.55213,27.82022,3") # color=red dash=0
Source region spec. is: 167.55213 27.82022 3"
Region file centered at (167.55213,27.82022), which is (11:10:12.51, +27:49:12.8)
Could not find/read custom background region custom_020978_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 -24.6536 from uncorrected trigger time of 606840796 in BAT summary file
# ============ Reading file sw00020978002uwh_sk.img ================
Use keyword TRIGTIME of 606840820.686 for trigger time.
Long-term sensitivity correction to zero point is -0.223 at 607327610
The processing date in extension 0 is: 2020-03-31T14:28:39
The trigger time is: 606840820.686. The reference is keyword in image file
Using zero point of 20.067 for filter WHITE
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(167.55213,27.82022,25")
fk5;-circle(167.55213,27.82022,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 wh607327609I  486789.2  0.97  128.7  221.3 108  10734  5818  0.195 0.133 21.84 20.6  0.1951 0.1328 21.84 20.6   129 116.612 79.371 15.12 0.001 
   2 wh607327743I  486922.8  0.97 1292.1 2213.9 120 108589  5880 -0.002 0.042 99.00 22.3  0.0159 0.0399 24.56 22.2  1421 10.569 23.924 17.73 0.001 
   3 wh607329061I  488241.2  0.97  117.2  177.5 112   9752  5832 -0.095 0.131 99.00 21.2  0.0074 0.0382 25.39 22.3  1538  5.114 22.882 18.52 0.001 
   4 wh607338929I  498109.2  0.97  114.9  176.3 104   9599  5838  0.053 0.133 23.25 20.9  0.0106 0.0367 25.00 22.3  1653  7.166 22.026 18.15 0.001 
   5 wh607339049I  498229.0  0.97 1148.4 1908.0 116  96873  5864 -0.008 0.044 99.00 22.2  0.0029 0.0281 26.42 22.6  2801  2.272 17.008 19.40 0.001 
   6 wh607340221I  499401.0  0.97  117.4  163.6 112   9900  5813 -0.263 0.125 99.00 21.6 -0.0078 0.0275 99.00 22.8  2919 -4.319 16.614 99.00 0.001 
   7 wh607345753I  504932.4  0.97   47.0   74.5 112   3924  5821 -0.024 0.211 99.00 20.5 -0.0081 0.0272 99.00 22.8  2966 -4.482 16.481 99.00 0.001 
   8 wh607345803I  504982.8  0.97  475.2  767.6 116  39552  5873 -0.033 0.067 99.00 21.9 -0.0114 0.0252 99.00 22.9  3441 -6.583 15.323 99.00 0.001 
   9 wh607346289I  505469.2  0.97   50.3   94.7 112   4079  5846  0.376 0.223 21.13 20.0 -0.0059 0.0251 99.00 22.9  3491 -3.057 15.234 99.00 0.001 
    Sum (T+486789 to 505520):            5797.5       5815.5 (est. in src region)   SNR_unwtd_sum:  -0.23 0.9987 signif. UL:  22.86
  0  3491 607335734  494913.5  10606.7  -8124.3   -0.0059   0.0251 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -3.057 +/-15.085 snr: -0.2 mag: 99.00 UL: 15.90
Rebinned Data for sw00020978002uwh_sk.img using a zero point of 20.067:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  3.4e+03  494913.8  10606.5  -8124.6   -0.0059   0.0251 99.00 99.00  494913.8   -0.0059   0.0251 99.00 99.00 22.86
The data range from T+486789.2 s (5.63 d) to T+505520.3 s (5.85 d)
Wrote uvot_fluxes_200331d14h39m47s683341usUT.qdp
Wrote uvot_fluxes_200331d14h39m47s683341usUT.gif
Wrote uvot_fluxes_200331d14h39m47s683341usUT.ps
Wrote uvot_fluxes_200331d14h39m47s683341usUT_vis.qdp
Wrote uvot_fluxes_200331d14h39m47s683341usUT_uv.qdp
Wrote uvot_fluxes_200331d14h39m47s683341usUT_vis.gif
Wrote uvot_fluxes_200331d14h39m47s683341usUT_vis.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.00352  494862.4  10657.8  -8073.2   -0.0105   0.0308 99.00 99.00  494862.4   -0.0105   0.0308 99.00 99.00 22.89
The data range from T+486789.2 s (5.63 d) to T+505520.3 s (5.85 d)
Wrote uvot_fluxes_wtd_200331d14h39m47s683341usUT.qdp
Wrote uvot_fluxes_wtd_200331d14h39m47s683341usUT.gif
Wrote uvot_fluxes_wtd_200331d14h39m47s683341usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem