# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 240912d10h33m45s773584usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021711002 -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
# ========= GRB240905B ===================
Could not find/read custom source region custom_021711_src.reg
Used archived BAT position of 268.00000 14.20000
Reference: GCN_Circ-37418
The position is (17:52:00.00, +14:11:60.0)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(268.000,+14.200,3") # color=red dash=0
Source region spec. is: 268.000 +14.200 3"
Region file centered at (268.000,+14.200), which is (17:52:00.00, +14:11:60.0)
Could not find/read custom background region custom_021711_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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 57600.0,
3 sigma should become about 5.6 sigma and 2 sigma should become about 5.1 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999998.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -34.12146 from uncorrected trigger time of 747203236.13 in BAT summary file
# ============ Reading file sw00021711002uwh_sk.img ================
Use keyword TRIGTIME of 747203270.125 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 747806378
The processing date in extension 0 is: 2024-09-12T10:19:15
The trigger time is: 747203270.125. 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 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(268.000,+14.200,25")
fk5;-circle(268.000,+14.200,12.5")
fk5;-circle(268.008416,14.201489,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 wh747806378I  603108.1  0.97  133.6  300.3 120  13631  5864  0.000 0.145 99.00 20.3  0.0000 0.1447 99.00 20.3   134  0.000 102.586 99.00 0.001 
   2 wh747806516I  603246.8  0.97 1334.4 2102.3 108 114177  5792  0.000 0.040 99.00 21.7  0.0000 0.0384 99.00 21.8  1468  0.000 27.172 99.00 0.001 
   3 wh747807878I  604608.0  0.97  140.6  219.2 116  10614  5864  0.000 0.118 99.00 20.6  0.0000 0.0365 99.00 21.8  1609  0.000 25.854 99.00 0.001 
   4 wh747812078I  608808.9  0.97  132.6  235.3 108  12931  5816  0.000 0.135 99.00 20.4  0.0000 0.0353 99.00 21.9  1741  0.000 24.973 99.00 0.001 
   5 wh747812216I  608946.6  0.97 1332.4 2022.1 112 111187  5808  0.000 0.040 99.00 21.7  0.0000 0.0265 99.00 22.2  3074  0.000 18.822 99.00 0.001 
   6 wh747813575I  610305.9  0.98  142.6  219.1 116  10751  5852  0.000 0.117 99.00 20.6  0.0000 0.0258 99.00 22.2  3216  0.000 18.369 99.00 0.001 
   7 wh747817449I  614179.3  0.95   89.3  308.9 116  14467  5824  0.000 0.224 99.00 19.9  0.0000 0.0258 99.00 22.2  3306  0.000 18.252 99.00 0.001 
   8 wh747817542I  614272.9  0.97  891.5 1711.3 108  90433  5804  0.000 0.053 99.00 21.4  0.0000 0.0233 99.00 22.3  4197  0.000 16.486 99.00 0.001 
   9 wh747818453I  615183.1  0.98   66.6   88.6 112   5014  5820  0.000 0.169 99.00 20.2  0.0000 0.0230 99.00 22.3  4264  0.000 16.338 99.00 0.001 
  10 wh747823806I  620536.8  0.97  101.2  167.5 112   8274  5816  0.000 0.143 99.00 20.4  0.0000 0.0228 99.00 22.4  4365  0.000 16.143 99.00 0.001 
  11 wh747823912I  620642.3  0.97 1016.5 1496.1 108  78643  5804  0.000 0.043 99.00 21.7  0.0000 0.0202 99.00 22.5  5381  0.000 14.367 99.00 0.001 
  12 wh747824950I  621680.2  0.98  108.9  167.6 116   8174  5816  0.000 0.134 99.00 20.4  0.0000 0.0200 99.00 22.5  5490  0.000 14.216 99.00 0.001 
    Sum (T+603108 to 621791):            9068.4       9068.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  22.50
  0  5490 747814776  611505.6  10285.2  -8397.5    0.0000   0.0200 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-14.083 snr:  0.0 mag: 99.00 UL: 15.37
Rebinned Data for sw00021711002uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 5.33e+03  611505.2  10285.6  -8397.1    0.0000   0.0200 99.00 99.00  611505.2    0.0000   0.0200 99.00 99.00 23.10
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00021711001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.216 at 747381485
The processing date in extension 0 is:  2024-09-07T09:15:53
The trigger time is: 747203270.125. The reference is keyword in image file
Using zero point of 18.894 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(268.000,+14.200,25")
fk5;-circle(268.000,+14.200,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 bb747381485I  178215.3  0.99  295.0  179.0 108   8944  5848  0.000 0.049 99.00 20.3  0.0000 0.0492 99.00 20.3   295  0.000 31.739 99.00 0.003 
   2 bb747381789I  178519.1  0.99  166.8   85.2 104   4848  5808  0.000 0.063 99.00 20.0  0.0000 0.0388 99.00 20.6   462  0.000 25.027 99.00 0.003 
    Sum (T+178215 to 178689):             252.0        252.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  20.55
  0   462 747381722  178451.4    237.2   -236.1    0.0000   0.0388 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-12.247 snr:  0.0 mag: 99.00 UL: 14.30
Rebinned Data for sw00021711001ubb_sk.img using a zero point of 18.894:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      458  178451.5    237.1   -236.1    0.0000   0.0388 99.00 99.00  178451.5    0.0000   0.0388 99.00 99.00 21.15
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021711001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.234 at 747380573
The processing date in extension 0 is:  2024-09-07T09:15:53
The trigger time is: 747203270.125. The reference is keyword in image file
Using zero point of 18.106 for filter U
Use aperture correction of  1.100 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(268.000,+14.200,25")
fk5;-circle(268.000,+14.200,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 uu747380573I  177303.1  0.98  295.0  472.4 116  21694  5864  0.000 0.080 99.00 19.0  0.0000 0.0800 99.00 19.0   295  0.000 106.097 99.00 0.001 
   2 uu747380876I  177606.7  0.99  295.0  217.3 112  12518  5844  0.000 0.059 99.00 19.3  0.0000 0.0496 99.00 19.5   590  0.000 63.146 99.00 0.001 
   3 uu747381180I  177910.0  0.99  295.0  118.7 112   6211  5868  0.000 0.041 99.00 19.7  0.0000 0.0357 99.00 19.9   885  0.000 41.441 99.00 0.001 
    Sum (T+177303 to 178210):             787.6        787.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  19.85
  0   885 747381027  177756.5    453.3   -453.4    0.0000   0.0357 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-11.656 snr:  0.0 mag: 99.00 UL: 13.57
Rebinned Data for sw00021711001uuu_sk.img using a zero point of 18.106:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      872  177758.4    451.5   -455.2    0.0000   0.0357 99.00 99.00  177758.4    0.0000   0.0357 99.00 99.00 20.45
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00021711001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 747370123
The processing date in extension 0 is:  2024-09-07T09:15:52
The trigger time is: 747203270.125. 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 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(268.000,+14.200,25")
fk5;-circle(268.000,+14.200,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 w1747370123I  166853.1  1.00   17.3    0.4 116     89  5884  0.000 0.087 99.00 18.0  0.0000 0.0868 99.00 18.0    17  0.000 256.676 99.00 0.003 
High bkg:   2 w1747374967I  859.4  10082  5860  2.002  0.020
   2 w1747374967I  171697.5  1.00  859.4  195.6 104  10082  5860  0.000 0.018 99.00 19.7  0.0000 0.0174 99.00 19.7   877  0.000 52.839 99.00 0.002 
   3 w1747387159I  183889.7  1.00  618.0   32.8 116   2102  5844  0.000 0.012 99.00 20.1  0.0000 0.0113 99.00 20.2  1495  0.000 31.242 99.00 0.002 
    Sum (T+166853 to 184518):             222.4        222.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  20.16
  0  1495 747380333  177063.1   7454.4 -10210.0    0.0000   0.0113 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-11.112 snr:  0.0 mag: 99.00 UL: 12.69
Rebinned Data for sw00021711001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.49e+03  177070.9   7446.6 -10217.8    0.0000   0.0113 99.00 99.00  177070.9    0.0000   0.0113 99.00 99.00 20.76
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00021711001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 747369214
The processing date in extension 0 is:  2024-09-07T09:15:52
The trigger time is: 747203270.125. 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 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(268.000,+14.200,25")
fk5;-circle(268.000,+14.200,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
High bkg:   1 m2747369214I  885.6   7601  5824  1.474  0.017
   1 m2747369214I  165944.4  1.00  885.6  147.9 112   7601  5824  0.000 0.015 99.00 19.3  0.0000 0.0153 99.00 19.3   886  0.000 76.696 99.00 0.001 
High bkg:   2 m2747386252I  885.6   7360  5828  1.426  0.017
   2 m2747386252I  182982.0  1.00  885.6  150.1 116   7360  5828  0.000 0.015 99.00 19.3  0.0000 0.0108 99.00 19.6  1771  0.000 56.841 99.00 0.001 
    Sum (T+165944 to 183882):             292.7        292.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  19.64
  0  1771 747378183  174913.0   8968.7  -8968.6    0.0000   0.0108 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-10.738 snr:  0.0 mag: 99.00 UL: 12.14
Rebinned Data for sw00021711001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.77e+03  174913.4   8968.3  -8969.0    0.0000   0.0108 99.00 99.00  174913.4    0.0000   0.0108 99.00 99.00 20.24
The data range from T+165944.4 s (1.92 d) to T+621790.8 s (7.20 d)
Wrote uvot_fluxes_240912d10h33m45s773584usUT.qdp
Wrote uvot_fluxes_240912d10h33m45s773584usUT.gif
Wrote uvot_fluxes_240912d10h33m45s773584usUT.ps
Wrote uvot_fluxes_240912d10h33m45s773584usUT_vis.qdp
Wrote uvot_fluxes_240912d10h33m45s773584usUT_uv.qdp
Wrote uvot_fluxes_240912d10h33m45s773584usUT_vis.gif
Wrote uvot_fluxes_240912d10h33m45s773584usUT_vis.ps
Wrote uvot_fluxes_240912d10h33m45s773584usUT_uv.gif
Wrote uvot_fluxes_240912d10h33m45s773584usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  b (0)  , u (0)  , white (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.000519  178369.6    319.0  -1066.4    0.0000   0.1242 99.00 99.00  178369.6    0.0000   0.1242 99.00 99.00 21.29
  1  0.00421  611526.1  10264.7  -8418.0    0.0000   0.0232 99.00 99.00  563989.9    0.0000   0.0229 99.00 99.00 23.12
The data range from T+165944.4 s (1.92 d) to T+621790.8 s (7.20 d)
Wrote uvot_fluxes_wtd_240912d10h33m45s773584usUT.qdp
Wrote uvot_fluxes_wtd_240912d10h33m45s773584usUT.gif
Wrote uvot_fluxes_wtd_240912d10h33m45s773584usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem