# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 250718d15h06m31s018253usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01334535001 -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
# ========= GRB250718 ===================
Could not find/read custom source region custom_1334535_src.reg
Used archived BAT position of 241.99800 -11.99300
Reference: GCN_Position_Notice_Fri_18_Jul_25_00:14:17_UT
The position is (16:07:59.52, -11:59:34.8)
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(241.998,-11.993,3") # color=red dash=0
Source region spec. is: 241.998 -11.993 3"
Region file centered at (241.998,-11.993), which is (16:07:59.52, -11:59:34.8)
Could not find/read custom background region custom_1334535_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 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -35.98338 from uncorrected trigger time of 774490442.73 in BAT summary file
# ============ Reading file sw01334535001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 774517148
The processing date in extension 0 is: 2025-07-18T14:56:05
The trigger time is: 774490478.71338. The reference is BAT GRB summary 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(241.998,-11.993,25")
fk5;-circle(241.998,-11.993,12.5")
fk5;-circle(241.991596,-11.997445,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 wh774517147I   26668.8  0.97  295.0  577.4 108  31339  5700  0.000 0.096 99.00 20.9  0.0000 0.0957 99.00 20.9   295  0.000  3.015 99.00 0.015 
   2 wh774517450I   26972.3  0.97  295.0  575.6 108  30978  5728  0.000 0.095 99.00 20.9  0.0000 0.0674 99.00 21.3   590  0.000  2.135 99.00 0.015 
   3 wh774517754I   27275.7  0.97  191.3  363.9 108  19978  5728  0.000 0.117 99.00 20.7  0.0000 0.0584 99.00 21.4   781  0.000  1.859 99.00 0.015 
    Sum (T+ 26669 to  27470):            1554.5       1554.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.43
  0   781 774517548   27068.9    401.1   -400.1    0.0000   0.0584 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.841 snr:  0.0 mag: 99.00 UL: 17.68
Rebinned Data for sw01334535001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      754   27069.0    401.1   -400.1    0.0000   0.0584 99.00 99.00   27069.0    0.0000   0.0584 99.00 99.00 21.93
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01334535001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.229 at 774511546
The processing date in extension 0 is:  2025-07-18T14:56:05
The trigger time is: 774490478.71338. The reference is BAT GRB summary file
Using zero point of 17.661 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(241.998,-11.993,25")
fk5;-circle(241.998,-11.993,12.5")
fk5;-circle(241.991517,-11.997425,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 vv774511545I   21066.9  0.99  295.0  129.7 108   7047  5736  0.000 0.043 99.00 19.3  0.0000 0.0432 99.00 19.3   295  0.000 10.323 99.00 0.009 
   2 vv774511849I   21370.3  0.99  188.7   83.7 116   4309  5776  0.000 0.055 99.00 19.1  0.0000 0.0339 99.00 19.6   484  0.000  8.130 99.00 0.009 
    Sum (T+ 21067 to  21562):             219.2        219.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.57
  0   484 774511793   21314.0    248.0   -247.2    0.0000   0.0339 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.764 snr:  0.0 mag: 99.00 UL: 15.28
Rebinned Data for sw01334535001uvv_sk.img using a zero point of 17.661:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      480   21314.0    248.0   -247.2    0.0000   0.0339 99.00 99.00   21314.0    0.0000   0.0339 99.00 99.00 20.07
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01334535001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.226 at 774516236
The processing date in extension 0 is:  2025-07-18T14:56:05
The trigger time is: 774490478.71338. The reference is BAT GRB summary file
Using zero point of 18.884 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(241.998,-11.993,25")
fk5;-circle(241.998,-11.993,12.5")
fk5;-circle(241.991544,-11.997487,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 bb774516235I   25756.8  0.96  295.1  685.1 116  33843  5740  0.000 0.103 99.00 19.6  0.0000 0.1031 99.00 19.6   295  0.000  9.755 99.00 0.004 
   2 bb774516539I   26060.3  0.98  295.0  327.1 108  17184  5728  0.000 0.070 99.00 20.0  0.0000 0.0620 99.00 20.1   590  0.000  5.499 99.00 0.006 
   3 bb774516842I   26363.8  0.99  295.0  255.8 112  12746  5780  0.000 0.060 99.00 20.2  0.0000 0.0459 99.00 20.5   885  0.000  4.007 99.00 0.007 
    Sum (T+ 25757 to  26664):            1254.9       1254.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.46
  0   885 774516689   26210.2    453.4   -453.4    0.0000   0.0459 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.637 snr:  0.0 mag: 99.00 UL: 16.58
Rebinned Data for sw01334535001ubb_sk.img using a zero point of 18.884:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      864   26212.7    450.9   -455.9    0.0000   0.0459 99.00 99.00   26212.7    0.0000   0.0459 99.00 99.00 20.96
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01334535001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.245 at 774499415
The processing date in extension 0 is:  2025-07-18T14:56:04
The trigger time is: 774490478.71338. The reference is BAT GRB summary file
Using zero point of 18.095 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(241.998,-11.993,25")
fk5;-circle(241.998,-11.993,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 uu774499414I    8935.8  0.98  295.0  327.4 116  15230  5868  0.000 0.066 99.00 19.3  0.0000 0.0664 99.00 19.3   295  0.000  4.558 99.00 0.014 
   2 uu774499718I    9239.3  0.99  295.0  136.1 112   8012  5824  0.000 0.047 99.00 19.6  0.0000 0.0407 99.00 19.8   590  0.000  2.695 99.00 0.018 
   3 uu774500021I    9542.9  0.99  255.1   84.4 108   5121  5820  0.000 0.043 99.00 19.8  0.0000 0.0312 99.00 20.1   845  0.000  2.039 99.00 0.021 
    Sum (T+  8936 to   9802):             550.2        550.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.09
  0   845 774499847    9368.7    433.3   -432.9    0.0000   0.0312 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.266 snr:  0.0 mag: 99.00 UL: 16.07
Rebinned Data for sw01334535001uuu_sk.img using a zero point of 18.095:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      836    9369.7    432.3   -433.9    0.0000   0.0312 99.00 99.00    9369.7    0.0000   0.0312 99.00 99.00 20.59
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01334535001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 774523662
The processing date in extension 0 is:  2025-07-18T14:56:06
The trigger time is: 774490478.71338. The reference is BAT GRB summary 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(241.998,-11.993,25")
fk5;-circle(241.998,-11.993,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 w1774523662I   33183.7  1.00  473.8   45.7 112   1945  5824  0.000 0.015 99.00 20.0  0.0000 0.0147 99.00 20.0   474  0.000  8.680 99.00 0.021 
    Sum (T+ 33184 to  33665):              37.4         37.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.99
  0   474 774523903   33424.4    240.7   -240.7    0.0000   0.0147 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.279 snr:  0.0 mag: 99.00 UL: 15.13
Rebinned Data for sw01334535001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      473   33424.4    240.7   -240.7    0.0000   0.0147 99.00 99.00   33424.4    0.0000   0.0147 99.00 99.00 20.49
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01334535001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.345 at 774505017
The processing date in extension 0 is:  2025-07-18T14:56:04
The trigger time is: 774490478.71338. The reference is BAT GRB summary file
Using zero point of 17.035 for filter UVW2
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(241.998,-11.993,25")
fk5;-circle(241.998,-11.993,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 w2774505017I  416.8   3472  5816  1.432  0.024
   1 w2774505017I   14538.5  1.00  416.8   52.5 108   3472  5816  0.000 0.022 99.00 19.4  0.0000 0.0216 99.00 19.4   417  0.000  6.383 99.00 0.022 
High bkg:   2 w2774510639I  885.6   5088  5824  0.987  0.014
   2 w2774510639I   20160.5  1.00  885.6  103.6 108   5088  5824  0.000 0.012 99.00 20.0  0.0000 0.0108 99.00 20.2  1302  0.000  3.972 99.00 0.022 
    Sum (T+ 14539 to  21060):             158.8        158.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.18
  0  1302 774509214   18735.0   2325.3  -4196.5    0.0000   0.0108 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.201 snr:  0.0 mag: 99.00 UL: 15.07
Rebinned Data for sw01334535001uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.3e+03   18736.2   2324.2  -4197.6    0.0000   0.0108 99.00 99.00   18736.2    0.0000   0.0108 99.00 99.00 20.68
The data range from T+8935.8 s (0.10 d) to T+33665.1 s (0.39 d)
Wrote uvot_fluxes_250718d15h06m31s018253usUT.qdp
Wrote uvot_fluxes_250718d15h06m31s018253usUT.gif
Wrote uvot_fluxes_250718d15h06m31s018253usUT.ps
Wrote uvot_fluxes_250718d15h06m31s018253usUT_vis.qdp
Wrote uvot_fluxes_250718d15h06m31s018253usUT_uv.qdp
Wrote uvot_fluxes_250718d15h06m31s018253usUT_vis.gif
Wrote uvot_fluxes_250718d15h06m31s018253usUT_vis.ps
Wrote uvot_fluxes_250718d15h06m31s018253usUT_uv.gif
Wrote uvot_fluxes_250718d15h06m31s018253usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  v (0)  , b (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   0.0502   15486.0  11177.6  -6550.2    0.0000   0.1220 99.00 99.00   15486.0    0.0000   0.1220 99.00 99.00 21.31
  1    0.246   27067.4    402.6   -398.6    0.0000   0.0687 99.00 99.00   25105.1    0.0000   0.0628 99.00 99.00 22.03
The data range from T+8935.8 s (0.10 d) to T+33665.1 s (0.39 d)
Wrote uvot_fluxes_wtd_250718d15h06m31s018253usUT.qdp
Wrote uvot_fluxes_wtd_250718d15h06m31s018253usUT.gif
Wrote uvot_fluxes_wtd_250718d15h06m31s018253usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem