# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 240602d14h12m59s059033usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01232465992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/data/uvot/swift_data/home/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /data/uvot/swift_data/home/uvot_lc
# ========= GRB240601 ===================
Could not find/read custom source region custom_1232465_src.reg
Used archived BAT position of 108.73100 -6.20600
Reference: GCN_Position_Notice_Sat_01_Jun_24_21:33:55_UT
The position is (07:14:55.44, -06:12:21.6)
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(108.731,-6.206,3") # color=red dash=0
Source region spec. is: 108.731 -6.206 3"
Region file centered at (108.731,-6.206), which is (07:14:55.44, -06:12:21.6)
Could not find/read custom background region custom_1232465_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.53194 from uncorrected trigger time of 738970220.2 in BAT summary file
# ============ Reading file sw01232465992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 738970358
The processing date in extension 0 is: 2024-06-02T13:59:45
The trigger time is: 738970253.73194. 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 6:
# 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(108.731,-6.206,25")
fk5;-circle(108.731,-6.206,12.5")
fk5;-circle(108.731004,-6.202272,6")
fk5;-circle(108.725613,-6.205450,6")
fk5;-circle(108.724940,-6.208420,6")
fk5;-circle(108.734354,-6.213597,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 wh738970358I     104.3  0.93  147.4  590.3 112  24797  4815  0.000 0.196 99.00 20.1  0.0000 0.1956 99.00 20.1   147  0.000  0.041 99.00 1.133 
   2 wh738970358E     104.3  0.93  147.4  577.3 109  24769  4810  0.000 0.193 99.00 20.1 
   3 wh738970848E     595.2  0.94   19.5   61.4 108   2828  4812  0.000 0.487 99.00 19.1  0.0000 0.1818 99.00 20.2   167  0.000  0.041 99.00 1.061 
   4 wh738971021E     767.5  0.94   19.4   68.6 113   2851  4808  0.000 0.501 99.00 19.1  0.0000 0.1710 99.00 20.3   186  0.000  0.041 99.00 0.989 
   5 wh738971122I     868.6  0.94  147.4  463.0 108  21549  4812  0.000 0.177 99.00 20.2  0.0000 0.1235 99.00 20.6   334  0.000  0.040 99.00 0.692 
   6 wh738975950I    5697.1  0.93  196.6  776.1 112  34146  4804  0.000 0.173 99.00 20.3  0.0000 0.1006 99.00 20.8   530  0.000  0.040 99.00 0.428 
    Sum (T+   104 to   5897):            1987.0       1987.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.84
  0   530 738972766    2512.1   3384.8  -2407.8    0.0000   0.1006 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.039 snr:  0.0 mag: 99.00 UL: 21.86
Rebinned Data for sw01232465992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      138     179.2     74.9    -74.9    0.0000   0.1956 99.00 99.00     179.2    0.0000   0.1956 99.00 99.00 20.62
  1      176     890.8    127.6   -295.6    0.0000   0.1581 99.00 99.00     578.2    0.0000   0.1235 99.00 99.00 21.12
  2      183    5797.0     99.9    -99.9    0.0000   0.1727 99.00 99.00    2503.6    0.0000   0.1006 99.00 99.00 21.34
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01232465992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.225 at 738970337
The processing date in extension 0 is:  2024-06-02T13:59:18
The trigger time is: 738970253.73194. The reference is BAT GRB summary 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 4:
# 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(108.731,-6.206,25")
fk5;-circle(108.731,-6.206,12.5")
fk5;-circle(108.734371,-6.213688,6")
fk5;-circle(108.725651,-6.205481,6")
fk5;-circle(108.731082,-6.202344,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 vv738970336E      83.2  0.98   11.1   11.1 108    494  5104  0.000 0.324 99.00 17.1 
   2 vv738970898E     644.7  0.98   19.4   11.4 109    804  5107  0.000 0.238 99.00 17.5  0.0000 0.2379 99.00 17.5    19  0.000  1.747 99.00 0.152 
   3 vv738971070E     817.2  0.99   19.5   13.1 108    755  5099  0.000 0.229 99.00 17.5  0.0000 0.1652 99.00 17.9    39  0.000  1.350 99.00 0.141 
   4 vv738971302E    1048.5  0.99   19.5   23.4 115    767  5112  0.000 0.238 99.00 17.5  0.0000 0.1358 99.00 18.1    58  0.000  1.219 99.00 0.125 
    Sum (T+   645 to   1068):              50.4         50.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.07
  0    58 738971101     846.8    221.5   -202.1    0.0000   0.1358 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.039 snr:  0.0 mag: 99.00 UL: 19.43
Rebinned Data for sw01232465992uvv_sk.img using a zero point of 17.665:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     57.5     846.8    221.4   -202.1    0.0000   0.1358 99.00 99.00     846.8    0.0000   0.1358 99.00 99.00 18.57
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01232465992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.213 at 738970824
The processing date in extension 0 is:  2024-06-02T13:59:49
The trigger time is: 738970253.73194. The reference is BAT GRB summary 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 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(108.731,-6.206,25")
fk5;-circle(108.731,-6.206,12.5")
fk5;-circle(108.731003,-6.202270,6")
fk5;-circle(108.725592,-6.205437,6")
fk5;-circle(108.734349,-6.213614,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 bb738970824E     570.7  0.97   19.5   30.6 113   1315  5082  0.000 0.319 99.00 18.4  0.0000 0.3193 99.00 18.4    19  0.000  0.669 99.00 0.310 
   2 bb738970996E     743.0  0.98   19.5   22.9 112   1256  5092  0.000 0.310 99.00 18.4  0.0000 0.2225 99.00 18.8    39  0.000  0.524 99.00 0.282 
   3 bb738975746I    5492.3  0.96  196.6  394.7 112  19686  5084  0.000 0.123 99.00 19.4  0.0000 0.1092 99.00 19.5   236  0.000  0.512 99.00 0.052 
    Sum (T+   571 to   5692):             490.5        490.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.54
  0   236 738975032    4778.4    913.7  -4207.7    0.0000   0.1092 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.039 snr:  0.0 mag: 99.00 UL: 20.64
Rebinned Data for sw01232465992ubb_sk.img using a zero point of 18.897:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0       38     666.8     96.0    -96.0    0.0000   0.2225 99.00 99.00     666.8    0.0000   0.2225 99.00 99.00 19.26
  1      189    5592.2     99.9    -99.9    0.0000   0.1233 99.00 99.00    4769.0    0.0000   0.1092 99.00 99.00 20.03
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01232465992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.231 at 738970570
The processing date in extension 0 is:  2024-06-02T13:59:48
The trigger time is: 738970253.73194. The reference is BAT GRB summary 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(108.731,-6.206,25")
fk5;-circle(108.731,-6.206,12.5")
fk5;-circle(108.734361,-6.213621,6")
fk5;-circle(108.725639,-6.205431,6")
fk5;-circle(108.730966,-6.202198,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 uu738970569I     316.0  0.99  245.8  158.7 111   7040  5093  0.000 0.057 99.00 19.5  0.0000 0.0566 99.00 19.5   246  0.000  0.186 99.00 0.482 
   2 uu738970569E     316.0  0.99  245.8  152.9 110   7025  5080  0.000 0.056 99.00 19.5 
   3 uu738970971E     718.1  0.99   19.5    9.3 113    572  5077  0.000 0.206 99.00 18.1  0.0000 0.0546 99.00 19.5   265  0.000  0.184 99.00 0.467 
   4 uu738971375E    1122.2  0.99    4.8    3.3 115    126  5078  0.000 0.396 99.00 17.3  0.0000 0.0541 99.00 19.5   270  0.000  0.183 99.00 0.462 
   5 uu738975540I    5287.2  0.98  196.6  269.2 116  12102  5096  0.000 0.096 99.00 18.9  0.0000 0.0511 99.00 19.6   467  0.000  0.183 99.00 0.186 
    Sum (T+   316 to   5487):             444.5        444.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.57
  0   467 738972797    2543.8   2943.2  -2227.7    0.0000   0.0511 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.038 snr:  0.0 mag: 99.00 UL: 19.89
Rebinned Data for sw01232465992uuu_sk.img using a zero point of 18.109:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      243     440.9    124.9   -124.9    0.0000   0.0566 99.00 99.00     440.9    0.0000   0.0566 99.00 99.00 19.96
  1       24     806.3    320.7    -88.2    0.0000   0.1830 99.00 99.00     473.7    0.0000   0.0541 99.00 99.00 20.01
  2      192    5387.1     99.9    -99.9    0.0000   0.0961 99.00 99.00    2528.0    0.0000   0.0511 99.00 99.00 20.07
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01232465992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 738970948
The processing date in extension 0 is:  2024-06-02T13:59:41
The trigger time is: 738970253.73194. 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(108.731,-6.206,25")
fk5;-circle(108.731,-6.206,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 w1738970947E     693.9  1.00   19.5    0.0 111    116  5839  0.000 0.087 99.00 18.1  0.0000 0.0868 99.00 18.1    19  0.000  1.082 99.00 0.705 
   2 w1738971351E    1097.8  1.00   19.5    2.0 111    130  5844  0.000 0.092 99.00 18.0  0.0000 0.0632 99.00 18.4    39  0.000  0.928 99.00 0.544 
    Sum (T+   694 to   1118):               4.7          4.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.40
  0    39 738971159     905.7    211.9   -211.8    0.0000   0.0632 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.039 snr:  0.0 mag: 99.00 UL: 18.93
Rebinned Data for sw01232465992uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.8     905.6    211.9   -211.7    0.0000   0.0632 99.00 99.00     905.6    0.0000   0.0632 99.00 99.00 18.90
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01232465992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 738970923
The processing date in extension 0 is:  2024-06-02T13:59:41
The trigger time is: 738970253.73194. The reference is BAT GRB summary 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(108.731,-6.206,25")
fk5;-circle(108.731,-6.206,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 m2738970922E     668.9  1.00   19.5    0.0 108     40  5834  0.000 0.050 99.00 18.1  0.0000 0.0496 99.00 18.1    19  0.000  1.015 99.00 1.273 
   2 m2738971095E     841.8  1.00   19.5    0.0 113     45  5844  0.000 0.054 99.00 18.0  0.0000 0.0366 99.00 18.4    39  0.000  0.818 99.00 1.052 
   3 m2738971326E    1072.8  1.00   19.4    0.7 110     48  5843  0.000 0.055 99.00 18.0  0.0000 0.0304 99.00 18.6    58  0.000  0.744 99.00 0.910 
    Sum (T+   669 to   1093):               2.5          2.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.62
  0    58 738971125     871.0    221.6   -202.1    0.0000   0.0304 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.038 snr:  0.0 mag: 99.00 UL: 18.37
Rebinned Data for sw01232465992um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     58.3     871.0    221.6   -202.1    0.0000   0.0304 99.00 99.00     871.0    0.0000   0.0304 99.00 99.00 19.11
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01232465992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.345 at 738970874
The processing date in extension 0 is:  2024-06-02T13:59:50
The trigger time is: 738970253.73194. 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 4:
# 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(108.731,-6.206,25")
fk5;-circle(108.731,-6.206,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 w2738970874E   19.5     98  5839  0.861  0.087
   1 w2738970874E     620.3  1.00   19.5    0.0 111     98  5839  0.000 0.078 99.00 18.0  0.0000 0.0785 99.00 18.0    19  0.000  0.991 99.00 0.827 
   2 w2738971046E     792.8  1.00   19.4    2.0 112     63  5837  0.000 0.063 99.00 18.3  0.0000 0.0504 99.00 18.5    39  0.000  0.709 99.00 0.897 
   3 w2738971278E    1024.3  1.00   19.5    1.0 114     75  5842  0.000 0.070 99.00 18.2  0.0000 0.0408 99.00 18.7    58  0.000  0.636 99.00 0.814 
High bkg:   4 w2738976157I   84.4    436  5796  0.890  0.043
   4 w2738976157I    5903.9  1.00   84.4    4.6 104    436  5796  0.000 0.037 99.00 18.8  0.0000 0.0275 99.00 19.2   143  0.000  0.630 99.00 0.356 
    Sum (T+   620 to   5990):              12.3         12.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.17
  0   143 738974106    3852.2   2137.4  -3231.9    0.0000   0.0275 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.038 snr:  0.0 mag: 99.00 UL: 18.81
Rebinned Data for sw01232465992uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     58.3     822.3    221.7   -202.0    0.0000   0.0408 99.00 99.00     822.3    0.0000   0.0408 99.00 99.00 19.24
  1     84.3    5946.7     42.9    -42.9    0.0000   0.0371 99.00 99.00    3851.8    0.0000   0.0275 99.00 99.00 19.67
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw01232465992ugu_sk.img ================
The data range from T+104.3 s (0.00 d) to T+5989.6 s (0.07 d)
Wrote uvot_fluxes_240602d14h12m59s059033usUT.qdp
Wrote uvot_fluxes_240602d14h12m59s059033usUT.gif
Wrote uvot_fluxes_240602d14h12m59s059033usUT.ps
Wrote uvot_fluxes_240602d14h12m59s059033usUT_vis.qdp
Wrote uvot_fluxes_240602d14h12m59s059033usUT_uv.qdp
Wrote uvot_fluxes_240602d14h12m59s059033usUT_vis.gif
Wrote uvot_fluxes_240602d14h12m59s059033usUT_vis.ps
Wrote uvot_fluxes_240602d14h12m59s059033usUT_uv.gif
Wrote uvot_fluxes_240602d14h12m59s059033usUT_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      502     179.2     74.9    -74.9    0.0000   0.2298 99.00 99.00     179.2    0.0000   0.2298 99.00 99.00 20.62
  1     16.2     612.8    224.1   -296.8    0.0000   0.3234 99.00 99.00     192.8    0.0000   0.2095 99.00 99.00 20.72
  2       22     943.7    183.4    -75.0    0.0000   0.2081 99.00 99.00     223.4    0.0000   0.1770 99.00 99.00 20.90
  3    0.669    5777.8    119.1   -490.6    0.0000   0.1897 99.00 99.00     230.3    0.0000   0.1716 99.00 99.00 20.93
The data range from T+104.3 s (0.00 d) to T+5989.6 s (0.07 d)
Wrote uvot_fluxes_wtd_240602d14h12m59s059033usUT.qdp
Wrote uvot_fluxes_wtd_240602d14h12m59s059033usUT.gif
Wrote uvot_fluxes_wtd_240602d14h12m59s059033usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem