# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200208d01h43m45s929531usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00954840992 -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
# ========= GRB200207 ===================
Could not find/read custom source region custom_954840_src.reg
Used archived BAT position of 163.62300 -49.58100
Reference: GCN_Position_Notice_Fri_07_Feb_20_03:15:42_UT
The position is (10:54:29.52, -49:34:51.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(163.623,-49.581,3") # color=red dash=0
Source region spec. is: 163.623 -49.581 3"
Region file centered at (163.623,-49.581), which is (10:54:29.52, -49:34:51.6)
Could not find/read custom background region custom_954840_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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -24.39248 from uncorrected trigger time of 602737338.1 in BAT summary file
# ============ Reading file sw00954840992uwh_sk.img ================
Use keyword TRIGTIME of 602737362.496 for trigger time.
Long-term sensitivity correction to zero point is -0.220 at 602738991
The processing date in extension 0 is: 2020-02-08T01:32:18
The trigger time is: 602737362.496. The reference is keyword in image file
Using zero point of 20.070 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.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(163.623,-49.581,25")
fk5;-circle(163.623,-49.581,12.5")
fk5;-circle(163.619680,-49.575618,6")
fk5;-circle(163.627163,-49.579221,6")
fk5;-circle(163.614146,-49.579821,6")
fk5;-circle(163.627440,-49.582850,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 wh602738990I    1628.4  0.97  147.4  271.5 112  11924  4608  0.000 0.134 99.00 20.5  0.0000 0.1339 99.00 20.5   147  0.000  0.279 99.00 0.236 
   2 wh602738990E    1628.4  0.97  147.4  269.4 112  11892  4599  0.000 0.134 99.00 20.5 
   3 wh602739223E    1860.9  0.97   19.4   40.2 111   1573  4608  0.000 0.367 99.00 19.4  0.0000 0.1258 99.00 20.6   167  0.000  0.265 99.00 0.233 
   4 wh602739398E    2036.0  0.96   19.5   36.8 115   1668  4613  0.000 0.386 99.00 19.3  0.0000 0.1197 99.00 20.6   186  0.000  0.256 99.00 0.227 
   5 wh602739572E    2209.5  0.96   19.5   55.1 111   1755  4603  0.000 0.389 99.00 19.3  0.0000 0.1144 99.00 20.7   206  0.000  0.249 99.00 0.221 
   6 wh602743367I    6005.1  0.97  190.5  354.8 112  15462  4588  0.000 0.118 99.00 20.6  0.0000 0.0823 99.00 21.0   396  0.000  0.239 99.00 0.146 
    Sum (T+  1628 to   6199):             789.1        789.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.02
  0   396 602741231    3868.3   2330.4  -2239.9    0.0000   0.0823 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.237 snr:  0.0 mag: 99.00 UL: 19.87
Rebinned Data for sw00954840992uwh_sk.img using a zero point of 20.070:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      199    1800.1    429.2   -171.7    0.0000   0.1144 99.00 99.00    1800.1    0.0000   0.1144 99.00 99.00 21.16
  1      184    6101.9     96.8    -96.8    0.0000   0.1183 99.00 99.00    3868.8    0.0000   0.0823 99.00 99.00 21.51
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00954840992uvv_sk.img ================
Use keyword TRIGTIME of 602737362.496 for trigger time.
Long-term sensitivity correction to zero point is -0.282 at 602739274
The processing date in extension 0 is:  2020-02-08T01:32:14
The trigger time is: 602737362.496. The reference is keyword in image file
Using zero point of 17.608 for filter V
Use aperture correction of  1.087 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(163.623,-49.581,25")
fk5;-circle(163.623,-49.581,12.5")
fk5;-circle(163.627553,-49.582836,6")
fk5;-circle(163.619597,-49.575636,6")
fk5;-circle(163.627243,-49.579197,6")
fk5;-circle(163.614163,-49.579882,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 vv602739273E    1911.5  0.99   19.5    6.0 111    341  4582  0.000 0.164 99.00 17.8  0.0000 0.1638 99.00 17.8    19  0.000  3.720 99.00 0.103 
   2 vv602739449E    2086.7  0.99   19.5    2.0 113    294  4581  0.000 0.153 99.00 17.9  0.0000 0.1122 99.00 18.2    39  0.000  2.659 99.00 0.105 
   3 vv602739622E    2260.4  0.99   19.4    8.3 111    409  4585  0.000 0.180 99.00 17.7  0.0000 0.0958 99.00 18.4    58  0.000  2.329 99.00 0.092 
    Sum (T+  1911 to   2280):              25.4         25.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.39
  0    58 602739459    2096.0    184.1   -184.6    0.0000   0.0958 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.231 snr:  0.0 mag: 99.00 UL: 17.43
Rebinned Data for sw00954840992uvv_sk.img using a zero point of 17.608:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     57.9    2096.0    184.2   -184.5    0.0000   0.0958 99.00 99.00    2096.0    0.0000   0.0958 99.00 99.00 18.89
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00954840992ubb_sk.img ================
Use keyword TRIGTIME of 602737362.496 for trigger time.
Long-term sensitivity correction to zero point is -0.161 at 602739199
The processing date in extension 0 is:  2020-02-08T01:32:18
The trigger time is: 602737362.496. The reference is keyword in image file
Using zero point of 18.949 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(163.623,-49.581,25")
fk5;-circle(163.623,-49.581,12.5")
fk5;-circle(163.619674,-49.575632,6")
fk5;-circle(163.627209,-49.579209,6")
fk5;-circle(163.614119,-49.579829,6")
fk5;-circle(163.627432,-49.582828,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 bb602739198E    1836.5  0.99   19.4   15.1 113    619  4602  0.000 0.228 99.00 18.8  0.0000 0.2280 99.00 18.8    19  0.000  1.447 99.00 0.199 
   2 bb602739373E    2011.0  0.99   19.4   15.5 112    597  4621  0.000 0.222 99.00 18.8  0.0000 0.1592 99.00 19.2    39  0.000  1.056 99.00 0.195 
   3 bb602739547E    2185.2  0.99   19.5   14.1 111    621  4603  0.000 0.226 99.00 18.8  0.0000 0.1301 99.00 19.4    58  0.000  0.898 99.00 0.186 
   4 bb602743162I    5800.2  0.99  196.6  162.2 116   6002  4604  0.000 0.071 99.00 20.1  0.0000 0.0624 99.00 20.2   255  0.000  0.762 99.00 0.091 
    Sum (T+  1836 to   6000):             195.9        195.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.20
  0   255 602742375    5012.6    987.4  -3176.2    0.0000   0.0624 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.225 snr:  0.0 mag: 99.00 UL: 18.80
Rebinned Data for sw00954840992ubb_sk.img using a zero point of 18.949:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     57.6    2020.8    184.2   -184.4    0.0000   0.1301 99.00 99.00    2020.8    0.0000   0.1301 99.00 99.00 19.89
  1      194    5900.1     99.9    -99.9    0.0000   0.0710 99.00 99.00    5012.9    0.0000   0.0624 99.00 99.00 20.69
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00954840992uuu_sk.img ================
Use keyword TRIGTIME of 602737362.496 for trigger time.
Long-term sensitivity correction to zero point is -0.174 at 602739173
The processing date in extension 0 is:  2020-02-08T01:32:18
The trigger time is: 602737362.496. The reference is keyword in image file
Using zero point of 18.166 for filter U
Use aperture correction of  1.100 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(163.623,-49.581,25")
fk5;-circle(163.623,-49.581,12.5")
fk5;-circle(163.619690,-49.575621,6")
fk5;-circle(163.627217,-49.579177,6")
fk5;-circle(163.614195,-49.579756,6")
fk5;-circle(163.627522,-49.582860,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 uu602739173E    1810.8  0.99   19.5   10.8 111    304  4589  0.000 0.156 99.00 18.4  0.0000 0.1561 99.00 18.4    19  0.000  2.010 99.00 0.204 
   2 uu602739348E    1986.3  0.99   19.4    4.6 115    277  4589  0.000 0.152 99.00 18.4  0.0000 0.1089 99.00 18.8    39  0.000  1.466 99.00 0.201 
   3 uu602739522E    2160.4  0.99   19.5    7.5 111    293  4585  0.000 0.153 99.00 18.4  0.0000 0.0888 99.00 19.0    58  0.000  1.244 99.00 0.193 
   4 uu602742957I    5595.2  0.99  196.6   70.0 104   2616  4536  0.000 0.044 99.00 19.8  0.0000 0.0396 99.00 19.9   255  0.000  1.019 99.00 0.110 
    Sum (T+  1811 to   5795):              81.4         81.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.91
  0   255 602742211    4848.5    946.4  -3037.7    0.0000   0.0396 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.218 snr:  0.0 mag: 99.00 UL: 18.05
Rebinned Data for sw00954840992uuu_sk.img using a zero point of 18.166:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0       58    1995.7    184.5   -184.9    0.0000   0.0888 99.00 99.00    1995.7    0.0000   0.0888 99.00 99.00 19.53
  1      196    5695.0     99.9    -99.9    0.0000   0.0440 99.00 99.00    4849.0    0.0000   0.0396 99.00 99.00 20.40
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00954840992uw1_sk.img ================
Use keyword TRIGTIME of 602737362.496 for trigger time.
Long-term sensitivity correction to zero point is -0.484 at 602739149
The processing date in extension 0 is:  2020-02-08T01:32:13
The trigger time is: 602737362.496. The reference is keyword in image file
Using zero point of 16.956 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(163.623,-49.581,25")
fk5;-circle(163.623,-49.581,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 w1602739148E    1786.2  1.00   19.5    2.0 110     92  5853  0.000 0.077 99.00 18.0  0.0000 0.0768 99.00 18.0    19  0.000  2.974 99.00 0.290 
   2 w1602739324E    1961.8  1.00   19.5    2.8 112    113  5847  0.000 0.086 99.00 17.9  0.0000 0.0576 99.00 18.3    39  0.000  2.306 99.00 0.246 
   3 w1602739498E    2135.9  1.00   19.4    1.0 112    124  5845  0.000 0.090 99.00 17.8  0.0000 0.0487 99.00 18.5    58  0.000  2.017 99.00 0.220 
   4 w1602739672E    2309.6  1.00   10.2    0.0 111     61  5842  0.000 0.120 99.00 17.5  0.0000 0.0452 99.00 18.6    69  0.000  1.912 99.00 0.213 
    Sum (T+  1786 to   2320):               7.4          7.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.55
  0    69 602739385    2022.2    297.8   -236.0    0.0000   0.0452 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.221 snr:  0.0 mag: 99.00 UL: 16.83
Rebinned Data for sw00954840992uw1_sk.img using a zero point of 16.956:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     68.4    2022.2    297.8   -236.0    0.0000   0.0452 99.00 99.00    2022.2    0.0000   0.0452 99.00 99.00 19.05
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00954840992um2_sk.img ================
Use keyword TRIGTIME of 602737362.496 for trigger time.
Long-term sensitivity correction to zero point is -0.449 at 602739300
The processing date in extension 0 is:  2020-02-08T01:32:15
The trigger time is: 602737362.496. The reference is keyword in image file
Using zero point of 16.401 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.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(163.623,-49.581,25")
fk5;-circle(163.623,-49.581,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 m2602739299E    1937.1  1.00   19.5    2.0 113     42  5835  0.000 0.052 99.00 17.8  0.0000 0.0520 99.00 17.8    19  0.000  3.641 99.00 0.338 
   2 m2602739473E    2111.1  1.00   19.4    0.0 114     41  5843  0.000 0.052 99.00 17.9  0.0000 0.0367 99.00 18.2    39  0.000  2.675 99.00 0.327 
#  3 m2602739647E    2284.8  1.00   19.4    0.0 108     50  5833 
    Sum (T+  1937 to   2131):               1.6          1.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.22
  0    39 602739396    2033.9     96.9    -96.8    0.0000   0.0367 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.217 snr:  0.0 mag: 99.00 UL: 16.30
Rebinned Data for sw00954840992um2_sk.img using a zero point of 16.401:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.9    2033.9     96.9    -96.8    0.0000   0.0367 99.00 99.00    2033.9    0.0000   0.0367 99.00 99.00 18.72
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00954840992uw2_sk.img ================
Use keyword TRIGTIME of 602737362.496 for trigger time.
Long-term sensitivity correction to zero point is -0.593 at 602739250
The processing date in extension 0 is:  2020-02-08T01:32:14
The trigger time is: 602737362.496. The reference is keyword in image file
Using zero point of 16.787 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.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(163.623,-49.581,25")
fk5;-circle(163.623,-49.581,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 w2602739249E    1887.1  1.00   19.5    3.0 111     48  5837  0.000 0.055 99.00 18.2  0.0000 0.0548 99.00 18.2    19  0.000  2.617 99.00 0.449 
   2 w2602739423E    2061.5  1.00   19.4    1.5 110     59  5846  0.000 0.061 99.00 18.1  0.0000 0.0409 99.00 18.5    39  0.000  2.019 99.00 0.385 
   3 w2602739598E    2235.9  1.00   19.4    2.2 115     73  5848  0.000 0.069 99.00 17.9  0.0000 0.0357 99.00 18.6    58  0.000  1.793 99.00 0.325 
    Sum (T+  1887 to   2256):               3.5          3.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.64
  0    58 602739434    2071.4    184.4   -184.2    0.0000   0.0357 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.215 snr:  0.0 mag: 99.00 UL: 16.69
Rebinned Data for sw00954840992uw2_sk.img using a zero point of 16.787:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     58.3    2071.3    184.4   -184.2    0.0000   0.0357 99.00 99.00    2071.3    0.0000   0.0357 99.00 99.00 19.14
The data range from T+1628.4 s (0.02 d) to T+6198.7 s (0.07 d)
Wrote uvot_fluxes_200208d01h43m45s929531usUT.qdp
Wrote uvot_fluxes_200208d01h43m45s929531usUT.gif
Wrote uvot_fluxes_200208d01h43m45s929531usUT.ps
Wrote uvot_fluxes_200208d01h43m45s929531usUT_vis.qdp
Wrote uvot_fluxes_200208d01h43m45s929531usUT_uv.qdp
Wrote uvot_fluxes_200208d01h43m45s929531usUT_vis.gif
Wrote uvot_fluxes_200208d01h43m45s929531usUT_vis.ps
Wrote uvot_fluxes_200208d01h43m45s929531usUT_uv.gif
Wrote uvot_fluxes_200208d01h43m45s929531usUT_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     13.7    1776.9    503.2   -148.5    0.0000   0.1359 99.00 99.00    1776.9    0.0000   0.1359 99.00 99.00 21.19
  1     1.23    6064.0    134.7   -468.9    0.0000   0.1272 99.00 99.00    2130.5    0.0000   0.1082 99.00 99.00 21.44
The data range from T+1628.4 s (0.02 d) to T+6198.7 s (0.07 d)
Wrote uvot_fluxes_wtd_200208d01h43m45s929531usUT.qdp
Wrote uvot_fluxes_wtd_200208d01h43m45s929531usUT.gif
Wrote uvot_fluxes_wtd_200208d01h43m45s929531usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem