# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 240311d10h15m34s746010usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01207446001 -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
# ========= GRB240109A ===================
Could not find/read custom source region custom_1207446_src.reg
Used archived BAT position of 301.32958 16.56619
Reference: GCN_Circulars-35523-Fri,_12_Jan_2024_18:37:16_+0000
The position is (20:05:19.10, +16:33:58.3)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(301.32958,16.56619,3") # color=red dash=0
Source region spec. is: 301.32958 16.56619 3"
Region file centered at (301.32958,16.56619), which is (20:05:19.10, +16:33:58.3)
Could not find/read custom background region custom_1207446_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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 2500.0,
3 sigma should become about 5.0 sigma and 2 sigma should become about 4.4 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999948.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -32.69766 from uncorrected trigger time of 726465694.98 in BAT summary file
# ============ Reading file sw01207446001um2_sk.img ================
Use keyword TRIGTIME of 726465727.68 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 730958716
The processing date in extension 0 is: 2024-03-11T09:50:27
The trigger time is: 726465727.68. 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 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(301.32958,16.56619,25")
fk5;-circle(301.32958,16.56619,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 m2730958715E 4492987.9  1.00 1698.2   60.5 114   2326  5846  0.000 0.004 99.00 20.7  0.0000 0.0044 99.00 20.7  1698  0.000 600.347 99.00 0.000 
   2 m2730998641E 4532913.4  1.00 1318.6   31.3 114   1981  5845  0.000 0.005 99.00 20.5  0.0000 0.0034 99.00 21.0  3017  0.000 461.061 99.00 0.000 
   3 m2731004554E 4538826.4  1.00  577.6   13.1 112    833  5844  0.000 0.008 99.00 20.1  0.0000 0.0031 99.00 21.1  3594  0.000 422.656 99.00 0.000 
   4 m2731010378E 4544651.2  1.00  986.3   26.3 115   1597  5852  0.000 0.006 99.00 20.3  0.0000 0.0028 99.00 21.2  4581  0.000 380.159 99.00 0.000 
    Sum (T+4492988 to 4545653):             131.3        131.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.99999948 signif. UL:  21.22
  0  4581 730987770 4522042.6  23610.8 -29054.7    0.0000   0.0028 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-376.509 snr:  0.0 mag: 99.00 UL:  8.40
Rebinned Data for sw01207446001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.58e+03 4522042.0  23611.4 -29054.1    0.0000   0.0028 99.00 99.00 4522042.0    0.0000   0.0028 99.00 99.00 21.71
The data range from T+4492987.9 s (52.00 d) to T+4545653.3 s (52.61 d)
Wrote uvot_fluxes_240311d10h15m34s746010usUT.qdp
Wrote uvot_fluxes_240311d10h15m34s746010usUT.gif
Wrote uvot_fluxes_240311d10h15m34s746010usUT.ps
Wrote uvot_fluxes_240311d10h15m34s746010usUT_vis.qdp
Wrote uvot_fluxes_240311d10h15m34s746010usUT_uv.qdp
Wrote uvot_fluxes_240311d10h15m34s746010usUT_uv.gif
Wrote uvot_fluxes_240311d10h15m34s746010usUT_uv.ps
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem