# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200309d22h14m26s089279usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00958592001 -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
# ========= GRB200227A ===================
Could not find/read custom source region custom_958592_src.reg
Used archived XRT position of 56.43310 9.48230 4.00
Reference: GCN_Notice_Thu_27_Feb_20_07:56:51_UT-ground
The position is (03:45:43.94, +09:28:56.3)
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(56.4331,+9.4823,4") # color=red dash=0
Source region spec. is: 56.4331 +9.4823 4"
Region file centered at (56.4331,+9.4823), which is (03:45:43.94, +09:28:56.3)
Could not find/read custom background region custom_958592_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.488 from uncorrected trigger time of 604480808 in BAT summary file
# ============ Reading file sw00958592001uwh_sk.img ================
Use keyword TRIGTIME of 604480832.512 for trigger time.
Long-term sensitivity correction to zero point is -0.221 at 604487467
The processing date in extension 0 is: 2020-03-09T22:00:33
The trigger time is: 604480832.512. The reference is keyword in image file
Using zero point of 20.069 for filter WHITE
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(56.4331,+9.4823,25")
fk5;-circle(56.4331,+9.4823,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 wh604487467I    6635.0  0.95  196.6 1007.3 200  29743  5837 -0.066 0.179 99.00 20.8 -0.0656 0.1786 99.00 20.8   197 -0.542  1.475 99.00 0.022 
   2 wh604498114I   17281.6  0.95   26.3  133.8 196   4058  5873 -0.066 0.487 99.00 19.6 -0.0656 0.1677 99.00 20.8   223 -0.559  1.460 99.00 0.021 
    Sum (T+  6635 to  17308):            1141.2       1154.6 (est. in src region)   SNR_unwtd_sum:  -0.39 0.9987 signif. UL:  20.84
  0   223 604488814    7981.2   9327.2  -1346.2   -0.0656   0.1677 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.559 +/- 1.435 snr: -0.4 mag: 99.00 UL: 18.51
Rebinned Data for sw00958592001uwh_sk.img using a zero point of 20.069:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      187    6734.9     99.9    -99.9   -0.0656   0.1786 99.00 99.00    6734.9   -0.0656   0.1786 99.00 99.00 20.77
  1       25   17295.0     13.4    -13.4   -0.0655   0.4870 99.00 99.00    7979.5   -0.0656   0.1677 99.00 99.00 20.84
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00958592001uvv_sk.img ================
Use keyword TRIGTIME of 604480832.512 for trigger time.
Long-term sensitivity correction to zero point is -0.283 at 604491106
The processing date in extension 0 is:  2020-03-09T22:00:34
The trigger time is: 604480832.512. 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 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(56.4331,+9.4823,25")
fk5;-circle(56.4331,+9.4823,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 vv604491105I   10273.4  0.98  295.0  702.2 188  22259  5801 -0.068 0.096 99.00 19.1 -0.0683 0.0963 99.00 19.1   295 -8.426 11.875 99.00 0.003 
   2 vv604491409I   10576.9  0.98  295.0  485.7 208  13578  5882  0.020 0.079 21.88 19.0 -0.0242 0.0624 99.00 19.5   590 -1.987  7.691 99.00 0.004 
   3 vv604491712I   10880.4  0.99  126.0  167.5 192   5065  5864  0.014 0.109 22.24 18.7 -0.0174 0.0548 99.00 19.6   716 -1.107  6.754 99.00 0.004 
    Sum (T+ 10273 to  11008):            1355.5       1367.4 (est. in src region)   SNR_unwtd_sum:  -0.32 0.9987 signif. UL:  19.57
  0   716 604491473   10640.0    368.3   -366.6   -0.0174   0.0548 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.581 +/- 1.397 snr: -0.4 mag: 99.00 UL: 16.08
Rebinned Data for sw00958592001uvv_sk.img using a zero point of 17.607:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      703   10640.8    367.5   -367.4   -0.0174   0.0548 99.00 99.00   10640.8   -0.0174   0.0548 99.00 99.00 19.57
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00958592001ubb_sk.img ================
Use keyword TRIGTIME of 604480832.512 for trigger time.
Long-term sensitivity correction to zero point is -0.161 at 604485792
The processing date in extension 0 is:  2020-03-09T22:00:33
The trigger time is: 604480832.512. 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(56.4331,+9.4823,25")
fk5;-circle(56.4331,+9.4823,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 bb604485792I    4959.5  0.97  107.2  326.2 208   9321  5883 -0.033 0.182 99.00 19.6 -0.0331 0.1825 99.00 19.6   107 -0.570  3.147 99.00 0.018 
   2 bb604497202I   16369.6  0.97  295.0  881.4 208  24724  5893  0.032 0.109 22.70 20.0  0.0143 0.0935 23.56 20.2   402 -0.078  2.805 99.00 0.009 
   3 bb604497505I   16673.1  0.98  295.0  641.5 192  18333  5866  0.148 0.092 21.02 19.9  0.0713 0.0665 21.82 20.4   697  1.905  2.483 19.59 0.009 
   4 bb604497809I   16976.7  0.98  295.0  604.2 196  17400  5822  0.066 0.089 21.91 20.1  0.0696 0.0537 21.84 20.5   992  2.268  2.245 19.40 0.009 
    Sum (T+  4959 to  17276):            2453.3       2388.1 (est. in src region)   SNR_unwtd_sum:   1.30 0.9987 signif. UL:  20.53
  0   992 604496379   15546.8   1729.6 -10587.3    0.0696   0.0537 21.842  1.605  -0.621
Total wtd_rate (for all exposures so far):  0.252 +/- 1.184 snr:  0.2 mag: 21.79 UL: 17.44
Rebinned Data for sw00958592001ubb_sk.img using a zero point of 18.949:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      104    5014.0     54.5    -54.5   -0.0331   0.1825 99.00 99.00    5014.0   -0.0331   0.1825 99.00 99.00 19.57
  1      865   16823.9    452.5   -454.3    0.0820   0.0561 21.66  0.57   15554.2    0.0696   0.0537 21.84  0.62 20.53
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00958592001uuu_sk.img ================
Use keyword TRIGTIME of 604480832.512 for trigger time.
Long-term sensitivity correction to zero point is -0.174 at 604485587
The processing date in extension 0 is:  2020-03-09T22:00:33
The trigger time is: 604480832.512. 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 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(56.4331,+9.4823,25")
fk5;-circle(56.4331,+9.4823,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 uu604485586I    4754.4  0.98  196.6  353.9 208   9681  5883  0.062 0.102 21.18 19.2  0.0623 0.1021 21.18 19.2   197  2.141  3.507 19.46 0.016 
   2 uu604504154I   23322.1  0.99  295.1  258.3 208   7472  5886 -0.020 0.058 99.00 20.1  0.0127 0.0534 22.91 20.0   492  1.523  3.293 19.83 0.012 
   3 uu604504458I   23625.5  0.99  295.1  247.4 208   7175  5876 -0.023 0.056 99.00 20.1 -0.0008 0.0395 99.00 20.4   787  0.965  3.112 20.33 0.011 
   4 uu604504761I   23929.1  0.99  295.1  247.3 204   7225  5843 -0.018 0.056 99.00 20.1 -0.0054 0.0326 99.00 20.7  1082  0.604  2.961 20.84 0.010 
    Sum (T+  4754 to  24229):            1106.9       1112.5 (est. in src region)   SNR_unwtd_sum:  -0.17 0.9987 signif. UL:  20.66
  0  1082 604501169   20336.4   3892.5 -15582.1   -0.0054   0.0326 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.302 +/- 1.095 snr:  0.3 mag: 21.59 UL: 16.73
Rebinned Data for sw00958592001uuu_sk.img using a zero point of 18.166:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      193    4854.3     99.9    -99.9    0.0623   0.1021 21.18  1.05    4854.3    0.0623   0.1021 21.18  1.05 19.22
  1      878   23775.5    453.5   -453.4   -0.0203   0.0328 99.00 99.00   20361.1   -0.0054   0.0326 99.00 99.00 20.66
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00958592001uw1_sk.img ================
Use keyword TRIGTIME of 604480832.512 for trigger time.
Long-term sensitivity correction to zero point is -0.489 at 604503248
The processing date in extension 0 is:  2020-03-09T22:00:34
The trigger time is: 604480832.512. 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(56.4331,+9.4823,25")
fk5;-circle(56.4331,+9.4823,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 w1604503247I   22415.1  1.00  885.6  125.0 196   3777  5852 -0.002 0.013 99.00 20.4 -0.0017 0.0133 99.00 20.4   886 -0.846  6.586 99.00 0.014 
    Sum (T+ 22415 to  23315):             125.0        126.5 (est. in src region)   SNR_unwtd_sum:  -0.13 0.9987 signif. UL:  20.41
  0   886 604503697   22865.0    449.9   -449.9   -0.0017   0.0133 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.272 +/- 1.082 snr:  0.3 mag: 21.71 UL: 15.53
Rebinned Data for sw00958592001uw1_sk.img using a zero point of 16.951:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      884   22865.0    449.9   -449.9   -0.0017   0.0133 99.00 99.00   22865.0   -0.0017   0.0133 99.00 99.00 20.41
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00958592001uw2_sk.img ================
Use keyword TRIGTIME of 604480832.512 for trigger time.
Long-term sensitivity correction to zero point is -0.599 at 604487673
The processing date in extension 0 is:  2020-03-09T22:00:34
The trigger time is: 604480832.512. 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(56.4331,+9.4823,25")
fk5;-circle(56.4331,+9.4823,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 w2604487673I    6840.7  1.00  177.3   12.4 200    364  5860 -0.000 0.021 99.00 19.7 -0.0002 0.0209 99.00 19.7   177 -0.037  3.668 99.00 0.081 
   2 w2604509214I   28381.8  1.00  759.9   50.3 188   1637  5808 -0.004 0.010 99.00 20.6 -0.0031 0.0089 99.00 20.7   937 -0.573  3.265 99.00 0.031 
    Sum (T+  6841 to  29154):              62.6         65.4 (est. in src region)   SNR_unwtd_sum:  -0.34 0.9987 signif. UL:  20.73
  0   937 604505468   24635.5   4518.3 -17794.8   -0.0031   0.0089 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.186 +/- 1.025 snr:  0.2 mag: 22.11 UL: 15.44
Rebinned Data for sw00958592001uw2_sk.img using a zero point of 16.781:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      177    6930.8     90.1    -90.1   -0.0002   0.0209 99.00 99.00    6930.8   -0.0002   0.0209 99.00 99.00 19.71
  1      759   28767.8    386.0   -386.0   -0.0037   0.0098 99.00 99.00   24635.3   -0.0031   0.0089 99.00 99.00 20.73
The data range from T+4754.4 s (0.06 d) to T+29153.8 s (0.34 d)
Wrote uvot_fluxes_200309d22h14m26s089279usUT.qdp
Wrote uvot_fluxes_200309d22h14m26s089279usUT.gif
Wrote uvot_fluxes_200309d22h14m26s089279usUT.ps
Wrote uvot_fluxes_200309d22h14m26s089279usUT_vis.qdp
Wrote uvot_fluxes_200309d22h14m26s089279usUT_uv.qdp
Wrote uvot_fluxes_200309d22h14m26s089279usUT_vis.gif
Wrote uvot_fluxes_200309d22h14m26s089279usUT_vis.ps
Wrote uvot_fluxes_200309d22h14m26s089279usUT_uv.gif
Wrote uvot_fluxes_200309d22h14m26s089279usUT_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.418    6579.6   4428.7  -1825.2   -0.0718   0.2046 99.00 99.00    6579.6   -0.0718   0.2046 99.00 99.00 20.84
  1   0.0406   17727.2   6501.7  -1357.6    0.1607   0.1708 22.27  0.79    7567.9   -0.0236   0.1660 99.00 99.00 21.01
The data range from T+4754.4 s (0.06 d) to T+29153.8 s (0.34 d)
Wrote uvot_fluxes_wtd_200309d22h14m26s089279usUT.qdp
Wrote uvot_fluxes_wtd_200309d22h14m26s089279usUT.gif
Wrote uvot_fluxes_wtd_200309d22h14m26s089279usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem