# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200310d00h04m55s649619usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00958733001 -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
# ========= GRB200228B ===================
Could not find/read custom source region custom_958733_src.reg
Used archived XRT position of 252.04640 16.98523 4.00
Reference: GCN_Circ-27256
The position is (16:48:11.14, +16:59:06.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(252.04640,16.98523,4") # color=red dash=0
Source region spec. is: 252.04640 16.98523 4"
Region file centered at (252.04640,16.98523), which is (16:48:11.14, +16:59:06.8)
Could not find/read custom background region custom_958733_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 -24.53266 from uncorrected trigger time of 604581281.15 in BAT summary file
# ============ Reading file sw00958733992uvv_sk.img ================
Use keyword TRIGTIME of 604581305.604 for trigger time.
Long-term sensitivity correction to zero point is -0.283 at 604581426
The processing date in extension 0 is: 2020-02-28T17:46:22
The trigger time is: 604581305.604. The reference is keyword in image file
Using zero point of 17.607 for filter V
Use aperture correction of 1.030 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(252.04640,16.98523,25")
fk5;-circle(252.04640,16.98523,12.5")
fk5;-circle(252.050388,16.985662,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 vv604581426E     120.9  0.99    9.7   14.2 200    156  5562  0.915 0.405 17.70 16.8 
   2 vv604586297I    4991.8  0.99  196.6  113.3 204   3331  5527 -0.051 0.057 99.00 19.7 -0.0511 0.0572 99.00 19.7   197 -3.078  3.446 99.00 0.026 
   3 vv604591499I   10193.8  0.99  295.0  171.2 192   5199  5502 -0.036 0.047 99.00 19.9 -0.0419 0.0362 99.00 20.2   492 -3.430  2.953 99.00 0.019 
   4 vv604591802I   10497.3  0.99  184.4  129.0 188   3221  5504  0.106 0.065 20.04 18.9 -0.0015 0.0317 99.00 20.1   676 -1.048  2.783 99.00 0.017 
    Sum (T+  4992 to  10685):             413.4        414.4 (est. in src region)   SNR_unwtd_sum:  -0.05 0.9987 signif. UL:  20.10
  0   676 604590189    8883.6   1801.0  -3891.8   -0.0015   0.0317 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -1.048 +/- 2.733 snr: -0.4 mag: 99.00 UL: 15.35
# ============ Reading file sw00958733001uvv_sk.img ================
Use keyword TRIGTIME of 604581305.664 for trigger time.
Long-term sensitivity correction to zero point is -0.283 at 604599026
The processing date in extension 0 is:  2020-03-09T23:54:56
The trigger time is: 604581305.664. The reference is keyword in image file
Using zero point of 17.607 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(252.04640,16.98523,25")
fk5;-circle(252.04640,16.98523,12.5")
fk5;-circle(252.050405,16.985565,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 vv604599025I   17720.2  0.99  295.0  280.1 192   7940  5525  0.015 0.060 22.19 19.3  0.0147 0.0600 22.19 19.3   295  3.099 12.684 19.06 0.005 
   2 vv604599329I   18023.8  0.99  208.2  299.0 200   8392  5552 -0.017 0.088 99.00 19.0  0.0017 0.0507 24.53 19.6   503  1.063 10.543 20.22 0.004 
    Sum (T+ 17720 to  18235):             579.1        578.2 (est. in src region)   SNR_unwtd_sum:   0.03 0.9987 signif. UL:  19.57
  0   503 604599283   17977.4    257.9   -257.2    0.0017   0.0507 24.531 74.469  -3.722
Total wtd_rate (for all exposures so far): -0.905 +/- 2.642 snr: -0.3 mag: 99.00 UL: 15.37
Rebinned Data for sw00958733001uvv_sk.img using a zero point of 17.607:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5091.7     99.9    -99.9   -0.0511   0.0572 99.00 99.00    5091.7   -0.0511   0.0572 99.00 99.00 19.68
  1      974   14289.1   3946.2  -4095.3    0.0101   0.0319 22.59  1.55   12751.5   -0.0001   0.0282 99.00 99.00 20.21
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00958733992ubb_sk.img ================
Use keyword TRIGTIME of 604581305.604 for trigger time.
Long-term sensitivity correction to zero point is -0.161 at 604585885
The processing date in extension 0 is:  2020-02-28T17:46:22
The trigger time is: 604581305.604. The reference is keyword in image file
Using zero point of 18.949 for filter B
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(252.04640,16.98523,25")
fk5;-circle(252.04640,16.98523,12.5")
fk5;-circle(252.050461,16.985611,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 bb604585885I    4579.6  0.99  196.6  209.6 200   5789  5541  0.004 0.078 25.08 20.4  0.0035 0.0784 25.08 20.4   197  0.057  1.261 23.40 0.058 
   2 bb604587117I    5812.1  0.99  196.6  221.7 192   5986  5514  0.071 0.080 21.82 20.2  0.0372 0.0562 22.52 20.6   393  0.590  0.999 20.86 0.052 
    Sum (T+  4580 to   6012):             431.4        417.4 (est. in src region)   SNR_unwtd_sum:   0.66 0.9987 signif. UL:  20.64
  0   393 604586601    5295.8    716.1   -716.1    0.0372   0.0562 22.523 76.477  -0.999
Total wtd_rate (for all exposures so far):  0.419 +/- 0.922 snr:  0.5 mag: 21.23 UL: 17.65
# ============ Reading file sw00958733001ubb_sk.img ================
Use keyword TRIGTIME of 604581305.664 for trigger time.
Long-term sensitivity correction to zero point is -0.161 at 604592157
The processing date in extension 0 is:  2020-03-09T23:54:55
The trigger time is: 604581305.664. The reference is keyword in image file
Using zero point of 18.949 for filter B
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(252.04640,16.98523,25")
fk5;-circle(252.04640,16.98523,12.5")
fk5;-circle(252.050387,16.985604,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 bb604592156I   10850.9  0.99  295.0  299.6 208   8882  5540 -0.120 0.063 99.00 21.2 -0.1200 0.0625 99.00 21.2   295 -4.540  2.365 99.00 0.023 
   2 bb604592460I   11154.8  0.99  295.0  299.0 192   8831  5499 -0.033 0.062 99.00 20.8 -0.0765 0.0441 99.00 21.5   590 -2.893  1.694 99.00 0.024 
   3 bb604592764I   11458.3  0.99  295.0  333.2 208   8995  5573 -0.009 0.066 99.00 20.7 -0.0539 0.0367 99.00 21.6   885 -2.115  1.425 99.00 0.023 
    Sum (T+ 10851 to  11758):             931.9        977.6 (est. in src region)   SNR_unwtd_sum:  -1.47 0.9987 signif. UL:  21.65
  0   885 604592610   11304.6    453.6   -453.7   -0.0539   0.0367 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.312 +/- 0.770 snr: -0.4 mag: 99.00 UL: 18.07
Rebinned Data for sw00958733001ubb_sk.img using a zero point of 18.949:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      389    5295.7    716.2   -716.1    0.0372   0.0562 22.52  1.00    5295.7    0.0372   0.0562 22.52  1.00 20.64
  1      876   11304.4    453.7   -453.5   -0.0539   0.0367 99.00 99.00    9457.0   -0.0259   0.0307 99.00 99.00 21.68
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00958733992uuu_sk.img ================
Use keyword TRIGTIME of 604581305.604 for trigger time.
Long-term sensitivity correction to zero point is -0.174 at 604581442
The processing date in extension 0 is:  2020-02-28T17:46:22
The trigger time is: 604581305.604. The reference is keyword in image file
Using zero point of 18.166 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(252.04640,16.98523,25")
fk5;-circle(252.04640,16.98523,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 uu604581442I     136.8  0.99  245.8  140.5 200   4032  5841  0.010 0.051 23.14 20.1  0.0103 0.0508 23.14 20.1   246  0.019  0.094 24.59 0.957 
   2 uu604581442E     136.8  0.99  245.8  147.0 201   4040  5844  0.034 0.052 21.84 19.9 
   3 uu604586912I    5606.8  1.00  196.6   92.9 200   2632  5848  0.015 0.052 22.70 20.0  0.0126 0.0364 22.92 20.4   442  0.020  0.094 24.52 0.600 
    Sum (T+   137 to   5807):             233.4        228.1 (est. in src region)   SNR_unwtd_sum:   0.35 0.9987 signif. UL:  20.41
  0   442 604583987    2681.3   3125.2  -2544.5    0.0126   0.0364 22.918 76.082  -1.477
Total wtd_rate (for all exposures so far):  0.016 +/- 0.092 snr:  0.2 mag: 24.81 UL: 19.45
Rebinned Data for sw00958733992uuu_sk.img using a zero point of 18.166:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      245     261.7    124.9   -124.9    0.0103   0.0508 23.14  1.94     261.7    0.0103   0.0508 23.14  1.94 20.08
  1      196    5706.6     99.9    -99.9    0.0154   0.0517 22.70  1.60    2682.2    0.0126   0.0364 22.92  1.48 20.41
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00958733992uw1_sk.img ================
Use keyword TRIGTIME of 604581305.604 for trigger time.
Long-term sensitivity correction to zero point is -0.489 at 604586708
The processing date in extension 0 is:  2020-02-28T17:46:22
The trigger time is: 604581305.604. The reference is keyword in image file
Using zero point of 16.951 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(252.04640,16.98523,25")
fk5;-circle(252.04640,16.98523,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 w1604586707I    5402.0  1.00  196.6   20.0 200    479  5853  0.019 0.024 21.24 19.5  0.0192 0.0239 21.24 19.5   197  2.293  2.847 19.39 0.101 
    Sum (T+  5402 to   5602):              20.0         16.4 (est. in src region)   SNR_unwtd_sum:   0.81 0.9987 signif. UL:  19.53
  0   197 604586807    5501.9     99.9    -99.9    0.0192   0.0239 21.240 77.760  -0.876
Total wtd_rate (for all exposures so far):  0.019 +/- 0.092 snr:  0.2 mag: 24.62 UL: 18.22
Rebinned Data for sw00958733992uw1_sk.img using a zero point of 16.951:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5501.9     99.9    -99.9    0.0192   0.0239 21.24  0.88    5501.9    0.0192   0.0239 21.24  0.88 19.53
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00958733992um2_sk.img ================
Use keyword TRIGTIME of 604581305.604 for trigger time.
Long-term sensitivity correction to zero point is -0.453 at 604586502
The processing date in extension 0 is:  2020-02-28T17:46:22
The trigger time is: 604581305.604. The reference is keyword in image file
Using zero point of 16.397 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(252.04640,16.98523,25")
fk5;-circle(252.04640,16.98523,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 m2604586502I    5196.6  1.00  196.6    5.8 200    160  5828  0.002 0.013 23.41 19.8  0.0016 0.0128 23.41 19.8   197  0.300  2.452 21.60 0.187 
    Sum (T+  5197 to   5396):               5.8          5.5 (est. in src region)   SNR_unwtd_sum:   0.12 0.9987 signif. UL:  19.83
  0   197 604586602    5296.4     99.9    -99.9    0.0016   0.0128 23.407 75.593  -2.406
Total wtd_rate (for all exposures so far):  0.019 +/- 0.092 snr:  0.2 mag: 24.60 UL: 17.67
Rebinned Data for sw00958733992um2_sk.img using a zero point of 16.397:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5296.4     99.9    -99.9    0.0016   0.0128 23.41  2.41    5296.4    0.0016   0.0128 23.41  2.41 19.83
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00958733992uw2_sk.img ================
Use keyword TRIGTIME of 604581305.604 for trigger time.
Long-term sensitivity correction to zero point is -0.599 at 604586091
The processing date in extension 0 is:  2020-02-28T17:46:22
The trigger time is: 604581305.604. The reference is keyword in image file
Using zero point of 16.781 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(252.04640,16.98523,25")
fk5;-circle(252.04640,16.98523,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 w2604586091I    4785.8  1.00  196.6   13.0 200    226  5829  0.028 0.019 20.68 19.4  0.0276 0.0192 20.68 19.4   197  3.415  2.372 18.96 0.205 
   2 w2604587323I    6018.3  1.00  196.6   24.7 200    461  5878  0.048 0.026 20.08 19.0  0.0377 0.0163 20.34 19.4   393  4.368  2.054 18.69 0.122 
    Sum (T+  4786 to   6218):              37.7         23.4 (est. in src region)   SNR_unwtd_sum:   2.30 0.9987 signif. UL:  19.43
  0   393 604586808    5501.9    716.1   -716.1    0.0377   0.0163 20.341  0.618  -0.391
Total wtd_rate (for all exposures so far):  0.033 +/- 0.092 snr:  0.4 mag: 23.98 UL: 18.01
# ============ Reading file sw00958733001uw2_sk.img ================
Use keyword TRIGTIME of 604581305.664 for trigger time.
Long-term sensitivity correction to zero point is -0.599 at 604593071
The processing date in extension 0 is:  2020-03-09T23:54:56
The trigger time is: 604581305.664. The reference is keyword in image file
Using zero point of 16.781 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(252.04640,16.98523,25")
fk5;-circle(252.04640,16.98523,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 w2604593070I   11764.9  1.00  344.8   18.3 192    624  5816 -0.007 0.013 99.00 20.4 -0.0070 0.0131 99.00 20.4   345 -2.131  3.953 99.00 0.055 
   2 w2604597249I   15944.2  1.00  601.4   24.0 192    738  5820 -0.001 0.009 99.00 20.7 -0.0030 0.0072 99.00 21.0   946 -1.038  2.636 99.00 0.058 
    Sum (T+ 11765 to  16555):              42.3         45.0 (est. in src region)   SNR_unwtd_sum:  -0.41 0.9987 signif. UL:  20.97
  0   946 604595985   14679.3   1876.0  -2914.4   -0.0030   0.0072 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.032 +/- 0.092 snr:  0.4 mag: 24.02 UL: 18.01
Rebinned Data for sw00958733001uw2_sk.img using a zero point of 16.781:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      393    5501.8    716.3   -716.0    0.0377   0.0163 20.34  0.39    5501.8    0.0377   0.0163 20.34  0.39 19.43
  1      946   14679.4   1875.8  -2914.6   -0.0030   0.0072 99.00 99.00   11985.6    0.0090   0.0070 21.90  0.63 20.58
The data range from T+136.8 s (0.00 d) to T+18235.3 s (0.21 d)
Wrote uvot_fluxes_200310d00h04m55s649619usUT.qdp
Wrote uvot_fluxes_200310d00h04m55s649619usUT.gif
Wrote uvot_fluxes_200310d00h04m55s649619usUT.ps
Wrote uvot_fluxes_200310d00h04m55s649619usUT_vis.qdp
Wrote uvot_fluxes_200310d00h04m55s649619usUT_uv.qdp
Wrote uvot_fluxes_200310d00h04m55s649619usUT_vis.gif
Wrote uvot_fluxes_200310d00h04m55s649619usUT_vis.ps
Wrote uvot_fluxes_200310d00h04m55s649619usUT_uv.gif
Wrote uvot_fluxes_200310d00h04m55s649619usUT_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     15.9     261.7    124.9   -124.9    0.0728   0.3598 23.14  1.94     261.7    0.0728   0.3598 23.14  1.94 20.08
  1    0.478    7062.4   4695.7  -2482.8   -0.0424   0.1075 99.00 99.00     459.8    0.0213   0.2046 24.47  2.57 20.72
  2  0.00076   17950.3    285.0   -230.1    0.0573   0.5873 23.39  2.63     460.6    0.0213   0.2042 24.47  2.56 20.72
The data range from T+136.8 s (0.00 d) to T+18235.3 s (0.21 d)
Wrote uvot_fluxes_wtd_200310d00h04m55s649619usUT.qdp
Wrote uvot_fluxes_wtd_200310d00h04m55s649619usUT.gif
Wrote uvot_fluxes_wtd_200310d00h04m55s649619usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem