# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 170304d23h42m53s223185usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020741001 -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
# ========= GRB170222A ===================
Used archived BAT position of 292.95600 28.21100
Reference: GCN_Circ-20722
The position is (19:31:49.44, +28:12:39.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(292.956,28.211,3") # color=red dash=0
Region file centered at (292.956,28.211), which is (19:31:49.44, +28:12:39.6)
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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 32400.0,
3 sigma should become about 5.5 sigma and 2 sigma should become about 5.0 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999996.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -18.6508 from uncorrected trigger time of 509432459 in BAT summary file
# ============ Reading file sw00020741001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.274 at 509466216
The processing date in extension 0 is: 2017-03-04T23:02:01
The trigger time is: 509432477.6508. The reference is BAT GRB summary file
Using zero point of 16.576 for filter UVM2
Use aperture correction of 1.106 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(292.956,28.211,25")
fk5;-circle(292.956,28.211,12.5")
fk5;-circle(292.961892,28.216719,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 m2509466215I   33738.3  1.00 1385.9   54.0 120   2667  5796  0.000 0.006 99.00 20.3  0.0000 0.0060 99.00 20.3  1386  0.000  6.316 99.00 0.024 
   2 m2509470989I   38512.2  1.00  373.5   11.0 104    627  5708  0.000 0.010 99.00 19.7  0.0000 0.0052 99.00 20.4  1759  0.000  5.586 99.00 0.024 
    Sum (T+ 33738 to  38892):              66.6         66.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999959876543 signif. UL:  20.44
  0  1759 509467824   35346.6   3545.1  -1608.3    0.0000   0.0052 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 5.530 snr:  0.0 mag: 99.00 UL: 12.87
Rebinned Data for sw00020741001um2_sk.img using a zero point of 16.576:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.76e+03   35346.7   3545.1  -1608.4    0.0000   0.0052 99.00 99.00   35346.7    0.0000   0.0052 99.00 99.00 21.02
The data range from T+33738.3 s (0.39 d) to T+38891.7 s (0.45 d)
Wrote uvot_fluxes_170304d23h42m53s223185usUT.qdp
Wrote uvot_fluxes_170304d23h42m53s223185usUT.gif
Wrote uvot_fluxes_170304d23h42m53s223185usUT.ps
Wrote uvot_fluxes_170304d23h42m53s223185usUT_vis.qdp
Wrote uvot_fluxes_170304d23h42m53s223185usUT_uv.qdp
Wrote uvot_fluxes_170304d23h42m53s223185usUT_uv.gif
Wrote uvot_fluxes_170304d23h42m53s223185usUT_uv.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem