# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 230908d05h22m42s551268usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021620001 -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
# ========= GRB230827B ===================
Could not find/read custom source region custom_021620_src.reg
Used archived opt source position of 299.63977 54.46334 3.00
Reference: GCN_Circulars-34574
The position is (19:58:33.54, +54:27:48.0)
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(299.63977,54.46334,3") # color=red dash=0
Source region spec. is: 299.63977 54.46334 3"
Region file centered at (299.63977,54.46334), which is (19:58:33.54, +54:27:48.0)
Could not find/read custom background region custom_021620_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 -31.89708 from uncorrected trigger time of 714809310.73 in BAT summary file
# ============ Reading file sw00021620001um2_sk.img ================
Use keyword TRIGTIME of 714809342.849 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 715053041
The processing date in extension 0 is: 2023-09-08T05:01:27
The trigger time is: 714809342.849. 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 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(299.63977,54.46334,25")
fk5;-circle(299.63977,54.46334,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 m2715053040I  243697.7  1.00  479.6    8.6 112    571  5828 -0.005 0.007 99.00 20.9 -0.0054 0.0069 99.00 20.9   480 -39.739 50.481 99.00 0.006 
   2 m2715058186I  248843.4  1.00  837.0   27.4 116   1455  5832 -0.002 0.007 99.00 20.8 -0.0033 0.0051 99.00 21.2  1317 -26.981 36.550 99.00 0.004 
    Sum (T+243698 to 249694):              36.0         39.9 (est. in src region)   SNR_unwtd_sum:  -0.64 0.9987 signif. UL:  21.22
  0  1317 715056671  247328.0   2365.8  -3630.4   -0.0033   0.0051 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -26.981 +/-36.146 snr: -0.7 mag: 99.00 UL: 11.62
Rebinned Data for sw00021620001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.32e+03  247327.9   2366.0  -3630.2   -0.0033   0.0051 99.00 99.00  247327.9   -0.0033   0.0051 99.00 99.00 21.22
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00021620001uw2_sk.img ================
Use keyword TRIGTIME of 714809342.849 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 715040618
The processing date in extension 0 is:  2023-09-08T05:01:26
The trigger time is: 714809342.849. 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(299.63977,54.46334,25")
fk5;-circle(299.63977,54.46334,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 w2715040617I  231274.9  1.00 1144.7   72.3 116   3522  5840  0.002 0.008 23.67 20.9  0.0022 0.0083 23.67 20.9  1145 10.320 38.618 17.76 0.004 
   2 w2715046332I  236989.2  1.00 1296.0   82.4 116   3866  5824  0.005 0.008 22.87 20.9  0.0035 0.0057 23.17 21.2  2441 16.546 26.846 17.24 0.004 
    Sum (T+231275 to 238306):             154.7        147.0 (est. in src region)   SNR_unwtd_sum:   0.62 0.9987 signif. UL:  21.22
  0  2441 715044274  234931.5   3374.5  -3656.6    0.0035   0.0057 23.171 75.829  -1.047
Total wtd_rate (for all exposures so far):  3.104 +/-21.518 snr:  0.1 mag: 19.06 UL: 12.40
Rebinned Data for sw00021620001uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.44e+03  234931.5   3374.5  -3656.6    0.0035   0.0057 23.17  1.05  234931.5    0.0035   0.0057 23.17  1.05 21.22
The data range from T+231274.9 s (2.68 d) to T+249693.9 s (2.89 d)
Wrote uvot_fluxes_230908d05h22m42s551268usUT.qdp
Wrote uvot_fluxes_230908d05h22m42s551268usUT.gif
Wrote uvot_fluxes_230908d05h22m42s551268usUT.ps
Wrote uvot_fluxes_230908d05h22m42s551268usUT_vis.qdp
Wrote uvot_fluxes_230908d05h22m42s551268usUT_uv.qdp
Wrote uvot_fluxes_230908d05h22m42s551268usUT_uv.gif
Wrote uvot_fluxes_230908d05h22m42s551268usUT_uv.ps
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem