# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200607d06h47m49s015397usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00974827001 -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
# ========= GRB200528A ===================
Could not find/read custom source region custom_974827_src.reg
Used archived XRT position of 176.63746 58.19258 4.00
Reference: GCN_Circulars-27836-Thu,_28_May_2020_10:43:35_-0400
The position is (11:46:32.99, +58:11:33.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(176.63746,58.19258,4") # color=red dash=0
Source region spec. is: 176.63746 58.19258 4"
Region file centered at (176.63746,58.19258), which is (11:46:32.99, +58:11:33.3)
Could not find/read custom background region custom_974827_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.0205 from uncorrected trigger time of 612354443.84 in BAT summary file
# ============ Reading file sw00974827992uwh_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
Long-term sensitivity correction to zero point is -0.225 at 612354549
The processing date in extension 0 is: 2020-05-29T10:04:08
The trigger time is: 612354468.864. The reference is keyword in image file
Using zero point of 20.065 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(176.63746,58.19258,25")
fk5;-circle(176.63746,58.19258,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 wh612354549I      80.2  0.98  147.2  321.6 194   9917  5848 -0.052 0.131 99.00 21.1 -0.0525 0.1309 99.00 21.1   147 -0.010  0.025 99.00 2.298 
   2 wh612354549E      82.9  0.98  144.5  306.7 199   9700  5836 -0.176 0.130 99.00 21.4 
    Sum (T+    80 to    230):             321.6        329.0 (est. in src region)   SNR_unwtd_sum:  -0.40 0.9987 signif. UL:  21.11
  0   147 612354624     155.0     74.8    -74.8   -0.0525   0.1309 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.010 +/- 0.025 snr: -0.4 mag: 99.00 UL: 22.93
# ============ Reading file sw00974827001uwh_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
Long-term sensitivity correction to zero point is -0.225 at 612359800
The processing date in extension 0 is:  2020-06-07T06:34:10
The trigger time is: 612354468.864. The reference is keyword in image file
Using zero point of 20.065 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(176.63746,58.19258,25")
fk5;-circle(176.63746,58.19258,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 wh612359800I    5331.3  0.98  196.6  450.7 200  13231  5830 -0.017 0.116 99.00 21.2 -0.0174 0.1162 99.00 21.2   197 -0.116  0.777 99.00 0.063 
    Sum (T+  5331 to   5531):             450.7        453.9 (est. in src region)   SNR_unwtd_sum:  -0.15 0.9987 signif. UL:  21.17
  0   197 612359900    5431.2     99.9    -99.9   -0.0174   0.1162 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.010 +/- 0.025 snr: -0.4 mag: 99.00 UL: 22.93
Rebinned Data for sw00974827001uwh_sk.img using a zero point of 20.065:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      144     155.0     74.8    -74.8   -0.0525   0.1309 99.00 99.00     155.0   -0.0525   0.1309 99.00 99.00 21.11
  1      192    5431.2     99.9    -99.9   -0.0174   0.1162 99.00 99.00    3170.3   -0.0324   0.0869 99.00 99.00 21.55
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00974827992uvv_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
Long-term sensitivity correction to zero point is -0.288 at 612354529
The processing date in extension 0 is:  2020-05-29T10:04:04
The trigger time is: 612354468.864. The reference is keyword in image file
Using zero point of 17.602 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(176.63746,58.19258,25")
fk5;-circle(176.63746,58.19258,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 vv612354529E      60.6  0.99    9.5    6.0 199    169  5845  0.027 0.271 21.51 17.7 
# ============ Reading file sw00974827001uvv_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
Long-term sensitivity correction to zero point is -0.288 at 612360211
The processing date in extension 0 is:  2020-06-07T06:34:10
The trigger time is: 612354468.864. The reference is keyword in image file
Using zero point of 17.602 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(176.63746,58.19258,25")
fk5;-circle(176.63746,58.19258,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 vv612360210I    5741.7  0.99  196.6  136.6 208   3078  5849  0.143 0.062 19.71 18.8  0.1432 0.0625 19.71 18.8   197  9.952  4.340 17.80 0.026 
    Sum (T+  5742 to   5942):             136.6        109.4 (est. in src region)   SNR_unwtd_sum:   2.29 0.9987 signif. UL:  18.80
  0   197 612360310    5841.6     99.9    -99.9    0.1432   0.0625 19.712  0.622  -0.393
Total wtd_rate (for all exposures so far): -0.010 +/- 0.024 snr: -0.4 mag: 99.00 UL: 20.47
Rebinned Data for sw00974827001uvv_sk.img using a zero point of 17.602:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    5841.6     99.9    -99.9    0.1432   0.0625 19.71  0.39    5841.6    0.1432   0.0625 19.71  0.39 18.80
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00974827001ubb_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
Long-term sensitivity correction to zero point is -0.164 at 612359595
The processing date in extension 0 is:  2020-06-07T06:34:10
The trigger time is: 612354468.864. The reference is keyword in image file
Using zero point of 18.946 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(176.63746,58.19258,25")
fk5;-circle(176.63746,58.19258,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 bb612359595I    5126.6  0.99  196.6  174.5 204   5185  5840 -0.035 0.071 99.00 20.7 -0.0352 0.0714 99.00 20.7   197 -0.634  1.287 99.00 0.060 
#  2 bb612370549I   16080.8  0.99  295.0  291.6 200   9145  5854 
#  3 bb612370853I   16384.3  0.99   55.3   54.0 200   1449  5854 
    Sum (T+  5127 to   5326):             174.5        181.1 (est. in src region)   SNR_unwtd_sum:  -0.49 0.9987 signif. UL:  20.67
  0   197 612359695    5226.4     99.9    -99.9   -0.0352   0.0714 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.010 +/- 0.025 snr: -0.4 mag: 99.00 UL: 21.81
Rebinned Data for sw00974827001ubb_sk.img using a zero point of 18.946:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    5226.4     99.9    -99.9   -0.0352   0.0714 99.00 99.00    5226.4   -0.0352   0.0714 99.00 99.00 20.67
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00974827992uuu_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
Long-term sensitivity correction to zero point is -0.178 at 612354761
The processing date in extension 0 is:  2020-05-29T10:04:09
The trigger time is: 612354468.864. The reference is keyword in image file
Using zero point of 18.162 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(176.63746,58.19258,25")
fk5;-circle(176.63746,58.19258,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 uu612354760I     292.0  1.00   12.0    4.5 199    134  5844 -0.008 0.186 99.00 18.7 -0.0082 0.1858 99.00 18.7    12 -0.017  0.393 99.00 1.236 
   2 uu612354760E     292.0  1.00   12.0    5.1 200    132  5844  0.048 0.197 21.45 18.6 
    Sum (T+   292 to    304):               4.5          4.6 (est. in src region)   SNR_unwtd_sum:  -0.04 0.9987 signif. UL:  18.73
  0    12 612354767     298.1      6.1     -6.1   -0.0082   0.1858 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.010 +/- 0.024 snr: -0.4 mag: 99.00 UL: 21.03
# ============ Reading file sw00974827001uuu_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
Long-term sensitivity correction to zero point is -0.178 at 612369637
The processing date in extension 0 is:  2020-06-07T06:34:10
The trigger time is: 612354468.864. The reference is keyword in image file
Using zero point of 18.162 for filter U
Use aperture correction of  1.032 based on aperture of  4.00
There are no aspect corrected images to process.
Rebinned Data for sw00974827001uuu_sk.img using a zero point of 18.162:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0       12     298.1      6.1     -6.1   -0.0082   0.1858 99.00 99.00     298.1   -0.0082   0.1858 99.00 99.00 18.73
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00974827001uw1_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
Long-term sensitivity correction to zero point is -0.511 at 612365546
The processing date in extension 0 is:  2020-06-07T06:34:10
The trigger time is: 612354468.864. The reference is keyword in image file
Using zero point of 16.929 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(176.63746,58.19258,25")
fk5;-circle(176.63746,58.19258,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 w1612365546I   11077.2  1.00  685.6   55.6 200   1466  5856  0.008 0.011 22.12 20.3  0.0084 0.0114 22.12 20.3   686  2.115  2.886 19.48 0.054 
    Sum (T+ 11077 to  11774):              55.6         50.1 (est. in src region)   SNR_unwtd_sum:   0.73 0.9987 signif. UL:  20.33
  0   686 612365894   11425.5    348.3   -348.3    0.0084   0.0114 22.121 76.879  -0.934
Total wtd_rate (for all exposures so far): -0.010 +/- 0.024 snr: -0.4 mag: 99.00 UL: 19.79
Rebinned Data for sw00974827001uw1_sk.img using a zero point of 16.929:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      685   11425.5    348.3   -348.3    0.0084   0.0114 22.12  0.93   11425.5    0.0084   0.0114 22.12  0.93 20.33
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00974827001um2_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
Long-term sensitivity correction to zero point is -0.471 at 612360415
The processing date in extension 0 is:  2020-06-07T06:34:10
The trigger time is: 612354468.864. The reference is keyword in image file
Using zero point of 16.379 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(176.63746,58.19258,25")
fk5;-circle(176.63746,58.19258,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 m2612360415I    5946.5  1.00   90.6    3.1 200     60  5853 
   2 m2612363854I    9385.4  1.00  577.4   12.4 204    434  5836 -0.005 0.006 99.00 20.8 -0.0050 0.0064 99.00 20.8   577 -1.784  2.276 99.00 0.107 
    Sum (T+  9385 to   9972):              12.4         15.2 (est. in src region)   SNR_unwtd_sum:  -0.78 0.9987 signif. UL:  20.80
  0   577 612364148    9678.7    293.3   -293.3   -0.0050   0.0064 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.010 +/- 0.024 snr: -0.4 mag: 99.00 UL: 19.25
Rebinned Data for sw00974827001um2_sk.img using a zero point of 16.379:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      577    9678.7    293.3   -293.3   -0.0050   0.0064 99.00 99.00    9678.7   -0.0050   0.0064 99.00 99.00 20.80
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00974827001uw2_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
Long-term sensitivity correction to zero point is -0.627 at 612360006
The processing date in extension 0 is:  2020-06-07T06:34:10
The trigger time is: 612354468.864. The reference is keyword in image file
Using zero point of 16.753 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(176.63746,58.19258,25")
fk5;-circle(176.63746,58.19258,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 w2612360005I    5537.1  1.00  196.6    4.0 208    206  5876 -0.017 0.011 99.00 20.8 -0.0172 0.0109 99.00 20.8   197 -2.516  1.594 99.00 0.184 
    Sum (T+  5537 to   5737):               4.0          7.3 (est. in src region)   SNR_unwtd_sum:  -1.58 0.9987 signif. UL:  20.80
  0   197 612360106    5636.9     99.9    -99.9   -0.0172   0.0109 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.010 +/- 0.024 snr: -0.4 mag: 99.00 UL: 19.62
Rebinned Data for sw00974827001uw2_sk.img using a zero point of 16.753:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5636.9     99.9    -99.9   -0.0172   0.0109 99.00 99.00    5636.9   -0.0172   0.0109 99.00 99.00 20.80
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw00974827992ugu_sk.img ================
Use keyword TRIGTIME of 612354468.864 for trigger time.
The data range from T+80.2 s (0.00 d) to T+11773.8 s (0.14 d)
Wrote uvot_fluxes_200607d06h47m49s015397usUT.qdp
Wrote uvot_fluxes_200607d06h47m49s015397usUT.gif
Wrote uvot_fluxes_200607d06h47m49s015397usUT.ps
Wrote uvot_fluxes_200607d06h47m49s015397usUT_vis.qdp
Wrote uvot_fluxes_200607d06h47m49s015397usUT_uv.qdp
Wrote uvot_fluxes_200607d06h47m49s015397usUT_vis.gif
Wrote uvot_fluxes_200607d06h47m49s015397usUT_vis.ps
Wrote uvot_fluxes_200607d06h47m49s015397usUT_uv.gif
Wrote uvot_fluxes_200607d06h47m49s015397usUT_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  1.3e+03     155.0     74.8    -74.8   -0.0646   0.1611 99.00 99.00     155.0   -0.0646   0.1611 99.00 99.00 21.11
  1    0.913     298.1      6.1     -6.1   -0.0585   1.3182 99.00 99.00     155.1   -0.0646   0.1609 99.00 99.00 21.11
  2     1.53    5408.9    532.6   -282.3   -0.0270   0.1296 99.00 99.00     161.2   -0.0631   0.1546 99.00 99.00 21.16
The data range from T+80.2 s (0.00 d) to T+11773.8 s (0.14 d)
Wrote uvot_fluxes_wtd_200607d06h47m49s015397usUT.qdp
Wrote uvot_fluxes_wtd_200607d06h47m49s015397usUT.gif
Wrote uvot_fluxes_wtd_200607d06h47m49s015397usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem