# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 251113d15h38m05s833843usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01413695992 -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
# ========= GRB251112 ===================
Could not find/read custom source region custom_1413695_src.reg
Used archived XRT position of 274.06967 24.15347 4.00
Reference: GCN_Circulars-42665-Thu,_13_Nov_2025_10:27:18_+0000
The position is (18:16:16.72, +24:09:12.5)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(274.06967,24.15347,4") # color=red dash=0
Source region spec. is: 274.06967 24.15347 4"
Region file centered at (274.06967,24.15347), which is (18:16:16.72, +24:09:12.5)
Could not find/read custom background region custom_1413695_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 -36.62106 from uncorrected trigger time of 784675735.86 in BAT summary file
# ============ Reading file sw01413695992uwh_sk.img ================
Use keyword TRIGTIME of 784675772.693 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 784675864
The processing date in extension 0 is: 2025-11-13T15:27:17
The trigger time is: 784675772.693. The reference is keyword in image file
Using zero point of 20.115 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1   36.0 274.01288  24.21954 0.134 230.9
  2   39.0 274.01181  24.22020 0.134 230.9
  3   39.0 274.01237  24.22030 0.134 230.9
  4   40.3 274.01226  24.22063 0.134 230.9
Using background region based on sources found in extension 5:
# 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(274.06967,24.15347,25")
fk5;-circle(274.06967,24.15347,12.5")
fk5;-circle(274.071953,24.145702,6")
fk5;-circle(274.075131,24.150428,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
Low  bkg:   1 wh784675863I  147.4      0  5408  0.000  0.001
%  1 wh784675863I      91.0  1.00  147.4    0.0 200      0  5408 
Low  bkg:   2 wh784675863E  146.4      0  5398  0.000  0.001
%  2 wh784675863E      91.0  1.00  146.4    0.0 198      0  5398 
Low  bkg:   3 wh784676356E   19.5      0  5399  0.000  0.010
%  3 wh784676356E     583.7  1.00   19.5    0.0 199      0  5399 
Low  bkg:   4 wh784676528E   19.5      0  5399  0.000  0.010
%  4 wh784676528E     755.5  1.00   19.5    0.0 198      0  5399 
   5 wh784676628I     856.2  0.94   85.9  568.3 200  15217  5404  0.065 0.312 23.08 20.1  0.0650 0.3124 23.08 20.1    86  0.069  0.330 23.20 0.135 
    Sum (T+   856 to    943):             568.3        563.2 (est. in src region)   SNR_unwtd_sum:   0.21 0.9987 signif. UL:  20.06
  0    86 784676673     899.8     43.6    -43.6    0.0650   0.3124 23.082 75.918  -1.909
Total wtd_rate (for all exposures so far):  0.069 +/- 0.324 snr:  0.2 mag: 23.20 UL: 20.01
Rebinned Data for sw01413695992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     80.4     899.8     43.6    -43.6    0.0650   0.3124 23.08  1.91     899.8    0.0650   0.3124 23.08  1.91 20.06
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01413695992uvv_sk.img ================
Use keyword TRIGTIME of 784675772.693 for trigger time.
Long-term sensitivity correction to zero point is -0.231 at 784675844
The processing date in extension 0 is:  2025-11-13T15:26:52
The trigger time is: 784675772.693. The reference is keyword in image file
Using zero point of 17.659 for filter V
Use aperture correction of  1.030 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  2   38.3 274.01275  24.22017 0.134 230.9
  3   38.6 274.01263  24.22022 0.134 230.9
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(274.06967,24.15347,25")
fk5;-circle(274.06967,24.15347,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 vv784675843E      71.0  0.99   10.5    6.4 203    456  5818 -0.943 0.262 99.00 18.7 
Low  bkg:   2 vv784676406E   19.5      0  5850  0.000  0.009
%  2 vv784676406E     633.8  1.00   19.5    0.0 201      0  5850 
Low  bkg:   3 vv784676577E   19.4      0  5843  0.000  0.009
%  3 vv784676577E     805.1  1.00   19.4    0.0 199      0  5843 
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01413695992ubb_sk.img ================
Use keyword TRIGTIME of 784675772.693 for trigger time.
Long-term sensitivity correction to zero point is -0.230 at 784676331
The processing date in extension 0 is:  2025-11-13T15:27:11
The trigger time is: 784675772.693. The reference is keyword in image file
Using zero point of 18.880 for filter B
Use aperture correction of  1.035 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1   38.4 274.01266  24.22018 0.134 230.9
  2   39.4 274.01255  24.22043 0.134 230.9
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(274.06967,24.15347,25")
fk5;-circle(274.06967,24.15347,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 bb784676331E   19.5      0  5843  0.000  0.009
%  1 bb784676331E     558.5  1.00   19.5    0.0 201      0  5843 
Low  bkg:   2 bb784676503E   19.5      0  5841  0.000  0.009
%  2 bb784676503E     731.1  1.00   19.5    0.0 201      0  5841 
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01413695992uuu_sk.img ================
Use keyword TRIGTIME of 784675772.693 for trigger time.
Long-term sensitivity correction to zero point is -0.249 at 784676076
The processing date in extension 0 is:  2025-11-13T15:27:19
The trigger time is: 784675772.693. The reference is keyword in image file
Using zero point of 18.091 for filter U
Use aperture correction of  1.032 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  3   40.2 274.01308  24.22076 0.134 230.9
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(274.06967,24.15347,25")
fk5;-circle(274.06967,24.15347,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 uu784676075I     303.2  0.99  245.8  302.0 200   9338  5840 -0.076 0.075 99.00 19.9 -0.0758 0.0752 99.00 19.9   246 -0.246  0.244 99.00 0.234 
   2 uu784676075E     303.2  0.99  245.8  304.1 200   9312  5837 -0.063 0.075 99.00 19.8 
Low  bkg:   3 uu784676479E   19.5      0  5841  0.000  0.009
%  3 uu784676479E     706.4  1.00   19.5    0.0 198      0  5841 
    Sum (T+   303 to    553):             302.0        319.8 (est. in src region)   SNR_unwtd_sum:  -1.01 0.9987 signif. UL:  19.89
  0   246 784676201     428.1    124.9   -124.9   -0.0758   0.0752 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.130 +/- 0.193 snr: -0.7 mag: 99.00 UL: 18.79
Rebinned Data for sw01413695992uuu_sk.img using a zero point of 18.091:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      243     428.1    124.9   -124.9   -0.0758   0.0752 99.00 99.00     428.1   -0.0758   0.0752 99.00 99.00 19.89
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01413695992uw1_sk.img ================
Use keyword TRIGTIME of 784675772.693 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 784676455
The processing date in extension 0 is:  2025-11-13T15:27:13
The trigger time is: 784675772.693. The reference is keyword in image file
Using zero point of 17.169 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.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(274.06967,24.15347,25")
fk5;-circle(274.06967,24.15347,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 w1784676455E   14.4    141  5849  1.672  0.141
   1 w1784676455E     682.7  1.00   14.4    3.4 202    141  5858 -0.103 0.137 99.00 18.3 -0.1033 0.1370 99.00 18.3    14 -1.263  1.675 99.00 0.241 
    Sum (T+   683 to    697):               3.4          4.8 (est. in src region)   SNR_unwtd_sum:  -0.75 0.9987 signif. UL:  18.25
  0    14 784676463     690.0      7.3     -7.3   -0.1033   0.1370 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.142 +/- 0.192 snr: -0.7 mag: 99.00 UL: 17.89
Rebinned Data for sw01413695992uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     14.3     690.0      7.3     -7.3   -0.1033   0.1370 99.00 99.00     690.0   -0.1033   0.1370 99.00 99.00 18.25
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01413695992um2_sk.img ================
Use keyword TRIGTIME of 784675772.693 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 784676431
The processing date in extension 0 is:  2025-11-13T15:27:13
The trigger time is: 784675772.693. The reference is keyword in image file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.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(274.06967,24.15347,25")
fk5;-circle(274.06967,24.15347,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 m2784676430E   19.5     77  5848  0.674  0.077
   1 m2784676430E     658.1  1.00   19.5    2.4 197     77  5849 -0.008 0.084 99.00 18.0 -0.0082 0.0842 99.00 18.0    19 -0.165  1.696 99.00 0.373 
High bkg:   2 m2784676602E   19.5     61  5844  0.539  0.069
   2 m2784676602E     829.4  1.00   19.5    2.0 202     61  5843 -0.006 0.076 99.00 18.1 -0.0072 0.0568 99.00 18.5    39 -0.163  1.275 99.00 0.368 
    Sum (T+   658 to    849):               4.4          4.7 (est. in src region)   SNR_unwtd_sum:  -0.13 0.9987 signif. UL:  18.47
  0    39 784676526     753.6     95.5    -95.5   -0.0072   0.0568 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.141 +/- 0.189 snr: -0.7 mag: 99.00 UL: 17.33
Rebinned Data for sw01413695992um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.9     753.6     95.5    -95.5   -0.0072   0.0568 99.00 99.00     753.6   -0.0072   0.0568 99.00 99.00 18.47
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01413695992uw2_sk.img ================
Use keyword TRIGTIME of 784675772.693 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 784676382
The processing date in extension 0 is:  2025-11-13T15:27:13
The trigger time is: 784675772.693. The reference is keyword in image file
Using zero point of 17.035 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.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(274.06967,24.15347,25")
fk5;-circle(274.06967,24.15347,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 w2784676381E   19.5     92  5844  0.810  0.084
   1 w2784676381E     609.0  1.00   19.5    4.0 198     92  5844  0.047 0.108 20.36 18.1  0.0468 0.1080 20.36 18.1    19  0.581  1.339 20.88 0.502 
   2 w2784676553E     780.8  1.00   19.4    2.0 199     79  5844 -0.036 0.077 99.00 18.7  0.0053 0.0664 22.72 18.7    39  0.102  0.934 22.77 0.480 
    Sum (T+   609 to    801):               6.0          5.8 (est. in src region)   SNR_unwtd_sum:   0.08 0.9987 signif. UL:  18.69
  0    39 784676477     704.8     95.8    -95.7    0.0053   0.0664 22.722 76.278  -2.826
Total wtd_rate (for all exposures so far): -0.131 +/- 0.186 snr: -0.7 mag: 99.00 UL: 17.78
Rebinned Data for sw01413695992uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.8     704.8     95.7    -95.7    0.0053   0.0664 22.72  2.83     704.8    0.0053   0.0664 22.72  2.83 18.69
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw01413695992ugu_sk.img ================
The data range from T+303.2 s (0.00 d) to T+943.5 s (0.01 d)
Wrote uvot_fluxes_251113d15h38m05s833843usUT.qdp
Wrote uvot_fluxes_251113d15h38m05s833843usUT.gif
Wrote uvot_fluxes_251113d15h38m05s833843usUT.ps
Wrote uvot_fluxes_251113d15h38m05s833843usUT_vis.qdp
Wrote uvot_fluxes_251113d15h38m05s833843usUT_uv.qdp
Wrote uvot_fluxes_251113d15h38m05s833843usUT_vis.gif
Wrote uvot_fluxes_251113d15h38m05s833843usUT_vis.ps
Wrote uvot_fluxes_251113d15h38m05s833843usUT_uv.gif
Wrote uvot_fluxes_251113d15h38m05s833843usUT_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     2.22     428.1    124.9   -124.9   -0.5745   0.5697 99.00 99.00     428.1   -0.5745   0.5697 99.00 99.00 19.89
  1      7.8     899.8     43.6    -43.6    0.0764   0.3671 23.08  1.91     795.4   -0.0012   0.3304 99.00 99.00 20.23
The data range from T+303.2 s (0.00 d) to T+943.5 s (0.01 d)
Wrote uvot_fluxes_wtd_251113d15h38m05s833843usUT.qdp
Wrote uvot_fluxes_wtd_251113d15h38m05s833843usUT.gif
Wrote uvot_fluxes_wtd_251113d15h38m05s833843usUT.ps
Found 13 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem