# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190109d11h59m49s587345usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020849002 -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
# ========= GRB181225 ===================
Could not find/read custom source region custom_020849_src.reg
Used archived BAT position of 348.07000 -9.48000
Reference: GCN_Notice_Wed_26_Dec_18_02:29:34_UT
The position is (23:12:16.80, -09:28:48.0)
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(348.070,-9.480,3") # color=red dash=0
Source region spec. is: 348.070 -9.480 3"
Region file centered at (348.070,-9.480), which is (23:12:16.80, -09:28:48.0)
Could not find/read custom background region custom_020849_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 24336.0,
3 sigma should become about 5.4 sigma and 2 sigma should become about 4.9 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999995.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -22.13462 from uncorrected trigger time of 567431052 in BAT summary file
# ============ Reading file sw00020849002uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.203 at 567882056
The processing date in extension 0 is: 2019-01-09T11:37:29
The trigger time is: 567431074.13462. The reference is BAT GRB summary file
Using zero point of 20.087 for filter WHITE
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(348.070,-9.480,25")
fk5;-circle(348.070,-9.480,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 wh567882056I  450982.3  0.93  381.6 1370.3 104  79767  5796  0.000 0.119 99.00 20.6  0.0000 0.1187 99.00 20.6   382  0.000 64.570 99.00 0.000 
   2 wh567887415I  456341.7  0.92  190.7  937.7 112  48694  5872  0.000 0.195 99.00 20.0  0.0000 0.1023 99.00 20.7   572  0.000 55.329 99.00 0.000 
   3 wh567893266I  462192.3  0.92  213.7  977.0 112  49903  5812  0.000 0.176 99.00 20.1  0.0000 0.0885 99.00 20.9   786  0.000 48.156 99.00 0.000 
   4 wh567899036I  467962.5  0.93  259.3 1053.2 104  59968  5820  0.000 0.152 99.00 20.3  0.0000 0.0765 99.00 21.0  1045  0.000 42.011 99.00 0.000 
   5 wh567904813I  473739.3  0.92  299.3 1374.0 112  68552  5868  0.000 0.146 99.00 20.3  0.0000 0.0678 99.00 21.2  1345  0.000 37.533 99.00 0.000 
   6 wh567910511I  479437.6  0.93  255.8 1056.3 104  58856  5796  0.000 0.153 99.00 20.3  0.0000 0.0620 99.00 21.3  1600  0.000 34.560 99.00 0.000 
    Sum (T+450982 to 479784):            6757.8       6757.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999946581197 signif. UL:  21.27
  0  1600 567895940  464865.7  14918.7 -13883.4    0.0000   0.0620 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-34.246 snr:  0.0 mag: 99.00 UL: 14.41
Rebinned Data for sw00020849002uwh_sk.img using a zero point of 20.087:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.48e+03  464849.0  14935.3 -13866.7    0.0000   0.0620 99.00 99.00  464849.0    0.0000   0.0620 99.00 99.00 21.84
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020849002uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.258 at 567882592
The processing date in extension 0 is:  2019-01-09T11:37:29
The trigger time is: 567431074.13462. The reference is BAT GRB summary file
Using zero point of 17.632 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(348.070,-9.480,25")
fk5;-circle(348.070,-9.480,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 vv567882592I  451518.0  0.98  520.4  544.3 108  27553  5820  0.000 0.049 99.00 19.1  0.0000 0.0485 99.00 19.1   520  0.000 253.583 99.00 0.000 
   2 vv567883124I  452050.6  0.98   15.9   15.2 116    892  5876  0.000 0.295 99.00 17.1  0.0000 0.0479 99.00 19.1   536  0.000 250.234 99.00 0.000 
   3 vv567887676I  456602.5  0.98  250.8  270.9 116  13631  5828  0.000 0.073 99.00 18.6  0.0000 0.0402 99.00 19.3   787  0.000 210.307 99.00 0.000 
   4 vv567887934I  456860.3  0.98    6.3   13.9 112    333  5820  0.000 0.448 99.00 16.7  0.0000 0.0400 99.00 19.3   793  0.000 209.481 99.00 0.000 
   5 vv567893547I  462473.1  0.98  269.4  285.6 112  14524  5872  0.000 0.069 99.00 18.7  0.0000 0.0346 99.00 19.4  1063  0.000 182.244 99.00 0.000 
   6 vv567899394I  468320.8  0.98  346.2  327.9 108  18595  5800  0.000 0.060 99.00 18.8  0.0000 0.0300 99.00 19.6  1409  0.000 158.995 99.00 0.000 
   7 vv567899750I  468676.0  0.98   10.6    8.8 116    553  5840  0.000 0.350 99.00 16.9  0.0000 0.0299 99.00 19.6  1420  0.000 158.439 99.00 0.000 
   8 vv567905249I  474175.5  0.98  422.0  453.2 112  22479  5864  0.000 0.055 99.00 18.9  0.0000 0.0262 99.00 19.7  1842  0.000 140.206 99.00 0.000 
   9 vv567905682I  474608.0  0.98   18.5   23.4 116   1000  5872  0.000 0.269 99.00 17.2  0.0000 0.0261 99.00 19.8  1860  0.000 139.579 99.00 0.000 
  10 vv567910865I  479791.0  0.98  341.3  347.1 116  18496  5868  0.000 0.063 99.00 18.8  0.0000 0.0241 99.00 19.8  2201  0.000 129.534 99.00 0.000 
  11 vv567911215I  480141.1  0.98    5.5    5.7 120    313  5884  0.000 0.513 99.00 16.5  0.0000 0.0241 99.00 19.8  2207  0.000 129.401 99.00 0.000 
    Sum (T+451518 to 480147):            2262.0       2262.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999946581197 signif. UL:  19.84
  0  2207 567896404  465329.7  14817.1 -13811.6    0.0000   0.0241 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-32.521 snr:  0.0 mag: 99.00 UL: 12.01
Rebinned Data for sw00020849002uvv_sk.img using a zero point of 17.632:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.17e+03  465329.1  14817.7 -13811.0    0.0000   0.0241 99.00 99.00  465329.1    0.0000   0.0241 99.00 99.00 20.41
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020849002uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.160 at 567881522
The processing date in extension 0 is:  2019-01-09T11:37:29
The trigger time is: 567431074.13462. The reference is BAT GRB summary file
Using zero point of 18.180 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(348.070,-9.480,25")
fk5;-circle(348.070,-9.480,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 uu567881521I  450447.4  0.98  520.4  438.7 112  24129  5804  0.000 0.047 99.00 19.7  0.0000 0.0467 99.00 19.7   520  0.000 147.058 99.00 0.000 
   2 uu567887155I  456081.3  0.98  250.7  249.9 104  15035  5816  0.000 0.074 99.00 19.2  0.0000 0.0397 99.00 19.8   771  0.000 124.748 99.00 0.000 
   3 uu567892986I  461911.9  0.98  270.4  307.7 112  14696  5868  0.000 0.070 99.00 19.2  0.0000 0.0345 99.00 20.0  1042  0.000 109.198 99.00 0.000 
   4 uu567898678I  467604.1  0.98  346.2  369.7 104  20227  5796  0.000 0.062 99.00 19.4  0.0000 0.0302 99.00 20.1  1388  0.000 96.187 99.00 0.000 
   5 uu567904378I  473304.5  0.98  422.0  500.3 112  25911  5868  0.000 0.060 99.00 19.4  0.0000 0.0270 99.00 20.3  1810  0.000 86.462 99.00 0.000 
   6 uu567910158I  479084.3  0.98  341.3  373.5 112  19197  5864  0.000 0.063 99.00 19.3  0.0000 0.0249 99.00 20.4  2151  0.000 80.077 99.00 0.000 
    Sum (T+450447 to 479431):            2239.1       2239.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999946581197 signif. UL:  20.35
  0  2151 567895602  464528.3  14902.8 -14080.8    0.0000   0.0249 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-30.376 snr:  0.0 mag: 99.00 UL: 12.63
Rebinned Data for sw00020849002uuu_sk.img using a zero point of 18.180:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.11e+03  464514.2  14916.9 -14066.8    0.0000   0.0249 99.00 99.00  464514.2    0.0000   0.0249 99.00 99.00 20.92
The data range from T+450447.4 s (5.21 d) to T+480146.7 s (5.56 d)
Wrote uvot_fluxes_190109d11h59m49s587345usUT.qdp
Wrote uvot_fluxes_190109d11h59m49s587345usUT.gif
Wrote uvot_fluxes_190109d11h59m49s587345usUT.ps
Wrote uvot_fluxes_190109d11h59m49s587345usUT_vis.qdp
Wrote uvot_fluxes_190109d11h59m49s587345usUT_uv.qdp
Wrote uvot_fluxes_190109d11h59m49s587345usUT_vis.gif
Wrote uvot_fluxes_190109d11h59m49s587345usUT_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.000722  464082.3  16064.4 -13634.9    0.0000   0.0719 99.00 99.00  464082.3    0.0000   0.0719 99.00 99.00 21.88
The data range from T+450447.4 s (5.21 d) to T+480146.7 s (5.56 d)
Wrote uvot_fluxes_wtd_190109d11h59m49s587345usUT.qdp
Wrote uvot_fluxes_wtd_190109d11h59m49s587345usUT.gif
Wrote uvot_fluxes_wtd_190109d11h59m49s587345usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem