# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140621d21h24m40s928529usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020387002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -search_src_reg -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB140420A ===================
Used archived opt source position of 281.87087 49.73104 3.00
Reference: GCN_Circ-16425
The position is (18:47:29.01, +49:43:51.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(281.870873,+49.731037,3") # color=red dash=0
Region file centered at (281.870873,+49.731037), which is (18:47:29.01, +49:43:51.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 -12.15884 from trigger time of 424934128.02 in BAT summary file
# ============ Reading file sw00020387001uuu_sk.img ================
Long-term sensitivity correction is 0.097 at 424971776
The processing date in extension 0 is: 2014-06-20T21:13:46
The trigger time is: 424934140.17884. The reference is BAT GRB summary file
Using zero point of 18.437 for filter U
Use aperture correction of 1.100 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(281.870873,+49.731037,25")
fk5;-circle(281.870873,+49.731037,12.5")
fk5;-circle(281.874120,49.724583,6")
fk5;-circle(281.869824,49.729031,6")
fk5;-circle(281.874251,49.736692,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 uu424971776I   37636.2  1.00 1264.5  454.4 116  10461  5219  0.194 0.019 20.22 19.9  0.1938 0.0187 20.22 19.9  1264 40.900  3.951 16.26 0.026 
   2 uu424977555I   43414.9  1.00  454.0  140.6 112   3813  5213  0.143 0.029 20.55 20.0  0.1803 0.0158 20.30 20.0  1718 39.456  3.443 16.30 0.025 
    Sum (T+ 37636 to  43876):             595.0        314.4 (est. in src region)   SNR_unwtd_sum:  11.44 0.9987 signif. UL:  20.04
  0  1718 424973837   39696.4   4179.8  -2060.2    0.1803   0.0158 20.297  0.099  -0.091
Total wtd_rate (for all exposures so far): 39.456 +/- 3.424 snr: 11.5 mag: 16.30 UL: 14.19
# ============ Reading file sw00020387002uuu_sk.img ================
Long-term sensitivity correction is  0.097 at 425058146
The processing date in extension 0 is:  2014-06-21T21:04:05
The trigger time is: 424934140.17884. The reference is BAT GRB summary file
Using zero point of 18.437 for filter U
Use aperture correction of  1.100 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(281.870873,+49.731037,25")
fk5;-circle(281.870873,+49.731037,12.5")
fk5;-circle(281.874177,49.724573,6")
fk5;-circle(281.869796,49.729055,6")
fk5;-circle(281.874306,49.736602,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 uu425058145I  124005.5  1.00 1251.7  306.7 116  11322  5239  0.049 0.016 21.70 21.0  0.0493 0.0156 21.70 21.0  1252 33.898 10.706 16.46 0.007 
   2 uu425063828I  129687.9  1.00  661.7  130.6 108   5491  5174  0.027 0.019 22.37 21.1  0.0415 0.0122 21.89 21.2  1913 28.560  8.459 16.65 0.007 
    Sum (T+124005 to 130360):             437.2        365.3 (est. in src region)   SNR_unwtd_sum:   3.41 0.9987 signif. UL:  21.20
  0  1913 425060643  126502.8   3857.4  -2497.3    0.0415   0.0122 21.892  0.377  -0.279
Total wtd_rate (for all exposures so far): 38.424 +/- 3.199 snr: 12.0 mag: 16.33 UL: 14.23
Rebinned Data for sw00020387002uuu_sk.img using a zero point of 18.437:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.71e+03   39696.8   4179.4  -2060.6    0.1803   0.0158 20.30  0.09   39696.8    0.1803   0.0158 20.30  0.09 20.04
  1 1.91e+03  126503.5   3856.7  -2498.0    0.0415   0.0122 21.89  0.28   85443.0    0.1071   0.0098 20.86  0.10 20.60
The data range from T+37636.2 s (0.44 d) to T+130360.2 s (1.51 d)
Wrote uvot_fluxes_140621d21h24m40s928529usUT.qdp
Wrote uvot_fluxes_140621d21h24m40s928529usUT.gif
Wrote uvot_fluxes_140621d21h24m40s928529usUT.ps
Wrote uvot_fluxes_140621d21h24m40s928529usUT_vis.qdp
Wrote uvot_fluxes_140621d21h24m40s928529usUT_uv.qdp
Wrote uvot_fluxes_140621d21h24m40s928529usUT_vis.gif
Wrote uvot_fluxes_140621d21h24m40s928529usUT_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.290:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0   0.0153   39580.7   4295.5  -1944.5    0.9931   0.0869 20.30  0.09   39580.7    0.9931   0.0869 20.30  0.09 20.04
  1  0.00254  126667.5   3692.7  -2662.0    0.2235   0.0667 21.92  0.28   51942.0    0.7267   0.0613 20.64  0.09 20.39
The data range from T+37636.2 s (0.44 d) to T+130360.2 s (1.51 d)
Wrote uvot_fluxes_wtd_140621d21h24m40s928529usUT.qdp
Wrote uvot_fluxes_wtd_140621d21h24m40s928529usUT.gif
Wrote uvot_fluxes_wtd_140621d21h24m40s928529usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem