# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 170227d08h39m15s887595usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020740002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB170214A ===================
Used archived opt source position of 256.34125 -1.88769 3.00
Reference: GCN_Circ-20683
The position is (17:05:21.90, -01:53:15.7)
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(256.34125,-1.88769,3") # color=red dash=0
Region file centered at (256.34125,-1.88769), which is (17:05:21.90, -01:53:15.7)
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 -18.6245 from uncorrected trigger time of 508779266.92 in BAT summary file
# ============ Reading file sw00020740002uw2_sk.img ================
Use keyword TRIGTIME of 508779285.381 for trigger time.
Long-term sensitivity correction to zero point is -0.338 at 509023567
The processing date in extension 0 is: 2017-02-27T08:19:34
The trigger time is: 508779285.381. The reference is keyword in image file
Using zero point of 17.042 for filter UVW2
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 6:
# 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(256.34125,-1.88769,25")
fk5;-circle(256.34125,-1.88769,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 w2509023566I  244281.5  1.00  702.9   28.7 108   1380  5828  0.005 0.009 22.80 20.8  0.0050 0.0085 22.80 20.8   703 24.289 41.517 16.83 0.006 
   2 w2509024763I  245478.0  1.00  232.6   17.5 112    734  5820  0.016 0.020 21.52 19.8  0.0078 0.0081 22.32 20.8   935 33.287 38.271 16.48 0.005 
#  3 w2509029326I  250040.7  1.00 1391.0   78.8 112   3754  5856 
   4 w2509046024I  266739.1  1.00  272.2   13.3 116    550  5865  0.010 0.015 22.04 20.2  0.0083 0.0071 22.25 20.8  1208 37.224 34.510 16.36 0.005 
   5 w2509052386I  273101.0  1.00 1291.7   83.3 112   3668  5816  0.011 0.008 21.95 20.7  0.0096 0.0053 22.09 21.0  2499 45.906 26.928 16.14 0.004 
   6 w2509057545I  278260.6  1.00 1776.8   81.0 112   4676  5856 -0.005 0.006 99.00 21.6  0.0034 0.0039 23.20 21.6  4276 18.752 20.630 17.11 0.004 
    Sum (T+244282 to 280066):             223.9        210.6 (est. in src region)   SNR_unwtd_sum:   0.88 0.9987 signif. UL:  21.57
  0  4276 509048533  269247.3  10818.6 -24965.8    0.0034   0.0039 23.199 75.801  -0.824
Total wtd_rate (for all exposures so far): 18.752 +/-20.449 snr:  0.9 mag: 17.11 UL: 12.26
Rebinned Data for sw00020740002uw2_sk.img using a zero point of 17.042:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.27e+03  269246.4  10819.5 -24964.9    0.0034   0.0039 23.20  0.82  269246.4    0.0034   0.0039 23.20  0.82 21.57
The data range from T+244281.5 s (2.83 d) to T+280065.9 s (3.24 d)
Wrote uvot_fluxes_170227d08h39m15s887595usUT.qdp
Wrote uvot_fluxes_170227d08h39m15s887595usUT.gif
Wrote uvot_fluxes_170227d08h39m15s887595usUT.ps
Wrote uvot_fluxes_170227d08h39m15s887595usUT_vis.qdp
Wrote uvot_fluxes_170227d08h39m15s887595usUT_uv.qdp
Wrote uvot_fluxes_170227d08h39m15s887595usUT_uv.gif
Wrote uvot_fluxes_170227d08h39m15s887595usUT_uv.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem