# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 240202d07h22m57s192595usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01210276001 -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
# ========= GRB240123A ===================
Could not find/read custom source region custom_1210276_src.reg
Used archived uvot source position of 199.34946 60.61814 3.00
Reference: GCN_Circ_35602
The position is (13:17:23.87, +60:37:05.3)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(199.34946,60.61814,3") # color=red dash=0
Source region spec. is: 199.34946 60.61814 3"
Region file centered at (199.34946,60.61814), which is (13:17:23.87, +60:37:05.3)
Could not find/read custom background region custom_1210276_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 -32.78242 from uncorrected trigger time of 727700746.86 in BAT summary file
# ============ Reading file sw01210276992uwh_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 727700931
The processing date in extension 0 is: 2024-01-24T01:49:38
The trigger time is: 727700779.648. 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(199.34946,60.61814,25")
fk5;-circle(199.34946,60.61814,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 wh727700931I     151.6  0.95  147.2  526.3 112  18011  5921  1.475 0.183 19.69 19.3  1.4751 0.1835 19.69 19.3   147  0.392  0.049 21.31 1.538 
   2 wh727700931E     153.3  0.94  145.5  528.7 113  17840  5940  1.526 0.186 19.66 19.3 
#  3 wh727701369E     590.0  0.91   19.4   97.8 112   4714  5926 
#  4 wh727701542E     763.0  0.90   19.4  108.7 112   5447  5895 
   5 wh727701643I     864.1  0.87   60.5  524.4 114  19133  6012  3.400 0.485 18.79 18.4  2.0030 0.1882 19.36 19.1   208  0.419  0.049 21.23 0.816 
above line uses coinc_corr_src:  0.871 corr_bkg:  0.896
    Sum (T+   152 to    925):            1050.7        703.5 (est. in src region)   SNR_unwtd_sum:  10.64 0.9987 signif. UL:  19.09
  0   208 727701201     420.9    504.5   -269.4    2.0030   0.1882 19.361  0.107  -0.098
Total wtd_rate (for all exposures so far):  0.419 +/- 0.048 snr:  8.7 mag: 21.23 UL: 20.73
# ============ Reading file sw01210276001uwh_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 727711632
The processing date in extension 0 is:  2024-02-02T06:07:32
The trigger time is: 727700779.648. 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(199.34946,60.61814,25")
fk5;-circle(199.34946,60.61814,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
Low  bkg:   1 wh727711632I  295.0  17010  5848  9.858  0.076
   1 wh727711632I   10852.6  0.97  295.0  485.1 112  17010  5890  0.623 0.085 20.63 20.3  0.6231 0.0854 20.63 20.3   295  8.056  1.105 18.02 0.069 
   2 wh727711935I   11156.1  0.97  295.0  568.7 112  19994  5891  0.730 0.093 20.46 20.1  0.6764 0.0631 20.54 20.3   590  8.785  0.823 17.93 0.062 
   3 wh727712241I   11461.4  0.96  179.8  501.8 112  20128  5876  0.761 0.145 20.41 19.9  0.6960 0.0590 20.51 20.3   770  8.990  0.761 17.91 0.052 
    Sum (T+ 10853 to  11644):            1555.5       1087.2 (est. in src region)   SNR_unwtd_sum:  11.80 0.9987 signif. UL:  20.26
  0   770 727712027   11247.3    396.8   -394.7    0.6960   0.0590 20.508  0.096  -0.088
Total wtd_rate (for all exposures so far):  0.453 +/- 0.048 snr:  9.4 mag: 21.15 UL: 20.67
Rebinned Data for sw01210276001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      139     226.4     74.8    -74.8    1.4751   0.1835 19.69  0.13     226.4    1.4751   0.1835 19.69  0.13 19.35
  1     52.7     894.8     30.7    -30.7    3.3999   0.4849 18.79  0.15     409.7    2.0030   0.1882 19.36  0.10 19.09
  2      745   11245.8    398.2   -393.2    0.6960   0.0590 20.51  0.09    9025.9    0.9638   0.0607 20.16  0.07 19.97
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01210276992uvv_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.224 at 727700911
The processing date in extension 0 is:  2024-01-24T01:49:22
The trigger time is: 727700779.648. The reference is keyword in image file
Using zero point of 17.666 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(199.34946,60.61814,25")
fk5;-circle(199.34946,60.61814,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 vv727700910E     131.2  0.99   10.4    3.4 112    191  5834 -0.030 0.196 99.00 18.2 
#  2 vv727701419E     639.9  0.98   19.4   18.5 112   1096  5834 
#  3 vv727701592E     812.8  0.98   19.5   31.7 112   1275  5859 
# ============ Reading file sw01210276001uvv_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.224 at 727723939
The processing date in extension 0 is:  2024-02-02T06:07:33
The trigger time is: 727700779.648. The reference is keyword in image file
Using zero point of 17.666 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(199.34946,60.61814,25")
fk5;-circle(199.34946,60.61814,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 vv727723938I   23159.0  0.99  295.0  233.8 108  11723  5826  0.062 0.058 20.69 19.2  0.0617 0.0576 20.69 19.2   295 16.125 15.055 17.27 0.005 
   2 vv727724242I   23462.5  0.98  215.2  216.9 104  10474  5823  0.153 0.076 19.70 18.7  0.1003 0.0463 20.16 19.2   510 25.272 12.072 16.78 0.005 
    Sum (T+ 23159 to  23681):             450.7        404.4 (est. in src region)   SNR_unwtd_sum:   2.17 0.9987 signif. UL:  19.22
  0   510 727724199   23419.7    261.4   -260.8    0.1003   0.0463 20.163  0.672  -0.412
Total wtd_rate (for all exposures so far):  0.445 +/- 0.047 snr:  9.4 mag: 21.17 UL: 18.24
Rebinned Data for sw01210276001uvv_sk.img using a zero point of 17.666:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      502   23419.5    261.6   -260.5    0.1003   0.0463 20.16  0.41   23419.5    0.1003   0.0463 20.16  0.41 19.22
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01210276992ubb_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.209 at 727701345
The processing date in extension 0 is:  2024-01-24T01:49:32
The trigger time is: 727700779.648. The reference is keyword in image file
Using zero point of 18.901 for filter B
Use aperture correction of  1.108 based on aperture of  3.00
There are no aspect corrected images to process.
# ============ Reading file sw01210276001ubb_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.209 at 727710720
The processing date in extension 0 is:  2024-02-02T06:07:31
The trigger time is: 727700779.648. The reference is keyword in image file
Using zero point of 18.901 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(199.34946,60.61814,25")
fk5;-circle(199.34946,60.61814,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
Low  bkg:   1 bb727710720I  295.0   6141  5848  3.559  0.045
#  1 bb727710720I    9940.8  0.99  295.0  146.4 112   6141  5857 
Low  bkg:   2 bb727711023I  295.0   6058  5844  3.514  0.045
   2 bb727711023I   10244.3  0.99  295.0  163.7 108   6058  5855  0.197 0.049 20.67 20.1  0.1967 0.0488 20.67 20.1   295  7.350  1.822 18.12 0.070 
Low  bkg:   3 bb727711327I  295.0   6273  5884  3.613  0.046
#  3 bb727711327I   10547.8  0.99  295.0  170.6 116   6273  5894 
    Sum (T+ 10244 to  10544):             163.7        111.8 (est. in src region)   SNR_unwtd_sum:   4.04 0.9987 signif. UL:  20.06
  0   295 727711174   10394.1    149.9   -149.9    0.1967   0.0488 20.666  0.309  -0.240
Total wtd_rate (for all exposures so far):  0.458 +/- 0.048 snr:  9.5 mag: 21.14 UL: 19.45
Rebinned Data for sw01210276001ubb_sk.img using a zero point of 18.901:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      293   10394.1    149.9   -149.9    0.1967   0.0488 20.67  0.24   10394.1    0.1967   0.0488 20.67  0.24 20.06
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01210276992uuu_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.227 at 727701089
The processing date in extension 0 is:  2024-01-24T01:49:39
The trigger time is: 727700779.648. The reference is keyword in image file
Using zero point of 18.113 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
There are no aspect corrected images to process.
# ============ Reading file sw01210276001uuu_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.227 at 727717301
The processing date in extension 0 is:  2024-02-02T06:07:32
The trigger time is: 727700779.648. The reference is keyword in image file
Using zero point of 18.113 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01210276992uw1_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 727701469
The processing date in extension 0 is:  2024-01-24T01:49:34
The trigger time is: 727700779.648. 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
There are no aspect corrected images to process.
# ============ Reading file sw01210276001uw1_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 727716395
The processing date in extension 0 is:  2024-02-02T06:07:32
The trigger time is: 727700779.648. 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(199.34946,60.61814,25")
fk5;-circle(199.34946,60.61814,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
Low  bkg:   1 w1727716394I  885.6   1357  5844  0.262  0.007
   1 w1727716394I   15615.0  1.00  885.6   53.9 104   1357  5846  0.038 0.009 20.73 20.1  0.0377 0.0094 20.73 20.1   886 10.741  2.662 17.71 0.129 
    Sum (T+ 15615 to  16515):              53.9         24.1 (est. in src region)   SNR_unwtd_sum:   4.03 0.9987 signif. UL:  20.12
  0   886 727716845   16064.9    449.9   -449.9    0.0377   0.0094 20.727  0.309  -0.240
Total wtd_rate (for all exposures so far):  0.469 +/- 0.049 snr:  9.6 mag: 21.11 UL: 17.70
Rebinned Data for sw01210276001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885   16064.9    449.9   -449.9    0.0377   0.0094 20.73  0.24   16064.9    0.0377   0.0094 20.73  0.24 20.12
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01210276992um2_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 727701444
The processing date in extension 0 is:  2024-01-24T01:49:34
The trigger time is: 727700779.648. 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
There are no aspect corrected images to process.
# ============ Reading file sw01210276001um2_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 727735286
The processing date in extension 0 is:  2024-02-02T06:07:33
The trigger time is: 727700779.648. 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
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01210276992uw2_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 727701395
The processing date in extension 0 is:  2024-01-24T01:49:34
The trigger time is: 727700779.648. 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
There are no aspect corrected images to process.
# ============ Reading file sw01210276001uw2_sk.img ================
Use keyword TRIGTIME of 727700779.648 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 727723032
The processing date in extension 0 is:  2024-02-02T06:07:33
The trigger time is: 727700779.648. 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
There are no aspect corrected images to process.
The data range from T+151.6 s (0.00 d) to T+23681.1 s (0.27 d)
Wrote uvot_fluxes_240202d07h22m57s192595usUT.qdp
Wrote uvot_fluxes_240202d07h22m57s192595usUT.gif
Wrote uvot_fluxes_240202d07h22m57s192595usUT.ps
Wrote uvot_fluxes_240202d07h22m57s192595usUT_vis.qdp
Wrote uvot_fluxes_240202d07h22m57s192595usUT_uv.qdp
Wrote uvot_fluxes_240202d07h22m57s192595usUT_vis.gif
Wrote uvot_fluxes_240202d07h22m57s192595usUT_vis.ps
Wrote uvot_fluxes_240202d07h22m57s192595usUT_uv.gif
Wrote uvot_fluxes_240202d07h22m57s192595usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  white (0)  , b (0)  , v (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      357     226.4     74.8    -74.8    1.7334   0.2156 19.69  0.13     226.4    1.7334   0.2156 19.69  0.13 19.35
  1     3.27     894.8     30.7    -30.7    3.9953   0.5698 18.79  0.15     232.4    1.8125   0.2090 19.64  0.12 19.32
  2     1.56   11155.6    488.4   -911.3    0.8002   0.0650 20.53  0.09     279.4    1.6386   0.1735 19.75  0.11 19.45
  3 0.000613   23402.9    278.2   -244.0    1.0622   0.5155 20.22  0.43     279.5    1.6385   0.1734 19.75  0.11 19.45
The data range from T+151.6 s (0.00 d) to T+23681.1 s (0.27 d)
Wrote uvot_fluxes_wtd_240202d07h22m57s192595usUT.qdp
Wrote uvot_fluxes_wtd_240202d07h22m57s192595usUT.gif
Wrote uvot_fluxes_wtd_240202d07h22m57s192595usUT.ps
Found 5 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem