# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190902d06h08m01s372341usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00920783002 -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
# ========= GRB190816A ===================
Could not find/read custom source region custom_920783_src.reg
Used archived XRT position of 341.18950 -29.75761 4.00
Reference: GCN_Circulars-25473-Sun,_25_Aug_2019_00:58:08_-0400
The position is (22:44:45.48, -29:45:27.4)
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(341.18950,-29.75761,4") # color=red dash=0
Source region spec. is: 341.18950 -29.75761 4"
Region file centered at (341.18950,-29.75761), which is (22:44:45.48, -29:45:27.4)
Could not find/read custom background region custom_920783_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 -23.43044 from uncorrected trigger time of 587659344.57 in BAT summary file
# ============ Reading file sw00920783001uvv_sk.img ================
Use keyword TRIGTIME of 587659368 for trigger time.
Long-term sensitivity correction to zero point is -0.272 at 587829765
The processing date in extension 0 is: 2019-08-28T09:02:34
The trigger time is: 587659368. The reference is keyword in image file
Using zero point of 17.618 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(341.18950,-29.75761,25")
fk5;-circle(341.18950,-29.75761,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 vv587829765I  170397.5  0.99  295.0  229.7 208   6435  5895  0.009 0.054 22.71 19.5  0.0092 0.0542 22.71 19.5   295 18.312 108.248 17.13 0.001 
   2 vv587830069I  170701.0  0.99  247.9  195.2 208   5333  5885  0.028 0.059 21.50 19.3  0.0177 0.0400 22.00 19.7   543 35.560 80.062 16.41 0.001 
    Sum (T+170397 to 170953):             424.9        415.6 (est. in src region)   SNR_unwtd_sum:   0.44 0.9987 signif. UL:  19.73
  0   543 587830043  170675.0    277.9   -277.5    0.0177   0.0400 21.996 77.004  -1.282
Total wtd_rate (for all exposures so far): 35.560 +/-78.714 snr:  0.5 mag: 16.41 UL: 11.49
Rebinned Data for sw00920783001uvv_sk.img using a zero point of 17.618:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      539  170675.0    277.9   -277.5    0.0177   0.0400 22.00  1.28  170675.0    0.0177   0.0400 22.00  1.28 19.73
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00920783001ubb_sk.img ================
Use keyword TRIGTIME of 587659368 for trigger time.
Long-term sensitivity correction to zero point is -0.155 at 587801069
The processing date in extension 0 is:  2019-08-28T09:02:33
The trigger time is: 587659368. The reference is keyword in image file
Using zero point of 18.955 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(341.18950,-29.75761,25")
fk5;-circle(341.18950,-29.75761,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 bb587801068I  141700.7  0.99  295.0  320.2 188  10515  5810 -0.071 0.065 99.00 20.9 -0.0709 0.0645 99.00 20.9   295 -34.411 31.307 99.00 0.002 
   2 bb587801372I  142004.3  0.99  264.4  329.7 200   9549  5822  0.007 0.073 24.39 20.5 -0.0343 0.0485 99.00 21.2   559 -17.344 23.504 99.00 0.002 
   3 bb587835501I  176133.4  0.99  295.0  392.3 200  10477  5856  0.122 0.071 21.24 20.1  0.0197 0.0402 23.22 21.0   855  5.534 20.657 18.43 0.002 
   4 bb587835804I  176436.9  0.99  271.6  307.0 196   9571  5819 -0.059 0.069 99.00 20.8  0.0007 0.0347 26.89 21.3  1126 -2.362 18.494 99.00 0.002 
    Sum (T+141701 to 176713):            1349.2       1348.4 (est. in src region)   SNR_unwtd_sum:   0.02 0.9987 signif. UL:  21.33
  0  1126 587818683  159315.1  17397.7 -17614.4    0.0007   0.0347 26.887 72.113  -4.304
Total wtd_rate (for all exposures so far): -0.394 +/-17.727 snr: -0.0 mag: 99.00 UL: 14.57
Rebinned Data for sw00920783001ubb_sk.img using a zero point of 18.955:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.11e+03  159310.6  17402.2 -17609.9    0.0007   0.0347 26.89  4.30  159310.6    0.0007   0.0347 26.89  4.30 21.33
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00920783001uuu_sk.img ================
Use keyword TRIGTIME of 587659368 for trigger time.
Long-term sensitivity correction to zero point is -0.168 at 587818292
The processing date in extension 0 is:  2019-08-28T09:02:34
The trigger time is: 587659368. The reference is keyword in image file
Using zero point of 18.172 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(341.18950,-29.75761,25")
fk5;-circle(341.18950,-29.75761,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 uu587818292I  158924.3  1.00  295.0  140.4 196   4357  5839 -0.021 0.042 99.00 20.5 -0.0205 0.0424 99.00 20.5   295 -22.988 47.385 99.00 0.002 
   2 uu587818595I  159227.9  0.99  260.9  146.6 204   3721  5830  0.065 0.049 21.14 19.8  0.0197 0.0321 22.43 20.5   556 21.867 35.941 16.94 0.002 
    Sum (T+158924 to 159493):             287.0        276.5 (est. in src region)   SNR_unwtd_sum:   0.61 0.9987 signif. UL:  20.48
  0   556 587818577  159208.5    284.5   -284.2    0.0197   0.0321 22.435 76.565  -1.049
Total wtd_rate (for all exposures so far):  4.213 +/-15.815 snr:  0.3 mag: 18.73 UL: 13.84
Rebinned Data for sw00920783001uuu_sk.img using a zero point of 18.172:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      553  159208.5    284.5   -284.2    0.0197   0.0321 22.43  1.05  159208.5    0.0197   0.0321 22.43  1.05 20.48
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00920783001uw1_sk.img ================
Use keyword TRIGTIME of 587659368 for trigger time.
Long-term sensitivity correction to zero point is -0.445 at 587812555
The processing date in extension 0 is:  2019-08-28T09:02:34
The trigger time is: 587659368. The reference is keyword in image file
Using zero point of 16.995 for filter UVW1
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(341.18950,-29.75761,25")
fk5;-circle(341.18950,-29.75761,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 w1587812555I  153187.1  1.00  537.3   46.9 192   1433  5820 -0.001 0.013 99.00 20.4 -0.0007 0.0134 99.00 20.4   537 -2.193 42.837 99.00 0.004 
    Sum (T+153187 to 153733):              46.9         47.3 (est. in src region)   SNR_unwtd_sum:  -0.05 0.9987 signif. UL:  20.42
  0   537 587812828  153460.1    273.0   -273.0   -0.0007   0.0134 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  3.436 +/-14.842 snr:  0.2 mag: 18.95 UL: 12.74
# ============ Reading file sw00920783002uw1_sk.img ================
Use keyword TRIGTIME of 587659368 for trigger time.
Long-term sensitivity correction to zero point is -0.447 at 588381434
The processing date in extension 0 is:  2019-09-02T05:56:21
The trigger time is: 587659368. The reference is keyword in image file
Using zero point of 16.993 for filter UVW1
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(341.18950,-29.75761,25")
fk5;-circle(341.18950,-29.75761,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 w1588381433I  722065.6  1.00 1345.8  128.2 196   3445  5836  0.010 0.009 22.04 20.6  0.0096 0.0088 22.04 20.6  1346 144.527 133.112 14.89 0.001 
    Sum (T+722066 to 723433):             128.2        115.7 (est. in src region)   SNR_unwtd_sum:   1.09 0.9987 signif. UL:  20.58
  0  1346 588382117  722749.3    683.7   -683.7    0.0096   0.0088 22.038  2.756  -0.709
Total wtd_rate (for all exposures so far):  5.407 +/-14.749 snr:  0.4 mag: 18.46 UL: 12.71
Rebinned Data for sw00920783002uw1_sk.img using a zero point of 16.993:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      537  153460.1    273.0   -273.0   -0.0007   0.0134 99.00 99.00  153460.1   -0.0007   0.0134 99.00 99.00 20.42
  1 1.34e+03  722749.3    683.7   -683.7    0.0096   0.0088 22.04  0.71  560312.8    0.0067   0.0074 22.43  0.81 20.82
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00920783001um2_sk.img ================
Use keyword TRIGTIME of 587659368 for trigger time.
Long-term sensitivity correction to zero point is -0.416 at 587806820
The processing date in extension 0 is:  2019-08-28T09:02:34
The trigger time is: 587659368. The reference is keyword in image file
Using zero point of 16.434 for filter UVM2
Use aperture correction of  1.031 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(341.18950,-29.75761,25")
fk5;-circle(341.18950,-29.75761,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 m2587806819I  147451.6  1.00  572.2   11.4 192    365  5816 -0.001 0.006 99.00 20.7 -0.0011 0.0062 99.00 20.7   572 -5.883 31.935 99.00 0.009 
   2 m2587841367I  181999.6  1.00  406.8    7.6 188    275  5817 -0.003 0.007 99.00 20.7 -0.0021 0.0047 99.00 21.1   979 -10.667 26.108 99.00 0.008 
   3 m2587847449I  188081.7  1.00   89.8    2.0 192     52  5816  0.003 0.016 22.69 19.6 -0.0016 0.0045 99.00 21.1  1069 -8.536 25.419 99.00 0.008 
   4 m2587865412I  206044.3  1.00  303.7    5.8 200    197  5844 -0.003 0.008 99.00 20.5 -0.0019 0.0040 99.00 21.3  1373 -10.483 23.418 99.00 0.008 
   5 m2587875722I  216354.8  1.00  212.0    6.2 192    145  5832  0.007 0.012 21.81 19.8 -0.0007 0.0038 99.00 21.3  1585 -5.274 22.803 99.00 0.008 
    Sum (T+147452 to 216570):              33.1         34.2 (est. in src region)   SNR_unwtd_sum:  -0.19 0.9987 signif. UL:  21.27
  0  1585 587838648  179280.5  37289.8 -31828.9   -0.0007   0.0038 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  2.292 +/-12.293 snr:  0.2 mag: 19.39 UL: 12.39
# ============ Reading file sw00920783002um2_sk.img ================
Use keyword TRIGTIME of 587659368 for trigger time.
Long-term sensitivity correction to zero point is -0.417 at 588238528
The processing date in extension 0 is:  2019-09-02T05:56:21
The trigger time is: 587659368. The reference is keyword in image file
Using zero point of 16.433 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(341.18950,-29.75761,25")
fk5;-circle(341.18950,-29.75761,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 m2588238527I  579159.7  1.00  800.4   18.0 200    600  5864 -0.003 0.006 99.00 20.9 -0.0032 0.0056 99.00 20.9   800 -63.987 112.752 99.00 0.002 
   2 m2588255364I  595996.9  1.00 1177.2   28.8 204    717  5872  0.003 0.005 22.61 20.8  0.0007 0.0036 24.26 21.2  1978 20.371 75.133 17.02 0.002 
    Sum (T+579160 to 597193):              46.8         45.4 (est. in src region)   SNR_unwtd_sum:   0.20 0.9987 signif. UL:  21.21
  0  1978 588249071  589703.0   7489.9 -10543.3    0.0007   0.0036 24.261 74.739  -1.928
Total wtd_rate (for all exposures so far):  2.808 +/-12.127 snr:  0.2 mag: 19.17 UL: 12.39
Rebinned Data for sw00920783002um2_sk.img using a zero point of 16.433:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.58e+03  179280.4  37289.9 -31828.8   -0.0007   0.0038 99.00 99.00  179280.4   -0.0007   0.0038 99.00 99.00 21.26
  1 1.98e+03  589702.9   7490.0 -10543.3    0.0007   0.0036 24.26  1.93  407133.4    0.0001   0.0026 26.66  3.81 21.61
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00920783001uw2_sk.img ================
Use keyword TRIGTIME of 587659368 for trigger time.
Long-term sensitivity correction to zero point is -0.544 at 587824068
The processing date in extension 0 is:  2019-08-28T09:02:34
The trigger time is: 587659368. The reference is keyword in image file
Using zero point of 16.836 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(341.18950,-29.75761,25")
fk5;-circle(341.18950,-29.75761,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 w2587824068I  164700.0  1.00  485.1   17.0 192    533  5804 -0.001 0.009 99.00 20.7 -0.0014 0.0089 99.00 20.7   485 -5.561 35.497 99.00 0.007 
    Sum (T+164700 to 165193):              17.0         17.6 (est. in src region)   SNR_unwtd_sum:  -0.16 0.9987 signif. UL:  20.73
  0   485 587824315  164946.5    246.5   -246.5   -0.0014   0.0089 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  1.933 +/-11.494 snr:  0.2 mag: 19.57 UL: 12.87
Rebinned Data for sw00920783001uw2_sk.img using a zero point of 16.836:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      485  164946.5    246.5   -246.5   -0.0014   0.0089 99.00 99.00  164946.5   -0.0014   0.0089 99.00 99.00 20.73
The data range from T+141700.7 s (1.64 d) to T+723432.9 s (8.37 d)
Wrote uvot_fluxes_190902d06h08m01s372341usUT.qdp
Wrote uvot_fluxes_190902d06h08m01s372341usUT.gif
Wrote uvot_fluxes_190902d06h08m01s372341usUT.ps
Wrote uvot_fluxes_190902d06h08m01s372341usUT_vis.qdp
Wrote uvot_fluxes_190902d06h08m01s372341usUT_uv.qdp
Wrote uvot_fluxes_190902d06h08m01s372341usUT_vis.gif
Wrote uvot_fluxes_190902d06h08m01s372341usUT_vis.ps
Wrote uvot_fluxes_190902d06h08m01s372341usUT_uv.gif
Wrote uvot_fluxes_190902d06h08m01s372341usUT_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.000982  155812.6  20900.2 -14112.0   -0.0097   0.1070 99.00 99.00  155812.6   -0.0097   0.1070 99.00 99.00 21.47
The data range from T+141700.7 s (1.64 d) to T+723432.9 s (8.37 d)
Wrote uvot_fluxes_wtd_190902d06h08m01s372341usUT.qdp
Wrote uvot_fluxes_wtd_190902d06h08m01s372341usUT.gif
Wrote uvot_fluxes_wtd_190902d06h08m01s372341usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem