# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200816d12h52m36s585818usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00987016001 -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/data/khamseenssd/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB200806A ===================
Could not find/read custom source region custom_987016_src.reg
Used archived XRT position of 52.93212 37.07875 4.00
Reference: GCN_Circulars-28214-Thu,_6_Aug_2020_22:49:36_-0400
The position is (03:31:43.71, +37:04:43.5)
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(52.93212,37.07875,4") # color=red dash=0
Source region spec. is: 52.93212 37.07875 4"
Region file centered at (52.93212,37.07875), which is (03:31:43.71, +37:04:43.5)
Could not find/read custom background region custom_987016_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 -25.41282 from uncorrected trigger time of 618420529.91 in BAT summary file
# ============ Reading file sw00987016001uwh_sk.img ================
Use keyword TRIGTIME of 618420555.328 for trigger time.
Long-term sensitivity correction to zero point is -0.229 at 618432145
The processing date in extension 0 is: 2020-08-16T12:36:53
The trigger time is: 618420555.328. The reference is keyword in image file
Using zero point of 20.061 for filter WHITE
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(52.93212,37.07875,25")
fk5;-circle(52.93212,37.07875,12.5")
fk5;-circle(52.930188,37.082485,6")
fk5;-circle(52.925938,37.077457,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 wh618432144I   11589.6  0.93  295.0 2115.9 204  51378  5072  0.186 0.176 21.89 20.4  0.1857 0.1763 21.89 20.4   295  2.691  2.554 19.21 0.009 
   2 wh618432448I   11893.2  0.90  295.0 2893.4 200  72468  5067  0.129 0.213 22.29 20.3  0.1577 0.1377 22.07 20.7   590  2.386  1.987 19.35 0.007 
   3 wh618432751I   12196.6  0.89  295.0 3252.9 200  82711  5080 -0.014 0.229 99.00 20.4  0.1014 0.1191 22.55 20.9   885  1.756  1.726 19.68 0.007 
above line uses coinc_corr_src:  0.892 corr_bkg:  0.892
    Sum (T+ 11590 to  12496):            8262.2       8183.3 (est. in src region)   SNR_unwtd_sum:   0.85 0.9987 signif. UL:  20.89
  0   885 618432598   12043.0    453.4   -453.5    0.1014   0.1191 22.546 76.454  -0.843
Total wtd_rate (for all exposures so far):  1.756 +/- 1.693 snr:  1.0 mag: 19.68 UL: 17.96
Rebinned Data for sw00987016001uwh_sk.img using a zero point of 20.061:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      805   12038.5    457.9   -448.9    0.1014   0.1191 22.55  0.84   12038.5    0.1014   0.1191 22.55  0.84 20.89
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00987016001uvv_sk.img ================
Use keyword TRIGTIME of 618420555.328 for trigger time.
Long-term sensitivity correction to zero point is -0.293 at 618426385
The processing date in extension 0 is:  2020-08-16T12:36:53
The trigger time is: 618420555.328. The reference is keyword in image file
Using zero point of 17.597 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(52.93212,37.07875,25")
fk5;-circle(52.93212,37.07875,12.5")
fk5;-circle(52.930122,37.082493,6")
fk5;-circle(52.925923,37.077463,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 vv618426384I    5829.6  0.99  196.6  287.6 204   6919  5058  0.045 0.092 20.95 18.8  0.0454 0.0918 20.95 18.8   197  3.214  6.500 19.02 0.010 
   2 vv618437230I   16675.2  0.99  295.0  352.6 204   7959  5040  0.107 0.067 20.02 18.9  0.0826 0.0547 20.30 19.1   492  6.809  5.863 18.21 0.007 
   3 vv618437534I   16978.7  0.99  295.0  309.1 204   8215  5048 -0.081 0.063 99.00 19.7  0.0213 0.0416 21.77 19.6   787  3.194  5.345 19.03 0.006 
   4 vv618437837I   17282.1  0.99  295.0  377.0 208   9374  5055 -0.031 0.070 99.00 19.3  0.0072 0.0358 22.96 19.9  1082  2.105  5.019 19.48 0.005 
    Sum (T+  5830 to  17582):            1326.3       1318.9 (est. in src region)   SNR_unwtd_sum:   0.20 0.9987 signif. UL:  19.89
  0  1082 618435648   15093.1   2488.7  -9263.4    0.0072   0.0358 22.956 76.044  -1.941
Total wtd_rate (for all exposures so far):  1.786 +/- 1.594 snr:  1.1 mag: 19.66 UL: 15.54
Rebinned Data for sw00987016001uvv_sk.img using a zero point of 17.597:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    5929.5     99.9    -99.9    0.0454   0.0918 20.95  1.20    5929.5    0.0454   0.0918 20.95  1.20 18.79
  1      875   17128.4    453.4   -453.2   -0.0013   0.0387 99.00 99.00   15097.6    0.0072   0.0358 22.96  1.94 19.89
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00987016001ubb_sk.img ================
Use keyword TRIGTIME of 618420555.328 for trigger time.
Long-term sensitivity correction to zero point is -0.166 at 618427205
The processing date in extension 0 is:  2020-08-16T12:36:53
The trigger time is: 618420555.328. The reference is keyword in image file
Using zero point of 18.944 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(52.93212,37.07875,25")
fk5;-circle(52.93212,37.07875,12.5")
fk5;-circle(52.925965,37.077459,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 bb618427204I    6649.6  0.95  142.6  749.8 200  21427  5397 -0.337 0.213 99.00 19.8 -0.3372 0.2133 99.00 19.8   143 -7.833  4.954 99.00 0.007 
    Sum (T+  6650 to   6795):             749.8        794.0 (est. in src region)   SNR_unwtd_sum:  -1.58 0.9987 signif. UL:  19.76
  0   143 618427277    6722.1     72.5    -72.5   -0.3372   0.2133 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.910 +/- 1.522 snr:  0.6 mag: 20.39 UL: 17.07
Rebinned Data for sw00987016001ubb_sk.img using a zero point of 18.944:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      135    6722.1     72.5    -72.5   -0.3372   0.2133 99.00 99.00    6722.1   -0.3372   0.2133 99.00 99.00 19.76
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00987016001uuu_sk.img ================
Use keyword TRIGTIME of 618420555.328 for trigger time.
Long-term sensitivity correction to zero point is -0.180 at 618427000
The processing date in extension 0 is:  2020-08-16T12:36:53
The trigger time is: 618420555.328. The reference is keyword in image file
Using zero point of 18.160 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(52.93212,37.07875,25")
fk5;-circle(52.93212,37.07875,12.5")
fk5;-circle(52.925975,37.077444,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 uu618426999I    6444.3  0.97  196.6  528.8 200  13922  5402  0.072 0.126 21.02 19.0  0.0718 0.1260 21.02 19.0   197  3.344  5.866 18.98 0.008 
    Sum (T+  6444 to   6644):             528.8        515.4 (est. in src region)   SNR_unwtd_sum:   0.57 0.9987 signif. UL:  18.99
  0   197 618427100    6544.2     99.9    -99.9    0.0718   0.1260 21.019 77.981  -1.100
Total wtd_rate (for all exposures so far):  1.068 +/- 1.467 snr:  0.7 mag: 20.22 UL: 16.29
Rebinned Data for sw00987016001uuu_sk.img using a zero point of 18.160:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      192    6544.2     99.9    -99.9    0.0718   0.1260 21.02  1.10    6544.2    0.0718   0.1260 21.02  1.10 18.99
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00987016001uw1_sk.img ================
Use keyword TRIGTIME of 618420555.328 for trigger time.
Long-term sensitivity correction to zero point is -0.528 at 618426795
The processing date in extension 0 is:  2020-08-16T12:36:53
The trigger time is: 618420555.328. The reference is keyword in image file
Using zero point of 16.912 for filter UVW1
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(52.93212,37.07875,25")
fk5;-circle(52.93212,37.07875,12.5")
fk5;-circle(52.925956,37.077420,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 w1618426794I  196.6   1511  5420  1.418  0.036
   1 w1618426794I    6239.4  1.00  196.6   51.6 200   1511  5418 -0.022 0.039 99.00 19.3 -0.0222 0.0386 99.00 19.3   197 -3.164  5.497 99.00 0.025 
   2 w1618442077I   21522.6  1.00  559.5   84.4 200   2401  5424 -0.008 0.017 99.00 20.2 -0.0114 0.0163 99.00 20.3   756 -3.338  4.615 99.00 0.017 
    Sum (T+  6239 to  22091):             136.0        144.3 (est. in src region)   SNR_unwtd_sum:  -0.70 0.9987 signif. UL:  20.30
  0   756 618438340   17784.5   4306.6 -11545.1   -0.0114   0.0163 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.678 +/- 1.400 snr:  0.5 mag: 20.71 UL: 15.15
Rebinned Data for sw00987016001uw1_sk.img using a zero point of 16.912:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    6339.3     99.9    -99.9   -0.0222   0.0386 99.00 99.00    6339.3   -0.0222   0.0386 99.00 99.00 19.33
  1      559   21806.9    284.2   -284.2   -0.0076   0.0173 99.00 99.00   17787.1   -0.0114   0.0163 99.00 99.00 20.30
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00987016001um2_sk.img ================
Use keyword TRIGTIME of 618420555.328 for trigger time.
Long-term sensitivity correction to zero point is -0.485 at 618426590
The processing date in extension 0 is:  2020-08-16T12:36:53
The trigger time is: 618420555.328. The reference is keyword in image file
Using zero point of 16.365 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(52.93212,37.07875,25")
fk5;-circle(52.93212,37.07875,12.5")
fk5;-circle(52.926144,37.077518,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 m2618426589I    6034.4  1.00  196.6   20.2 200    317  5410  0.044 0.024 19.75 18.7  0.0444 0.0238 19.75 18.7   197 10.114  5.427 17.78 0.074 
   2 m2618438142I   17587.0  1.00  666.3   37.3 192   1285  5383 -0.013 0.010 99.00 20.5 -0.0001 0.0092 99.00 20.2   863  5.285  4.362 18.48 0.032 
    Sum (T+  6034 to  18264):              57.5         57.5 (est. in src region)   SNR_unwtd_sum:  -0.01 0.9987 signif. UL:  20.19
  0   863 618435794   15238.7   3025.3  -9204.3   -0.0001   0.0092 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  1.297 +/- 1.339 snr:  1.0 mag: 20.01 UL: 14.53
Rebinned Data for sw00987016001um2_sk.img using a zero point of 16.365:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    6134.2     99.9    -99.9    0.0444   0.0238 19.75  0.47    6134.2    0.0444   0.0238 19.75  0.47 18.70
  1      666   17925.5    338.5   -338.5   -0.0132   0.0097 99.00 99.00   15239.6   -0.0001   0.0092 99.00 99.00 20.19
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00987016001uw2_sk.img ================
Use keyword TRIGTIME of 618420555.328 for trigger time.
Long-term sensitivity correction to zero point is -0.649 at 618433058
The processing date in extension 0 is:  2020-08-16T12:36:54
The trigger time is: 618420555.328. The reference is keyword in image file
Using zero point of 16.731 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(52.93212,37.07875,25")
fk5;-circle(52.93212,37.07875,12.5")
fk5;-circle(52.925885,37.077472,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 w2618433057I   26.5    135  5388  0.941  0.081
   1 w2618433057I   12502.6  1.00   26.5    5.5 208    135  5387  0.012 0.093 21.50 18.0  0.0123 0.0934 21.50 18.0    27  4.093 30.986 18.76 0.015 
   2 w2618436323I   15768.4  1.00  885.6   91.8 200   2328  5400  0.007 0.011 22.19 20.2  0.0067 0.0114 22.16 20.2   912  2.843  4.842 19.16 0.023 
    Sum (T+ 12503 to  16668):              97.3         91.4 (est. in src region)   SNR_unwtd_sum:   0.59 0.9987 signif. UL:  20.17
  0   912 618436666   16110.6    557.6  -3608.0    0.0067   0.0114 22.165 76.835  -1.078
Total wtd_rate (for all exposures so far):  1.415 +/- 1.293 snr:  1.1 mag: 19.91 UL: 14.91
Rebinned Data for sw00987016001uw2_sk.img using a zero point of 16.731:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      911   16110.7    557.5  -3608.1    0.0067   0.0114 22.16  1.08   16110.7    0.0067   0.0114 22.16  1.08 20.17
The data range from T+5829.6 s (0.07 d) to T+22091.1 s (0.26 d)
Wrote uvot_fluxes_200816d12h52m36s585818usUT.qdp
Wrote uvot_fluxes_200816d12h52m36s585818usUT.gif
Wrote uvot_fluxes_200816d12h52m36s585818usUT.ps
Wrote uvot_fluxes_200816d12h52m36s585818usUT_vis.qdp
Wrote uvot_fluxes_200816d12h52m36s585818usUT_uv.qdp
Wrote uvot_fluxes_200816d12h52m36s585818usUT_vis.gif
Wrote uvot_fluxes_200816d12h52m36s585818usUT_vis.ps
Wrote uvot_fluxes_200816d12h52m36s585818usUT_uv.gif
Wrote uvot_fluxes_200816d12h52m36s585818usUT_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.291   11664.6   5613.8  -5835.0    0.1190   0.1397 22.60  0.84   11664.6    0.1190   0.1397 22.60  0.84 20.94
  1 0.000394   17431.9    149.9   -149.9   -0.3653   0.8362 99.00 99.00   11672.5    0.1181   0.1394 22.61  0.85 20.95
The data range from T+5829.6 s (0.07 d) to T+22091.1 s (0.26 d)
Wrote uvot_fluxes_wtd_200816d12h52m36s585818usUT.qdp
Wrote uvot_fluxes_wtd_200816d12h52m36s585818usUT.gif
Wrote uvot_fluxes_wtd_200816d12h52m36s585818usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem