# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 240421d06h45m43s703610usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01221183002 -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
# ========= GRB240411B ===================
Could not find/read custom source region custom_1221183_src.reg
Used archived opt source position of 231.54238 -2.14633 3.00
Reference: GCN_Circ-36064
The position is (15:26:10.17, -02:08:46.8)
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(231.54238,-2.14633,3") # color=red dash=0
Source region spec. is: 231.54238 -2.14633 3"
Region file centered at (231.54238,-2.14633), which is (15:26:10.17, -02:08:46.8)
Could not find/read custom background region custom_1221183_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 -33.2512 from uncorrected trigger time of 734542831.74 in BAT summary file
# ============ Reading file sw01221183001uwh_sk.img ================
Use keyword TRIGTIME of 734542407.546 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 734549990
The processing date in extension 0 is: 2024-04-12T14:23:58
The trigger time is: 734542407.546. 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(231.54238,-2.14633,25")
fk5;-circle(231.54238,-2.14633,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 wh734549990I    7582.9  0.97  196.6  368.9 112  18956  5870  0.042 0.113 23.56 21.1  0.0418 0.1128 23.56 21.1   197  0.377  1.018 21.35 0.058 
    Sum (T+  7583 to   7783):             368.9        361.7 (est. in src region)   SNR_unwtd_sum:   0.37 0.9987 signif. UL:  21.12
  0   197 734550090    7682.8     99.9    -99.9    0.0418   0.1128 23.562 75.438  -1.420
Total wtd_rate (for all exposures so far):  0.377 +/- 1.009 snr:  0.4 mag: 21.35 UL: 18.74
Rebinned Data for sw01221183001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      190    7682.8     99.9    -99.9    0.0418   0.1128 23.56  1.42    7682.8    0.0418   0.1128 23.56  1.42 21.12
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01221183001uvv_sk.img ================
Use keyword TRIGTIME of 734542407.546 for trigger time.
Long-term sensitivity correction to zero point is -0.225 at 734550401
The processing date in extension 0 is:  2024-04-12T14:23:59
The trigger time is: 734542407.546. 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(231.54238,-2.14633,25")
fk5;-circle(231.54238,-2.14633,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 vv734550401I    7993.5  0.99  196.5  147.1 112   7824  5834 -0.017 0.069 99.00 19.4 -0.0174 0.0686 99.00 19.4   197 -1.576  6.229 99.00 0.014 
    Sum (T+  7993 to   8193):             147.1        150.2 (est. in src region)   SNR_unwtd_sum:  -0.25 0.9987 signif. UL:  19.37
  0   197 734550501    8093.3     99.8    -99.8   -0.0174   0.0686 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.323 +/- 0.978 snr:  0.3 mag: 21.52 UL: 16.34
# ============ Reading file sw01221183002uvv_sk.img ================
Use keyword TRIGTIME of 734542407.104 for trigger time.
Long-term sensitivity correction to zero point is -0.225 at 734623227
The processing date in extension 0 is:  2024-04-21T06:30:22
The trigger time is: 734542407.104. 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(231.54238,-2.14633,25")
fk5;-circle(231.54238,-2.14633,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 vv734623226I   80819.7  0.99   92.5   46.5 112   1967  5878  0.107 0.082 20.09 18.8  0.1075 0.0815 20.09 18.8    93 97.484 73.928 15.32 0.003 
    Sum (T+ 80820 to  80914):              46.5         37.5 (est. in src region)   SNR_unwtd_sum:   1.32 0.9987 signif. UL:  18.79
  0    93 734623274   80866.7     47.0    -47.0    0.1075   0.0815 20.087  1.542  -0.613
Total wtd_rate (for all exposures so far):  0.344 +/- 0.978 snr:  0.4 mag: 21.45 UL: 16.33
Rebinned Data for sw01221183002uvv_sk.img using a zero point of 17.665:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    8093.3     99.8    -99.8   -0.0174   0.0686 99.00 99.00    8093.3   -0.0174   0.0686 99.00 99.00 19.37
  1     91.7   80866.7     47.0    -47.0    0.1075   0.0815 20.09  0.61   31447.3    0.0227   0.0534 21.77  1.31 19.47
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01221183001ubb_sk.img ================
Use keyword TRIGTIME of 734542407.546 for trigger time.
Long-term sensitivity correction to zero point is -0.212 at 734549786
The processing date in extension 0 is:  2024-04-12T14:23:58
The trigger time is: 734542407.546. The reference is keyword in image file
Using zero point of 18.898 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(231.54238,-2.14633,25")
fk5;-circle(231.54238,-2.14633,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 bb734549785I    7378.3  0.99  196.6  136.1 112   7045  5839  0.005 0.067 24.57 20.5  0.0054 0.0671 24.57 20.5   197  0.146  1.808 22.38 0.053 
    Sum (T+  7378 to   7578):             136.1        135.1 (est. in src region)   SNR_unwtd_sum:   0.08 0.9987 signif. UL:  20.54
  0   197 734549886    7478.2     99.9    -99.9    0.0054   0.0671 24.565 74.435  -2.818
Total wtd_rate (for all exposures so far):  0.303 +/- 0.871 snr:  0.3 mag: 21.59 UL: 17.69
# ============ Reading file sw01221183002ubb_sk.img ================
Use keyword TRIGTIME of 734542407.104 for trigger time.
Long-term sensitivity correction to zero point is -0.212 at 734627880
The processing date in extension 0 is:  2024-04-21T06:30:22
The trigger time is: 734542407.104. The reference is keyword in image file
Using zero point of 18.898 for filter B
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(231.54238,-2.14633,25")
fk5;-circle(231.54238,-2.14633,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 bb734627880I   85473.3  0.99  295.0  219.3 108  10827  5810  0.069 0.057 21.81 20.4  0.0686 0.0567 21.81 20.4   295 21.159 17.498 16.98 0.005 
   2 bb734628183I   85776.8  0.99  295.1  196.3 108  10401  5815  0.012 0.054 23.70 20.7  0.0403 0.0391 22.39 20.9   590 12.283 12.060 17.57 0.005 
   3 bb734628487I   86080.4  0.99  122.2   83.1 112   4392  5832 -0.011 0.084 99.00 20.3  0.0315 0.0354 22.65 21.0   712  9.676 10.959 17.83 0.005 
    Sum (T+ 85473 to  86205):             498.8        478.8 (est. in src region)   SNR_unwtd_sum:   0.89 0.9987 signif. UL:  21.03
  0   712 734628245   85838.0    366.6   -364.7    0.0315   0.0354 22.654 76.346  -0.819
Total wtd_rate (for all exposures so far):  0.364 +/- 0.868 snr:  0.4 mag: 21.39 UL: 17.68
Rebinned Data for sw01221183002ubb_sk.img using a zero point of 18.898:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    7478.2     99.9    -99.9    0.0054   0.0671 24.57  2.82    7478.2    0.0054   0.0671 24.57  2.82 20.54
  1      704   85838.0    366.6   -364.7    0.0315   0.0354 22.65  0.82   68887.6    0.0258   0.0313 22.87  0.86 21.18
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01221183002uuu_sk.img ================
Use keyword TRIGTIME of 734542407.104 for trigger time.
Long-term sensitivity correction to zero point is -0.229 at 734593737
The processing date in extension 0 is:  2024-04-21T06:30:21
The trigger time is: 734542407.104. The reference is keyword in image file
Using zero point of 18.111 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(231.54238,-2.14633,25")
fk5;-circle(231.54238,-2.14633,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 uu734593737I   51330.0  0.99  295.0   98.9 116   4599  5887  0.031 0.038 21.88 20.2  0.0309 0.0376 21.88 20.2   295 11.854 14.407 17.61 0.008 
   2 uu734594040I   51633.6  0.99  189.9   58.3 108   2901  5825  0.027 0.045 22.05 20.1  0.0292 0.0288 21.95 20.4   485 11.193 11.061 17.67 0.009 
    Sum (T+ 51330 to  51827):             157.2        144.4 (est. in src region)   SNR_unwtd_sum:   1.01 0.9987 signif. UL:  20.43
  0   485 734593985   51577.9    248.7   -247.9    0.0292   0.0288 21.946  4.667  -0.745
Total wtd_rate (for all exposures so far):  0.433 +/- 0.859 snr:  0.5 mag: 21.20 UL: 16.88
Rebinned Data for sw01221183002uuu_sk.img using a zero point of 18.111:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      482   51577.9    248.7   -247.9    0.0292   0.0288 21.95  0.75   51577.9    0.0292   0.0288 21.95  0.75 20.43
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01221183002uw1_sk.img ================
Use keyword TRIGTIME of 734542407.104 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 734573027
The processing date in extension 0 is:  2024-04-21T06:30:21
The trigger time is: 734542407.104. 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 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(231.54238,-2.14633,25")
fk5;-circle(231.54238,-2.14633,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 w1734573026I   30619.5  1.00  309.2   26.9 116   1318  5857  0.003 0.019 23.48 20.2  0.0030 0.0191 23.48 20.2   309  1.630 10.393 19.76 0.022 
   2 w1734584266I   41859.2  1.00  375.4   25.2 112   1445  5843 -0.007 0.015 99.00 20.6 -0.0027 0.0120 99.00 20.8   685 -1.426  7.671 99.00 0.020 
   3 w1734589917I   47510.2  1.00  515.3   50.1 112   2290  5844  0.014 0.016 21.84 20.2  0.0043 0.0096 23.09 20.8  1200  2.211  6.646 19.43 0.017 
    Sum (T+ 30620 to  48034):             102.2         97.7 (est. in src region)   SNR_unwtd_sum:   0.45 0.9987 signif. UL:  20.83
  0  1200 734584009   41602.3   6431.5 -10982.7    0.0043   0.0096 23.094 75.906  -1.277
Total wtd_rate (for all exposures so far):  0.473 +/- 0.869 snr:  0.5 mag: 21.10 UL: 15.91
Rebinned Data for sw01221183002uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.2e+03   41602.5   6431.2 -10983.0    0.0043   0.0096 23.09  1.28   41602.5    0.0043   0.0096 23.09  1.28 20.83
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01221183002um2_sk.img ================
Use keyword TRIGTIME of 734542407.104 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 734572120
The processing date in extension 0 is:  2024-04-21T06:30:20
The trigger time is: 734542407.104. 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(231.54238,-2.14633,25")
fk5;-circle(231.54238,-2.14633,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 m2734572119I   29712.8  1.00  885.6   14.0 112    726  5824  0.000 0.005 27.45 21.1  0.0000 0.0047 27.45 21.1   886  0.041  4.292 23.75 0.070 
    Sum (T+ 29713 to  30613):              14.0         14.0 (est. in src region)   SNR_unwtd_sum:   0.01 0.9987 signif. UL:  21.14
  0   886 734572570   30162.7    449.9   -449.9    0.0000   0.0047 27.451 71.549  -5.054
Total wtd_rate (for all exposures so far):  0.449 +/- 0.839 snr:  0.5 mag: 21.16 UL: 15.38
Rebinned Data for sw01221183002um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885   30162.7    449.9   -449.9    0.0000   0.0047 27.45  5.05   30162.7    0.0000   0.0047 27.45  5.05 21.14
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01221183001uw2_sk.img ================
Use keyword TRIGTIME of 734542407.546 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 734550196
The processing date in extension 0 is:  2024-04-12T14:23:58
The trigger time is: 734542407.546. 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(231.54238,-2.14633,25")
fk5;-circle(231.54238,-2.14633,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 w2734550196I    7788.7  1.00  196.6    4.2 108    292  5824 -0.007 0.012 99.00 20.8 -0.0071 0.0116 99.00 20.8   197 -1.123  1.839 99.00 0.229 
    Sum (T+  7789 to   7989):               4.2          5.4 (est. in src region)   SNR_unwtd_sum:  -0.61 0.9987 signif. UL:  20.76
  0   197 734550296    7888.6     99.9    -99.9   -0.0071   0.0116 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.231 +/- 0.767 snr:  0.3 mag: 21.88 UL: 15.98
# ============ Reading file sw01221183002uw2_sk.img ================
Use keyword TRIGTIME of 734542407.104 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 734616718
The processing date in extension 0 is:  2024-04-21T06:30:21
The trigger time is: 734542407.104. 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 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(231.54238,-2.14633,25")
fk5;-circle(231.54238,-2.14633,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 w2734616717I   74310.8  1.00  290.1   11.4 120    405  5884  0.012 0.013 21.82 20.2  0.0122 0.0130 21.82 20.2   290 18.149 19.420 17.14 0.024 
   2 w2734622320I   79913.2  1.00  885.6   22.8 112   1209  5848 -0.000 0.006 99.00 21.3  0.0027 0.0056 23.45 21.3  1176  4.269  8.790 18.71 0.024 
    Sum (T+ 74311 to  80813):              34.3         31.4 (est. in src region)   SNR_unwtd_sum:   0.49 0.9987 signif. UL:  21.28
  0  1176 734621313   78906.1   1906.8  -4595.3    0.0027   0.0056 23.448 75.552  -1.209
Total wtd_rate (for all exposures so far):  0.266 +/- 0.764 snr:  0.3 mag: 21.73 UL: 15.97
Rebinned Data for sw01221183002uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    7888.6     99.9    -99.9   -0.0071   0.0116 99.00 99.00    7888.6   -0.0071   0.0116 99.00 99.00 20.76
  1 1.18e+03   78906.1   1906.8  -4595.2    0.0027   0.0056 23.45  1.21   68730.0    0.0013   0.0051 24.24  1.71 21.44
The data range from T+7378.3 s (0.09 d) to T+86204.6 s (1.00 d)
Wrote uvot_fluxes_240421d06h45m43s703610usUT.qdp
Wrote uvot_fluxes_240421d06h45m43s703610usUT.gif
Wrote uvot_fluxes_240421d06h45m43s703610usUT.ps
Wrote uvot_fluxes_240421d06h45m43s703610usUT_vis.qdp
Wrote uvot_fluxes_240421d06h45m43s703610usUT_uv.qdp
Wrote uvot_fluxes_240421d06h45m43s703610usUT_vis.gif
Wrote uvot_fluxes_240421d06h45m43s703610usUT_vis.ps
Wrote uvot_fluxes_240421d06h45m43s703610usUT_uv.gif
Wrote uvot_fluxes_240421d06h45m43s703610usUT_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.908    7664.7    528.5   -286.4    0.0458   0.1221 23.64  1.41    7664.7    0.0458   0.1221 23.64  1.41 21.21
  1  0.00343   74849.4  11355.2 -23519.4    0.1379   0.1096 22.44  0.63    7917.5    0.0490   0.1178 23.56  1.33 21.24
The data range from T+7378.3 s (0.09 d) to T+86204.6 s (1.00 d)
Wrote uvot_fluxes_wtd_240421d06h45m43s703610usUT.qdp
Wrote uvot_fluxes_wtd_240421d06h45m43s703610usUT.gif
Wrote uvot_fluxes_wtd_240421d06h45m43s703610usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem