# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 240831d20h50m51s926994usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021705002 -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
# ========= GRB240224B ===================
Could not find/read custom source region custom_021705_src.reg
Used archived XRT position of 17.83675 2.61000 4.00
Reference: GCN_Circulars-37270-Sun,_25_Aug_2024_13:38:58_+0000
The position is (01:11:20.82, +02:36:36.0)
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(17.83675,2.61000,4") # color=red dash=0
Source region spec. is: 17.83675 2.61000 4"
Region file centered at (17.83675,2.61000), which is (01:11:20.82, +02:36:36.0)
Could not find/read custom background region custom_021705_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 -34.05588 from uncorrected trigger time of 746197876.7 in BAT summary file
# ============ Reading file sw00021705001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.234 at 746225629
The processing date in extension 0 is: 2024-08-25T10:05:58
The trigger time is: 746197910.75588. The reference is BAT GRB summary file
Using zero point of 18.106 for filter U
Use aperture correction of 1.032 based on aperture of 4.00
Using background region based on sources found in extension 4:
# 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(17.83675,2.61000,25")
fk5;-circle(17.83675,2.61000,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 uu746225628I   27718.2  1.00  720.3  372.7 200  11270  5867 -0.017 0.028 99.00 20.9 -0.0165 0.0283 99.00 20.9   720 -3.465  5.936 99.00 0.009 
   2 uu746231599I   33689.1  0.99  367.8  205.2 204   5836  5844  0.004 0.041 24.04 20.3 -0.0095 0.0233 99.00 21.0  1088 -2.318  5.157 99.00 0.008 
   3 uu746237542I   39631.7  0.99  938.3  517.5 196  15300  5821  0.003 0.026 24.59 20.8 -0.0039 0.0172 99.00 21.3  2026 -1.343  4.279 99.00 0.007 
   4 uu746243505I   45594.8  0.99 1036.6  767.5 208  21872  5843 -0.011 0.028 99.00 20.8 -0.0063 0.0149 99.00 21.5  3063 -1.744  3.918 99.00 0.006 
   5 uu746249308I   51397.2  0.99  939.7  735.4 196  21854  5877  0.007 0.031 23.46 20.6 -0.0032 0.0134 99.00 21.6  4003 -1.286  3.719 99.00 0.005 
   6 uu746255250I   57339.9  0.99  781.5  887.2 200  24735  5839  0.053 0.040 21.29 20.0  0.0060 0.0130 23.66 21.4  4784 -0.174  3.638 99.00 0.004 
    Sum (T+ 27718 to  58134):            3485.6       3457.9 (est. in src region)   SNR_unwtd_sum:   0.46 0.9987 signif. UL:  21.43
  0  4784 746242223   44312.5  13821.5 -16594.3    0.0060   0.0130 23.659 75.341  -1.253
Total wtd_rate (for all exposures so far): -0.174 +/- 3.576 snr: -0.0 mag: 99.00 UL: 15.47
Rebinned Data for sw00021705001uuu_sk.img using a zero point of 18.106:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.98e+03   41682.6  10669.4 -13964.4   -0.0032   0.0134 99.00 99.00   41682.6   -0.0032   0.0134 99.00 99.00 21.58
  1      773   57737.0    397.0   -397.0    0.0532   0.0404 21.29  0.61   44295.3    0.0060   0.0130 23.66  1.25 21.43
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00021705002uw2_sk.img ================
Use keyword TRIGTIME of 746197910.755 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 746803987
The processing date in extension 0 is:  2024-08-31T20:41:48
The trigger time is: 746197910.755. The reference is keyword in image file
Using zero point of 17.035 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.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(17.83675,2.61000,25")
fk5;-circle(17.83675,2.61000,12.5")
fk5;-circle(17.832371,2.617403,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 w2746803986I  606076.0  1.00 1529.6   65.3 200   1840  5824  0.001 0.006 24.12 21.3  0.0015 0.0056 24.12 21.3  1530 17.754 67.612 17.17 0.002 
   2 w2746809697I  611787.1  1.00 1518.8   68.1 200   1823  5876  0.004 0.006 23.00 21.2  0.0028 0.0040 23.43 21.6  3048 33.986 48.681 16.46 0.002 
   3 w2746820943I  623033.1  1.00 1197.8   72.6 200   1686  5852  0.013 0.007 21.75 20.7  0.0057 0.0036 22.65 21.5  4246 65.134 43.264 15.76 0.002 
    Sum (T+606076 to 624250):             206.1        182.8 (est. in src region)   SNR_unwtd_sum:   1.59 0.9987 signif. UL:  21.50
  0  4246 746811540  613629.7  10620.4  -7553.7    0.0057   0.0036 22.653  1.073  -0.528
Total wtd_rate (for all exposures so far):  0.340 +/- 3.574 snr:  0.1 mag: 21.46 UL: 14.36
Rebinned Data for sw00021705002uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.24e+03  613629.4  10620.7  -7553.4    0.0057   0.0036 22.65  0.53  613629.4    0.0057   0.0036 22.65  0.53 21.50
The data range from T+27718.2 s (0.32 d) to T+624250.1 s (7.23 d)
Wrote uvot_fluxes_240831d20h50m51s926994usUT.qdp
Wrote uvot_fluxes_240831d20h50m51s926994usUT.gif
Wrote uvot_fluxes_240831d20h50m51s926994usUT.ps
Wrote uvot_fluxes_240831d20h50m51s926994usUT_vis.qdp
Wrote uvot_fluxes_240831d20h50m51s926994usUT_uv.qdp
Wrote uvot_fluxes_240831d20h50m51s926994usUT_vis.gif
Wrote uvot_fluxes_240831d20h50m51s926994usUT_vis.ps
Wrote uvot_fluxes_240831d20h50m51s926994usUT_uv.gif
Wrote uvot_fluxes_240831d20h50m51s926994usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  u (0)  , v (0)  , b (0)  , white (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.0101   37550.9  20583.1  -9832.7   -0.0071   0.0969 99.00 99.00   37550.9   -0.0071   0.0969 99.00 99.00 21.57
The data range from T+27718.2 s (0.32 d) to T+624250.1 s (7.23 d)
Wrote uvot_fluxes_wtd_240831d20h50m51s926994usUT.qdp
Wrote uvot_fluxes_wtd_240831d20h50m51s926994usUT.gif
Wrote uvot_fluxes_wtd_240831d20h50m51s926994usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem