# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210706d21h25m50s096096usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021454002 -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
# ========= GRB210704A ===================
Could not find/read custom source region custom_021454_src.reg
Used archived opt source position of 159.02033 57.21625 3.00
Reference: GCN_Circulars-30384
The position is (10:36:04.88, +57:12:58.5)
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(159.02033,57.21625,3") # color=red dash=0
Source region spec. is: 159.02033 57.21625 3"
Region file centered at (159.02033,57.21625), which is (10:36:04.88, +57:12:58.5)
Could not find/read custom background region custom_021454_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 -27.30056 from uncorrected trigger time of 647120004.59 in BAT summary file
# ============ Reading file sw00021454002uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.214 at 647289357
The processing date in extension 0 is: 2021-07-06T21:17:46
The trigger time is: 647120031.89056. The reference is BAT GRB summary file
Using zero point of 17.676 for filter V
Use aperture correction of 1.087 based on aperture of 3.00
Using background region based on sources found in extension 2:
# 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(159.02033,57.21625,25")
fk5;-circle(159.02033,57.21625,12.5")
fk5;-circle(159.017900,57.224418,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 vv647289357I  169325.4  0.99   85.4   38.4 116   2243  5810 -0.081 0.080 99.00 19.4 -0.0813 0.0805 99.00 19.4    85 -152.903 151.332 99.00 0.001 
   2 vv647289446I  169415.0  0.99  861.0  440.7 120  22986  5856 -0.039 0.027 99.00 20.7 -0.0425 0.0256 99.00 20.8   946 -80.472 48.313 99.00 0.001 
   3 vv647290326I  170294.2  0.99   53.7   33.1 116   1435  5809  0.091 0.119 20.28 18.5 -0.0353 0.0251 99.00 20.8  1000 -66.715 47.284 99.00 0.001 
    Sum (T+169325 to 170349):             512.2        544.4 (est. in src region)   SNR_unwtd_sum:  -1.41 0.9987 signif. UL:  20.77
  0  1000 647289868  169836.3    512.4   -510.9   -0.0353   0.0251 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -66.715 +/-46.780 snr: -1.4 mag: 99.00 UL: 12.60
Rebinned Data for sw00021454002uvv_sk.img using a zero point of 17.676:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      992  169836.3    512.5   -510.9   -0.0353   0.0251 99.00 99.00  169836.3   -0.0353   0.0251 99.00 99.00 20.77
The data range from T+169325.4 s (1.96 d) to T+170348.8 s (1.97 d)
Wrote uvot_fluxes_210706d21h25m50s096096usUT.qdp
Wrote uvot_fluxes_210706d21h25m50s096096usUT.gif
Wrote uvot_fluxes_210706d21h25m50s096096usUT.ps
Wrote uvot_fluxes_210706d21h25m50s096096usUT_vis.qdp
Wrote uvot_fluxes_210706d21h25m50s096096usUT_uv.qdp
Wrote uvot_fluxes_210706d21h25m50s096096usUT_vis.gif
Wrote uvot_fluxes_210706d21h25m50s096096usUT_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 4.04e-05  169826.2    522.6   -500.8   -0.4112   0.2780 99.00 99.00  169826.2   -0.4112   0.2780 99.00 99.00 20.79
The data range from T+169325.4 s (1.96 d) to T+170348.8 s (1.97 d)
Wrote uvot_fluxes_wtd_210706d21h25m50s096096usUT.qdp
Wrote uvot_fluxes_wtd_210706d21h25m50s096096usUT.gif
Wrote uvot_fluxes_wtd_210706d21h25m50s096096usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem