# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220702d06h42m44s807671usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01114148992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/data/uvot/swift_data/home/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /data/uvot/swift_data/home/uvot_lc
# ========= GRB220702 ===================
Could not find/read custom source region custom_1114148_src.reg
Used archived XRT position of 264.57400 -26.99330 4.00
Reference: GCN_Notice_Sat_02_Jul_22_02:21:10_UT-ground
The position is (17:38:17.76, -26:59:35.9)
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(264.5740,-26.9933,4") # color=red dash=0
Source region spec. is: 264.5740 -26.9933 4"
Region file centered at (264.5740,-26.9933), which is (17:38:17.76, -26:59:35.9)
Could not find/read custom background region custom_1114148_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 -29.40624 from uncorrected trigger time of 678419586.57 in BAT summary file
# ============ Reading file sw01114148992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 678420549
The processing date in extension 0 is: 2022-07-02T06:37:44
The trigger time is: 678419615.97624. The reference is BAT GRB summary file
Using zero point of 20.115 for filter WHITE
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(264.5740,-26.9933,25")
fk5;-circle(264.5740,-26.9933,12.5")
fk5;-circle(264.571159,-26.990091,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 wh678420548I     932.8  0.94   45.7  306.9 203   7701  5535  0.591 0.430 20.69 19.4  0.5911 0.4304 20.69 19.4    46  0.664  0.483 20.73 0.135 
   2 wh678420548E     933.9  0.94   44.7  293.3 200   7481  5517  0.545 0.430 20.77 19.4 
    Sum (T+   933 to    979):             306.9        282.4 (est. in src region)   SNR_unwtd_sum:   1.37 0.9987 signif. UL:  19.42
  0    46 678420572     956.1     23.2    -23.2    0.5911   0.4304 20.686  1.413  -0.594
Total wtd_rate (for all exposures so far):  0.664 +/- 0.476 snr:  1.4 mag: 20.73 UL: 19.30
Rebinned Data for sw01114148992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     42.8     956.1     23.2    -23.2    0.5911   0.4304 20.69  0.59     956.1    0.5911   0.4304 20.69  0.59 19.42
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01114148992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.218 at 678420526
The processing date in extension 0 is:  2022-07-02T06:37:41
The trigger time is: 678419615.97624. The reference is BAT GRB summary file
Using zero point of 17.672 for filter V
Use aperture correction of  1.030 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(264.5740,-26.9933,25")
fk5;-circle(264.5740,-26.9933,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 vv678420526E     910.4  0.99   13.6   24.0 207    629  5837  0.131 0.383 19.88 17.4  0.1312 0.3830 19.88 17.4    14  1.342  3.917 19.97 0.059 
    Sum (T+   910 to    924):              24.0         22.3 (est. in src region)   SNR_unwtd_sum:   0.34 0.9987 signif. UL:  17.36
  0    14 678420533     917.3      6.9     -6.9    0.1312   0.3830 19.877 79.123  -1.483
Total wtd_rate (for all exposures so far):  0.671 +/- 0.470 snr:  1.4 mag: 20.72 UL: 16.87
Rebinned Data for sw01114148992uvv_sk.img using a zero point of 17.672:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     13.4     917.3      6.9     -6.9    0.1312   0.3830 19.88  1.48     917.3    0.1312   0.3830 19.88  1.48 17.36
The data range from T+910.4 s (0.01 d) to T+979.3 s (0.01 d)
Wrote uvot_fluxes_220702d06h42m44s807671usUT.qdp
Wrote uvot_fluxes_220702d06h42m44s807671usUT.gif
Wrote uvot_fluxes_220702d06h42m44s807671usUT.ps
Wrote uvot_fluxes_220702d06h42m44s807671usUT_vis.qdp
Wrote uvot_fluxes_220702d06h42m44s807671usUT_uv.qdp
Wrote uvot_fluxes_220702d06h42m44s807671usUT_vis.gif
Wrote uvot_fluxes_220702d06h42m44s807671usUT_vis.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  u (0)  , white (0)  , b (0)  , v (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     3.65     956.0     23.3    -45.6    0.6958   0.5050 20.68  0.59     956.0    0.6958   0.5050 20.68  0.59 19.42
The data range from T+910.4 s (0.01 d) to T+979.3 s (0.01 d)
Wrote uvot_fluxes_wtd_220702d06h42m44s807671usUT.qdp
Wrote uvot_fluxes_wtd_220702d06h42m44s807671usUT.gif
Wrote uvot_fluxes_wtd_220702d06h42m44s807671usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem