# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 250521d19h35m56s336779usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01093742001 -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
# ========= GRB220118A ===================
Could not find/read custom source region custom_1093742_src.reg
Used archived uvot source position of 192.26885 22.91562 3.00
Reference: GCN_Circ_31498
The position is (12:49:04.52, +22:54:56.2)
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(192.26885,22.91562,3") # color=red dash=0
Source region spec. is: 192.26885 22.91562 3"
Region file centered at (192.26885,22.91562), which is (12:49:04.52, +22:54:56.2)
Could not find/read custom background region custom_1093742_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 -28.46026 from uncorrected trigger time of 664222838.09 in BAT summary file
# ============ Reading file sw01093742001uwh_sk.img ================
Use keyword TRIGTIME of 664222866.56 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 664234230
The processing date in extension 0 is: 2025-05-20T15:53:27
The trigger time is: 664222866.56. 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(192.26885,22.91562,25")
fk5;-circle(192.26885,22.91562,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 wh664234229I   11363.3  0.92  295.0 1473.5 116  70428  5879  0.342 0.158 21.28 20.3  0.3424 0.1583 21.28 20.3   295  4.632  2.142 18.62 0.014 
   2 wh664234533I   11666.8  0.90  109.3  662.0 116  32211  5844  0.254 0.291 21.60 20.0  0.3188 0.1397 21.36 20.4   404  4.385  1.889 18.68 0.013 
    Sum (T+ 11363 to  11778):            2135.4       2029.0 (est. in src region)   SNR_unwtd_sum:   2.28 0.9987 signif. UL:  20.44
  0   404 664234436   11569.8    208.2   -206.4    0.3188   0.1397 21.356  0.626  -0.394
Total wtd_rate (for all exposures so far):  4.385 +/- 1.872 snr:  2.3 mag: 18.68 UL: 17.61
Rebinned Data for sw01093742001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      370   11569.1    208.8   -205.8    0.3188   0.1397 21.36  0.39   11569.1    0.3188   0.1397 21.36  0.39 20.44
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01093742001ubb_sk.img ================
Use keyword TRIGTIME of 664222866.56 for trigger time.
Long-term sensitivity correction to zero point is -0.185 at 664233318
The processing date in extension 0 is:  2025-05-20T15:53:26
The trigger time is: 664222866.56. The reference is keyword in image file
Using zero point of 18.925 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(192.26885,22.91562,25")
fk5;-circle(192.26885,22.91562,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 bb664233317I   10451.3  0.99  295.0  221.0 116  10418  5863  0.056 0.057 22.05 20.5  0.0563 0.0570 22.05 20.5   295  2.100  2.125 19.48 0.038 
   2 bb664233621I   10754.8  0.99  295.0  266.8 116  12253  5847  0.090 0.063 21.54 20.3  0.0733 0.0424 21.76 20.7   590  2.706  1.593 19.21 0.034 
   3 bb664233924I   11058.4  0.98  295.0  398.5 116  20159  5839 -0.007 0.077 99.00 20.5  0.0466 0.0382 22.25 20.9   885  2.104  1.413 19.48 0.027 
    Sum (T+ 10451 to  11358):             886.3        849.7 (est. in src region)   SNR_unwtd_sum:   1.22 0.9987 signif. UL:  20.89
  0   885 664233771   10904.7    453.4   -453.4    0.0466   0.0382 22.255  1.866  -0.651
Total wtd_rate (for all exposures so far):  2.917 +/- 1.121 snr:  2.6 mag: 19.13 UL: 16.93
Rebinned Data for sw01093742001ubb_sk.img using a zero point of 18.925:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      871   10903.7    454.4   -452.4    0.0466   0.0382 22.25  0.65   10903.7    0.0466   0.0382 22.25  0.65 20.89
The data range from T+10451.3 s (0.12 d) to T+11777.9 s (0.14 d)
Wrote uvot_fluxes_250521d19h35m56s336779usUT.qdp
Wrote uvot_fluxes_250521d19h35m56s336779usUT.gif
Wrote uvot_fluxes_250521d19h35m56s336779usUT.ps
Wrote uvot_fluxes_250521d19h35m56s336779usUT_vis.qdp
Wrote uvot_fluxes_250521d19h35m56s336779usUT_uv.qdp
Wrote uvot_fluxes_250521d19h35m56s336779usUT_vis.gif
Wrote uvot_fluxes_250521d19h35m56s336779usUT_vis.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  white (0)  , v (0)  , u (0)  , b (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.381   11288.6    489.3   -837.3    0.3110   0.1147 21.56  0.34   11288.6    0.3110   0.1147 21.56  0.34 20.75
The data range from T+10451.3 s (0.12 d) to T+11777.9 s (0.14 d)
Wrote uvot_fluxes_wtd_250521d19h35m56s336779usUT.qdp
Wrote uvot_fluxes_wtd_250521d19h35m56s336779usUT.gif
Wrote uvot_fluxes_wtd_250521d19h35m56s336779usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem