# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 181202d03h13m09s839161usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020848002 -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
# ========= GRB181201 ===================
Could not find/read custom source region custom_020848_src.reg
Used archived XRT position of 319.29667 -12.63083 4.00
Reference: GCN_Circulars-23474-Sat,_1_Dec_2018_09:17:27_-0500
The position is (21:17:11.20, -12:37:51.0)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(319.29667,-12.63083,4") # color=red dash=0
Source region spec. is: 319.29667 -12.63083 4"
Region file centered at (319.29667,-12.63083), which is (21:17:11.20, -12:37:51.0)
Could not find/read custom background region custom_020848_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 -21.98282 from uncorrected trigger time of 565324812.5 in BAT summary file
# ============ Reading file sw00020848002uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.201 at 565381101
The processing date in extension 0 is: 2018-12-02T03:01:47
The trigger time is: 565324834.48282. The reference is BAT GRB summary file
Using zero point of 20.089 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Using background region based on sources found in extension 3:
# 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(319.29667,-12.63083,25")
fk5;-circle(319.29667,-12.63083,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 wh565381100I   56266.4  0.88  255.8 4163.1 196  50706  6202 11.803 0.299 17.41 17.3 11.8035 0.2992 17.41 17.3   256 801.447 20.317 13.03 0.002 
above line uses coinc_corr_src:  0.878 corr_bkg:  0.936
   2 wh565387010I   62175.5  0.88  215.7 3391.8 204  43154  6207 10.771 0.320 17.51 17.4 11.3307 0.2186 17.45 17.4   472 803.864 15.517 13.03 0.002 
above line uses coinc_corr_src:  0.879 corr_bkg:  0.935
   3 wh565397180I   72345.9  0.88  316.3 4785.7 204  64560  6165  9.809 0.258 17.61 17.5 10.7174 0.1669 17.51 17.5   788 819.513 12.797 13.01 0.002 
above line uses coinc_corr_src:  0.884 corr_bkg:  0.933
   4 wh565398650I   73815.5  0.89  136.6 1946.6 200  27458  6142  8.995 0.380 17.70 17.6 10.4614 0.1529 17.54 17.5   924 817.281 11.974 13.01 0.002 
above line uses coinc_corr_src:  0.886 corr_bkg:  0.933
    Sum (T+ 56266 to  73954):           14287.2       6051.3 (est. in src region)   SNR_unwtd_sum:  68.43 0.9987 signif. UL:  17.49
  0   924 565390720   65885.6   8068.7  -9619.2   10.4614   0.1529 17.540  0.016  -0.016
Total wtd_rate (for all exposures so far): 817.281 +/-11.894 snr: 68.7 mag: 13.01 UL: 12.76
Rebinned Data for sw00020848002uwh_sk.img using a zero point of 20.089:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      414   59102.3   3298.0  -2835.9   11.3307   0.2186 17.45  0.02   59102.3   11.3307   0.2186 17.45  0.02 17.39
  1      401   72950.9   1003.5   -604.9    9.5627   0.2135 17.64  0.02   65911.7   10.4614   0.1529 17.54  0.02 17.49
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020848002uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.257 at 565381398
The processing date in extension 0 is:  2018-12-02T03:01:47
The trigger time is: 565324834.48282. The reference is BAT GRB summary file
Using zero point of 17.633 for filter V
Use aperture correction of  1.030 based on aperture of  4.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(319.29667,-12.63083,25")
fk5;-circle(319.29667,-12.63083,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 vv565381397I   56563.1  0.98  273.7  744.2 200  13861  5880  1.050 0.106 17.58 17.3  1.0501 0.1062 17.58 17.3   274 687.794 69.534 13.20 0.001 
   2 vv565387240I   62406.2  0.98  169.8  452.8 208   8585  5903  0.933 0.134 17.71 17.3  1.0051 0.0831 17.63 17.4   443 682.969 56.413 13.20 0.001 
   3 vv565398794I   73960.2  0.98   92.1  230.9 200   4557  5850  0.858 0.176 17.80 17.3  0.9798 0.0752 17.66 17.4   536 688.983 52.815 13.19 0.001 
    Sum (T+ 56563 to  74054):            1427.9        929.8 (est. in src region)   SNR_unwtd_sum:  13.04 0.9987 signif. UL:  17.43
  0   536 565386348   61513.6  12540.1  -4950.5    0.9798   0.0752 17.656  0.086  -0.081
Total wtd_rate (for all exposures so far): 809.550 +/-11.583 snr: 69.9 mag: 13.02 UL: 10.32
Rebinned Data for sw00020848002uvv_sk.img using a zero point of 17.633:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      433   58919.6   3659.1  -2356.4    1.0051   0.0831 17.63  0.09   58919.6    1.0051   0.0831 17.63  0.09 17.39
  1     90.1   74006.9     46.8    -46.8    0.8581   0.1757 17.80  0.20   61516.2    0.9798   0.0752 17.66  0.08 17.43
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020848002uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.159 at 565380804
The processing date in extension 0 is:  2018-12-02T03:01:47
The trigger time is: 565324834.48282. The reference is BAT GRB summary file
Using zero point of 18.181 for filter U
Use aperture correction of  1.032 based on aperture of  4.00
Using background region based on sources found in extension 5:
# 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(319.29667,-12.63083,25")
fk5;-circle(319.29667,-12.63083,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 uu565380804I   55969.8  0.97  286.2 1123.1 200   9299  5936  3.006 0.125 16.99 16.9  3.0055 0.1250 16.99 16.9   286 1176.458 48.916 12.61 0.002 
#  2 uu565384874I   60040.5  0.98  399.5  960.5 204  27214  5830 
   3 uu565386779I   61945.2  0.97  221.2  798.3 200   7190  5941  2.664 0.136 17.12 17.0  2.8565 0.0921 17.04 16.9   507 1167.453 37.656 12.62 0.002 
   4 uu565390575I   65740.6  0.97  812.8 3370.4 204  46258  5907  2.326 0.077 17.27 17.2  2.5305 0.0591 17.17 17.1  1320 1129.004 26.564 12.66 0.001 
   5 uu565396343I   71509.4  0.97  816.7 3204.7 196  44475  5898  2.251 0.074 17.30 17.2  2.4235 0.0462 17.22 17.2  2137 1129.033 21.823 12.66 0.001 
   6 uu565398506I   73671.5  0.98  136.6  391.0 192   4345  5926  1.933 0.154 17.46 17.2  2.3938 0.0444 17.23 17.2  2273 1119.292 21.036 12.67 0.001 
   7 uu565402073I   77239.2  0.96  483.8 2031.5 192  34319  5934  2.036 0.101 17.41 17.3  2.3313 0.0407 17.26 17.2  2757 1117.556 19.743 12.67 0.001 
    Sum (T+ 55970 to  77731):           10919.1       4882.2 (est. in src region)   SNR_unwtd_sum:  57.34 0.9987 signif. UL:  17.21
  0  2757 565393691   68856.4   8874.4 -12886.5    2.3313   0.0407 17.262  0.019  -0.019
Total wtd_rate (for all exposures so far): 896.675 +/- 9.998 snr: 89.7 mag: 12.91 UL: 10.76
Rebinned Data for sw00020848002uuu_sk.img using a zero point of 18.181:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.28e+03   63283.8   3282.7  -7313.9    2.5305   0.0591 17.17  0.02   63283.8    2.5305   0.0591 17.17  0.02 17.10
  1 1.39e+03   73963.2   3767.6  -2453.8    2.1482   0.0560 17.35  0.03   68847.5    2.3313   0.0407 17.26  0.02 17.21
The data range from T+55969.8 s (0.65 d) to T+77730.8 s (0.90 d)
Wrote uvot_fluxes_181202d03h13m09s839161usUT.qdp
Wrote uvot_fluxes_181202d03h13m09s839161usUT.gif
Wrote uvot_fluxes_181202d03h13m09s839161usUT.ps
Wrote uvot_fluxes_181202d03h13m09s839161usUT_vis.qdp
Wrote uvot_fluxes_181202d03h13m09s839161usUT_uv.qdp
Wrote uvot_fluxes_181202d03h13m09s839161usUT_vis.gif
Wrote uvot_fluxes_181202d03h13m09s839161usUT_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 5.99e-05   56115.2    145.4   -145.4   20.9650   0.8717 16.99  0.04   56115.2   20.9650   0.8717 16.99  0.04 16.86
  1  0.00203   56414.3    426.9   -147.9   14.1887   0.3571 17.41  0.03   56405.8   14.3819   0.3478 17.39  0.02 17.32
  2 4.14e-05   62057.6    112.4   -112.4   18.5841   0.9488 17.12  0.05   56515.4   14.4714   0.3410 17.39  0.03 17.31
  3  0.00145   62289.2    289.5   -113.7   12.9502   0.3829 17.51  0.03   58855.1   13.8190   0.2547 17.44  0.02 17.38
  4 0.000217   68891.0   3448.1  -3150.4   15.9641   0.3729 17.28  0.02   59428.5   13.9611   0.2392 17.43  0.02 17.37
  5  0.00239   72967.5   1086.2   -621.6   11.5174   0.2542 17.64  0.02   64656.7   12.8961   0.1746 17.51  0.02 17.47
  6 4.86e-05   77485.0    245.8   -245.8   14.2022   0.7012 17.41  0.05   64756.6   12.9083   0.1731 17.51  0.02 17.47
The data range from T+55969.8 s (0.65 d) to T+77730.8 s (0.90 d)
Wrote uvot_fluxes_wtd_181202d03h13m09s839161usUT.qdp
Wrote uvot_fluxes_wtd_181202d03h13m09s839161usUT.gif
Wrote uvot_fluxes_wtd_181202d03h13m09s839161usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem