# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180122d09h12m17s560602usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020786002 -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
# ========= GRB180103A ===================
Could not find/read custom source region custom_020786_src.reg
Used archived XRT position of 159.60154 -53.55600 4.00
Reference: GCN_Circulars-22326-Sat,_13_Jan_2018_01:08:46_-0500
The position is (10:38:24.37, -53:33:21.6)
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(159.60154,-53.55600,4") # color=red dash=0
Source region spec. is: 159.60154 -53.55600 4"
Region file centered at (159.60154,-53.55600), which is (10:38:24.37, -53:33:21.6)
Could not find/read custom background region custom_020786_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.
Found 1 bright star(s) within 50.0 arcsec of 159.60154 -53.55600:
ra: 159.5795 dec: -53.5537 mag: 11.62
Subtract UTCF of -20.2536 from uncorrected trigger time of 536634510 in BAT summary file
# ============ Reading file sw00020786001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.238 at 536979236
The processing date in extension 0 is: 2018-01-07T22:46:10
The trigger time is: 536634530.2536. The reference is BAT GRB summary file
Using zero point of 17.652 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(159.60154,-53.55600,25")
fk5;-circle(159.60154,-53.55600,12.5")
fk5;-circle(159.605401,-53.554004,6")
fk5;-circle(159.5795139,-53.5536611,25")
 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 vv536979235I  344705.4  0.99  466.3  495.4 200  13090  5599  0.062 0.050 20.67 19.3  0.0620 0.0505 20.67 19.3   466 242.976 197.757 14.33 0.000 
   2 vv536979712I  345182.7  0.99  454.0  424.1 196  12962  5570 -0.073 0.048 99.00 20.1 -0.0048 0.0349 99.00 20.1   920 -18.323 136.677 99.00 0.000 
   3 vv536985127I  350597.6  0.99  123.5  151.3 196   3407  5598  0.270 0.105 19.07 18.2  0.0277 0.0332 21.55 19.9  1044 111.615 130.294 15.17 0.000 
    Sum (T+344705 to 350723):            1070.8       1043.0 (est. in src region)   SNR_unwtd_sum:   0.84 0.9987 signif. UL:  19.87
  0  1044 536980354  345823.9   4899.2  -1118.4    0.0277   0.0332 21.545 77.455  -0.854
Total wtd_rate (for all exposures so far): 111.615 +/-128.106 snr:  0.9 mag: 15.17 UL: 10.89
Rebinned Data for sw00020786001uvv_sk.img using a zero point of 17.652:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.03e+03  345823.5   4899.6  -1118.1    0.0277   0.0332 21.55  0.85  345823.5    0.0277   0.0332 21.55  0.85 19.87
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020786001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.148 at 536978754
The processing date in extension 0 is:  2018-01-07T22:46:10
The trigger time is: 536634530.2536. The reference is BAT GRB summary file
Using zero point of 18.192 for filter U
Use aperture correction of  1.032 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(159.60154,-53.55600,25")
fk5;-circle(159.60154,-53.55600,12.5")
fk5;-circle(159.605420,-53.554004,6")
fk5;-circle(159.5795139,-53.5536611,25")
 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 uu536978753I  344223.5  0.99  466.3  411.6 200  11034  5611  0.041 0.046 21.67 20.0  0.0408 0.0460 21.67 20.0   466 96.930 109.441 15.32 0.000 
   2 uu536984732I  350201.9  0.99  381.6  275.0 196   9169  5578 -0.129 0.046 99.00 21.0 -0.0355 0.0327 99.00 20.9   848 -83.346 78.471 99.00 0.000 
    Sum (T+344224 to 350590):             686.5        715.5 (est. in src region)   SNR_unwtd_sum:  -1.09 0.9987 signif. UL:  20.92
  0   848 536981662  347131.7   3457.9  -2908.2   -0.0355   0.0327 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -29.031 +/-66.098 snr: -0.4 mag: 99.00 UL: 12.49
Rebinned Data for sw00020786001uuu_sk.img using a zero point of 18.192:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      841  347132.9   3456.7  -2909.4   -0.0355   0.0327 99.00 99.00  347132.9   -0.0355   0.0327 99.00 99.00 20.92
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020786002um2_sk.img ================
Use keyword TRIGTIME of 536634530.2556 for trigger time.
Long-term sensitivity correction to zero point is -0.320 at 537461508
The processing date in extension 0 is:  2018-01-22T08:55:46
The trigger time is: 536634530.2556. The reference is keyword in image file
Using zero point of 16.530 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.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(159.60154,-53.55600,25")
fk5;-circle(159.60154,-53.55600,12.5")
fk5;-circle(159.5795139,-53.5536611,25")
 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 m2537461507I  826977.7  1.00  426.2   28.8 200    916  5732 -0.008 0.013 99.00 20.1 -0.0077 0.0132 99.00 20.1   426 -203.436 349.531 99.00 0.001 
   2 m2537466878I  832347.9  1.00  809.9   59.4 204   1770  5780 -0.004 0.010 99.00 20.4 -0.0052 0.0080 99.00 20.7  1236 -138.308 211.665 99.00 0.000 
   3 m2537482994I  848464.0  1.00  715.3   79.4 204   1673  5777  0.029 0.013 20.36 19.4  0.0075 0.0070 21.84 20.4  1951 178.176 184.074 14.66 0.000 
    Sum (T+826978 to 849191):             167.7        153.5 (est. in src region)   SNR_unwtd_sum:   1.08 0.9987 signif. UL:  20.38
  0  1951 537471964  837433.8  11756.9 -10456.0    0.0075   0.0070 21.845  2.890  -0.714
Total wtd_rate (for all exposures so far): -2.682 +/-62.071 snr: -0.0 mag: 99.00 UL: 10.79
Rebinned Data for sw00020786002um2_sk.img using a zero point of 16.530:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.95e+03  837432.9  11757.9 -10455.1    0.0075   0.0070 21.84  0.71  837432.9    0.0075   0.0070 21.84  0.71 20.38
The data range from T+344223.5 s (3.98 d) to T+849190.7 s (9.83 d)
Wrote uvot_fluxes_180122d09h12m17s560602usUT.qdp
Wrote uvot_fluxes_180122d09h12m17s560602usUT.gif
Wrote uvot_fluxes_180122d09h12m17s560602usUT.ps
Wrote uvot_fluxes_180122d09h12m17s560602usUT_vis.qdp
Wrote uvot_fluxes_180122d09h12m17s560602usUT_uv.qdp
Wrote uvot_fluxes_180122d09h12m17s560602usUT_vis.gif
Wrote uvot_fluxes_180122d09h12m17s560602usUT_vis.ps
Wrote uvot_fluxes_180122d09h12m17s560602usUT_uv.gif
Wrote uvot_fluxes_180122d09h12m17s560602usUT_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 1.68e-05  344665.5    978.5   -441.9    0.1735   0.2539 22.19  0.98  344665.5    0.1735   0.2539 22.19  0.98 20.34
  1 1.17e-05  350395.8    193.9   -193.9   -0.8880   0.3181 99.00 99.00  347010.3   -0.2651   0.1987 99.00 99.00 21.12
  2 5.03e-07  350660.4     62.8    -62.8    3.0639   1.1929 19.07  0.36  347073.7   -0.2067   0.1963 99.00 99.00 21.06
The data range from T+344223.5 s (3.98 d) to T+849190.7 s (9.83 d)
Wrote uvot_fluxes_wtd_180122d09h12m17s560602usUT.qdp
Wrote uvot_fluxes_wtd_180122d09h12m17s560602usUT.gif
Wrote uvot_fluxes_wtd_180122d09h12m17s560602usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem