# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200622d06h31m28s807793usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00977310001 -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
# ========= GRB200612A ===================
Could not find/read custom source region custom_977310_src.reg
Used archived opt source position of 302.67900 -45.35690 3.00
Reference: GCN_Circulars-27917
The position is (20:10:42.96, -45:21:24.8)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(302.679,-45.3569,3") # color=red dash=0
Source region spec. is: 302.679 -45.3569 3"
Region file centered at (302.679,-45.3569), which is (20:10:42.96, -45:21:24.8)
Could not find/read custom background region custom_977310_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.09998 from uncorrected trigger time of 613629577.14 in BAT summary file
# ============ Reading file sw00977310992uwh_sk.img ================
Use keyword TRIGTIME of 613629602.24 for trigger time.
Long-term sensitivity correction to zero point is -0.226 at 613629698
The processing date in extension 0 is: 2020-06-12T19:44:24
The trigger time is: 613629602.24. The reference is keyword in image file
Using zero point of 20.064 for filter WHITE
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(302.679,-45.3569,25")
fk5;-circle(302.679,-45.3569,12.5")
fk5;-circle(302.682652,-45.363760,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 wh613629697I      95.5  0.94  147.4  554.9 110  28503  5687  0.029 0.191 23.91 20.6  0.0291 0.1910 23.91 20.6   147  0.006  0.040 25.83 1.192 
   2 wh613629697E      96.8  0.93  145.0  552.9 113  28155  5698 -0.045 0.194 99.00 20.6 
    Sum (T+    96 to    245):             554.9        551.3 (est. in src region)   SNR_unwtd_sum:   0.15 0.9987 signif. UL:  20.55
  0   147 613629773     170.4     74.9    -74.9    0.0291   0.1910 23.906 75.094  -2.199
Total wtd_rate (for all exposures so far):  0.006 +/- 0.040 snr:  0.2 mag: 25.83 UL: 22.26
# ============ Reading file sw00977310001uwh_sk.img ================
Use keyword TRIGTIME of 613629602.24 for trigger time.
Long-term sensitivity correction to zero point is -0.226 at 613635611
The processing date in extension 0 is:  2020-06-22T06:18:15
The trigger time is: 613629602.24. The reference is keyword in image file
Using zero point of 20.064 for filter WHITE
Use aperture correction of  1.108 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(302.679,-45.3569,25")
fk5;-circle(302.679,-45.3569,12.5")
fk5;-circle(302.682570,-45.363766,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 wh613635611I    6009.1  0.91   99.9  515.0 112  26837  5673 -0.181 0.279 99.00 20.4 -0.1805 0.2787 99.00 20.4   100 -1.347  2.080 99.00 0.023 
   2 wh613651769I   22167.4  0.97  207.8  330.1 112  17087  5725 -0.023 0.101 99.00 21.3 -0.0720 0.1110 99.00 21.4   308 -1.085  1.661 99.00 0.023 
    Sum (T+  6009 to  22379):             845.1        864.1 (est. in src region)   SNR_unwtd_sum:  -0.65 0.9987 signif. UL:  21.35
  0   308 613646613   17010.9   5367.7 -11001.8   -0.0720   0.1110 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.005 +/- 0.040 snr:  0.1 mag: 25.94 UL: 22.26
Rebinned Data for sw00977310001uwh_sk.img using a zero point of 20.064:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      138     170.4     74.9    -74.9    0.0291   0.1910 23.91  2.20     170.4    0.0291   0.1910 23.91  2.20 20.55
  1     91.1    6059.9     50.7    -50.7   -0.1805   0.2787 99.00 99.00    2513.3   -0.0543   0.1598 99.00 99.00 20.88
  2      202   22273.0    105.6   -105.6   -0.0230   0.1006 99.00 99.00   11773.5   -0.0396   0.0971 99.00 99.00 21.43
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00977310992uvv_sk.img ================
Use keyword TRIGTIME of 613629602.24 for trigger time.
Long-term sensitivity correction to zero point is -0.289 at 613629679
The processing date in extension 0 is:  2020-06-12T19:44:12
The trigger time is: 613629602.24. The reference is keyword in image file
Using zero point of 17.601 for filter V
Use aperture correction of  1.087 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(302.679,-45.3569,25")
fk5;-circle(302.679,-45.3569,12.5")
fk5;-circle(302.682840,-45.363860,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 vv613629679E      77.0  0.99   10.3    7.7 115    325  5711  0.122 0.299 19.88 17.5 
# ============ Reading file sw00977310001uvv_sk.img ================
Use keyword TRIGTIME of 613629602.24 for trigger time.
Long-term sensitivity correction to zero point is -0.289 at 613645581
The processing date in extension 0 is:  2020-06-22T06:18:15
The trigger time is: 613629602.24. The reference is keyword in image file
Using zero point of 17.601 for filter V
Use aperture correction of  1.087 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(302.679,-45.3569,25")
fk5;-circle(302.679,-45.3569,12.5")
fk5;-circle(302.682641,-45.363749,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 vv613645581I   15978.8  0.99  275.4   91.8 108   5072  5660 -0.020 0.038 99.00 20.0 -0.0197 0.0384 99.00 20.0   275 -3.771  7.377 99.00 0.015 
    Sum (T+ 15979 to  16259):              91.8         96.8 (est. in src region)   SNR_unwtd_sum:  -0.51 0.9987 signif. UL:  20.00
  0   275 613645721   16118.7    139.9   -139.9   -0.0197   0.0384 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.005 +/- 0.039 snr:  0.1 mag: 25.98 UL: 19.82
Rebinned Data for sw00977310001uvv_sk.img using a zero point of 17.601:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      274   16118.7    139.9   -139.9   -0.0197   0.0384 99.00 99.00   16118.7   -0.0197   0.0384 99.00 99.00 20.00
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00977310001ubb_sk.img ================
Use keyword TRIGTIME of 613629602.24 for trigger time.
Long-term sensitivity correction to zero point is -0.165 at 613635407
The processing date in extension 0 is:  2020-06-22T06:18:15
The trigger time is: 613629602.24. The reference is keyword in image file
Using zero point of 18.945 for filter B
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(302.679,-45.3569,25")
fk5;-circle(302.679,-45.3569,12.5")
fk5;-circle(302.682736,-45.363866,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 bb613635406I    5804.4  0.97  196.6  296.3 112  15198  5694 -0.015 0.101 99.00 20.2 -0.0151 0.1005 99.00 20.2   197 -0.308  2.047 99.00 0.031 
   2 bb613650857I   21255.4  0.99  295.0  195.5 112   9614  5702  0.025 0.054 22.94 20.7  0.0093 0.0513 24.02 20.9   492  0.168  1.819 22.23 0.027 
   3 bb613651161I   21558.9  0.99  295.0  193.1 112   9718  5705  0.009 0.053 24.06 20.8  0.0092 0.0378 24.04 21.2   787  0.256  1.655 21.77 0.025 
   4 bb613651464I   21862.4  0.99  295.0  224.8 116   9688  5716  0.107 0.057 21.37 20.3  0.0359 0.0316 22.56 21.1  1082  1.362  1.549 19.95 0.024 
   5 bb613662825I   33223.1  0.99  295.0  205.1 112   8966  5706  0.110 0.055 21.34 20.3  0.0519 0.0275 22.16 21.1  1377  2.089  1.505 19.49 0.022 
   6 bb613663128I   33526.6  0.99  295.1  217.2 116   9109  5739  0.126 0.056 21.20 20.3  0.0650 0.0247 21.91 21.1  1672  2.800  1.468 19.17 0.021 
   7 bb613663432I   33830.1  0.99  255.9  168.7 116   7953  5720  0.032 0.057 22.67 20.6  0.0606 0.0228 21.99 21.2  1928  2.845  1.434 19.16 0.020 
    Sum (T+  5804 to  34090):            1500.7       1396.6 (est. in src region)   SNR_unwtd_sum:   2.66 0.9987 signif. UL:  21.17
  0  1928 613654942   25340.1   8750.0 -19535.7    0.0606   0.0228 21.989  0.511  -0.346
Total wtd_rate (for all exposures so far):  0.008 +/- 0.040 snr:  0.2 mag: 25.58 UL: 21.13
Rebinned Data for sw00977310001ubb_sk.img using a zero point of 18.945:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      192    5904.3     99.9    -99.9   -0.0151   0.1005 99.00 99.00    5904.3   -0.0151   0.1005 99.00 99.00 20.21
  1 1.17e+03   24624.9   8898.0  -3369.5    0.0629   0.0274 21.95  0.39   21984.6    0.0519   0.0275 22.16  0.46 21.12
  2      545   33808.2    281.8   -281.6    0.0823   0.0403 21.66  0.43   25370.4    0.0606   0.0228 21.99  0.35 21.17
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00977310992uuu_sk.img ================
Use keyword TRIGTIME of 613629602.24 for trigger time.
Long-term sensitivity correction to zero point is -0.178 at 613629910
The processing date in extension 0 is:  2020-06-12T19:44:25
The trigger time is: 613629602.24. The reference is keyword in image file
Using zero point of 18.162 for filter U
Use aperture correction of  1.100 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(302.679,-45.3569,25")
fk5;-circle(302.679,-45.3569,12.5")
fk5;-circle(302.682589,-45.363749,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 uu613629909I     307.6  0.97   66.7   92.7 112   5302  5684 -0.199 0.165 99.00 19.2 -0.1989 0.1649 99.00 19.2    67 -0.482  0.400 99.00 0.256 
   2 uu613629909E     307.6  0.97   66.7   98.7 115   5324  5693 -0.150 0.170 99.00 19.0 
    Sum (T+   308 to    375):              92.7        104.5 (est. in src region)   SNR_unwtd_sum:  -1.21 0.9987 signif. UL:  19.16
  0    67 613629944     341.5     33.9    -33.9   -0.1989   0.1649 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.003 +/- 0.039 snr:  0.1 mag: 26.47 UL: 20.39
# ============ Reading file sw00977310001uuu_sk.img ================
Use keyword TRIGTIME of 613629602.24 for trigger time.
Long-term sensitivity correction to zero point is -0.178 at 613661912
The processing date in extension 0 is:  2020-06-22T06:18:15
The trigger time is: 613629602.24. The reference is keyword in image file
Using zero point of 18.162 for filter U
Use aperture correction of  1.100 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(302.679,-45.3569,25")
fk5;-circle(302.679,-45.3569,12.5")
fk5;-circle(302.682718,-45.363846,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 uu613661911I   32309.6  1.00  295.0   67.2 116   3757  5697 -0.035 0.031 99.00 21.0 -0.0349 0.0310 99.00 21.0   295 -8.032  7.148 99.00 0.017 
   2 uu613662216I   32614.0  1.00  295.0   62.4 116   3804  5693 -0.057 0.030 99.00 21.2 -0.0457 0.0215 99.00 21.6   590 -10.549  4.991 99.00 0.016 
   3 uu613662519I   32917.6  1.00  295.0   72.3 112   3870  5693 -0.014 0.032 99.00 20.7 -0.0352 0.0179 99.00 21.8   885 -8.183  4.169 99.00 0.016 
    Sum (T+ 32310 to  33217):             201.9        230.1 (est. in src region)   SNR_unwtd_sum:  -1.97 0.9987 signif. UL:  21.76
  0   885 613662366   32763.6    453.7   -454.0   -0.0352   0.0179 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.003 +/- 0.039 snr:  0.1 mag: 26.70 UL: 20.39
Rebinned Data for sw00977310001uuu_sk.img using a zero point of 18.162:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     64.9     341.5     33.9    -33.9   -0.1989   0.1649 99.00 99.00     341.5   -0.1989   0.1649 99.00 99.00 19.16
  1      882   32763.6    453.8   -454.0   -0.0352   0.0179 99.00 99.00   30539.6   -0.0465   0.0202 99.00 99.00 21.71
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00977310001uw1_sk.img ================
Use keyword TRIGTIME of 613629602.24 for trigger time.
Long-term sensitivity correction to zero point is -0.514 at 613657203
The processing date in extension 0 is:  2020-06-22T06:18:15
The trigger time is: 613629602.24. The reference is keyword in image file
Using zero point of 16.926 for filter UVW1
Use aperture correction of  1.123 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(302.679,-45.3569,25")
fk5;-circle(302.679,-45.3569,12.5")
fk5;-circle(302.682656,-45.363816,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 w1613657203I   27601.2  1.00  529.0   21.8 120   1272  5720 -0.010 0.010 99.00 20.9 -0.0104 0.0100 99.00 20.9   529 -6.451  6.203 99.00 0.032 
    Sum (T+ 27601 to  28139):              21.8         26.7 (est. in src region)   SNR_unwtd_sum:  -1.04 0.9987 signif. UL:  20.92
  0   529 613657472   27870.0    268.7   -268.7   -0.0104   0.0100 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.003 +/- 0.040 snr:  0.1 mag: 26.77 UL: 19.14
Rebinned Data for sw00977310001uw1_sk.img using a zero point of 16.926:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      529   27870.0    268.7   -268.7   -0.0104   0.0100 99.00 99.00   27870.0   -0.0104   0.0100 99.00 99.00 20.92
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00977310001uw2_sk.img ================
Use keyword TRIGTIME of 613629602.24 for trigger time.
Long-term sensitivity correction to zero point is -0.631 at 613644674
The processing date in extension 0 is:  2020-06-22T06:18:15
The trigger time is: 613629602.24. The reference is keyword in image file
Using zero point of 16.749 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(302.679,-45.3569,25")
fk5;-circle(302.679,-45.3569,12.5")
fk5;-circle(302.682495,-45.363765,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 w2613644673I   15071.6  1.00  885.6   22.9 112   1133  5684  0.001 0.006 24.71 21.0  0.0007 0.0060 24.71 21.0   886  0.264  2.446 21.73 0.098 
    Sum (T+ 15072 to  15971):              22.9         22.3 (est. in src region)   SNR_unwtd_sum:   0.11 0.9987 signif. UL:  21.00
  0   886 613645124   15521.5    449.9   -449.9    0.0007   0.0060 24.712 74.288  -2.527
Total wtd_rate (for all exposures so far):  0.003 +/- 0.039 snr:  0.1 mag: 26.76 UL: 18.97
Rebinned Data for sw00977310001uw2_sk.img using a zero point of 16.749:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885   15521.5    449.9   -449.9    0.0007   0.0060 24.71  2.53   15521.5    0.0007   0.0060 24.71  2.53 21.00
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw00977310992ugu_sk.img ================
Use keyword TRIGTIME of 613629602.24 for trigger time.
The data range from T+95.5 s (0.00 d) to T+34090.0 s (0.39 d)
Wrote uvot_fluxes_200622d06h31m28s807793usUT.qdp
Wrote uvot_fluxes_200622d06h31m28s807793usUT.gif
Wrote uvot_fluxes_200622d06h31m28s807793usUT.ps
Wrote uvot_fluxes_200622d06h31m28s807793usUT_vis.qdp
Wrote uvot_fluxes_200622d06h31m28s807793usUT_uv.qdp
Wrote uvot_fluxes_200622d06h31m28s807793usUT_vis.gif
Wrote uvot_fluxes_200622d06h31m28s807793usUT_vis.ps
Wrote uvot_fluxes_200622d06h31m28s807793usUT_uv.gif
Wrote uvot_fluxes_200622d06h31m28s807793usUT_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      505     170.4     74.9    -74.9    0.0358   0.2353 23.91  2.20     170.4    0.0358   0.2353 23.91  2.20 20.55
  1    0.882     341.5     33.9    -33.9   -1.4119   1.1705 99.00 99.00     170.7    0.0307   0.2345 24.07  2.34 20.56
  2    0.258    6078.3  10180.3   -273.9   -0.1783   0.2645 99.00 99.00     173.7    0.0270   0.2303 24.21  2.45 20.59
  3    0.187   23810.5  10279.6  -2555.1    0.0561   0.0740 23.42  0.91     182.4    0.0284   0.2193 24.16  2.35 20.64
The data range from T+95.5 s (0.00 d) to T+34090.0 s (0.39 d)
Wrote uvot_fluxes_wtd_200622d06h31m28s807793usUT.qdp
Wrote uvot_fluxes_wtd_200622d06h31m28s807793usUT.gif
Wrote uvot_fluxes_wtd_200622d06h31m28s807793usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem