# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180523d07h39m28s056317usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00832119001 -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
# ========= GRB180512A ===================
Could not find/read custom source region custom_832119_src.reg
Used archived XRT position of 201.93804 21.40356 4.00
Reference: GCN_Circulars-22715-Sun,_13_May_2018_00:50:05_-0400
The position is (13:27:45.13, +21:24:12.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(201.93804,21.40356,4") # color=red dash=0
Source region spec. is: 201.93804 21.40356 4"
Region file centered at (201.93804,21.40356), which is (13:27:45.13, +21:24:12.8)
Could not find/read custom background region custom_832119_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.93314 from uncorrected trigger time of 547855307.06 in BAT summary file
# ============ Reading file sw00832119992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.192 at 547855546
The processing date in extension 0 is: 2018-05-13T05:18:07
The trigger time is: 547855327.99314. The reference is BAT GRB summary file
Using zero point of 20.098 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(201.93804,21.40356,25")
fk5;-circle(201.93804,21.40356,12.5")
fk5;-circle(201.940572,21.407286,6")
fk5;-circle(201.946521,21.403258,6")
 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 wh547855546I     218.4  0.98  147.4  367.2 198  10334  5380 -0.094 0.140 99.00 21.1 -0.0945 0.1404 99.00 21.1   147 -0.033  0.049 99.00 1.080 
   2 wh547855546E     218.4  0.98  147.4  365.7 196  10325  5373 -0.079 0.140 99.00 21.1 
   3 wh547859486I    4158.3  0.97  196.6  544.6 200  13683  5407  0.208 0.128 21.80 20.7  0.0782 0.0948 22.86 21.2   344 -0.026  0.049 99.00 0.506 
    Sum (T+   218 to   4358):             911.7        886.4 (est. in src region)   SNR_unwtd_sum:   0.83 0.9987 signif. UL:  21.18
  0   344 547857887    2559.4   1798.7  -2341.0    0.0782   0.0948 22.864 76.136  -0.862
Total wtd_rate (for all exposures so far): -0.026 +/- 0.048 snr: -0.5 mag: 99.00 UL: 22.27
Rebinned Data for sw00832119992uwh_sk.img using a zero point of 20.098:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      144     293.3     74.9    -74.9   -0.0945   0.1404 99.00 99.00     293.3   -0.0945   0.1404 99.00 99.00 21.14
  1      192    4258.2     99.9    -99.9    0.2080   0.1282 21.80  0.52    2557.4    0.0782   0.0948 22.86  0.86 21.18
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00832119992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.245 at 547855526
The processing date in extension 0 is:  2018-05-13T05:18:08
The trigger time is: 547855327.99314. The reference is BAT GRB summary file
Using zero point of 17.645 for filter V
Use aperture correction of  1.030 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(201.93804,21.40356,25")
fk5;-circle(201.93804,21.40356,12.5")
fk5;-circle(201.940599,21.407305,6")
fk5;-circle(201.946551,21.403262,6")
 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 vv547855525E     197.9  0.99    9.9    7.0 198    148  5395  0.164 0.282 19.61 17.6 
   2 vv547861314I    5986.1  0.99  132.2   88.6 200   2156  5374  0.066 0.075 20.60 19.0  0.0656 0.0750 20.60 19.0   132  4.541  5.189 18.65 0.024 
    Sum (T+  5986 to   6120):              88.6         80.2 (est. in src region)   SNR_unwtd_sum:   0.88 0.9987 signif. UL:  18.97
  0   132 547861381    6053.3     67.2    -67.2    0.0656   0.0750 20.602 78.398  -0.827
Total wtd_rate (for all exposures so far): -0.026 +/- 0.048 snr: -0.5 mag: 99.00 UL: 19.82
Rebinned Data for sw00832119992uvv_sk.img using a zero point of 17.645:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      131    6053.3     67.2    -67.2    0.0656   0.0750 20.60  0.83    6053.3    0.0656   0.0750 20.60  0.83 18.97
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00832119992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.141 at 547859281
The processing date in extension 0 is:  2018-05-13T05:18:07
The trigger time is: 547855327.99314. The reference is BAT GRB summary file
Using zero point of 18.969 for filter B
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(201.93804,21.40356,25")
fk5;-circle(201.93804,21.40356,12.5")
fk5;-circle(201.940583,21.407310,6")
fk5;-circle(201.946655,21.403302,6")
 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 bb547859281I    3953.3  0.99  196.6  192.2 200   5441  5401 -0.049 0.075 99.00 20.7 -0.0490 0.0751 99.00 20.7   197 -0.670  1.027 99.00 0.071 
    Sum (T+  3953 to   4153):             192.2        201.5 (est. in src region)   SNR_unwtd_sum:  -0.65 0.9987 signif. UL:  20.68
  0   197 547859381    4053.2     99.9    -99.9   -0.0490   0.0751 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.027 +/- 0.048 snr: -0.6 mag: 99.00 UL: 21.14
Rebinned Data for sw00832119992ubb_sk.img using a zero point of 18.969:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    4053.2     99.9    -99.9   -0.0490   0.0751 99.00 99.00    4053.2   -0.0490   0.0751 99.00 99.00 20.68
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00832119992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.152 at 547859076
The processing date in extension 0 is:  2018-05-13T05:18:07
The trigger time is: 547855327.99314. The reference is BAT GRB summary file
Using zero point of 18.188 for filter U
Use aperture correction of  1.032 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(201.93804,21.40356,25")
fk5;-circle(201.93804,21.40356,12.5")
fk5;-circle(201.946617,21.403285,6")
 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 uu547859076I    3748.1  0.99  196.6  112.7 188   3481  5780 -0.003 0.057 99.00 20.0 -0.0029 0.0569 99.00 20.0   197 -0.077  1.518 99.00 0.065 
   2 uu547871353I   16025.2  1.00  225.2   87.0 196   2824  5799 -0.039 0.044 99.00 20.6 -0.0222 0.0353 99.00 20.7   422 -0.427  1.450 99.00 0.045 
    Sum (T+  3748 to  16254):             199.7        208.7 (est. in src region)   SNR_unwtd_sum:  -0.63 0.9987 signif. UL:  20.71
  0   422 547865739   10410.5   5843.5  -6662.4   -0.0222   0.0353 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.028 +/- 0.048 snr: -0.6 mag: 99.00 UL: 20.37
Rebinned Data for sw00832119992uuu_sk.img using a zero point of 18.188:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    3848.0     99.9    -99.9   -0.0029   0.0569 99.00 99.00    3848.0   -0.0029   0.0569 99.00 99.00 20.05
  1      224   16139.6    114.4   -114.4   -0.0390   0.0437 99.00 99.00   10415.8   -0.0222   0.0353 99.00 99.00 20.71
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00832119992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.353 at 547858871
The processing date in extension 0 is:  2018-05-13T05:18:07
The trigger time is: 547855327.99314. The reference is BAT GRB summary file
Using zero point of 17.087 for filter UVW1
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(201.93804,21.40356,25")
fk5;-circle(201.93804,21.40356,12.5")
fk5;-circle(201.946655,21.403349,6")
 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
High bkg:   1 w1547858871I  196.6   2272  5792  1.995  0.042
   1 w1547858871I    3543.3  1.00  196.6   85.1 204   2272  5792  0.027 0.050 21.01 18.9  0.0270 0.0495 21.01 18.9   197  1.879  3.449 19.61 0.035 
   2 w1547865614I   10286.8  1.00   24.8    5.6 192     85  5815  0.117 0.100 19.41 18.0  0.0371 0.0454 20.66 19.0   221  3.025  3.431 19.09 0.035 
   3 w1547870446I   15119.0  1.00  885.6   86.3 200   2240  5784  0.010 0.011 22.05 20.5  0.0157 0.0126 21.60 20.3  1107  3.052  2.371 19.08 0.037 
    Sum (T+  3543 to  16019):             177.0        160.3 (est. in src region)   SNR_unwtd_sum:   1.24 0.9987 signif. UL:  20.25
  0  1107 547868661   13332.5   2686.2  -9789.2    0.0157   0.0126 21.598  1.781  -0.642
Total wtd_rate (for all exposures so far): -0.026 +/- 0.048 snr: -0.5 mag: 99.00 UL: 19.26
# ============ Reading file sw00832119001uw1_sk.img ================
Use keyword TRIGTIME of 547855328 for trigger time.
Long-term sensitivity correction to zero point is -0.353 at 547922671
The processing date in extension 0 is:  2018-05-23T07:24:18
The trigger time is: 547855328. The reference is keyword in image file
Using zero point of 17.087 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.00
Using background region based on sources found in extension 9:
# 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(201.93804,21.40356,25")
fk5;-circle(201.93804,21.40356,12.5")
fk5;-circle(201.946664,21.403205,6")
 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 w1547922670I   67342.7  1.00  561.3   35.4 204   1320  5783 -0.021 0.011 99.00 21.2 -0.0206 0.0112 99.00 21.2   561 -26.577 14.513 99.00 0.009 
Low  bkg:   2 w1547924546I   25.4     44  5796  0.297  0.045
   2 w1547924546I   69218.7  1.00   25.4    1.3 200     44  5797 -0.009 0.047 99.00 19.2 -0.0201 0.0109 99.00 21.2   587 -25.761 14.138 99.00 0.009 
   3 w1547927820I   72492.4  1.00  748.5   72.5 204   2111  5804 -0.002 0.012 99.00 20.7 -0.0101 0.0083 99.00 21.3  1335 -15.073 10.865 99.00 0.008 
   4 w1547933601I   78274.0  1.00  727.3   73.0 200   1906  5784  0.010 0.012 22.08 20.4 -0.0030 0.0069 99.00 21.3  2062 -5.936  9.432 99.00 0.008 
   5 w1547935719I   80391.1  1.00  325.2   19.0 200    640  5819 -0.010 0.014 99.00 20.6 -0.0039 0.0063 99.00 21.5  2388 -7.244  8.658 99.00 0.008 
   6 w1547939332I   84004.2  1.00  402.3   53.2 204   1171  5785  0.031 0.019 20.87 19.7  0.0011 0.0060 24.50 21.3  2790 -1.626  8.370 99.00 0.008 
   7 w1547945054I   89726.7  1.00  498.4   67.1 204   2147  5787 -0.018 0.017 99.00 20.5 -0.0018 0.0057 99.00 21.5  3288 -3.593  8.061 99.00 0.007 
   8 w1547947174I   91846.2  1.00  345.8   16.6 204    773  5794 -0.032 0.013 99.00 21.2 -0.0046 0.0053 99.00 21.7  3634 -7.771  7.624 99.00 0.007 
   9 w1547950720I   95392.7  1.00  826.9  222.6 200   5922  5817  0.024 0.019 21.14 19.8  0.0006 0.0056 25.08 21.4  4461 -5.039  7.452 99.00 0.005 
  10 w1547956472I  101144.3  1.00  352.5   70.4 200   1769  5797  0.028 0.025 20.99 19.5  0.0026 0.0055 23.55 21.3  4813 -3.407  7.370 99.00 0.005 
    Sum (T+ 67343 to 101502):             631.1        619.0 (est. in src region)   SNR_unwtd_sum:   0.47 0.9987 signif. UL:  21.35
  0  4813 547939079   83751.4  17751.0 -16408.7    0.0026   0.0055 23.549 75.451  -1.233
Total wtd_rate (for all exposures so far): -0.026 +/- 0.048 snr: -0.5 mag: 99.00 UL: 19.26
Rebinned Data for sw00832119001uw1_sk.img using a zero point of 17.087:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    3643.2     99.9    -99.9    0.0270   0.0495 21.01  1.13    3643.2    0.0270   0.0495 21.01  1.13 18.94
  1      910   15425.3    593.5  -5138.5    0.0133   0.0111 21.78  0.66   13337.8    0.0157   0.0126 21.60  0.64 20.25
  2 4.81e+03   83746.3  17756.1 -16403.6    0.0026   0.0055 23.55  1.23   70583.2    0.0050   0.0051 22.83  0.75 21.30
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00832119992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.339 at 547855703
The processing date in extension 0 is:  2018-05-13T05:18:08
The trigger time is: 547855328. The reference is keyword in image file
Using zero point of 16.511 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(201.93804,21.40356,25")
fk5;-circle(201.93804,21.40356,12.5")
fk5;-circle(201.946485,21.403308,6")
 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 m2547855703E     375.4  1.00    7.2    0.0 199      7  5763 
   2 m2547864708I    9380.0  1.00  885.6   23.5 184    778  5764 -0.002 0.006 99.00 20.9 -0.0015 0.0057 99.00 20.9   886 -0.491  1.832 99.00 0.112 
    Sum (T+  9380 to  10280):              23.5         24.8 (est. in src region)   SNR_unwtd_sum:  -0.27 0.9987 signif. UL:  20.92
  0   886 547865158    9829.9    449.9   -449.9   -0.0015   0.0057 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.027 +/- 0.048 snr: -0.6 mag: 99.00 UL: 18.69
Rebinned Data for sw00832119992um2_sk.img using a zero point of 16.511:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885    9829.9    449.9   -449.9   -0.0015   0.0057 99.00 99.00    9829.9   -0.0015   0.0057 99.00 99.00 20.92
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00832119992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.430 at 547859692
The processing date in extension 0 is:  2018-05-13T05:18:08
The trigger time is: 547855328. The reference is keyword in image file
Using zero point of 16.950 for filter UVW2
Use aperture correction of  1.035 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(201.93804,21.40356,25")
fk5;-circle(201.93804,21.40356,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 w2547859692I    4364.0  1.00   29.4    1.6 196     46  5836 
   2 w2547861109I    5781.3  1.00  196.6    8.6 208    223  5872  0.003 0.016 23.11 20.1  0.0034 0.0156 23.11 20.1   197  0.438  1.994 21.19 0.195 
    Sum (T+  5781 to   5981):               8.6          7.9 (est. in src region)   SNR_unwtd_sum:   0.22 0.9987 signif. UL:  20.14
  0   197 547861209    5881.1     99.9    -99.9    0.0034   0.0156 23.111 75.889  -1.862
Total wtd_rate (for all exposures so far): -0.026 +/- 0.048 snr: -0.5 mag: 99.00 UL: 19.12
Rebinned Data for sw00832119992uw2_sk.img using a zero point of 16.950:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5881.1     99.9    -99.9    0.0034   0.0156 23.11  1.86    5881.1    0.0034   0.0156 23.11  1.86 20.14
The data range from T+218.4 s (0.00 d) to T+101502.4 s (1.17 d)
Wrote uvot_fluxes_180523d07h39m28s056317usUT.qdp
Wrote uvot_fluxes_180523d07h39m28s056317usUT.gif
Wrote uvot_fluxes_180523d07h39m28s056317usUT.ps
Wrote uvot_fluxes_180523d07h39m28s056317usUT_vis.qdp
Wrote uvot_fluxes_180523d07h39m28s056317usUT_uv.qdp
Wrote uvot_fluxes_180523d07h39m28s056317usUT_vis.gif
Wrote uvot_fluxes_180523d07h39m28s056317usUT_vis.ps
Wrote uvot_fluxes_180523d07h39m28s056317usUT_uv.gif
Wrote uvot_fluxes_180523d07h39m28s056317usUT_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      347     293.3     74.9    -74.9   -0.1128   0.1676 99.00 99.00     293.3   -0.1128   0.1676 99.00 99.00 21.14
  1     2.32    4224.8   1895.6   -476.7    0.1946   0.1348 22.07  0.57     319.5   -0.0858   0.1533 99.00 99.00 21.20
  2  0.00604   16139.6    114.4   -114.4   -0.2705   0.3028 99.00 99.00     319.7   -0.0859   0.1532 99.00 99.00 21.20
The data range from T+218.4 s (0.00 d) to T+101502.4 s (1.17 d)
Wrote uvot_fluxes_wtd_180523d07h39m28s056317usUT.qdp
Wrote uvot_fluxes_wtd_180523d07h39m28s056317usUT.gif
Wrote uvot_fluxes_wtd_180523d07h39m28s056317usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem