# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 251120d17h26m21s137801usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021890001 -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
# ========= GRB251118 ===================
Could not find/read custom source region custom_021890_src.reg
Used archived XRT position of 160.00417 -34.52258 4.00
Reference: GCN_Circulars-42782-Thu,_20_Nov_2025_13:53:32_+0000
The position is (10:40:01.00, -34:31:21.3)
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(160.00417,-34.52258,4") # color=red dash=0
Source region spec. is: 160.00417 -34.52258 4"
Region file centered at (160.00417,-34.52258), which is (10:40:01.00, -34:31:21.3)
Could not find/read custom background region custom_021890_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.67492 from uncorrected trigger time of 785190690.09 in BAT summary file
# ============ Reading file sw00021890001uwh_sk.img ================
Use keyword TRIGTIME of 785190726.714 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 785222210
The processing date in extension 0 is: 2025-11-20T17:11:34
The trigger time is: 785190726.714. 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
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(160.00417,-34.52258,25")
fk5;-circle(160.00417,-34.52258,12.5")
fk5;-circle(160.009657,-34.517962,6")
fk5;-circle(160.007000,-34.521631,6")
fk5;-circle(159.999881,-34.526524,6")
fk5;-circle(160.012351,-34.522449,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 wh785222210I   31483.7  0.89  128.4 1597.0 200  29862  4862  3.351 0.369 18.80 18.5  3.3506 0.3690 18.80 18.5   128 124.260 13.685 15.05 0.002 
above line uses coinc_corr_src:  0.887 corr_bkg:  0.906
   2 wh785226989I   36263.0  0.92  454.4 4240.2 200  68974  4894  3.524 0.164 18.75 18.6  3.4867 0.1509 18.76 18.6   583 146.275  6.259 14.88 0.003 
   3 wh785232933I   42206.9  0.90  285.3 3060.1 196  59151  4847  2.687 0.226 19.04 18.8  3.2258 0.1256 18.84 18.7   868 143.639  5.479 14.90 0.003 
   4 wh785243322I   52595.9  0.95   17.9   99.8 196   1711  4815  1.830 0.616 19.46 18.7  3.1963 0.1236 18.85 18.7   886 143.017  5.423 14.90 0.003 
    Sum (T+ 31484 to  52614):            8997.0       6508.8 (est. in src region)   SNR_unwtd_sum:  25.85 0.9987 signif. UL:  18.73
  0   886 785228759   38032.0  14582.1  -6548.3    3.1963   0.1236 18.853  0.043  -0.041
Total wtd_rate (for all exposures so far): 143.017 +/- 5.347 snr: 26.7 mag: 14.90 UL: 14.61
Rebinned Data for sw00021890001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      531   35473.2   1344.6  -3989.5    3.4867   0.1509 18.76  0.05   35473.2    3.4867   0.1509 18.76  0.05 18.63
  1      257   42407.9    201.0   -201.0    2.6869   0.2260 19.04  0.09   37736.1    3.2258   0.1256 18.84  0.04 18.72
  2       17   52605.0      9.1     -9.1    1.8305   0.6155 19.46  0.31   38050.4    3.1963   0.1236 18.85  0.04 18.73
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00021890001uvv_sk.img ================
Use keyword TRIGTIME of 785190726.714 for trigger time.
Long-term sensitivity correction to zero point is -0.231 at 785222368
The processing date in extension 0 is:  2025-11-20T17:11:34
The trigger time is: 785190726.714. 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
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(160.00417,-34.52258,25")
fk5;-circle(160.00417,-34.52258,12.5")
fk5;-circle(160.009583,-34.517921,6")
fk5;-circle(160.006965,-34.521602,6")
fk5;-circle(160.012304,-34.522411,6")
fk5;-circle(159.999834,-34.526497,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 vv785222367I   31641.2  0.98   91.4  241.1 188   4999  4741  0.496 0.182 18.42 17.6  0.4956 0.1822 18.42 17.6    91 177.114 65.115 14.67 0.001 
   2 vv785227551I   36824.8  0.98  481.5 1137.4 200  23295  4732  0.334 0.075 18.85 18.3  0.3597 0.0695 18.77 18.3   573 146.968 28.279 14.87 0.001 
   3 vv785233341I   42615.1  0.97  272.7 1001.9 204  22390  4762  0.167 0.126 19.60 18.3  0.2980 0.0622 18.97 18.4   846 136.163 25.668 14.96 0.001 
    Sum (T+ 31641 to  42892):            2380.3       2142.0 (est. in src region)   SNR_unwtd_sum:   4.79 0.9987 signif. UL:  18.45
  0   846 785229048   38320.9   4571.2  -6679.7    0.2980   0.0622 18.974  0.254  -0.206
Total wtd_rate (for all exposures so far): 142.146 +/- 5.212 snr: 27.3 mag: 14.91 UL: 12.16
Rebinned Data for sw00021890001uvv_sk.img using a zero point of 17.659:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      824   38304.2   4587.9  -6663.0    0.2980   0.0622 18.97  0.21   38304.2    0.2980   0.0622 18.97  0.21 18.45
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021890001uuu_sk.img ================
Use keyword TRIGTIME of 785190726.714 for trigger time.
Long-term sensitivity correction to zero point is -0.249 at 785222053
The processing date in extension 0 is:  2025-11-20T17:11:33
The trigger time is: 785190726.714. 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
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(160.00417,-34.52258,25")
fk5;-circle(160.00417,-34.52258,12.5")
fk5;-circle(160.009598,-34.517885,6")
fk5;-circle(160.012225,-34.522397,6")
fk5;-circle(160.006904,-34.521519,6")
fk5;-circle(159.999832,-34.526449,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 uu785222052I   31326.2  0.97  149.4  474.2 196   7469  4788  1.196 0.157 17.90 17.5  1.1960 0.1567 17.90 17.5   149 284.761 37.299 14.15 0.002 
   2 uu785226427I   35701.3  0.99  546.0  933.8 200  11466  4781  0.870 0.059 18.24 18.0  0.9396 0.0573 18.16 18.0   695 243.598 14.858 14.32 0.003 
   3 uu785232525I   41799.2  0.99  395.4  608.8 192  10270  4803  0.525 0.066 18.79 18.4  0.7888 0.0437 18.35 18.2  1091 222.073 12.212 14.42 0.003 
   4 uu785236896I   46169.7  0.99  659.7  887.0 196  10249  4782  0.738 0.048 18.42 18.2  0.7697 0.0326 18.38 18.2  1751 236.817  9.904 14.35 0.004 
   5 uu785242565I   51838.6  0.99  738.9  901.7 196  11554  4787  0.605 0.043 18.64 18.4  0.7206 0.0262 18.45 18.3  2489 237.466  8.551 14.35 0.004 
   6 uu785248051I   57324.8  0.99  332.9  385.4 200   4867  4773  0.568 0.062 18.70 18.4  0.7025 0.0242 18.47 18.4  2822 238.367  8.154 14.35 0.004 
    Sum (T+ 31326 to  57663):            4190.9       2293.0 (est. in src region)   SNR_unwtd_sum:  28.99 0.9987 signif. UL:  18.37
  0  2822 785236556   45829.2  11833.9 -14502.9    0.7025   0.0242 18.474  0.038  -0.037
Total wtd_rate (for all exposures so far): 176.989 +/- 4.428 snr: 40.0 mag: 14.67 UL: 12.39
Rebinned Data for sw00021890001uuu_sk.img using a zero point of 18.091:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      684   35006.1   1249.9  -3679.8    0.9396   0.0573 18.16  0.06   35006.1    0.9396   0.0573 18.16  0.06 17.98
  1 1.04e+03   44819.6   2020.4  -3020.4    0.6583   0.0387 18.54  0.06   40932.9    0.7697   0.0326 18.38  0.05 18.24
  2 1.06e+03   53854.8   3808.3  -2016.2    0.5932   0.0353 18.66  0.06   45852.0    0.7025   0.0242 18.47  0.04 18.37
The data range from T+31326.2 s (0.36 d) to T+57663.1 s (0.67 d)
Wrote uvot_fluxes_251120d17h26m21s137801usUT.qdp
Wrote uvot_fluxes_251120d17h26m21s137801usUT.gif
Wrote uvot_fluxes_251120d17h26m21s137801usUT.ps
Wrote uvot_fluxes_251120d17h26m21s137801usUT_vis.qdp
Wrote uvot_fluxes_251120d17h26m21s137801usUT_uv.qdp
Wrote uvot_fluxes_251120d17h26m21s137801usUT_vis.gif
Wrote uvot_fluxes_251120d17h26m21s137801usUT_vis.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 9.48e-05   31402.1     75.9    -75.9    9.0682   1.1878 17.90  0.13   31402.1    9.0682   1.1878 17.90  0.13 17.54
  1  0.00456   31560.2    173.9    -76.5    3.9449   0.4317 18.80  0.11   31556.9    4.0486   0.4237 18.77  0.11 18.47
  2 0.000506   35978.6    277.4   -277.4    6.5991   0.4487 18.24  0.07   31990.1    4.3296   0.3802 18.70  0.09 18.44
  3   0.0244   38231.3   4660.8  -1968.3    3.8344   0.1535 18.83  0.04   37139.6    3.9090   0.1424 18.81  0.04 18.70
  4 0.000928   49328.0   3261.3  -3158.3    5.0672   0.2416 18.53  0.05   37511.1    3.9554   0.1370 18.80  0.04 18.69
  5 0.000588   52605.0      9.1     -9.1    2.1510   0.7233 19.46  0.31   37796.9    3.9079   0.1347 18.81  0.04 18.70
  6  0.00018   57494.0    169.1   -169.1    4.3044   0.4708 18.70  0.11   37910.4    3.9113   0.1336 18.81  0.04 18.70
The data range from T+31326.2 s (0.36 d) to T+57663.1 s (0.67 d)
Wrote uvot_fluxes_wtd_251120d17h26m21s137801usUT.qdp
Wrote uvot_fluxes_wtd_251120d17h26m21s137801usUT.gif
Wrote uvot_fluxes_wtd_251120d17h26m21s137801usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem