# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210217d12h03m35s124487usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01033144992 -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
# ========= GRB210217 ===================
Could not find/read custom source region custom_1033144_src.reg
Used archived XRT position of 277.67275 -6.75439 4.00
Reference: GRB_Auto_Processing-Wed,_17_Feb_2021_08:16:36_+0000
The position is (18:30:41.46, -06:45:15.8)
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(277.67275,-6.75439,4") # color=red dash=0
Source region spec. is: 277.67275 -6.75439 4"
Region file centered at (277.67275,-6.75439), which is (18:30:41.46, -06:45:15.8)
Could not find/read custom background region custom_1033144_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 -26.49692 from uncorrected trigger time of 635242281.31 in BAT summary file
# ============ Reading file sw01033144992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.180 at 635242385
The processing date in extension 0 is: 2021-02-17T11:56:28
The trigger time is: 635242307.80692. The reference is BAT GRB summary file
Using zero point of 20.110 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(277.67275,-6.75439,25")
fk5;-circle(277.67275,-6.75439,12.5")
fk5;-circle(277.668440,-6.758753,6")
fk5;-circle(277.673404,-6.757593,6")
fk5;-circle(277.679654,-6.757432,6")
fk5;-circle(277.669690,-6.752825,6")
fk5;-circle(277.670934,-6.749796,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
High bkg:   1 wh635242384I  147.4  44602  4470 67.690  0.321
   1 wh635242384I      76.8  0.83  147.4 2668.9 198  44602  4693  6.659 0.443 18.05 17.9  6.6588 0.4434 18.05 17.9   147  1.192  0.079 20.10 0.363 
above line uses coinc_corr_src:  0.830 corr_bkg:  0.871
High bkg:   2 wh635242384E  147.4  44598  4476 67.596  0.320
   2 wh635242384E      76.8  0.84  147.4 2702.5 203  44598  4668  6.411 0.444 18.09 17.9 
above line uses coinc_corr_src:  0.835 corr_bkg:  0.871
    Sum (T+    77 to    227):            2668.9       1881.7 (est. in src region)   SNR_unwtd_sum:  15.02 0.9987 signif. UL:  17.85
  0   147 635242460     151.7     74.9    -74.9    6.6588   0.4434 18.052  0.075  -0.070
Total wtd_rate (for all exposures so far):  1.192 +/- 0.078 snr: 15.2 mag: 20.10 UL: 19.72
Rebinned Data for sw01033144992uwh_sk.img using a zero point of 20.110:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      122     151.7     74.9    -74.9    6.6588   0.4434 18.05  0.07     151.7    6.6588   0.4434 18.05  0.07 17.85
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01033144992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.212 at 635242366
The processing date in extension 0 is:  2021-02-17T11:56:07
The trigger time is: 635242307.80692. The reference is BAT GRB summary file
Using zero point of 17.678 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(277.67275,-6.75439,25")
fk5;-circle(277.67275,-6.75439,12.5")
fk5;-circle(277.668488,-6.758722,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
High bkg:   1 vv635242365E    9.1    918  5493 18.435  0.608
   1 vv635242365E      57.7  0.95    9.1   50.4 195    918  5575  2.183 0.857 16.83 16.0 
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01033144992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.189 at 635242597
The processing date in extension 0 is:  2021-02-17T11:56:28
The trigger time is: 635242307.80692. The reference is BAT GRB summary file
Using zero point of 18.151 for filter U
Use aperture correction of  1.032 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(277.67275,-6.75439,25")
fk5;-circle(277.67275,-6.75439,12.5")
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw01033144992ugu_sk.img ================
The data range from T+76.8 s (0.00 d) to T+226.6 s (0.00 d)
Wrote uvot_fluxes_210217d12h03m35s124487usUT.qdp
Wrote uvot_fluxes_210217d12h03m35s124487usUT.gif
Wrote uvot_fluxes_210217d12h03m35s124487usUT.ps
Wrote uvot_fluxes_210217d12h03m35s124487usUT_vis.qdp
Wrote uvot_fluxes_210217d12h03m35s124487usUT_uv.qdp
Wrote uvot_fluxes_210217d12h03m35s124487usUT_vis.gif
Wrote uvot_fluxes_210217d12h03m35s124487usUT_vis.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem