# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180307d02h47m05s381845usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020789002 -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
# ========= GRB180305A ===================
Could not find/read custom source region custom_020789_src.reg
Used archived opt source position of 49.61804 32.11006 3.00
Reference: GCN_Circulars-22460
The position is (03:18:28.33, +32:06:36.2)
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(49.61804,32.11006,3") # color=red dash=0
Source region spec. is: 49.61804 32.11006 3"
Region file centered at (49.61804,32.11006), which is (03:18:28.33, +32:06:36.2)
Could not find/read custom background region custom_020789_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 -20.5355 from uncorrected trigger time of 541934768.65 in BAT summary file
# ============ Reading file sw00020789001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.189 at 541965581
The processing date in extension 0 is: 2018-03-06T03:33:52
The trigger time is: 541934789.1855. The reference is BAT GRB summary file
Using zero point of 20.101 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 6:
# 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(49.61804,32.11006,25")
fk5;-circle(49.61804,32.11006,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 wh541965581I   30792.0  0.94  177.9  580.1 108  31189  5823  0.010 0.160 25.07 20.8  0.0103 0.1604 25.07 20.8   178  0.377  5.898 21.35 0.008 
   2 wh541971167I   36378.0  0.94  268.4  926.1 112  47029  5861  0.120 0.135 22.40 20.8  0.0764 0.1032 22.89 21.1   446  2.857  4.155 19.15 0.007 
   3 wh541977053I   42264.4  0.94  184.8  662.6 112  32871  5876  0.230 0.165 21.70 20.4  0.1213 0.0876 22.39 21.1   631  4.646  3.720 18.62 0.007 
   4 wh541981582I   46792.8  0.92   38.4  177.7 112   9572  5862 -0.163 0.423 99.00 19.9  0.1054 0.0860 22.54 21.2   669  4.329  3.674 18.70 0.006 
   5 wh541982885I   48096.7  0.94  144.5  476.1 104  25679  5833  0.148 0.179 22.17 20.5  0.1130 0.0775 22.47 21.2   814  4.808  3.460 18.59 0.006 
   6 wh541987312I   52523.8  0.93  324.8 1400.6 112  67766  5880  0.403 0.138 21.09 20.3  0.1950 0.0680 21.88 21.1  1139  7.748  3.215 18.07 0.005 
    Sum (T+ 30792 to  52948):            4223.1       4035.1 (est. in src region)   SNR_unwtd_sum:   2.87 0.9987 signif. UL:  21.10
  0  1139 541977825   43035.7   9912.5 -12243.7    0.1950   0.0680 21.875  0.466  -0.324
Total wtd_rate (for all exposures so far):  7.748 +/- 3.186 snr:  2.4 mag: 18.07 UL: 17.00
Rebinned Data for sw00020789001uwh_sk.img using a zero point of 20.101:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.07e+03   42994.4   9953.8 -12202.4    0.1950   0.0680 21.88  0.32   42994.4    0.1950   0.0680 21.88  0.32 21.10
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020789001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.241 at 541965768
The processing date in extension 0 is:  2018-03-06T03:33:52
The trigger time is: 541934789.1855. The reference is BAT GRB summary file
Using zero point of 17.649 for filter V
Use aperture correction of  1.087 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(49.61804,32.11006,25")
fk5;-circle(49.61804,32.11006,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 vv541965767I   30978.6  0.99  176.2  170.5 120   7290  5888  0.137 0.083 19.80 18.7  0.1373 0.0825 19.80 18.7   176 48.566 29.191 16.07 0.003 
   2 vv541971446I   36656.8  0.99  235.8  185.6 104  10050  5833  0.030 0.064 21.46 19.2  0.0758 0.0510 20.45 19.2   412 29.994 19.808 16.60 0.003 
   3 vv541977247I   42458.6  0.99  174.8  134.8 112   7714  5842 -0.082 0.074 99.00 19.5  0.0287 0.0420 21.50 19.6   587 15.757 17.384 17.30 0.003 
   4 vv541983038I   48249.1  0.99  125.5  105.4 108   5432  5825  0.041 0.091 21.11 18.9  0.0309 0.0382 21.42 19.7   712 16.501 16.422 17.25 0.003 
    Sum (T+ 30979 to  48377):             596.3        576.4 (est. in src region)   SNR_unwtd_sum:   0.81 0.9987 signif. UL:  19.72
  0   712 541973602   38812.9   9563.8  -7834.3    0.0309   0.0382 21.424 77.576  -0.873
Total wtd_rate (for all exposures so far):  7.928 +/- 3.072 snr:  2.6 mag: 18.04 UL: 14.56
Rebinned Data for sw00020789001uvv_sk.img using a zero point of 17.649:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      702   38815.0   9561.7  -7836.4    0.0309   0.0382 21.42  0.87   38815.0    0.0309   0.0382 21.42  0.87 19.72
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020789001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.150 at 541965395
The processing date in extension 0 is:  2018-03-06T03:33:52
The trigger time is: 541934789.1855. The reference is BAT GRB summary file
Using zero point of 18.190 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
Using background region based on sources found in extension 8:
# 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(49.61804,32.11006,25")
fk5;-circle(49.61804,32.11006,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 uu541965394I   30605.3  0.99  177.9  104.5 116   5009  5843  0.031 0.064 21.95 19.8  0.0313 0.0644 21.95 19.8   178  6.648 13.670 18.23 0.008 
   2 uu541969322I   34533.7  0.97   57.1  111.7 116   4649  5879  0.396 0.211 19.20 18.2  0.1185 0.0704 20.51 19.4   235 13.515 13.205 17.46 0.006 
   3 uu541970888I   36099.5  0.99  268.5  153.2 108   8065  5809  0.014 0.052 22.86 20.1  0.0624 0.0428 21.20 20.0   503  8.459  9.245 17.97 0.006 
   4 uu541975051I   40261.9  0.98  442.8  561.8 104  30911  5817  0.023 0.061 22.27 19.9  0.0442 0.0364 21.58 20.2   946  8.021  8.122 18.03 0.004 
   5 uu541976860I   42071.5  0.99  184.8   94.7 104   5351  5829 -0.005 0.059 99.00 20.0  0.0361 0.0319 21.80 20.4  1131  6.358  7.345 18.28 0.004 
   6 uu541980802I   46013.3  0.98  760.6  915.2 116  45663  5874  0.020 0.045 22.45 20.2  0.0295 0.0263 22.01 20.6  1892  6.351  6.549 18.28 0.004 
   7 uu541982733I   47944.5  0.99  144.5   87.7 112   4207  5825  0.052 0.073 21.40 19.6  0.0311 0.0250 21.96 20.6  2036  7.139  6.320 18.16 0.004 
   8 uu541986529I   51740.3  0.98  764.5  880.2 104  48400  5867  0.033 0.044 21.90 20.1  0.0316 0.0218 21.94 20.7  2801  7.777  5.871 18.06 0.003 
    Sum (T+ 30605 to  52517):            2908.8       2829.8 (est. in src region)   SNR_unwtd_sum:   1.45 0.9987 signif. UL:  20.72
  0  2801 541979409   44619.5   7897.6 -14014.2    0.0316   0.0218 21.942  1.268  -0.569
Total wtd_rate (for all exposures so far):  7.964 +/- 2.740 snr:  2.9 mag: 18.04 UL: 15.16
Rebinned Data for sw00020789001uuu_sk.img using a zero point of 18.190:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.75e+03   44602.4   7914.6 -13997.1    0.0316   0.0218 21.94  0.57   44602.4    0.0316   0.0218 21.94  0.57 20.72
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020789002uw1_sk.img ================
Use keyword TRIGTIME of 541934789.26 for trigger time.
Long-term sensitivity correction to zero point is -0.341 at 542050938
The processing date in extension 0 is:  2018-03-07T02:40:05
The trigger time is: 541934789.26. The reference is keyword in image file
Using zero point of 17.099 for filter UVW1
Use aperture correction of  1.123 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(49.61804,32.11006,25")
fk5;-circle(49.61804,32.11006,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 w1542050937I  116148.6  1.00 1091.6  127.3 116   6258  5877  0.004 0.012 23.11 20.6  0.0039 0.0117 23.11 20.6  1092  8.662 25.902 17.95 0.004 
   2 w1542056914I  122125.3  1.00  840.4  115.1 104   4659  5810  0.042 0.014 20.53 19.8  0.0207 0.0091 21.31 20.4  1932 48.413 20.696 16.08 0.004 
    Sum (T+116149 to 122979):             242.4        206.9 (est. in src region)   SNR_unwtd_sum:   2.26 0.9987 signif. UL:  20.39
  0  1932 542054037  119247.3   3731.8  -3098.7    0.0207   0.0091 21.310  0.633  -0.398
Total wtd_rate (for all exposures so far):  8.974 +/- 2.774 snr:  3.2 mag: 17.91 UL: 14.00
Rebinned Data for sw00020789002uw1_sk.img using a zero point of 17.099:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.93e+03  119247.5   3731.6  -3098.8    0.0207   0.0091 21.31  0.40  119247.5    0.0207   0.0091 21.31  0.40 20.39
The data range from T+30605.3 s (0.35 d) to T+122979.1 s (1.42 d)
Wrote uvot_fluxes_180307d02h47m05s381845usUT.qdp
Wrote uvot_fluxes_180307d02h47m05s381845usUT.gif
Wrote uvot_fluxes_180307d02h47m05s381845usUT.ps
Wrote uvot_fluxes_180307d02h47m05s381845usUT_vis.qdp
Wrote uvot_fluxes_180307d02h47m05s381845usUT_uv.qdp
Wrote uvot_fluxes_180307d02h47m05s381845usUT_vis.gif
Wrote uvot_fluxes_180307d02h47m05s381845usUT_vis.ps
Wrote uvot_fluxes_180307d02h47m05s381845usUT_uv.gif
Wrote uvot_fluxes_180307d02h47m05s381845usUT_uv.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.0858   39334.1  13614.1  -8728.8    0.1920   0.0778 22.08  0.37   39334.1    0.1920   0.0778 22.08  0.37 21.22
The data range from T+30605.3 s (0.35 d) to T+122979.1 s (1.42 d)
Wrote uvot_fluxes_wtd_180307d02h47m05s381845usUT.qdp
Wrote uvot_fluxes_wtd_180307d02h47m05s381845usUT.gif
Wrote uvot_fluxes_wtd_180307d02h47m05s381845usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem