# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210316d20h18m35s081346usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01035994001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/data/uvot/swift_data/home/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /data/uvot/swift_data/home/uvot_lc
# ========= GRB210306A ===================
Could not find/read custom source region custom_1035994_src.reg
Used archived uvot source position of 129.95824 60.20533 3.00
Reference: GCN_Circ_29636
The position is (08:39:49.98, +60:12:19.2)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(129.95824,60.20533,3") # color=red dash=0
Source region spec. is: 129.95824 60.20533 3"
Region file centered at (129.95824,60.20533), which is (08:39:49.98, +60:12:19.2)
Could not find/read custom background region custom_1035994_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 -26.61162 from uncorrected trigger time of 636695637.06 in BAT summary file
# ============ Reading file sw01035994992uwh_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.179 at 636695749
The processing date in extension 0 is: 2021-03-06T18:23:27
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 20.111 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(129.95824,60.20533,25")
fk5;-circle(129.95824,60.20533,12.5")
fk5;-circle(129.952923,60.203804,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 wh636695748I      85.2  0.80  147.4 3990.5 112  10449  6888 35.701 0.590 16.23 16.2 35.7005 0.5905 16.23 16.2   147  6.740  0.111 18.22 3.695 
above line uses coinc_corr_src:  0.804 corr_bkg:  0.976
   2 wh636695748E      85.2  0.80  147.4 3926.4 111  10388  6873 35.123 0.586 16.25 16.2 
above line uses coinc_corr_src:  0.804 corr_bkg:  0.976
   3 wh636696240E     577.2  0.91   19.4  223.7 113   1324  6086 12.470 0.938 17.37 17.1 32.6846 0.5281 16.32 16.3   167  6.762  0.110 18.21 3.359 
    Sum (T+    85 to    597):            4214.2        194.5 (est. in src region)   SNR_unwtd_sum:  61.90 0.9987 signif. UL:  16.27
  0   167 636695873     209.8    387.1   -124.6   32.6846   0.5281 16.325  0.017  -0.018
Total wtd_rate (for all exposures so far):  6.762 +/- 0.110 snr: 61.2 mag: 18.21 UL: 17.98
# ============ Reading file sw01035994001uwh_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.179 at 636700817
The processing date in extension 0 is:  2021-03-16T20:09:42
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 20.111 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(129.95824,60.20533,25")
fk5;-circle(129.95824,60.20533,12.5")
fk5;-circle(129.952902,60.203756,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 wh636700817I    5153.7  0.96  171.2  680.0 116  11655  5810  3.017 0.176 18.91 18.7  3.0171 0.1765 18.91 18.7   171 18.652  1.091 17.11 0.114 
    Sum (T+  5154 to   5328):             680.0        232.7 (est. in src region)   SNR_unwtd_sum:  17.10 0.9987 signif. UL:  18.73
  0   171 636700904    5240.7     87.0    -87.0    3.0171   0.1765 18.912  0.065  -0.062
Total wtd_rate (for all exposures so far):  6.777 +/- 0.110 snr: 61.4 mag: 18.21 UL: 17.98
Rebinned Data for sw01035994001uwh_sk.img using a zero point of 20.111:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      119     160.1     74.9    -74.9   35.7005   0.5905 16.23  0.02     160.1   35.7005   0.5905 16.23  0.02 16.18
  1     17.7     587.1      9.9     -9.9   12.4696   0.9377 17.37  0.08     215.5   32.6846   0.5281 16.32  0.02 16.27
  2      164    5240.7     87.0    -87.0    3.0171   0.1765 18.91  0.06    2962.2   16.4687   0.2581 17.07  0.02 17.02
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01035994992uvv_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.212 at 636695729
The processing date in extension 0 is:  2021-03-06T18:23:21
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 17.678 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(129.95824,60.20533,25")
fk5;-circle(129.95824,60.20533,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 vv636695729E      65.8  0.91    9.1  102.7 111    161  6359 13.055 1.325 14.89 14.6 
   2 vv636696291E     627.8  0.99   19.4   29.0 115    327  5896  1.282 0.306 17.41 16.8  1.2818 0.3058 17.41 16.8    19  9.063  2.162 17.90 0.426 
    Sum (T+   628 to    648):              29.0          6.4 (est. in src region)   SNR_unwtd_sum:   4.19 0.9987 signif. UL:  16.82
  0    19 636696301     637.7      9.9     -9.9    1.2818   0.3058 17.408  0.296  -0.232
Total wtd_rate (for all exposures so far):  6.655 +/- 0.108 snr: 61.5 mag: 18.23 UL: 15.57
Rebinned Data for sw01035994992uvv_sk.img using a zero point of 17.678:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     19.2     637.7      9.9     -9.9    1.2818   0.3058 17.41  0.23     637.7    1.2818   0.3058 17.41  0.23 16.82
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01035994992ubb_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 636696216
The processing date in extension 0 is:  2021-03-06T18:23:26
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 18.935 for filter B
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(129.95824,60.20533,25")
fk5;-circle(129.95824,60.20533,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 bb636696216E     552.6  0.96   19.5   87.6 111    625  6010  4.492 0.553 17.30 17.0  4.4919 0.5532 17.30 17.0    19  8.801  1.084 17.93 0.830 
    Sum (T+   553 to    572):              87.6         11.5 (est. in src region)   SNR_unwtd_sum:   8.12 0.9987 signif. UL:  16.96
  0    19 636696226     562.5      9.9     -9.9    4.4919   0.5532 17.304  0.143  -0.126
Total wtd_rate (for all exposures so far):  6.785 +/- 0.110 snr: 61.7 mag: 18.21 UL: 16.80
# ============ Reading file sw01035994001ubb_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 636700612
The processing date in extension 0 is:  2021-03-16T20:09:42
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 18.935 for filter B
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(129.95824,60.20533,25")
fk5;-circle(129.95824,60.20533,12.5")
fk5;-circle(129.952754,60.203869,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 bb636700612I    4948.5  0.99  196.6  236.7 112   5504  5685  0.733 0.088 19.27 18.9  0.7327 0.0883 19.27 18.9   197 12.884  1.553 17.52 0.102 
    Sum (T+  4949 to   5148):             236.7        108.4 (est. in src region)   SNR_unwtd_sum:   8.30 0.9987 signif. UL:  18.94
  0   197 636700712    5048.4     99.9    -99.9    0.7327   0.0883 19.273  0.139  -0.124
Total wtd_rate (for all exposures so far):  6.788 +/- 0.110 snr: 61.8 mag: 18.21 UL: 16.80
Rebinned Data for sw01035994001ubb_sk.img using a zero point of 18.935:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     18.8     562.5      9.9     -9.9    4.4919   0.5532 17.30  0.13     562.5    4.4919   0.5532 17.30  0.13 16.96
  1      194    5048.4     99.9    -99.9    0.7327   0.0883 19.27  0.12    4652.5    1.0644   0.0941 18.87  0.09 18.61
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01035994992uuu_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.190 at 636695961
The processing date in extension 0 is:  2021-03-06T18:23:28
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 18.150 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(129.95824,60.20533,25")
fk5;-circle(129.95824,60.20533,12.5")
fk5;-circle(129.952752,60.203558,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 uu636695961I     297.3  0.98  245.8  784.5 115   2779  5754  3.342 0.128 16.84 16.7  3.3418 0.1285 16.84 16.7   246 10.123  0.389 17.78 1.425 
   2 uu636695961E     297.3  0.98  245.8  772.7 112   2774  5748  3.294 0.128 16.86 16.7 
    Sum (T+   297 to    547):             784.5         55.5 (est. in src region)   SNR_unwtd_sum:  26.01 0.9987 signif. UL:  16.72
  0   246 636696086     422.2    124.9   -124.9    3.3418   0.1285 16.841  0.042  -0.041
Total wtd_rate (for all exposures so far):  6.893 +/- 0.106 snr: 65.3 mag: 18.19 UL: 16.01
# ============ Reading file sw01035994001uuu_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.190 at 636700407
The processing date in extension 0 is:  2021-03-16T20:09:42
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 18.150 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(129.95824,60.20533,25")
fk5;-circle(129.95824,60.20533,12.5")
fk5;-circle(129.952933,60.203713,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 uu636700407I    4743.4  0.99  196.6  165.0 112   2339  5675  0.670 0.073 18.59 18.3  0.6703 0.0727 18.59 18.3   197 23.293  2.525 16.87 0.122 
    Sum (T+  4743 to   4943):             165.0         46.2 (est. in src region)   SNR_unwtd_sum:   9.23 0.9987 signif. UL:  18.28
  0   197 636700507    4843.3     99.9    -99.9    0.6703   0.0727 18.585  0.124  -0.112
Total wtd_rate (for all exposures so far):  6.897 +/- 0.106 snr: 65.3 mag: 18.19 UL: 16.00
Rebinned Data for sw01035994001uuu_sk.img using a zero point of 18.150:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      240     422.2    124.9   -124.9    3.3418   0.1285 16.84  0.04     422.2    3.3418   0.1285 16.84  0.04 16.72
  1      195    4843.3     99.9    -99.9    0.6703   0.0727 18.59  0.11    2404.2    2.1442   0.0780 17.32  0.04 17.21
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01035994001uw1_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 636700202
The processing date in extension 0 is:  2021-03-16T20:09:42
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 17.169 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(129.95824,60.20533,25")
fk5;-circle(129.95824,60.20533,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 w1636700202I    4538.5  1.00  196.6   43.8 112    601  5835  0.184 0.038 19.00 18.5  0.1845 0.0380 19.00 18.5   197 15.163  3.121 17.34 0.207 
    Sum (T+  4538 to   4738):              43.8         11.5 (est. in src region)   SNR_unwtd_sum:   4.86 0.9987 signif. UL:  18.48
  0   197 636700302    4638.4     99.9    -99.9    0.1845   0.0380 19.004  0.250  -0.203
Total wtd_rate (for all exposures so far):  7.046 +/- 0.108 snr: 65.4 mag: 18.17 UL: 15.00
Rebinned Data for sw01035994001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    4638.4     99.9    -99.9    0.1845   0.0380 19.00  0.20    4638.4    0.1845   0.0380 19.00  0.20 18.48
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01035994992um2_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.260 at 636696317
The processing date in extension 0 is:  2021-03-06T18:23:27
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 16.590 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.00
There are no aspect corrected images to process.
# ============ Reading file sw01035994001um2_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.260 at 636699997
The processing date in extension 0 is:  2021-03-16T20:09:42
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 16.590 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01035994992uw2_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
Long-term sensitivity correction to zero point is -0.341 at 636696267
The processing date in extension 0 is:  2021-03-06T18:23:27
The trigger time is: 636695663.68. The reference is keyword in image file
Using zero point of 17.039 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw01035994992ugu_sk.img ================
Use keyword TRIGTIME of 636695663.68 for trigger time.
The data range from T+85.2 s (0.00 d) to T+5327.7 s (0.06 d)
Wrote uvot_fluxes_210316d20h18m35s081346usUT.qdp
Wrote uvot_fluxes_210316d20h18m35s081346usUT.gif
Wrote uvot_fluxes_210316d20h18m35s081346usUT.ps
Wrote uvot_fluxes_210316d20h18m35s081346usUT_vis.qdp
Wrote uvot_fluxes_210316d20h18m35s081346usUT_uv.qdp
Wrote uvot_fluxes_210316d20h18m35s081346usUT_vis.gif
Wrote uvot_fluxes_210316d20h18m35s081346usUT_vis.ps
Wrote uvot_fluxes_210316d20h18m35s081346usUT_uv.gif
Wrote uvot_fluxes_210316d20h18m35s081346usUT_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     68.2     160.1     74.9    -74.9   42.1136   0.6966 16.23  0.02     160.1   42.1136   0.6966 16.23  0.02 16.18
  1     0.92     422.2    124.9   -124.9   23.9761   0.9219 16.84  0.04     163.5   41.4904   0.6734 16.25  0.02 16.19
  2     2.27     584.9     62.7    -32.2   14.8018   1.0021 17.36  0.07     177.0   38.6812   0.6117 16.32  0.02 16.27
  3   0.0219    4843.3     99.9    -99.9    4.8094   0.5213 18.59  0.11     178.4   38.3997   0.6066 16.33  0.02 16.28
  4    0.119    5048.4     99.9    -99.9    2.5521   0.3075 19.27  0.12     186.5   36.7841   0.5794 16.38  0.02 16.33
  5    0.712    5240.7     87.0    -87.0    3.5591   0.2082 18.91  0.06     236.3   29.5219   0.4551 16.61  0.02 16.57
The data range from T+85.2 s (0.00 d) to T+5327.7 s (0.06 d)
Wrote uvot_fluxes_wtd_210316d20h18m35s081346usUT.qdp
Wrote uvot_fluxes_wtd_210316d20h18m35s081346usUT.gif
Wrote uvot_fluxes_wtd_210316d20h18m35s081346usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem