# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 230313d14h03m00s732886usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021536001 -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
# ========= GRB230204B ===================
Could not find/read custom source region custom_021536_src.reg
Used archived opt source position of 197.64567 -21.71814 3.00
Reference: GCN-Circ-33269
The position is (13:10:34.96, -21:43:05.3)
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(197.64567,-21.71814,3") # color=red dash=0
Source region spec. is: 197.64567 -21.71814 3"
Region file centered at (197.64567,-21.71814), which is (13:10:34.96, -21:43:05.3)
Could not find/read custom background region custom_021536_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 -30.70348 from uncorrected trigger time of 697240071 in BAT summary file
# ============ Reading file sw00021536001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 699533760
The processing date in extension 0 is: 2023-03-04T00:27:16
The trigger time is: 697240101.70348. The reference is BAT GRB summary 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 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(197.64567,-21.71814,25")
fk5;-circle(197.64567,-21.71814,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 m2699533760I 2293658.6  1.00  650.2    7.4 112    502  5844 -0.004 0.005 99.00 21.4 -0.0038 0.0047 99.00 21.4   650 -261.998 323.896 99.00 0.001 
   2 m2699539975I 2299874.2  1.00  378.8    5.8 116    339  5871 -0.003 0.007 99.00 20.8 -0.0034 0.0039 99.00 21.6  1029 -235.936 271.073 99.00 0.001 
   3 m2699544723I 2304622.3  1.00  371.0    5.8 112    415  5824 -0.006 0.007 99.00 20.9 -0.0042 0.0035 99.00 21.8  1400 -280.116 239.155 99.00 0.001 
   4 m2699550358I 2310257.0  1.00  376.2   10.5 112    550  5860  0.000 0.010 26.83 20.4 -0.0033 0.0034 99.00 21.7  1776 -240.485 226.061 99.00 0.001 
   5 m2699556392I 2316291.2  1.00  342.5    3.9 104    270  5803 -0.003 0.006 99.00 20.9 -0.0033 0.0031 99.00 21.9  2119 -237.314 201.793 99.00 0.001 
   6 m2699573460I 2333358.4  1.00  433.9    7.2 112    404  5868 -0.001 0.007 99.00 20.8 -0.0029 0.0028 99.00 22.0  2553 -212.454 186.694 99.00 0.001 
    Sum (T+2293659 to 2333799):              40.6         47.4 (est. in src region)   SNR_unwtd_sum:  -1.05 0.9987 signif. UL:  21.98
  0  2553 699548736 2308634.7  25164.5 -14976.1   -0.0029   0.0028 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -212.454 +/-184.594 snr: -1.2 mag: 99.00 UL:  9.96
Rebinned Data for sw00021536001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.55e+03 2308634.9  25164.4 -14976.3   -0.0029   0.0028 99.00 99.00 2308634.9   -0.0029   0.0028 99.00 99.00 21.98
The data range from T+2293658.6 s (26.55 d) to T+2333799.2 s (27.01 d)
Wrote uvot_fluxes_230313d14h03m00s732886usUT.qdp
Wrote uvot_fluxes_230313d14h03m00s732886usUT.gif
Wrote uvot_fluxes_230313d14h03m00s732886usUT.ps
Wrote uvot_fluxes_230313d14h03m00s732886usUT_vis.qdp
Wrote uvot_fluxes_230313d14h03m00s732886usUT_uv.qdp
Wrote uvot_fluxes_230313d14h03m00s732886usUT_uv.gif
Wrote uvot_fluxes_230313d14h03m00s732886usUT_uv.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem