# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 181023d05h03m02s324899usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00868312992 -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
# ========= GRB181022A ===================
Could not find/read custom source region custom_868312_src.reg
Used archived XRT position of 56.79204 -29.37967 4.00
Reference: GCN_Circulars-23364-Mon,_22_Oct_2018_13:53:55_-0400
The position is (03:47:10.09, -29:22:46.8)
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(56.79204,-29.37967,4") # color=red dash=0
Source region spec. is: 56.79204 -29.37967 4"
Region file centered at (56.79204,-29.37967), which is (03:47:10.09, -29:22:46.8)
Could not find/read custom background region custom_868312_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.7859 from uncorrected trigger time of 561922213.14 in BAT summary file
# ============ Reading file sw00868312992uvv_sk.img ================
Use keyword TRIGTIME of 561922234.822 for trigger time.
Long-term sensitivity correction to zero point is -0.254 at 561922313
The processing date in extension 0 is: 2018-10-23T04:49:29
The trigger time is: 561922234.822. The reference is keyword in image file
Using zero point of 17.636 for filter V
Use aperture correction of 1.030 based on aperture of 4.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(56.79204,-29.37967,25")
fk5;-circle(56.79204,-29.37967,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 vv561922312E      78.0  1.00   13.6    6.1 199    208  5838 -0.077 0.192 99.00 18.3 -0.0769 0.1917 99.00 18.3    14 -0.075  0.188 99.00 1.946 
   2 vv561922846E     611.6  1.00   19.5    9.6 201    315  5849 -0.068 0.168 99.00 18.4 -0.0716 0.1263 99.00 18.8    33 -0.085  0.185 99.00 0.921 
   3 vv561922971E     737.0  0.99   19.4   14.2 200    314  5854  0.185 0.204 19.47 17.9  0.0231 0.1096 21.73 18.7    52 -0.057  0.185 99.00 0.654 
   4 vv561923280E    1046.0  0.99   19.4   25.2 198    729  5844  0.027 0.274 21.54 17.7  0.0243 0.1088 21.67 18.7    72 -0.056  0.184 99.00 0.381 
   5 vv561923406E    1171.7  0.98   19.4   37.2 202   1081  5839 -0.012 0.335 99.00 17.6  0.0167 0.1112 22.08 18.7    91 -0.056  0.184 99.00 0.239 
   6 vv561926957I    4722.4  0.99  196.6  100.5 208   3113  5884 -0.051 0.054 99.00 19.8 -0.0293 0.0509 99.00 19.8   288 -0.067  0.184 99.00 0.126 
    Sum (T+    78 to   4922):             192.7        200.8 (est. in src region)   SNR_unwtd_sum:  -0.58 0.9987 signif. UL:  19.75
  0   288 561925775    3539.9   1382.3  -3461.9   -0.0293   0.0509 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.067 +/- 0.180 snr: -0.4 mag: 99.00 UL: 18.32
Rebinned Data for sw00868312992uvv_sk.img using a zero point of 17.636:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     13.5      84.9      6.9     -6.9   -0.0769   0.1917 99.00 99.00      84.9   -0.0769   0.1917 99.00 99.00 18.27
  1       77     900.3    291.2   -288.6    0.0331   0.1263 21.34  1.71     778.4    0.0167   0.1112 22.08  2.21 18.71
  2      196    4822.3     99.9    -99.9   -0.0505   0.0538 99.00 99.00    3543.4   -0.0293   0.0509 99.00 99.00 19.75
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00868312992uuu_sk.img ================
Use keyword TRIGTIME of 561922234.822 for trigger time.
Long-term sensitivity correction to zero point is -0.158 at 561922332
The processing date in extension 0 is:  2018-10-23T04:49:28
The trigger time is: 561922234.822. The reference is keyword in image file
Using zero point of 18.182 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(56.79204,-29.37967,25")
fk5;-circle(56.79204,-29.37967,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 uu561922332I      97.5  1.00  245.8   85.8 199   2577  5841 -0.008 0.040 99.00 20.5 -0.0082 0.0397 99.00 20.5   246 -0.013  0.062 99.00 1.801 
   2 uu561922332E      97.5  1.00  245.8   85.2 193   2585  5857 -0.000 0.040 99.00 20.4 
   3 uu561922920E     685.5  1.00   19.4    8.0 197    252  5849 -0.026 0.154 99.00 19.0 -0.0095 0.0385 99.00 20.5   265 -0.013  0.061 99.00 1.684 
#  4 uu561923045E     810.3  0.99   19.5   12.2 198    315  5838 
   5 uu561923099I     864.4  0.99  147.4  144.5 196   3949  5853  0.086 0.086 20.84 19.3  0.0247 0.0394 22.20 20.3   413 -0.006  0.061 99.00 0.807 
#  6 uu561923355E    1120.7  0.98   19.4   34.3 198   1137  5821 
#  7 uu561923480E    1245.2  0.97   10.4   37.1 198    861  5870 
   8 uu561927571I    5336.8  1.00   90.5   33.7 200    937  5872  0.021 0.068 22.39 19.8  0.0240 0.0345 22.23 20.4   503 -0.005  0.061 99.00 0.717 
    Sum (T+    98 to   5429):             272.1        260.4 (est. in src region)   SNR_unwtd_sum:   0.69 0.9987 signif. UL:  20.39
  0   503 561923613    1378.4   4050.3  -1280.9    0.0240   0.0345 22.233 76.767  -0.969
Total wtd_rate (for all exposures so far): -0.011 +/- 0.057 snr: -0.2 mag: 99.00 UL: 20.08
Rebinned Data for sw00868312992uuu_sk.img using a zero point of 18.182:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      245     222.4    124.9   -124.9   -0.0082   0.0397 99.00 99.00     222.4   -0.0082   0.0397 99.00 99.00 20.47
  1      166     910.7    103.4   -225.2    0.0733   0.0782 21.02  0.79     499.9    0.0247   0.0394 22.20  1.04 20.26
  2     90.2    5382.8     46.0    -46.0    0.0207   0.0675 22.39  1.57    1379.2    0.0240   0.0345 22.23  0.97 20.39
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00868312992uw1_sk.img ================
Use keyword TRIGTIME of 561922234.822 for trigger time.
Long-term sensitivity correction to zero point is -0.384 at 561922896
The processing date in extension 0 is:  2018-10-23T04:49:29
The trigger time is: 561922234.822. The reference is keyword in image file
Using zero point of 17.056 for filter UVW1
Use aperture correction of  1.035 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(56.79204,-29.37967,25")
fk5;-circle(56.79204,-29.37967,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 w1561922895E     661.0  1.00   19.5    4.0 198     48  5846  0.126 0.107 19.30 17.9  0.1264 0.1072 19.30 17.9    19  1.666  1.414 19.74 0.905 
   2 w1561923020E     786.0  1.00   19.5    3.0 199     49  5849  0.073 0.093 19.90 18.2  0.0995 0.0711 19.56 18.3    39  1.448  1.027 19.89 0.827 
   3 w1561923331E    1096.4  1.00   19.4    2.5 195    111  5854 -0.063 0.087 99.00 18.6  0.0453 0.0556 20.41 18.7    58  1.204  0.952 20.09 0.516 
High bkg:   4 w1561923455E   19.4    161  5843  1.420  0.112
   4 w1561923455E    1221.0  1.00   19.4    5.8 204    161  5841  0.011 0.131 21.96 18.0  0.0368 0.0530 20.64 18.8    78  1.163  0.921 20.13 0.349 
   5 w1561927366I    5132.2  1.00  196.6   10.3 204    412  5835 -0.022 0.017 99.00 20.5 -0.0051 0.0195 99.00 20.1   274  0.861  0.854 20.45 0.234 
    Sum (T+   661 to   5332):              25.7         27.0 (est. in src region)   SNR_unwtd_sum:  -0.26 0.9987 signif. UL:  20.13
  0   274 561926253    4018.5   1313.5  -3357.5   -0.0051   0.0195 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.003 +/- 0.057 snr: -0.1 mag: 99.00 UL: 18.91
Rebinned Data for sw00868312992uw1_sk.img using a zero point of 17.056:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     77.7     950.8    289.9   -289.8    0.0368   0.0530 20.64  0.97     950.8    0.0368   0.0530 20.64  0.97 18.80
  1      197    5232.1     99.9    -99.9   -0.0217   0.0173 99.00 99.00    4019.4   -0.0051   0.0195 99.00 99.00 20.13
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00868312992um2_sk.img ================
Use keyword TRIGTIME of 561922234.822 for trigger time.
Long-term sensitivity correction to zero point is -0.365 at 561922871
The processing date in extension 0 is:  2018-10-23T04:49:29
The trigger time is: 561922234.822. The reference is keyword in image file
Using zero point of 16.485 for filter UVM2
Use aperture correction of  1.031 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(56.79204,-29.37967,25")
fk5;-circle(56.79204,-29.37967,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 m2561922870E     636.1  1.00   19.5    0.0 198     21  5832 
#  2 m2561922996E     761.3  1.00   19.5    1.0 198     16  5834 
#  3 m2561923305E    1070.3  1.00   19.5    1.0 198     26  5835 
#  4 m2561923431E    1196.2  1.00   19.4    1.0 198     19  5834 
Low  bkg:   5 m2561927161I  196.6    114  5820  0.099  0.009
   5 m2561927161I    4927.1  1.00  196.6    3.5 196    114  5820 -0.001 0.010 99.00 20.2 -0.0014 0.0101 99.00 20.2   197 -0.239  1.681 99.00 0.308 
    Sum (T+  4927 to   5127):               3.5          3.8 (est. in src region)   SNR_unwtd_sum:  -0.14 0.9987 signif. UL:  20.25
  0   197 561927262    5027.0     99.9    -99.9   -0.0014   0.0101 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.003 +/- 0.057 snr: -0.1 mag: 99.00 UL: 18.35
Rebinned Data for sw00868312992um2_sk.img using a zero point of 16.485:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5027.0     99.9    -99.9   -0.0014   0.0101 99.00 99.00    5027.0   -0.0014   0.0101 99.00 99.00 20.25
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00868312992uw2_sk.img ================
Use keyword TRIGTIME of 561922234.822 for trigger time.
Long-term sensitivity correction to zero point is -0.467 at 561922591
The processing date in extension 0 is:  2018-10-23T04:49:29
The trigger time is: 561922234.822. The reference is keyword in image file
Using zero point of 16.913 for filter UVW2
Use aperture correction of  1.035 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(56.79204,-29.37967,25")
fk5;-circle(56.79204,-29.37967,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 w2561922591I     356.2  1.00  245.8   11.9 197    339  5848  0.002 0.015 23.61 20.2  0.0021 0.0148 23.61 20.2   246  0.023  0.159 24.41 1.994 
   2 w2561922591E     356.2  1.00  245.8   13.6 200    346  5840  0.007 0.016 22.23 20.0 
#  3 w2561922947E     712.6  1.00   19.5    1.0 198     29  5833 
#  4 w2561923071E     837.2  1.00   19.4    0.0 198     32  5831 
#  5 w2561923256E    1021.6  1.00   19.4    1.0 198     44  5835 
#  6 w2561923382E    1147.4  1.00   19.4    0.0 198     69  5830 
   7 w2561926752I    4517.7  1.00  196.6    5.3 196    250  5824 -0.016 0.012 99.00 20.7 -0.0060 0.0099 99.00 20.8   442  0.007  0.158 25.74 1.245 
    Sum (T+   356 to   4717):              17.2         19.8 (est. in src region)   SNR_unwtd_sum:  -0.61 0.9987 signif. UL:  20.82
  0   442 561924554    2319.3   2398.2  -1963.1   -0.0060   0.0099 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.002 +/- 0.054 snr: -0.0 mag: 99.00 UL: 18.83
Rebinned Data for sw00868312992uw2_sk.img using a zero point of 16.913:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      246     481.1    124.9   -124.9    0.0021   0.0148 23.61  2.27     481.1    0.0021   0.0148 23.61  2.27 20.18
  1      197    4617.5     99.9    -99.9   -0.0162   0.0125 99.00 99.00    2319.3   -0.0060   0.0099 99.00 99.00 20.82
The data range from T+78.0 s (0.00 d) to T+5428.7 s (0.06 d)
Wrote uvot_fluxes_181023d05h03m02s324899usUT.qdp
Wrote uvot_fluxes_181023d05h03m02s324899usUT.gif
Wrote uvot_fluxes_181023d05h03m02s324899usUT.ps
Wrote uvot_fluxes_181023d05h03m02s324899usUT_vis.qdp
Wrote uvot_fluxes_181023d05h03m02s324899usUT_uv.qdp
Wrote uvot_fluxes_181023d05h03m02s324899usUT_vis.gif
Wrote uvot_fluxes_181023d05h03m02s324899usUT_vis.ps
Wrote uvot_fluxes_181023d05h03m02s324899usUT_uv.gif
Wrote uvot_fluxes_181023d05h03m02s324899usUT_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     2.47      84.9      6.9     -6.9   -0.8864   2.2091 99.00 99.00      84.9   -0.8864   2.2091 99.00 99.00 18.27
  1     37.9     222.4    124.9   -124.9   -0.0570   0.2765 99.00 99.00     214.0   -0.0770   0.2751 99.00 99.00 20.50
  2    0.811     833.4    358.1   -221.8    0.3557   0.4922 21.41  0.94     226.2   -0.0457   0.2576 99.00 99.00 20.54
  3   0.0321    5213.2    215.5   -490.9   -0.0589   0.3806 99.00 99.00     230.1   -0.0459   0.2532 99.00 99.00 20.56
The data range from T+78.0 s (0.00 d) to T+5428.7 s (0.06 d)
Wrote uvot_fluxes_wtd_181023d05h03m02s324899usUT.qdp
Wrote uvot_fluxes_wtd_181023d05h03m02s324899usUT.gif
Wrote uvot_fluxes_wtd_181023d05h03m02s324899usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem