# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140819d10h49m01s929784usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020404001 -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
# ========= GRB140809A ===================
Used archived opt source position of 176.72871 66.16681 3.00
Reference: GCN_Circulars-16675
The position is (11:46:54.89, +66:10:00.5)
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(176.72871,66.16681,3") # color=red dash=0
Region file centered at (176.72871,66.16681), which is (11:46:54.89, +66:10:00.5)
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.
Found 4 bright star(s) within 50.0 arcsec of 176.72871 66.16681:
ra: 176.7300 dec: 66.1627 mag: 11.21
ra: 176.7294 dec: 66.1624 mag: 11.87
ra: 176.7293 dec: 66.1618 mag: 11.12
ra: 176.7278 dec: 66.1604 mag: 11.29
Subtract UTCF of -12.37776 from trigger time of 429246670.2 in BAT summary file
# ============ Reading file sw00020404001uvv_sk.img ================
Long-term sensitivity correction is 0.144 at 429324792
The processing date in extension 0 is: 2014-08-19T10:40:27
The trigger time is: 429246682.57776. The reference is BAT GRB summary file
Using zero point of 18.034 for filter V
Use aperture correction of 1.087 based on aperture of 3.00
Using background region based on sources found in extension 3:
# 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(176.72871,66.16681,25")
fk5;-circle(176.72871,66.16681,12.5")
fk5;-circle(176.7300083,66.1626861,25")
fk5;-circle(176.7293050,66.1618178,25")
fk5;-circle(176.7278222,66.1603750,25")
 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 vv429324791I   78109.0  0.98  295.0  512.5 116   4515  2836  1.232 0.086 17.81 17.6  1.2316 0.0857 17.81 17.6   295 769.968 53.561 13.07 0.003 
   2 vv429325094I   78412.4  0.98  295.0  414.5 116   2944  2835  1.100 0.077 17.93 17.7  1.1658 0.0575 17.87 17.7   590 721.864 35.978 13.14 0.003 
   3 vv429325398I   78715.9  0.98  295.1  451.6 116   2629  2834  1.288 0.080 17.76 17.6  1.2065 0.0467 17.83 17.7   885 757.801 29.541 13.09 0.003 
    Sum (T+ 78109 to  79016):            1378.6        412.7 (est. in src region)   SNR_unwtd_sum:  25.86 0.9987 signif. UL:  17.71
  0   885 429325245   78562.3    453.4   -453.3    1.2065   0.0467 17.830  0.043  -0.041
Total wtd_rate (for all exposures so far): 757.801 +/-29.374 snr: 25.8 mag: 13.09 UL: 10.71
Rebinned Data for sw00020404001uvv_sk.img using a zero point of 18.034:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      871   78562.7    453.0   -453.7    1.2065   0.0467 17.83  0.04   78562.7    1.2065   0.0467 17.83  0.04 17.71
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020404001um2_sk.img ================
Long-term sensitivity correction is  0.098 at 429325703
The processing date in extension 0 is:  2014-08-19T10:40:27
The trigger time is: 429246682.57776. The reference is BAT GRB summary file
Using zero point of 16.948 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(176.72871,66.16681,25")
fk5;-circle(176.72871,66.16681,12.5")
fk5;-circle(176.7300083,66.1626861,25")
fk5;-circle(176.7293050,66.1618178,25")
fk5;-circle(176.7278222,66.1603750,25")
 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 m2429325702I   79020.4  1.00  173.6   16.4 112     60  2795  0.090 0.026 19.57 18.9  0.0895 0.0259 19.57 18.9   174 153.842 44.538 14.82 0.042 
    Sum (T+ 79020 to  79197):              16.4          2.4 (est. in src region)   SNR_unwtd_sum:   3.45 0.9987 signif. UL:  18.89
  0   174 429325791   79108.6     88.2    -88.2    0.0895   0.0259 19.568  0.371  -0.276
Total wtd_rate (for all exposures so far): 484.361 +/-26.093 snr: 18.6 mag: 13.58 UL: 10.07
Rebinned Data for sw00020404001um2_sk.img using a zero point of 16.948:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      173   79108.6     88.2    -88.2    0.0895   0.0259 19.57  0.28   79108.6    0.0895   0.0259 19.57  0.28 18.89
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020404001uw2_sk.img ================
Long-term sensitivity correction is  0.098 at 429323885
The processing date in extension 0 is:  2014-08-19T10:40:27
The trigger time is: 429246682.57776. The reference is BAT GRB summary file
Using zero point of 17.478 for filter UVW2
Use aperture correction of  1.108 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(176.72871,66.16681,25")
fk5;-circle(176.72871,66.16681,12.5")
fk5;-circle(176.7300083,66.1626861,25")
fk5;-circle(176.7293050,66.1618178,25")
fk5;-circle(176.7278222,66.1603750,25")
 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 w2429323885I   77202.7  1.00  885.6  126.2 116   1051  2783  0.103 0.014 19.94 19.6  0.1033 0.0142 19.94 19.6   886 106.902 14.678 15.22 0.020 
    Sum (T+ 77203 to  78102):             126.2         43.8 (est. in src region)   SNR_unwtd_sum:   7.28 0.9987 signif. UL:  19.57
  0   886 429324335   77652.6    449.9   -449.9    0.1033   0.0142 19.943  0.160  -0.140
Total wtd_rate (for all exposures so far): 241.306 +/-13.210 snr: 18.3 mag: 14.33 UL: 11.36
Rebinned Data for sw00020404001uw2_sk.img using a zero point of 17.478:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      884   77652.6    449.9   -449.9    0.1033   0.0142 19.94  0.14   77652.6    0.1033   0.0142 19.94  0.14 19.57
The data range from T+77202.7 s (0.89 d) to T+79196.8 s (0.92 d)
Wrote uvot_fluxes_140819d10h49m01s929784usUT.qdp
Wrote uvot_fluxes_140819d10h49m01s929784usUT.gif
Wrote uvot_fluxes_140819d10h49m01s929784usUT.ps
Wrote uvot_fluxes_140819d10h49m01s929784usUT_vis.qdp
Wrote uvot_fluxes_140819d10h49m01s929784usUT_uv.qdp
Wrote uvot_fluxes_140819d10h49m01s929784usUT_vis.gif
Wrote uvot_fluxes_140819d10h49m01s929784usUT_vis.ps
Wrote uvot_fluxes_140819d10h49m01s929784usUT_uv.gif
Wrote uvot_fluxes_140819d10h49m01s929784usUT_uv.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.000147   78574.1    441.6   -465.1    9.6036   0.3712 17.83  0.04   78574.1    9.6036   0.3712 17.83  0.04 17.71
The data range from T+77202.7 s (0.89 d) to T+79196.8 s (0.92 d)
Wrote uvot_fluxes_wtd_140819d10h49m01s929784usUT.qdp
Wrote uvot_fluxes_wtd_140819d10h49m01s929784usUT.gif
Wrote uvot_fluxes_wtd_140819d10h49m01s929784usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem