# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180719d10h13m42s347384usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020803992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB180718 ===================
Could not find/read custom source region custom_020803_src.reg
Used archived BAT position of 44.68000 -31.50000
Reference: GCN_Notice_Thu_19_Jul_18_05:00:21_UT
The position is (02:58:43.20, -31:30:00.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(44.680,-31.500,3") # color=red dash=0
Source region spec. is: 44.680 -31.500 3"
Region file centered at (44.680,-31.500), which is (02:58:43.20, -31:30:00.0)
Could not find/read custom background region custom_020803_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 608400.0,
3 sigma should become about 6.0 sigma and 2 sigma should become about 5.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 1.00000000.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -21.26894 from uncorrected trigger time of 553630704.45 in BAT summary file
# ============ Reading file sw00020803992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.195 at 553670448
The processing date in extension 0 is: 2018-07-19T10:07:04
The trigger time is: 553630725.71894. The reference is BAT GRB summary file
Using zero point of 20.095 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(44.680,-31.500,25")
fk5;-circle(44.680,-31.500,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 wh553670448I   39722.4  0.97  790.1 1439.0 112  74143  5824  0.000 0.055 99.00 21.3  0.0000 0.0551 99.00 21.3   790  0.000  2.648 99.00 0.011 
   2 wh553676211I   45485.6  0.97  778.3 1322.1 112  69872  5832  0.000 0.054 99.00 21.3  0.0000 0.0387 99.00 21.7  1568  0.000  1.979 99.00 0.011 
    Sum (T+ 39722 to  46276):            2767.7       2767.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999997863248 signif. UL:  21.68
  0  1568 553673706   42980.8   3295.7  -3258.3    0.0000   0.0387 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.961 snr:  0.0 mag: 99.00 UL: 17.42
Rebinned Data for sw00020803992uwh_sk.img using a zero point of 20.095:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.52e+03   42982.2   3294.2  -3259.8    0.0000   0.0387 99.00 99.00   42982.2    0.0000   0.0387 99.00 99.00 22.36
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020803992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.249 at 553671258
The processing date in extension 0 is:  2018-07-19T10:07:04
The trigger time is: 553630725.71894. The reference is BAT GRB summary file
Using zero point of 17.641 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(44.680,-31.500,25")
fk5;-circle(44.680,-31.500,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 vv553671258I   40532.4  0.99  790.1  536.9 116  27871  5864  0.000 0.033 99.00 19.4  0.0000 0.0330 99.00 19.4   790  0.000 15.506 99.00 0.003 
   2 vv553672065I   41339.3  0.98   27.3   24.3 112   1276  5836  0.000 0.202 99.00 17.4  0.0000 0.0326 99.00 19.4   817  0.000 15.307 99.00 0.003 
   3 vv553677009I   46283.4  0.99  778.3  590.2 112  30387  5852  0.000 0.034 99.00 19.4  0.0000 0.0237 99.00 19.8  1596  0.000 11.780 99.00 0.003 
   4 vv553677804I   47078.4  0.98   24.9   26.2 108   1417  5824  0.000 0.230 99.00 17.3  0.0000 0.0236 99.00 19.8  1621  0.000 11.727 99.00 0.003 
    Sum (T+ 40532 to  47104):            1183.7       1183.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999997863248 signif. UL:  19.77
  0  1621 553674520   43794.6   3309.1  -3262.2    0.0000   0.0236 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.899 snr:  0.0 mag: 99.00 UL: 15.00
Rebinned Data for sw00020803992uvv_sk.img using a zero point of 17.641:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.6e+03   43793.1   3310.6  -3260.6    0.0000   0.0236 99.00 99.00   43793.1    0.0000   0.0236 99.00 99.00 20.44
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020803992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.154 at 553669638
The processing date in extension 0 is:  2018-07-19T10:07:04
The trigger time is: 553630725.71894. The reference is BAT GRB summary file
Using zero point of 18.186 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(44.680,-31.500,25")
fk5;-circle(44.680,-31.500,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 uu553669638I   38912.4  1.00  790.1  183.6 104   9825  5820  0.000 0.019 99.00 20.6  0.0000 0.0187 99.00 20.6   790  0.000  5.100 99.00 0.016 
   2 uu553675413I   44688.2  1.00  778.3  180.0 116   8857  5840  0.000 0.019 99.00 20.5  0.0000 0.0133 99.00 20.9  1568  0.000  3.872 99.00 0.015 
   3 uu553681139I   50413.7  1.00  119.6   20.9 112   1337  5824  0.000 0.047 99.00 19.6  0.0000 0.0128 99.00 21.0  1688  0.000  3.770 99.00 0.015 
    Sum (T+ 38912 to  50535):             377.2        377.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999997863248 signif. UL:  20.97
  0  1688 553673491   42765.0   7770.2  -3852.6    0.0000   0.0128 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.708 snr:  0.0 mag: 99.00 UL: 15.66
Rebinned Data for sw00020803992uuu_sk.img using a zero point of 18.186:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.68e+03   42765.4   7769.8  -3853.0    0.0000   0.0128 99.00 99.00   42765.4    0.0000   0.0128 99.00 99.00 21.65
The data range from T+38912.4 s (0.45 d) to T+50535.2 s (0.58 d)
Wrote uvot_fluxes_180719d10h13m42s347384usUT.qdp
Wrote uvot_fluxes_180719d10h13m42s347384usUT.gif
Wrote uvot_fluxes_180719d10h13m42s347384usUT.ps
Wrote uvot_fluxes_180719d10h13m42s347384usUT_vis.qdp
Wrote uvot_fluxes_180719d10h13m42s347384usUT_uv.qdp
Wrote uvot_fluxes_180719d10h13m42s347384usUT_vis.gif
Wrote uvot_fluxes_180719d10h13m42s347384usUT_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.224   42646.3   7888.9  -3733.9    0.0000   0.0444 99.00 99.00   42646.3    0.0000   0.0444 99.00 99.00 22.40
The data range from T+38912.4 s (0.45 d) to T+50535.2 s (0.58 d)
Wrote uvot_fluxes_wtd_180719d10h13m42s347384usUT.qdp
Wrote uvot_fluxes_wtd_180719d10h13m42s347384usUT.gif
Wrote uvot_fluxes_wtd_180719d10h13m42s347384usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem