# uvot_fluxes_wget.pl vrs. 2010-04-14 fem at 100417d15h21m25s417984usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020136992 -use_uvot -rebin -plot_mag -wrk_dir=/local/data/khamseen10/uvot_tdrss/uvot_lc -web -usex -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/data/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB100414A ===================
Used archived opt source position of 192.11233 8.69303 3.00
Reference: GCN_Circ-10608
The position is (12:48:26.96, +08:41:34.9)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global color=red font="helvetica 10 normal" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source
fk5;circle(192.11233,8.69303,3")
Region file centered at (192.11233,8.69303), which is (12:48:26.96, +08:41:34.9)
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 -5.70362 from trigger time of 292904422 in BAT summary file
# ============ Reading file sw00020136992uwh_sk.img ================
The processing date in extension 0 is: 2010-04-17T00:30:35
The trigger time is: 292904427.70362. The reference is BAT GRB summary file
Using zero point of 20.29 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  3   -6.6 192.07355   8.56297 0.286 351.7
  4    0.3 192.07269   8.56124 0.286 351.7
  5   -1.5 192.07463   8.56108 0.286 351.7
  6    4.3 192.07379   8.55966 0.286 351.7
 10  -28.0 192.12963   8.54858 0.286 351.7
Using background region based on sources found in extension 8:
# 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(192.11233,8.69303,25")
fk5;-circle(192.11233,8.69303,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 wh293078607I  174180.2  0.96  214.3  580.7 116  22435  5901  0.751 0.131 20.60 20.1  0.7515 0.1306 20.60 20.1   214 130.974 22.762 15.00 0.003 
   2 wh293078828I  174401.1  0.96  550.5 1386.2 108  56165  5862  0.735 0.078 20.62 20.3  0.7398 0.0673 20.62 20.4   765 129.096 11.739 15.01 0.003 
Low  bkg:   3 wh293084487I  206.4  12110  5876  9.984  0.091
%  3 wh293084487I  180059.5  0.97  206.4  481.6 112  12110  5957 
Low  bkg:   5 wh293090259I  207.4  10398  5832  8.595  0.084
%  5 wh293090259I  185831.8  0.98  207.4  193.5 112  10398  5831 
Low  bkg:   6 wh293090473I  165.2   8571  5868  8.844  0.096
%  6 wh293090473I  186045.5  0.98  165.2  195.3 116   8571  5873 
   7 wh293095963I  191535.7  0.96  213.4  543.1 116  22053  5882  0.583 0.126 20.88 20.3  0.7055 0.0594 20.67 20.4   978 125.961 10.568 15.04 0.003 
   8 wh293096183I  191755.6  0.97 1513.3 3556.1 108 152678  5836  0.554 0.046 20.93 20.7  0.6132 0.0362 20.82 20.6  2492 114.714  6.749 15.14 0.003 
   9 wh293101775I  197348.2  0.96  211.4  593.8 128  21994  5910  0.640 0.134 20.77 20.2  0.6153 0.0349 20.82 20.6  2703 115.410  6.539 15.13 0.003 
% 10 wh293101993I  197565.9  0.96 1593.2 4041.3 116 164814  5901 
    Sum (T+174180 to 197563):            6659.9       5212.5 (est. in src region)   SNR_unwtd_sum:  17.60 0.9987 signif. UL:  20.65
Total wtd_rate (for all exposures so far): 115.410 +/- 6.492 snr: 17.8 mag: 15.13 UL: 14.96
Rebinned Data for sw00020136992uwh_sk.img using a zero point of 20.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.61e+03  187772.8   9790.1 -13592.6    0.6153   0.0349 20.82  0.06  187772.8    0.6153   0.0349 20.82  0.06 20.65
The data range from T+174180.2 s (2.02 d) to T+197562.9 s (2.29 d)
Wrote uvot_fluxes_100417d15h21m25s417984usUT.qdp
Wrote uvot_fluxes_100417d15h21m25s417984usUT.gif
Wrote uvot_fluxes_100417d15h21m25s417984usUT.ps
Wrote uvot_fluxes_100417d15h21m25s417984usUT_vis.qdp
Wrote uvot_fluxes_100417d15h21m25s417984usUT_uv.qdp
Wrote uvot_fluxes_100417d15h21m25s417984usUT_vis.gif
Wrote uvot_fluxes_100417d15h21m25s417984usUT_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.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0   0.0234  187195.4  10367.5 -13015.2    0.6152   0.0349 20.82  0.06  187195.4    0.6152   0.0349 20.82  0.06 20.65
The data range from T+174180.2 s (2.02 d) to T+197562.9 s (2.29 d)
Wrote uvot_fluxes_wtd_100417d15h21m25s417984usUT.qdp
Wrote uvot_fluxes_wtd_100417d15h21m25s417984usUT.gif
Wrote uvot_fluxes_wtd_100417d15h21m25s417984usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2010-04-14 fem