# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190610d13h23m24s316315usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020894001 -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
# ========= GRB190530 ===================
Could not find/read custom source region custom_020894_src.reg
Used archived uvot source position of 120.53209 35.47968 3.00
Reference: GCN_Circ-24703
The position is (08:02:07.70, +35:28:46.8)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(120.53209,35.47968,3") # color=red dash=0
Source region spec. is: 120.53209 35.47968 3"
Region file centered at (120.53209,35.47968), which is (08:02:07.70, +35:28:46.8)
Could not find/read custom background region custom_020894_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 120.53209 35.47968:
ra: 120.5293 dec: 35.4661 mag: 10.89
Subtract UTCF of -23.01886 from uncorrected trigger time of 580904348 in BAT summary file
# ============ Reading file sw00020894001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.267 at 581030472
The processing date in extension 0 is: 2019-06-10T12:57:20
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 17.623 for filter V
Use aperture correction of 1.087 based on aperture of 3.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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 vv581030471I  126100.6  0.98   30.3   41.9 112   2153  5822  0.017 0.240 22.03 17.9  0.0172 0.2404 22.03 17.9    30 25.335 353.543 16.78 0.000 
   2 vv581036193I  131822.3  0.97   29.3   48.9 120   2104  5868  0.224 0.269 19.25 17.6  0.1187 0.1799 19.94 18.0    60 169.201 269.000 14.72 0.000 
   3 vv581041283I  136912.7  0.97  191.7  298.9 120  13820  5874  0.097 0.102 20.16 18.6  0.1018 0.0885 20.10 18.7   251 158.306 139.001 14.79 0.000 
    Sum (T+126101 to 137107):             389.7        366.8 (est. in src region)   SNR_unwtd_sum:   1.15 0.9987 signif. UL:  18.70
  0   251 581039464  135093.4   2014.0  -8992.8    0.1018   0.0885 20.103  2.206  -0.679
Total wtd_rate (for all exposures so far): 158.306 +/-137.693 snr:  1.1 mag: 14.79 UL: 10.72
Rebinned Data for sw00020894001uvv_sk.img using a zero point of 17.623:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      245  135092.2   2015.3  -8991.5    0.1018   0.0885 20.10  0.68  135092.2    0.1018   0.0885 20.10  0.68 18.70
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00020894001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.153 at 581024393
The processing date in extension 0 is:  2019-06-10T12:57:19
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 18.957 for filter B
Use aperture correction of  1.108 based on aperture of  3.00
Using background region based on sources found in extension 4:
# 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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 bb581024393I  120022.4  0.96   50.9  142.8 120   5728  5896  0.597 0.274 19.52 18.6  0.5967 0.2740 19.52 18.6    51 244.416 112.241 14.32 0.001 
   2 bb581028718I  124347.4  0.95  179.6  569.5 112  27557  5849  0.272 0.157 20.37 19.3  0.3445 0.1364 20.11 19.3   231 152.374 57.383 14.83 0.001 
   3 bb581030307I  125936.6  0.96   30.3   78.7 112   3535  5858  0.425 0.341 19.89 18.5  0.3540 0.1269 20.09 19.3   261 156.532 53.443 14.80 0.001 
   4 bb581034527I  130156.7  0.95  195.6  633.3 116  28212  5828  0.427 0.151 19.88 19.1  0.3852 0.0971 19.99 19.4   456 169.416 41.793 14.72 0.001 
   5 bb581036033I  131662.9  0.96   29.3   67.7 104   3356  5832  0.309 0.326 20.23 18.7  0.3806 0.0934 20.01 19.4   486 167.100 40.191 14.73 0.001 
   6 bb581040295I  135924.2  0.95  191.7  556.3 104  28176  5834  0.328 0.144 20.17 19.2  0.3658 0.0784 20.05 19.5   677 163.266 34.476 14.76 0.001 
    Sum (T+120022 to 136119):            2048.3       1835.5 (est. in src region)   SNR_unwtd_sum:   4.66 0.9987 signif. UL:  19.51
  0   677 581033818  129446.8   6672.2  -9424.4    0.3658   0.0784 20.049  0.262  -0.211
Total wtd_rate (for all exposures so far): 163.159 +/-33.217 snr:  4.9 mag: 14.76 UL: 12.91
Rebinned Data for sw00020894001ubb_sk.img using a zero point of 18.957:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      644  129449.0   6669.9  -9426.7    0.3658   0.0784 20.05  0.21  129449.0    0.3658   0.0784 20.05  0.21 19.51
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020894001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.165 at 581024337
The processing date in extension 0 is:  2019-06-10T12:57:19
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 18.175 for filter U
Use aperture correction of  1.100 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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 uu581024337I  119966.0  0.98   51.0   66.7 116   2258  5880  0.488 0.181 18.95 18.1  0.4877 0.1809 18.95 18.1    51 410.533 152.247 13.76 0.001 
   2 uu581028507I  124136.6  0.97  202.5  404.1 128  14602  5906  0.489 0.113 18.95 18.4  0.4891 0.0974 18.95 18.4   253 421.278 82.998 13.73 0.001 
   3 uu581030272I  125901.2  0.98   30.3   39.0 112   1367  5872  0.479 0.232 18.97 18.0  0.4880 0.0904 18.95 18.5   284 421.610 76.997 13.73 0.001 
   4 uu581034323I  129953.0  0.97  195.6  329.9 112  13890  5832  0.364 0.106 19.27 18.6  0.4374 0.0687 19.07 18.7   479 388.886 60.209 13.81 0.001 
   5 uu581035999I  131628.4  0.98   29.3   31.4 116   1348  5870  0.183 0.216 20.02 18.4  0.4226 0.0659 19.11 18.7   509 372.245 57.655 13.86 0.001 
   6 uu581040095I  135724.3  0.97  191.7  347.3 108  13784  5833  0.543 0.111 18.84 18.3  0.4554 0.0566 19.03 18.7   700 406.537 50.579 13.77 0.001 
    Sum (T+119966 to 135919):            1218.6        935.7 (est. in src region)   SNR_unwtd_sum:   8.04 0.9987 signif. UL:  18.68
  0   700 581033478  129106.5   6812.6  -9140.5    0.4554   0.0566 19.029  0.144  -0.127
Total wtd_rate (for all exposures so far): 244.579 +/-27.647 snr:  8.8 mag: 14.32 UL: 11.89
Rebinned Data for sw00020894001uuu_sk.img using a zero point of 18.175:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      683  129103.1   6816.0  -9137.1    0.4554   0.0566 19.03  0.13  129103.1    0.4554   0.0566 19.03  0.13 18.68
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020894001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.428 at 581024229
The processing date in extension 0 is:  2019-06-10T12:57:19
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 17.012 for filter UVW1
Use aperture correction of  1.123 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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 w1581024228I  119857.8  1.00  102.1   28.1 112    775  5826  0.145 0.059 19.11 18.2  0.1454 0.0588 19.11 18.2   102 357.025 144.331 13.91 0.003 
High bkg:   2 w1581028090I  405.2   4355  5816  1.848  0.028
   2 w1581028090I  123719.8  1.00  405.2  129.3 104   4355  5822  0.143 0.032 19.12 18.6  0.1437 0.0280 19.12 18.6   507 361.943 70.579 13.89 0.002 
High bkg:   3 w1581030206I   60.8    524  5820  1.481  0.065
   3 w1581030206I  125835.2  1.00   60.8   27.8 112    524  5828  0.328 0.098 18.22 17.5  0.1634 0.0271 18.98 18.5   568 415.455 68.720 13.74 0.002 
High bkg:   4 w1581033922I  390.5   4001  5820  1.760  0.028
   4 w1581033922I  129551.1  1.00  390.5  151.0 112   4001  5828  0.214 0.036 18.68 18.2  0.1841 0.0217 18.85 18.5   959 470.747 55.671 13.61 0.002 
High bkg:   5 w1581035935I   58.8    483  5824  1.411  0.064
   5 w1581035935I  131564.4  1.00   58.8   15.5 112    483  5832  0.120 0.076 19.31 18.2  0.1804 0.0209 18.87 18.5  1017 461.647 53.743 13.63 0.002 
High bkg:   6 w1581039699I  384.6   4019  5808  1.799  0.028
   6 w1581039699I  135328.4  1.00  384.6  127.6 112   4019  5813  0.147 0.033 19.09 18.5  0.1713 0.0177 18.93 18.6  1402 449.463 46.531 13.66 0.002 
    Sum (T+119858 to 135719):             479.3        266.4 (est. in src region)   SNR_unwtd_sum:   9.68 0.9987 signif. UL:  18.63
  0  1402 581033213  128842.4   6876.7  -8984.6    0.1713   0.0177 18.927  0.119  -0.106
Total wtd_rate (for all exposures so far): 322.247 +/-24.614 snr: 13.1 mag: 14.02 UL: 10.52
Rebinned Data for sw00020894001uw1_sk.img using a zero point of 17.012:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.4e+03  128841.9   6877.2  -8984.1    0.1713   0.0177 18.93  0.11  128841.9    0.1713   0.0177 18.93  0.11 18.63
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020894001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.402 at 581030507
The processing date in extension 0 is:  2019-06-10T12:57:20
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 16.448 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 m2581030506I  126135.5  1.00   43.9    2.0 120     53  5857  0.023 0.036 20.54 18.6  0.0230 0.0358 20.54 18.6    44 99.916 155.620 15.29 0.009 
   2 m2581036227I  131856.1  1.00   62.7    7.2 108     67  5817  0.105 0.047 18.89 18.0  0.0714 0.0316 19.31 18.4   107 334.887 146.245 13.98 0.010 
   3 m2581041482I  137112.0  1.00   69.2   10.0 112     85  5821  0.134 0.051 18.63 17.8  0.0960 0.0276 18.99 18.3   176 438.019 126.511 13.69 0.010 
    Sum (T+126136 to 137182):              19.2          4.0 (est. in src region)   SNR_unwtd_sum:   3.47 0.9987 signif. UL:  18.31
  0   176 581036899  132528.1   4654.2  -6392.6    0.0960   0.0276 18.992  0.368  -0.275
Total wtd_rate (for all exposures so far): 331.005 +/-25.846 snr: 12.8 mag: 13.99 UL:  9.92
Rebinned Data for sw00020894001um2_sk.img using a zero point of 16.448:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      176  132526.9   4655.4  -6391.4    0.0960   0.0276 18.99  0.28  132526.9    0.0960   0.0276 18.99  0.28 18.31
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020894001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.523 at 581024451
The processing date in extension 0 is:  2019-06-10T12:57:19
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 16.857 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 w2581024450I  120079.8  1.00  187.1   35.2 112    458  5814  0.156 0.035 18.87 18.3  0.1564 0.0353 18.87 18.3   187 443.899 100.080 13.67 0.007 
   2 w2581030343I  125973.0  1.00  120.8   16.5 116    320  5874  0.093 0.037 19.43 18.6  0.1317 0.0260 19.06 18.6   308 386.380 75.953 13.82 0.007 
   3 w2581034732I  130361.4  1.00  284.0   40.9 116    879  5869  0.092 0.025 19.45 18.8  0.1126 0.0181 19.23 18.8   592 345.790 55.210 13.94 0.006 
   4 w2581036069I  131698.1  1.00  117.9   19.8 116    307  5865  0.129 0.042 19.08 18.3  0.1152 0.0166 19.20 18.8   710 354.497 50.861 13.92 0.006 
   5 w2581040495I  136124.8  1.00  769.4  102.9 112   2230  5811  0.086 0.015 19.52 19.1  0.1002 0.0110 19.36 19.0  1479 318.461 34.923 14.03 0.006 
    Sum (T+120080 to 136907):             215.2         81.6 (est. in src region)   SNR_unwtd_sum:   9.07 0.9987 signif. UL:  19.04
  0  1479 581036431  132059.5   4847.1 -11979.7    0.1002   0.0110 19.355  0.127  -0.114
Total wtd_rate (for all exposures so far): 325.611 +/-21.223 snr: 15.3 mag: 14.01 UL: 10.38
Rebinned Data for sw00020894001uw2_sk.img using a zero point of 16.857:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.48e+03  132060.3   4846.2 -11980.5    0.1002   0.0110 19.36  0.11  132060.3    0.1002   0.0110 19.36  0.11 19.04
The data range from T+119857.8 s (1.39 d) to T+137182.3 s (1.59 d)
Wrote uvot_fluxes_190610d13h23m24s316315usUT.qdp
Wrote uvot_fluxes_190610d13h23m24s316315usUT.gif
Wrote uvot_fluxes_190610d13h23m24s316315usUT.ps
Wrote uvot_fluxes_190610d13h23m24s316315usUT_vis.qdp
Wrote uvot_fluxes_190610d13h23m24s316315usUT_uv.qdp
Wrote uvot_fluxes_190610d13h23m24s316315usUT_vis.gif
Wrote uvot_fluxes_190610d13h23m24s316315usUT_vis.ps
Wrote uvot_fluxes_190610d13h23m24s316315usUT_uv.gif
Wrote uvot_fluxes_190610d13h23m24s316315usUT_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 4.41e-05  121434.2   2908.2  -1468.1    2.7024   0.5845 19.21  0.21  121434.2    2.7024   0.5845 19.21  0.21 18.67
  1 0.000182  127848.5   4003.5  -3501.2    1.3628   0.3030 19.95  0.22  126598.3    1.6132   0.2695 19.77  0.17 19.33
  2 1.29e-05  135821.7     97.4    -97.4    3.8067   0.7754 18.84  0.20  127094.4    1.7393   0.2579 19.69  0.15 19.29
  3 6.84e-05  136068.6   1038.9   -144.4    1.1206   0.4729 20.17  0.38  129091.8    1.5941   0.2264 19.78  0.14 19.40
The data range from T+119857.8 s (1.39 d) to T+137182.3 s (1.59 d)
Wrote uvot_fluxes_wtd_190610d13h23m24s316315usUT.qdp
Wrote uvot_fluxes_wtd_190610d13h23m24s316315usUT.gif
Wrote uvot_fluxes_wtd_190610d13h23m24s316315usUT.ps
Found 5 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem