# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 240229d05h00m28s460039usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01215912002 -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
# ========= GRB240218A ===================
Could not find/read custom source region custom_1215912_src.reg
Used archived opt source position of 161.79792 1.27722 3.00
Reference: GCN_Circulars-35747
The position is (10:47:11.50, +01:16:38.0)
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(161.79792,1.27722,3") # color=red dash=0
Source region spec. is: 161.79792 1.27722 3"
Region file centered at (161.79792,1.27722), which is (10:47:11.50, +01:16:38.0)
Could not find/read custom background region custom_1215912_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 -32.94964 from uncorrected trigger time of 729914400.66 in BAT summary file
# ============ Reading file sw01215912992uwh_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 729914592
The processing date in extension 0 is: 2024-02-18T22:32:32
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 20.115 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(161.79792,1.27722,25")
fk5;-circle(161.79792,1.27722,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 wh729914591I     158.3  0.97  117.3  199.6 112  11228  5840 -0.153 0.139 99.00 21.3 -0.1528 0.1390 99.00 21.3   117 -0.039  0.036 99.00 2.063 
   2 wh729914591E     160.1  0.97  115.5  185.4 108  11044  5843 -0.185 0.136 99.00 21.4 
   3 wh729916086E    1652.6  0.96   19.5   45.4 113   2036  5861  0.358 0.399 21.23 19.6 -0.0801 0.1321 99.00 21.2   137 -0.037  0.036 99.00 1.783 
   4 wh729916259E    1826.1  0.96   19.4   41.0 115   1999  5860  0.104 0.382 22.57 19.8 -0.0573 0.1250 99.00 21.2   156 -0.037  0.036 99.00 1.574 
   5 wh729916431E    1998.1  0.95   17.6   47.6 111   2610  5833 -0.140 0.459 99.00 19.8 -0.0655 0.1215 99.00 21.3   174 -0.037  0.036 99.00 1.367 
    Sum (T+   158 to   2016):             333.5        343.5 (est. in src region)   SNR_unwtd_sum:  -0.54 0.9987 signif. UL:  21.28
  0   174 729915176     742.6   1273.5   -584.3   -0.0655   0.1215 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.037 +/- 0.035 snr: -1.1 mag: 99.00 UL: 22.75
Rebinned Data for sw01215912992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      114     217.9     59.6    -59.6   -0.1528   0.1390 99.00 99.00     217.9   -0.1528   0.1390 99.00 99.00 21.27
  1     54.4    1828.7    187.3   -176.1    0.1170   0.2377 22.44  1.20     739.2   -0.0655   0.1215 99.00 99.00 21.28
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01215912992uvv_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.224 at 729914571
The processing date in extension 0 is:  2024-02-18T22:32:23
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 17.666 for filter V
Use aperture correction of  1.087 based on aperture of  3.00
Using background region based on sources found in extension 3:
# 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(161.79792,1.27722,25")
fk5;-circle(161.79792,1.27722,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 vv729914570E     137.3  0.99   11.8    4.5 112    233  5855 
#  2 vv729915961E    1528.1  0.99   19.5    7.4 112    422  5842 
   3 vv729916136E    1703.1  0.99   19.4   12.9 111    434  5857  0.267 0.204 19.10 17.8  0.2666 0.2045 19.10 17.8    19  5.120  3.927 18.52 0.122 
#  4 vv729916309E    1875.7  0.99   19.4    8.2 112    445  5849 
    Sum (T+  1703 to   1723):              12.9          8.2 (est. in src region)   SNR_unwtd_sum:   1.30 0.9987 signif. UL:  17.79
  0    19 729916147    1713.0      9.9     -9.9    0.2666   0.2045 19.101  1.582  -0.618
Total wtd_rate (for all exposures so far): -0.036 +/- 0.035 snr: -1.0 mag: 99.00 UL: 20.32
# ============ Reading file sw01215912001uvv_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.224 at 729920019
The processing date in extension 0 is:  2024-02-28T01:54:29
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 17.666 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(161.79792,1.27722,25")
fk5;-circle(161.79792,1.27722,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 vv729920019I    5585.4  0.99  196.6   90.9 104   5865  5801 
   2 vv729937850I   23416.8  0.99   72.8   28.9 112   1554  5861 -0.012 0.082 99.00 19.2 -0.0115 0.0817 99.00 19.2    73 -3.028 21.483 99.00 0.009 
    Sum (T+ 23417 to  23491):              28.9         29.7 (est. in src region)   SNR_unwtd_sum:  -0.14 0.9987 signif. UL:  19.15
  0    73 729937887   23453.7     37.0    -37.0   -0.0115   0.0817 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.036 +/- 0.035 snr: -1.0 mag: 99.00 UL: 20.32
Rebinned Data for sw01215912001uvv_sk.img using a zero point of 17.666:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     19.3    1713.0      9.9     -9.9    0.2666   0.2045 19.10  0.62    1713.0    0.2666   0.2045 19.10  0.62 17.79
  1     72.3   23453.7     37.0    -37.0   -0.0115   0.0817 99.00 99.00   18881.0    0.0470   0.0775 20.99  1.06 19.02
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01215912992ubb_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.210 at 729916061
The processing date in extension 0 is:  2024-02-18T22:32:27
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 18.900 for filter B
Use aperture correction of  1.108 based on aperture of  3.00
Using background region based on sources found in extension 3:
# 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(161.79792,1.27722,25")
fk5;-circle(161.79792,1.27722,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 bb729916060E    1627.2  0.99   19.4   15.8 112    727  5840 
   2 bb729916235E    1801.9  0.99   19.4    9.4 113    737  5816 -0.282 0.179 99.00 19.9 -0.2821 0.1789 99.00 19.9    19 -1.839  1.166 99.00 0.207 
   3 bb729916407E    1973.9  0.98   19.5   15.5 113   1096  5840 -0.332 0.231 99.00 19.6 -0.3068 0.1460 99.00 20.3    39 -2.027  0.953 99.00 0.159 
    Sum (T+  1802 to   1994):              24.9         35.5 (est. in src region)   SNR_unwtd_sum:  -2.10 0.9987 signif. UL:  20.25
  0    39 729916331    1897.8     95.8    -95.9   -0.3068   0.1460 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.038 +/- 0.035 snr: -1.1 mag: 99.00 UL: 21.55
Rebinned Data for sw01215912992ubb_sk.img using a zero point of 18.900:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.4    1897.4     96.2    -95.5   -0.3068   0.1460 99.00 99.00    1897.4   -0.3068   0.1460 99.00 99.00 20.25
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01215912992uuu_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.227 at 729916036
The processing date in extension 0 is:  2024-02-18T22:32:27
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 18.113 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
There are no aspect corrected images to process.
# ============ Reading file sw01215912001uuu_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.227 at 729926375
The processing date in extension 0 is:  2024-02-28T01:54:30
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 18.113 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01215912992uw1_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 729916011
The processing date in extension 0 is:  2024-02-18T22:32:27
The trigger time is: 729914433.6. 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(161.79792,1.27722,25")
fk5;-circle(161.79792,1.27722,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 w1729916011E    1577.4  1.00   19.5    0.0 111     57  5841 -0.063 0.058 99.00 19.3 -0.0630 0.0584 99.00 19.3    19 -1.773  1.642 99.00 0.633 
#  2 w1729916186E    1752.9  1.00   19.4    1.3 112     68  5839 
#  3 w1729916358E    1924.9  1.00   19.5    0.0 112     81  5832 
    Sum (T+  1577 to   1597):               0.0          1.1 (est. in src region)   SNR_unwtd_sum:  -1.08 0.9987 signif. UL:  19.27
  0    19 729916021    1587.3      9.9     -9.9   -0.0630   0.0584 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.040 +/- 0.036 snr: -1.1 mag: 99.00 UL: 19.81
# ============ Reading file sw01215912001uw1_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 729920429
The processing date in extension 0 is:  2024-02-28T01:54:30
The trigger time is: 729914433.6. 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
There are no aspect corrected images to process.
Rebinned Data for sw01215912001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     19.4    1587.3      9.9     -9.9   -0.0630   0.0584 99.00 99.00    1587.3   -0.0630   0.0584 99.00 99.00 19.27
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01215912992um2_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 729915986
The processing date in extension 0 is:  2024-02-18T22:32:27
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 16.591 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 sw01215912001um2_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 729920224
The processing date in extension 0 is:  2024-02-28T01:54:29
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 16.591 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 sw01215912002um2_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 730035108
The processing date in extension 0 is:  2024-02-29T04:33:26
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.00
Using background region based on sources found in extension 5:
# 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(161.79792,1.27722,25")
fk5;-circle(161.79792,1.27722,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 m2730035107E  120674.4  1.00  721.2   11.6 112    548  5841 
#  2 m2730045185E  130751.9  1.00  605.7    8.6 112    425  5841 
#  3 m2730050658E  136225.1  1.00 1749.9   27.1 112   1426  5841 
#  4 m2730057435E  143001.5  1.00  679.8    9.5 112    504  5841 
   5 m2730062731E  148298.0  1.00 1098.5   18.7 116    710  5853  0.005 0.004 22.43 21.0  0.0046 0.0044 22.43 21.0  1099 20.739 19.664 17.00 0.017 
    Sum (T+148298 to 149414):              18.7         14.1 (est. in src region)   SNR_unwtd_sum:   1.05 0.9987 signif. UL:  20.95
  0  1099 730063290  148856.1    558.1   -558.1    0.0046   0.0044 22.430  3.213  -0.724
Total wtd_rate (for all exposures so far): -0.039 +/- 0.035 snr: -1.1 mag: 99.00 UL: 19.25
Rebinned Data for sw01215912002um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.1e+03  148856.1    558.1   -558.1    0.0046   0.0044 22.43  0.72  148856.1    0.0046   0.0044 22.43  0.72 20.95
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01215912992uw2_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 729916112
The processing date in extension 0 is:  2024-02-18T22:32:28
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 17.035 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.00
There are no aspect corrected images to process.
# ============ Reading file sw01215912001uw2_sk.img ================
Use keyword TRIGTIME of 729914433.6 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 729919814
The processing date in extension 0 is:  2024-02-28T01:54:29
The trigger time is: 729914433.6. The reference is keyword in image file
Using zero point of 17.035 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.00
There are no aspect corrected images to process.
The data range from T+158.3 s (0.00 d) to T+149414.2 s (1.73 d)
Wrote uvot_fluxes_240229d05h00m28s460039usUT.qdp
Wrote uvot_fluxes_240229d05h00m28s460039usUT.gif
Wrote uvot_fluxes_240229d05h00m28s460039usUT.ps
Wrote uvot_fluxes_240229d05h00m28s460039usUT_vis.qdp
Wrote uvot_fluxes_240229d05h00m28s460039usUT_uv.qdp
Wrote uvot_fluxes_240229d05h00m28s460039usUT_vis.gif
Wrote uvot_fluxes_240229d05h00m28s460039usUT_vis.ps
Wrote uvot_fluxes_240229d05h00m28s460039usUT_uv.gif
Wrote uvot_fluxes_240229d05h00m28s460039usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  b (0)  , v (0)  , white (0)  , u (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      672     217.9     59.6    -59.6   -0.1796   0.1634 99.00 99.00     217.9   -0.1796   0.1634 99.00 99.00 21.27
  1     3.69    1806.4    209.6   -153.8    0.0653   0.2580 23.25  1.74     226.6   -0.1689   0.1567 99.00 99.00 21.31
  2 0.000193   23453.7     37.0    -37.0   -0.1291   0.9160 99.00 99.00     226.6   -0.1689   0.1567 99.00 99.00 21.31
The data range from T+158.3 s (0.00 d) to T+149414.2 s (1.73 d)
Wrote uvot_fluxes_wtd_240229d05h00m28s460039usUT.qdp
Wrote uvot_fluxes_wtd_240229d05h00m28s460039usUT.gif
Wrote uvot_fluxes_wtd_240229d05h00m28s460039usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem