# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220305d17h04m24s242348usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01094950002 -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
# ========= GRB220302A ===================
Could not find/read custom source region custom_1094950_src.reg
Used archived XRT position of 301.43042 49.38697 4.00
Reference: GCN_Circulars-31666-Wed,_2_Mar_2022_18:50:46_-0500
The position is (20:05:43.30, +49:23:13.1)
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(301.43042,49.38697,4") # color=red dash=0
Source region spec. is: 301.43042 49.38697 4"
Region file centered at (301.43042,49.38697), which is (20:05:43.30, +49:23:13.1)
Could not find/read custom background region custom_1094950_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.
Found 4 bright star(s) within 50.0 arcsec of 301.43042 49.38697:
ra: 301.4382 dec: 49.3854 mag: 11.35
ra: 301.4389 dec: 49.3860 mag: 11.37
ra: 301.4201 dec: 49.3938 mag: 11.78
ra: 301.4354 dec: 49.3740 mag: 11.86
Subtract UTCF of -28.70868 from uncorrected trigger time of 667899619.48 in BAT summary file
# ============ Reading file sw01094950992uwh_sk.img ================
Use keyword TRIGTIME of 667899648.192 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 667932112
The processing date in extension 0 is: 2022-03-03T02:31:50
The trigger time is: 667899648.192. The reference is keyword in image file
Using zero point of 20.115 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(301.43042,49.38697,25")
fk5;-circle(301.43042,49.38697,12.5")
fk5;-circle(301.422150,49.386874,6")
fk5;-circle(301.429899,49.390166,6")
fk5;-circle(301.4382444,49.3853694,25")
fk5;-circle(301.4388861,49.3860167,25")
fk5;-circle(301.4201269,49.3937872,25")
fk5;-circle(301.4354477,49.3740428,25")
 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 wh667932112I   32463.8  0.93  147.4 1059.9 200   6922  1375  0.399 0.261 21.11 19.9  0.3985 0.2611 21.11 19.9   147 15.238  9.983 17.33 0.004 
   2 wh667932112E   32463.8  0.93  145.4 1056.8 199   6873  1375  0.472 0.264 20.93 19.9 
    Sum (T+ 32464 to  32614):            1059.9       1006.9 (est. in src region)   SNR_unwtd_sum:   1.53 0.9987 signif. UL:  19.93
  0   147 667932187   32538.7     74.9    -74.9    0.3985   0.2611 21.114  1.156  -0.547
Total wtd_rate (for all exposures so far): 15.238 +/- 9.358 snr:  1.6 mag: 17.33 UL: 16.02
Rebinned Data for sw01094950992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      138   32538.7     74.9    -74.9    0.3985   0.2611 21.11  0.55   32538.7    0.3985   0.2611 21.11  0.55 19.93
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01094950992uvv_sk.img ================
Use keyword TRIGTIME of 667899648.192 for trigger time.
Long-term sensitivity correction to zero point is -0.217 at 667932092
The processing date in extension 0 is:  2022-03-03T02:31:50
The trigger time is: 667899648.192. The reference is keyword in image file
Using zero point of 17.673 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(301.43042,49.38697,25")
fk5;-circle(301.43042,49.38697,12.5")
fk5;-circle(301.429913,49.390144,6")
fk5;-circle(301.422089,49.386826,6")
fk5;-circle(301.4382444,49.3853694,25")
fk5;-circle(301.4388861,49.3860167,25")
fk5;-circle(301.4201269,49.3937872,25")
fk5;-circle(301.4354477,49.3740428,25")
 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 vv667932091E   32443.3  0.98   10.6   18.7 199    126  1370  0.041 0.456 21.14 17.2 
   2 vv667932268I   32620.7  0.98  295.0  616.4 200   3856  1362  0.179 0.094 19.54 18.5  0.1788 0.0942 19.54 18.5   295 65.261 34.385 15.75 0.001 
   3 vv667932572I   32924.2  0.98  295.0  517.9 200   3471  1374  0.045 0.086 21.05 18.9  0.1116 0.0639 20.05 19.0   590 39.624 23.373 16.30 0.001 
   4 vv667932876I   33227.8  0.98  295.0  527.4 196   3598  1360  0.032 0.087 21.40 19.0  0.0851 0.0516 20.35 19.2   885 30.372 18.956 16.58 0.001 
    Sum (T+ 32621 to  33528):            1661.7       1589.9 (est. in src region)   SNR_unwtd_sum:   1.65 0.9987 signif. UL:  19.22
  0   885 667932722   33074.1    453.5   -453.5    0.0851   0.0516 20.348  1.011  -0.514
Total wtd_rate (for all exposures so far): 18.423 +/- 8.249 snr:  2.2 mag: 17.13 UL: 13.58
Rebinned Data for sw01094950992uvv_sk.img using a zero point of 17.673:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      869   33074.4    453.2   -453.8    0.0851   0.0516 20.35  0.51   33074.4    0.0851   0.0516 20.35  0.51 19.22
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01094950002uw1_sk.img ================
Use keyword TRIGTIME of 667899648.192 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 668139029
The processing date in extension 0 is:  2022-03-05T16:53:21
The trigger time is: 667899648.192. The reference is keyword in image file
Using zero point of 17.169 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(301.43042,49.38697,25")
fk5;-circle(301.43042,49.38697,12.5")
fk5;-circle(301.429748,49.390095,6")
fk5;-circle(301.4382444,49.3853694,25")
fk5;-circle(301.4388861,49.3860167,25")
fk5;-circle(301.4201269,49.3937872,25")
fk5;-circle(301.4354477,49.3740428,25")
 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 w1668139028I  239380.5  1.00 1685.2  456.1 208   3363  1632  0.017 0.014 21.60 20.2  0.0169 0.0139 21.60 20.2  1685 72.060 59.212 15.65 0.001 
   2 w1668144854I  245206.2  1.00 1561.6  423.1 204   3344  1636  0.004 0.014 23.16 20.4  0.0107 0.0100 22.09 20.6  3247 47.134 43.194 16.11 0.001 
   3 w1668185287I  285639.7  1.00 1272.7  371.7 208   2854  1644  0.009 0.017 22.31 20.2  0.0102 0.0086 22.15 20.8  4520 46.582 38.460 16.12 0.001 
    Sum (T+239380 to 286933):            1250.9       1206.6 (est. in src region)   SNR_unwtd_sum:   1.18 0.9987 signif. UL:  20.77
  0  4520 668154844  255195.6  31737.3 -15815.1    0.0102   0.0086 22.151  2.028  -0.666
Total wtd_rate (for all exposures so far): 19.883 +/- 8.079 snr:  2.5 mag: 17.04 UL: 13.05
Rebinned Data for sw01094950002uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.51e+03  255193.6  31739.2 -15813.1    0.0102   0.0086 22.15  0.67  255193.6    0.0102   0.0086 22.15  0.67 20.77
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01094950992um2_sk.img ================
Use keyword TRIGTIME of 667899648.192 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 667933181
The processing date in extension 0 is:  2022-03-03T02:31:51
The trigger time is: 667899648.192. The reference is keyword in image file
Using zero point of 16.591 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(301.43042,49.38697,25")
fk5;-circle(301.43042,49.38697,12.5")
fk5;-circle(301.430046,49.390132,6")
fk5;-circle(301.4382444,49.3853694,25")
fk5;-circle(301.4388861,49.3860167,25")
fk5;-circle(301.4201269,49.3937872,25")
fk5;-circle(301.4354477,49.3740428,25")
 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 m2667933181I   33533.1  1.00  650.7   48.8 200    283  1616  0.022 0.012 20.74 19.7  0.0219 0.0116 20.74 19.7   651 22.365 11.809 16.92 0.018 
    Sum (T+ 33533 to  34194):              48.8         35.0 (est. in src region)   SNR_unwtd_sum:   1.89 0.9987 signif. UL:  19.70
  0   651 667933512   33863.6    330.6   -330.6    0.0219   0.0116 20.740  0.816  -0.460
Total wtd_rate (for all exposures so far): 20.837 +/- 6.623 snr:  3.1 mag: 16.99 UL: 12.56
# ============ Reading file sw01094950001um2_sk.img ================
Use keyword TRIGTIME of 667899648.192 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 668058789
The processing date in extension 0 is:  2022-03-04T23:12:32
The trigger time is: 667899648.192. The reference is keyword in image file
Using zero point of 16.591 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(301.43042,49.38697,25")
fk5;-circle(301.43042,49.38697,12.5")
fk5;-circle(301.429741,49.390206,6")
fk5;-circle(301.4382444,49.3853694,25")
fk5;-circle(301.4388861,49.3860167,25")
fk5;-circle(301.4201269,49.3937872,25")
fk5;-circle(301.4354477,49.3740428,25")
 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 m2668058788I  159140.4  1.00 1646.1   98.5 204    820  1628 -0.003 0.007 99.00 20.9 -0.0026 0.0066 99.00 20.9  1646 -12.728 31.909 99.00 0.003 
   2 m2668110394I  210746.2  1.00 1640.3  102.8 196    772  1604  0.005 0.007 22.28 20.6  0.0013 0.0047 23.78 21.1  3286  5.062 25.643 18.53 0.003 
   3 m2668116456I  216808.7  1.00  929.2   51.8 196    403  1628  0.004 0.008 22.68 20.4  0.0018 0.0041 23.43 21.2  4216  8.557 23.261 17.96 0.003 
    Sum (T+159140 to 217753):             253.1        245.6 (est. in src region)   SNR_unwtd_sum:   0.45 0.9987 signif. UL:  21.17
  0  4216 668092335  192686.9  25065.9 -33546.5    0.0018   0.0041 23.428 75.572  -1.275
Total wtd_rate (for all exposures so far): 19.949 +/- 6.346 snr:  3.1 mag: 17.04 UL: 12.61
Rebinned Data for sw01094950001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      650   33863.6    330.6   -330.6    0.0219   0.0116 20.74  0.46   33863.6    0.0219   0.0116 20.74  0.46 19.70
  1 4.21e+03  192687.0  25065.7 -33546.6    0.0018   0.0041 23.43  1.28  171453.9    0.0045   0.0039 22.45  0.67 21.05
The data range from T+32463.8 s (0.38 d) to T+286932.8 s (3.32 d)
Wrote uvot_fluxes_220305d17h04m24s242348usUT.qdp
Wrote uvot_fluxes_220305d17h04m24s242348usUT.gif
Wrote uvot_fluxes_220305d17h04m24s242348usUT.ps
Wrote uvot_fluxes_220305d17h04m24s242348usUT_vis.qdp
Wrote uvot_fluxes_220305d17h04m24s242348usUT_uv.qdp
Wrote uvot_fluxes_220305d17h04m24s242348usUT_vis.gif
Wrote uvot_fluxes_220305d17h04m24s242348usUT_vis.ps
Wrote uvot_fluxes_220305d17h04m24s242348usUT_uv.gif
Wrote uvot_fluxes_220305d17h04m24s242348usUT_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.00879   32554.3    973.3    -90.5    0.4807   0.2984 21.09  0.52   32554.3    0.4807   0.2984 21.09  0.52 19.94
The data range from T+32463.8 s (0.38 d) to T+286932.8 s (3.32 d)
Wrote uvot_fluxes_wtd_220305d17h04m24s242348usUT.qdp
Wrote uvot_fluxes_wtd_220305d17h04m24s242348usUT.gif
Wrote uvot_fluxes_wtd_220305d17h04m24s242348usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem