# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 241010d01h11m08s924593usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021721002 -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
# ========= GRB241002B ===================
Could not find/read custom source region custom_021721_src.reg
Used archived opt source position of 328.31900 -58.94777 3.00
Reference: GCN_Circulars-37676
The position is (21:53:16.56, -58:56:52.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(328.3190,-58.94777,3") # color=red dash=0
Source region spec. is: 328.3190 -58.94777 3"
Region file centered at (328.3190,-58.94777), which is (21:53:16.56, -58:56:52.0)
Could not find/read custom background region custom_021721_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.27664 from uncorrected trigger time of 749542458 in BAT summary file
# ============ Reading file sw00021721001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.235 at 749677030
The processing date in extension 0 is: 2024-10-04T02:09:11
The trigger time is: 749542492.27664. The reference is BAT GRB summary file
Using zero point of 18.105 for filter U
Use aperture correction of 1.100 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(328.3190,-58.94777,25")
fk5;-circle(328.3190,-58.94777,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 uu749677030I  134538.2  1.00 1466.9  492.9 120  18714  5882  0.084 0.017 20.80 20.3  0.0837 0.0168 20.80 20.3  1467 84.749 17.060 15.47 0.004 
   2 uu749683927I  141434.9  1.00  888.3  225.0 108  10044  5837  0.049 0.019 21.39 20.5  0.0705 0.0127 20.98 20.5  2355 71.289 12.971 15.66 0.004 
   3 uu749688327I  145835.4  0.99  263.9  121.1 116   4516  5837  0.131 0.046 20.31 19.5  0.0766 0.0123 20.89 20.5  2619 76.013 12.569 15.59 0.004 
    Sum (T+134538 to 146104):             839.0        657.4 (est. in src region)   SNR_unwtd_sum:   6.22 0.9987 signif. UL:  20.46
  0  2619 749681092  138599.4   7504.1  -4061.2    0.0766   0.0123 20.894  0.190  -0.162
Total wtd_rate (for all exposures so far): 76.013 +/-12.473 snr:  6.1 mag: 15.59 UL: 12.97
# ============ Reading file sw00021721002uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.236 at 750141379
The processing date in extension 0 is:  2024-10-10T01:01:48
The trigger time is: 749542492.27664. The reference is BAT GRB summary file
Using zero point of 18.104 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
Using background region based on sources found in extension 3:
# 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(328.3190,-58.94777,25")
fk5;-circle(328.3190,-58.94777,12.5")
fk5;-circle(328.311804,-58.943831,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 uu750141378I  598886.5  1.00 1281.6  372.5 116  15521  5425  0.035 0.017 21.74 20.8  0.0351 0.0168 21.74 20.8  1282 157.414 75.371 14.80 0.001 
   2 uu750175346I  632854.5  1.00 1450.9  349.9 104  17997  5380  0.002 0.014 25.13 21.4  0.0173 0.0110 22.51 21.3  2732 78.945 50.633 15.55 0.001 
   3 uu750180986I  638493.9  1.00 1569.6  387.2 104  19184  5424  0.014 0.014 22.77 21.2  0.0159 0.0086 22.60 21.5  4302 74.009 40.364 15.62 0.001 
    Sum (T+598886 to 640089):            1109.7       1047.6 (est. in src region)   SNR_unwtd_sum:   1.85 0.9987 signif. UL:  21.55
  0  4302 750168019  625526.5  14562.2 -26640.0    0.0159   0.0086 22.598  0.846  -0.470
Total wtd_rate (for all exposures so far): 75.862 +/-11.920 snr:  6.4 mag: 15.59 UL: 12.98
Rebinned Data for sw00021721002uuu_sk.img using a zero point of 18.104:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.61e+03  138598.6   7504.9  -4060.5    0.0766   0.0123 20.89  0.16  138598.6    0.0766   0.0123 20.89  0.16 20.46
  1 4.28e+03  625529.0  14559.7 -26642.5    0.0159   0.0086 22.60  0.47  441280.6    0.0389   0.0071 21.63  0.18 21.15
The data range from T+134538.2 s (1.56 d) to T+640088.7 s (7.41 d)
Wrote uvot_fluxes_241010d01h11m08s924593usUT.qdp
Wrote uvot_fluxes_241010d01h11m08s924593usUT.gif
Wrote uvot_fluxes_241010d01h11m08s924593usUT.ps
Wrote uvot_fluxes_241010d01h11m08s924593usUT_vis.qdp
Wrote uvot_fluxes_241010d01h11m08s924593usUT_uv.qdp
Wrote uvot_fluxes_241010d01h11m08s924593usUT_vis.gif
Wrote uvot_fluxes_241010d01h11m08s924593usUT_vis.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  u (0)  , v (0)  , white (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.000847  138556.2   7547.3  -4018.1    0.5429   0.0907 20.95  0.17  138556.2    0.5429   0.0907 20.95  0.17 20.51
  1 8.22e-05  625917.4  14171.3 -27030.9    0.1140   0.0644 22.65  0.49  181657.0    0.4122   0.0660 21.25  0.16 20.82
The data range from T+134538.2 s (1.56 d) to T+640088.7 s (7.41 d)
Wrote uvot_fluxes_wtd_241010d01h11m08s924593usUT.qdp
Wrote uvot_fluxes_wtd_241010d01h11m08s924593usUT.gif
Wrote uvot_fluxes_wtd_241010d01h11m08s924593usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem