# uvot_fluxes_wget.pl vrs. 2010-04-14 fem at 100429d06h59m35s421065usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020137992 -use_uvot -rebin -plot_mag -wrk_dir=/local/data/khamseen10/uvot_tdrss/uvot_lc -web -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/data/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB100427A ===================
Used archived BAT position of 89.17100 -3.46100
Reference: GCN_Circ_10699
The position is (05:56:41.04, -03:27:39.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global color=red font="helvetica 10 normal" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source
fk5;circle(89.171,-3.461,3")
Region file centered at (89.171,-3.461), which is (05:56:41.04, -03:27: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 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -5.73812 from trigger time of 294049915 in BAT summary file
# ============ Reading file sw00020137992uuu_sk.img ================
The processing date in extension 0 is: 2010-04-29T06:49:55
The trigger time is: 294049920.73812. The reference is BAT GRB summary file
Using zero point of 18.34 for filter U
Use aperture correction of 1.100 based on aperture of 3.00
Using background region based on sources found in extension 9:
# 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(89.171,-3.461,25")
fk5;-circle(89.171,-3.461,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 uu294160140I  110219.8  0.98  641.6  557.6 112  30130  5828  0.000 0.042 99.00 20.0  0.0000 0.0423 99.00 20.0   642  0.000 28.170 99.00 0.002 
High bkg:   2 uu294164042I   57.5   6062  5824 18.102  0.233
   2 uu294164042I  114121.8  0.97   57.5  121.3 112   6062  5824  0.000 0.216 99.00 18.2  0.0000 0.0426 99.00 20.0   699  0.000 27.676 99.00 0.001 
   3 uu294165968I  116047.6  0.98  596.9  560.3 116  28096  5852  0.000 0.045 99.00 20.0  0.0000 0.0308 99.00 20.4  1296  0.000 20.722 99.00 0.001 
   4 uu294169825I  119905.2  0.97  329.7  487.7 112  26064  5852  0.000 0.077 99.00 19.4  0.0000 0.0291 99.00 20.4  1626  0.000 19.428 99.00 0.001 
   5 uu294172009I  122089.1  0.98  341.8  316.6 112  16330  5872  0.000 0.058 99.00 19.7  0.0000 0.0261 99.00 20.5  1968  0.000 17.698 99.00 0.001 
   6 uu294175638I  125718.1  0.98  632.0  861.4 116  41224  5832  0.000 0.051 99.00 19.8  0.0000 0.0234 99.00 20.7  2600  0.000 16.119 99.00 0.001 
   7 uu294178079I  128159.1  0.98   59.9   60.6 116   2923  5872  0.000 0.143 99.00 18.7  0.0000 0.0231 99.00 20.7  2659  0.000 15.951 99.00 0.001 
   8 uu294181421I  131500.5  0.98 1023.4 1178.1 116  59815  5848  0.000 0.038 99.00 20.1  0.0000 0.0197 99.00 20.8  3683  0.000 14.116 99.00 0.001 
   9 uu294187203I  137283.1  0.98 1414.6 1421.3 108  78189  5824  0.000 0.030 99.00 20.4  0.0000 0.0166 99.00 21.0  5097  0.000 12.327 99.00 0.001 
  10 uu294192953I  143032.8  0.98  738.9 1040.1 120  49558  5856  0.000 0.049 99.00 19.8  0.0000 0.0157 99.00 21.1  5836  0.000 11.836 99.00 0.001 
    Sum (T+110220 to 143784):            6592.5       6592.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.08
Total wtd_rate (for all exposures so far):  0.000 +/-11.723 snr:  0.0 mag: 99.00 UL: 13.90
Rebinned Data for sw00020137992uuu_sk.img using a zero point of 18.34:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 5.72e+03  128827.2  14956.3 -18607.4    0.0000   0.0157 99.00 99.00  128827.2    0.0000   0.0157 99.00 99.00 21.58
The data range from T+110219.8 s (1.28 d) to T+143783.5 s (1.66 d)
Wrote uvot_fluxes_100429d06h59m35s421065usUT.qdp
Wrote uvot_fluxes_100429d06h59m35s421065usUT.gif
Wrote uvot_fluxes_100429d06h59m35s421065usUT.ps
Wrote uvot_fluxes_100429d06h59m35s421065usUT_vis.qdp
Wrote uvot_fluxes_100429d06h59m35s421065usUT_uv.qdp
Wrote uvot_fluxes_100429d06h59m35s421065usUT_vis.gif
Wrote uvot_fluxes_100429d06h59m35s421065usUT_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.00118  126194.9  17588.6 -15975.1    0.0000   0.0938 99.00 99.00  126194.9    0.0000   0.0938 99.00 99.00 21.59
The data range from T+110219.8 s (1.28 d) to T+143783.5 s (1.66 d)
Wrote uvot_fluxes_wtd_100429d06h59m35s421065usUT.qdp
Wrote uvot_fluxes_wtd_100429d06h59m35s421065usUT.gif
Wrote uvot_fluxes_wtd_100429d06h59m35s421065usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2010-04-14 fem