# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 141029d08h19m58s611384usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020420992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -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
# ========= GRB141028 ===================
Used archived XRT position of 322.60079 -0.23117 4.00
Reference: GCN_Circulars-16978-Tue,_28_Oct_2014_22:14:40_-0400_(EDT)
The position is (21:30:24.19, -00:13:52.2)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(322.60079,-0.23117,4") # color=red dash=0
Region file centered at (322.60079,-0.23117), which is (21:30:24.19, -00:13:52.2)
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.70312 from trigger time of 436186486.78 in BAT summary file
# ============ Reading file sw00020420992uuu_sk.img ================
Long-term sensitivity correction is 0.100 at 436217536
The processing date in extension 0 is: 2014-10-29T08:09:51
The trigger time is: 436186499.48312. The reference is BAT GRB summary file
Using zero point of 18.440 for filter U
Use aperture correction of 1.032 based on aperture of 4.00
Using background region based on sources found in extension 6:
# 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(322.60079,-0.23117,25")
fk5;-circle(322.60079,-0.23117,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 uu436217536I   31036.8  0.99  139.6   75.3 196   2229  5861  0.006 0.066 24.06 20.1  0.0057 0.0656 24.06 20.1   140  0.968 11.209 20.33 0.011 
   2 uu436224162I   37663.2  1.00   93.8   37.2 196   1430  5844 -0.120 0.069 99.00 20.5 -0.0447 0.0480 99.00 20.7   233 -7.364  8.875 99.00 0.010 
   3 uu436227947I   41447.9  0.99  131.4  102.6 184   3384  5800 -0.038 0.082 99.00 20.0 -0.0422 0.0425 99.00 20.9   365 -7.594  8.010 99.00 0.008 
   4 uu436234083I   47583.9  0.99  115.7   57.6 192   1872  5817 -0.038 0.069 99.00 20.2 -0.0410 0.0363 99.00 21.1   480 -7.958  7.326 99.00 0.008 
   5 uu436240209I   53710.1  0.99  341.9  204.7 196   5362  5823  0.074 0.044 21.27 20.2  0.0066 0.0280 23.89 21.0   822  0.220  6.410 21.93 0.007 
   6 uu436245959I   59459.9  0.99  344.4  195.2 192   5138  5856  0.081 0.043 21.18 20.1  0.0284 0.0234 22.30 20.9  1167  5.360  5.837 18.47 0.007 
   7 uu436251722I   65222.6  0.99  340.8  191.3 204   5543  5874 -0.004 0.043 99.00 20.6  0.0212 0.0206 22.63 21.1  1508  4.538  5.458 18.65 0.006 
    Sum (T+ 31037 to  65569):             863.9        833.1 (est. in src region)   SNR_unwtd_sum:   1.03 0.9987 signif. UL:  21.13
  0  1508 436239627   53127.6  12441.3 -22090.8    0.0212   0.0206 22.626  3.852  -0.737
Total wtd_rate (for all exposures so far):  4.538 +/- 5.371 snr:  0.8 mag: 18.65 UL: 15.13
Rebinned Data for sw00020420992uuu_sk.img using a zero point of 18.440:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.16e+03   49546.2  10263.6 -18509.4    0.0284   0.0234 22.30  0.65   49546.2    0.0284   0.0234 22.30  0.65 20.94
  1      339   65395.8    173.1   -173.1   -0.0037   0.0428 99.00 99.00   53129.5    0.0212   0.0206 22.63  0.74 21.13
The data range from T+31036.8 s (0.36 d) to T+65568.9 s (0.76 d)
Wrote uvot_fluxes_141029d08h19m58s611384usUT.qdp
Wrote uvot_fluxes_141029d08h19m58s611384usUT.gif
Wrote uvot_fluxes_141029d08h19m58s611384usUT.ps
Wrote uvot_fluxes_141029d08h19m58s611384usUT_vis.qdp
Wrote uvot_fluxes_141029d08h19m58s611384usUT_uv.qdp
Wrote uvot_fluxes_141029d08h19m58s611384usUT_vis.gif
Wrote uvot_fluxes_141029d08h19m58s611384usUT_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.00619   46898.8  18670.1 -15862.0    0.0553   0.1156 23.43  1.23   46898.8    0.0553   0.1156 23.43  1.23 21.24
The data range from T+31036.8 s (0.36 d) to T+65568.9 s (0.76 d)
Wrote uvot_fluxes_wtd_141029d08h19m58s611384usUT.qdp
Wrote uvot_fluxes_wtd_141029d08h19m58s611384usUT.gif
Wrote uvot_fluxes_wtd_141029d08h19m58s611384usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem