# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190622d20h41m19s075218usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020896002 -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
# ========= unknown GRB ===================
Could not find/read custom source region custom_020896_src.reg
Used archived BAT position of 46.24400 -7.66100
Reference: GCN_FOM_Notice_Thu_13_Jun_19_20:25:06_UT
The position is (03:04:58.56, -07:39:39.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(46.244,-7.661,3") # color=red dash=0
Source region spec. is: 46.244 -7.661 3"
Region file centered at (46.244,-7.661), which is (03:04:58.56, -07:39:39.6)
Could not find/read custom background region custom_020896_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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -23.05798 from uncorrected trigger time of 581858865.71 in BAT summary file
# ============ Reading file sw00020896002uvv_sk.img ================
Use keyword TRIGTIME of 581858888.054 for trigger time.
Long-term sensitivity correction to zero point is -0.268 at 582823653
The processing date in extension 0 is: 2019-06-22T20:19:41
The trigger time is: 581858888.054. The reference is keyword in image file
Using zero point of 17.622 for filter V
Use aperture correction of 1.087 based on aperture of 3.00
Using background region based on sources found in extension 25:
# 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(46.244,-7.661,25")
fk5;-circle(46.244,-7.661,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 vv582823652I  964764.6  0.99   45.0   37.8 112   2004  5848  0.000 0.153 99.00 17.9  0.0000 0.1533 99.00 17.9    45  0.000 1726.370 99.00 0.000 
   2 vv582823701I  964813.0  0.98  454.5  400.0 112  20811  5852  0.000 0.049 99.00 19.1  0.0000 0.0466 99.00 19.2   500  0.000 525.369 99.00 0.000 
   3 vv582824166I  965278.3  0.98   53.7   53.2 116   2876  5868  0.000 0.157 99.00 17.9  0.0000 0.0448 99.00 19.2   553  0.000 503.658 99.00 0.000 
   4 vv582858294I  999406.9  0.99   47.0   36.6 116   1976  5840  0.000 0.148 99.00 17.9  0.0000 0.0429 99.00 19.3   600  0.000 483.627 99.00 0.000 
   5 vv582858345I  999457.3  0.98  477.1  462.6 116  22622  5872  0.000 0.049 99.00 19.1  0.0000 0.0324 99.00 19.6  1077  0.000 370.632 99.00 0.000 
   6 vv582858833I  999945.8  0.98   66.0   79.0 116   3653  5872  0.000 0.144 99.00 18.0  0.0000 0.0316 99.00 19.6  1143  0.000 361.933 99.00 0.000 
   7 vv582864358I 1005470.4  0.98   86.4   83.3 116   4366  5836  0.000 0.120 99.00 18.2  0.0000 0.0306 99.00 19.6  1230  0.000 350.626 99.00 0.000 
   8 vv582864448I 1005560.9  0.98  504.0  584.6 108  31571  5824  0.000 0.054 99.00 19.0  0.0000 0.0267 99.00 19.8  1734  0.000 306.559 99.00 0.000 
   9 vv582869636I 1010748.5  0.99   86.4   68.0 108   3595  5824  0.000 0.105 99.00 18.3  0.0000 0.0260 99.00 19.8  1820  0.000 297.611 99.00 0.000 
  10 vv582869727I 1010839.0  0.98  870.8  843.2 112  46070  5820  0.000 0.038 99.00 19.4  0.0000 0.0215 99.00 20.0  2691  0.000 248.416 99.00 0.000 
  11 vv582870616I 1011728.8  0.97  102.6  170.0 116   8768  5876  0.000 0.145 99.00 18.0  0.0000 0.0214 99.00 20.0  2794  0.000 245.843 99.00 0.000 
  12 vv582875336I 1016448.2  0.99   76.6   59.8 112   3140  5872  0.000 0.112 99.00 18.2  0.0000 0.0210 99.00 20.1  2870  0.000 241.770 99.00 0.000 
  13 vv582875416I 1016528.5  0.98  772.5  778.7 112  39499  5828  0.000 0.040 99.00 19.4  0.0000 0.0186 99.00 20.2  3643  0.000 215.264 99.00 0.000 
  14 vv582876205I 1017317.6  0.97   93.7  122.8 112   7150  5864  0.000 0.140 99.00 18.0  0.0000 0.0184 99.00 20.2  3736  0.000 213.495 99.00 0.000 
  15 vv582881096I 1022208.0  0.99   71.6   62.5 112   2950  5844  0.000 0.117 99.00 18.2  0.0000 0.0182 99.00 20.2  3808  0.000 211.037 99.00 0.000 
  16 vv582881171I 1022283.4  0.98  723.2  673.2 104  35411  5804  0.000 0.039 99.00 19.4  0.0000 0.0165 99.00 20.3  4531  0.000 192.072 99.00 0.000 
  17 vv582881910I 1023022.8  0.97   88.7  137.3 116   7150  5840  0.000 0.151 99.00 17.9  0.0000 0.0165 99.00 20.3  4620  0.000 190.999 99.00 0.000 
  18 vv582886545I 1027657.6  0.99   86.4   68.1 104   3508  5832  0.000 0.102 99.00 18.3  0.0000 0.0163 99.00 20.3  4706  0.000 188.705 99.00 0.000 
  19 vv582886636I 1027748.3  0.98  862.9  775.5 116  39310  5876  0.000 0.036 99.00 19.5  0.0000 0.0148 99.00 20.4  5569  0.000 172.931 99.00 0.000 
  20 vv582887517I 1028629.3  0.98   62.5   68.9 116   3714  5832  0.000 0.154 99.00 17.9  0.0000 0.0148 99.00 20.4  5632  0.000 172.180 99.00 0.000 
  21 vv582892452I 1033564.4  0.99  101.2   71.2 116   4210  5828  0.000 0.101 99.00 18.3  0.0000 0.0146 99.00 20.4  5733  0.000 170.476 99.00 0.000 
  22 vv582892558I 1033670.0  0.98 1018.4 1159.5 120  56702  5876  0.000 0.037 99.00 19.4  0.0000 0.0136 99.00 20.5  6751  0.000 159.486 99.00 0.000 
  23 vv582893597I 1034709.9  0.97   42.3   74.2 112   3569  5824  0.000 0.221 99.00 17.5  0.0000 0.0136 99.00 20.5  6794  0.000 159.202 99.00 0.000 
  24 vv582897946I 1039058.5  0.98  117.9  102.9 116   5676  5868  0.000 0.100 99.00 18.4  0.0000 0.0135 99.00 20.5  6912  0.000 157.855 99.00 0.000 
  25 vv582898069I 1039181.4  0.98 1181.8 1514.1 128  67938  5876  0.000 0.036 99.00 19.5  0.0000 0.0127 99.00 20.6  8093  0.000 148.685 99.00 0.000 
  26 vv582899275I 1040387.3  0.97  123.6  241.3 116  12488  5868  0.000 0.144 99.00 18.0  0.0000 0.0127 99.00 20.6  8217  0.000 148.154 99.00 0.000 
  27 vv582904016I 1045128.3  0.99   76.5   59.1 112   3211  5840  0.000 0.114 99.00 18.2  0.0000 0.0126 99.00 20.6  8294  0.000 147.322 99.00 0.000 
  28 vv582904098I 1045210.0  0.98  772.4  620.0 104  37504  5848  0.000 0.037 99.00 19.4  0.0000 0.0120 99.00 20.7  9066  0.000 140.155 99.00 0.000 
  29 vv582904887I 1045999.0  0.98   92.5  119.6 112   5829  5820  0.000 0.128 99.00 18.1  0.0000 0.0119 99.00 20.7  9158  0.000 139.598 99.00 0.000 
    Sum (T+964765 to 1046093):            9541.6       9541.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.66
  0  9158 582880683 1021795.2  24297.8 -57030.6    0.0000   0.0119 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-138.263 snr:  0.0 mag: 99.00 UL: 10.50
Rebinned Data for sw00020896002uvv_sk.img using a zero point of 17.622:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0    9e+03 1021786.6  24306.4 -57021.9    0.0000   0.0119 99.00 99.00 1021786.6    0.0000   0.0119 99.00 99.00 21.16
The data range from T+964764.6 s (11.17 d) to T+1046093.0 s (12.11 d)
Wrote uvot_fluxes_190622d20h41m19s075218usUT.qdp
Wrote uvot_fluxes_190622d20h41m19s075218usUT.gif
Wrote uvot_fluxes_190622d20h41m19s075218usUT.ps
Wrote uvot_fluxes_190622d20h41m19s075218usUT_vis.qdp
Wrote uvot_fluxes_190622d20h41m19s075218usUT_uv.qdp
Wrote uvot_fluxes_190622d20h41m19s075218usUT_vis.gif
Wrote uvot_fluxes_190622d20h41m19s075218usUT_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 4.39e-06 1020233.7  25859.3 -55469.0    0.0000   0.1368 99.00 99.00 1020233.7    0.0000   0.1368 99.00 99.00 21.18
The data range from T+964764.6 s (11.17 d) to T+1046093.0 s (12.11 d)
Wrote uvot_fluxes_wtd_190622d20h41m19s075218usUT.qdp
Wrote uvot_fluxes_wtd_190622d20h41m19s075218usUT.gif
Wrote uvot_fluxes_wtd_190622d20h41m19s075218usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem