# uvot_fluxes_wget.pl vrs. 2011-11-14 fem at 111215d21h44m48s640097usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020189002 -use_uvot -rebin -plot_mag -wrk_dir=/local/data/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/data/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB111205A ===================
Used archived XRT position of 134.67929 -31.94328 4.00
Reference: GCN_Circulars-12630-Thu,_8_Dec_2011_14:40:47_-0500_(EST)
The position is (08:58:43.03, -31:56:35.8)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global color=red font="helvetica 10 normal" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source
fk5;circle(134.67929,-31.94328,4")
Region file centered at (134.67929,-31.94328), which is (08:58:43.03, -31:56:35.8)
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 -7.64082 from trigger time of 344783450 in BAT summary file
# ============ Reading file sw00020189001um2_sk.img ================
The processing date in extension 0 is: 2011-12-13T10:51:59
The trigger time is: 344783457.64082. The reference is BAT GRB summary file
Using zero point of 16.85 for filter UVM2
Use aperture correction of 1.031 based on aperture of 4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1  108.5 134.48426 -31.97277 0.286 135.4
  2  113.8 134.47997 -31.96536 0.286 135.4
  3  130.6 134.47553 -31.96913 0.286 135.4
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(134.67929,-31.94328,25")
fk5;-circle(134.67929,-31.94328,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
Low  bkg:   1 m2344981852I 2319.1      0  5884  0.000  0.000
%  1 m2344981852I  198394.7  1.00 2319.1    0.0 208      0  5884 
Low  bkg:   2 m2344987789I 2161.2      0  4408  0.000  0.000
%  2 m2344987789I  204332.2  1.00 2161.2    0.0 200      0  4408 
Low  bkg:   3 m2344993752I  422.0      0  2884  0.000  0.001
%  3 m2344993752I  210295.0  1.00  422.0    0.0  84      0  2884 
# ============ Reading file sw00020189002um2_sk.img ================
Use keyword TRIGTIME of 344783457.599 for trigger time.
The processing date in extension 0 is:  2011-12-15T21:13:22
The trigger time is: 344783457.599. The reference is keyword in image file
Using zero point of 16.85 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1    3.5 134.51865 -31.96854 0.286 135.6
  2   85.3 134.48238 -31.94287 0.286 135.6
  3   64.8 134.49158 -31.94962 0.286 135.6
  4   75.2 134.48877 -31.95184 0.286 135.6
  5   47.5 134.49931 -31.95530 0.286 135.6
  6  248.5 134.44193 -31.98851 0.286 135.6
Using background region based on sources found in extension 5:
# 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(134.67929,-31.94328,25")
fk5;-circle(134.67929,-31.94328,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 m2345611662I  828204.9  1.00 1632.3  102.6 204   1697  5833 
Low  bkg:   2 m2345617423I 1631.6      0  2020  0.000  0.000
%  2 m2345617423I  833965.5  1.00 1631.6    0.0   0      0  2020 
Low  bkg:   3 m2345623242I 1632.0      0  5844  0.000  0.000
%  3 m2345623242I  839785.1  1.00 1632.0    0.0 200      0  5844 
Low  bkg:   4 m2345629002I 1632.4      0  5088  0.000  0.000
%  4 m2345629002I  845544.7  1.00 1632.4    0.0 204      0  5088 
Low  bkg:   5 m2345634762I 1632.4      0  5844  0.000  0.000
%  5 m2345634762I  851304.7  1.00 1632.4    0.0 200      0  5844 
%  6 m2345664143I  880685.8  1.00 1178.7    0.0   0      0     0 
Wrote uvot_fluxes_111215d21h44m48s640097usUT.qdp
Failed to write uvot_fluxes_111215d21h44m48s640097usUT.gif
Failed to write uvot_fluxes_111215d21h44m48s640097usUT.ps
Wrote uvot_fluxes_111215d21h44m48s640097usUT_vis.qdp
Wrote uvot_fluxes_111215d21h44m48s640097usUT_uv.qdp
Found 7 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2011-11-14 fem