# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 240613d06h02m37s535631usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01232755001 -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
# ========= GRB240603B ===================
Could not find/read custom source region custom_1232755_src.reg
Used archived BAT position of 36.05400 -50.94400
Reference: GCN_Position_Notice_Mon_03_Jun_24_06:57:59_UT
The position is (02:24:12.96, -50:56:38.4)
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(36.054,-50.944,3") # color=red dash=0
Source region spec. is: 36.054 -50.944 3"
Region file centered at (36.054,-50.944), which is (02:24:12.96, -50:56:38.4)
Could not find/read custom background region custom_1232755_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 -33.55428 from uncorrected trigger time of 739090663.65 in BAT summary file
# ============ Reading file sw01232755001uwh_sk.img ================
Use keyword TRIGTIME of 739090697.216 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 739095455
The processing date in extension 0 is: 2024-06-13T05:46:24
The trigger time is: 739090697.216. 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(36.054,-50.944,25")
fk5;-circle(36.054,-50.944,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 wh739095454I    4757.6  0.90  196.6 1111.9 116  56342  5864  0.000 0.210 99.00 20.0  0.0000 0.2100 99.00 20.0   197  0.000  1.199 99.00 0.028 
    Sum (T+  4758 to   4957):            1114.5       1114.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.04
  0   197 739095555    4857.5     99.9    -99.9    0.0000   0.2100 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.187 snr:  0.0 mag: 99.00 UL: 18.16
Rebinned Data for sw01232755001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      178    4857.5     99.9    -99.9    0.0000   0.2100 99.00 99.00    4857.5    0.0000   0.2100 99.00 99.00 20.54
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01232755001uvv_sk.img ================
Use keyword TRIGTIME of 739090697.216 for trigger time.
Long-term sensitivity correction to zero point is -0.225 at 739094430
The processing date in extension 0 is:  2024-06-13T05:46:23
The trigger time is: 739090697.216. The reference is keyword in image file
Using zero point of 17.665 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(36.054,-50.944,25")
fk5;-circle(36.054,-50.944,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 vv739094429I    3732.3  0.98  196.6  202.1 116  10652  5860  0.000 0.083 99.00 18.6  0.0000 0.0826 99.00 18.6   197  0.000  3.552 99.00 0.021 
    Sum (T+  3732 to   3932):             210.9        210.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.61
  0   197 739094529    3832.2     99.9    -99.9    0.0000   0.0826 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.106 snr:  0.0 mag: 99.00 UL: 15.79
Rebinned Data for sw01232755001uvv_sk.img using a zero point of 17.665:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      193    3832.2     99.9    -99.9    0.0000   0.0826 99.00 99.00    3832.2    0.0000   0.0826 99.00 99.00 19.10
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01232755001ubb_sk.img ================
Use keyword TRIGTIME of 739090697.216 for trigger time.
Long-term sensitivity correction to zero point is -0.213 at 739095250
The processing date in extension 0 is:  2024-06-13T05:46:24
The trigger time is: 739090697.216. The reference is keyword in image file
Using zero point of 18.897 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(36.054,-50.944,25")
fk5;-circle(36.054,-50.944,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 bb739095249I    4552.5  0.97  196.6  381.7 116  18608  5828  0.000 0.113 99.00 19.5  0.0000 0.1130 99.00 19.5   197  0.000  1.897 99.00 0.031 
    Sum (T+  4553 to   4752):             370.4        370.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.50
  0   197 739095350    4652.4     99.9    -99.9    0.0000   0.1130 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.966 snr:  0.0 mag: 99.00 UL: 17.17
Rebinned Data for sw01232755001ubb_sk.img using a zero point of 18.897:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      191    4652.4     99.9    -99.9    0.0000   0.1130 99.00 99.00    4652.4    0.0000   0.1130 99.00 99.00 20.00
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01232755001uuu_sk.img ================
Use keyword TRIGTIME of 739090697.216 for trigger time.
Long-term sensitivity correction to zero point is -0.231 at 739095044
The processing date in extension 0 is:  2024-06-13T05:46:23
The trigger time is: 739090697.216. The reference is keyword in image file
Using zero point of 18.109 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(36.054,-50.944,25")
fk5;-circle(36.054,-50.944,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 uu739095044I    4347.1  0.98  196.6  186.6 116   9989  5860  0.000 0.081 99.00 19.1  0.0000 0.0808 99.00 19.1   197  0.000  2.678 99.00 0.029 
    Sum (T+  4347 to   4547):             197.7        197.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.07
  0   197 739095144    4447.0     99.9    -99.9    0.0000   0.0808 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.902 snr:  0.0 mag: 99.00 UL: 16.45
Rebinned Data for sw01232755001uuu_sk.img using a zero point of 18.109:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      193    4447.0     99.9    -99.9    0.0000   0.0808 99.00 99.00    4447.0    0.0000   0.0808 99.00 99.00 19.57
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01232755001uw1_sk.img ================
Use keyword TRIGTIME of 739090697.216 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 739094840
The processing date in extension 0 is:  2024-06-13T05:46:23
The trigger time is: 739090697.216. 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(36.054,-50.944,25")
fk5;-circle(36.054,-50.944,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 w1739094839I    4142.3  1.00  196.6   23.7 112   1202  5828  0.000 0.028 99.00 19.3  0.0000 0.0278 99.00 19.3   197  0.000  2.088 99.00 0.113 
    Sum (T+  4142 to   4342):              23.1         23.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.29
  0   197 739094939    4242.2     99.9    -99.9    0.0000   0.0278 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.842 snr:  0.0 mag: 99.00 UL: 15.59
Rebinned Data for sw01232755001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    4242.2     99.9    -99.9    0.0000   0.0278 99.00 99.00    4242.2    0.0000   0.0278 99.00 99.00 19.79
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01232755001um2_sk.img ================
Use keyword TRIGTIME of 739090697.216 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 739094634
The processing date in extension 0 is:  2024-06-13T05:46:23
The trigger time is: 739090697.216. 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(36.054,-50.944,25")
fk5;-circle(36.054,-50.944,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 m2739094634I    3937.1  1.00  196.6    4.1 108    328  5828  0.000 0.014 99.00 19.5  0.0000 0.0140 99.00 19.5   197  0.000  1.705 99.00 0.265 
    Sum (T+  3937 to   4137):               6.1          6.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.46
  0   197 739094734    4037.0     99.9    -99.9    0.0000   0.0140 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.744 snr:  0.0 mag: 99.00 UL: 15.15
Rebinned Data for sw01232755001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    4037.0     99.9    -99.9    0.0000   0.0140 99.00 99.00    4037.0    0.0000   0.0140 99.00 99.00 19.96
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01232755001uw2_sk.img ================
Use keyword TRIGTIME of 739090697.216 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 739094225
The processing date in extension 0 is:  2024-06-13T05:46:23
The trigger time is: 739090697.216. 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
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(36.054,-50.944,25")
fk5;-circle(36.054,-50.944,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 w2739094224I    3527.5  1.00  196.6   11.8 116    650  5832  0.000 0.020 99.00 19.5  0.0000 0.0205 99.00 19.5   197  0.000  1.489 99.00 0.209 
High bkg:   2 w2739095660I  135.6    709  5864  0.892  0.033
   2 w2739095660I    4963.3  1.00  135.6    8.3 116    709  5864  0.000 0.031 99.00 19.0  0.0000 0.0175 99.00 19.7   332  0.000  1.344 99.00 0.150 
    Sum (T+  3528 to   5101):              27.0         27.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.66
  0   332 739094898    4200.8    900.3   -673.3    0.0000   0.0175 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.650 snr:  0.0 mag: 99.00 UL: 15.74
Rebinned Data for sw01232755001uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      332    4200.6    900.6   -673.0    0.0000   0.0175 99.00 99.00    4200.6    0.0000   0.0175 99.00 99.00 20.16
The data range from T+3527.5 s (0.04 d) to T+5101.1 s (0.06 d)
Wrote uvot_fluxes_240613d06h02m37s535631usUT.qdp
Wrote uvot_fluxes_240613d06h02m37s535631usUT.gif
Wrote uvot_fluxes_240613d06h02m37s535631usUT.ps
Wrote uvot_fluxes_240613d06h02m37s535631usUT_vis.qdp
Wrote uvot_fluxes_240613d06h02m37s535631usUT_uv.qdp
Wrote uvot_fluxes_240613d06h02m37s535631usUT_vis.gif
Wrote uvot_fluxes_240613d06h02m37s535631usUT_vis.ps
Wrote uvot_fluxes_240613d06h02m37s535631usUT_uv.gif
Wrote uvot_fluxes_240613d06h02m37s535631usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  white (0)  , v (0)  , b (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.695    4813.3    144.1  -1081.0    0.0000   0.2173 99.00 99.00    4813.3    0.0000   0.2173 99.00 99.00 20.68
The data range from T+3527.5 s (0.04 d) to T+5101.1 s (0.06 d)
Wrote uvot_fluxes_wtd_240613d06h02m37s535631usUT.qdp
Wrote uvot_fluxes_wtd_240613d06h02m37s535631usUT.gif
Wrote uvot_fluxes_wtd_240613d06h02m37s535631usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem