# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140116d05h46m54s127035usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020352001 -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
# ========= GRB140110A ===================
Used archived XRT position of 28.94482 -36.43079 4.00
Reference: GCN_Circulars-15721
The position is (01:55:46.76, -36:25:50.8)
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(28.94482,-36.43079,4") # color=red dash=0
Region file centered at (28.94482,-36.43079), which is (01:55:46.76, -36:25:50.8)
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 -11.49434 from trigger time of 411027517.94 in BAT summary file
# ============ Reading file sw00020352001uuu_sk.img ================
Long-term sensitivity correction is 0.092 at 411482788
The processing date in extension 0 is: 2014-01-16T05:26:43
The trigger time is: 411027529.43434. The reference is BAT GRB summary file
Using zero point of 18.432 for filter U
Use aperture correction of 1.032 based on aperture of 4.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(28.94482,-36.43079,25")
fk5;-circle(28.94482,-36.43079,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 uu411482787I  455258.5  0.99 1627.0 1090.0 196  20316  5886  0.264 0.021 19.88 19.6  0.2640 0.0213 19.88 19.6  1627 666.288 53.742 13.23 0.001 
   2 uu411488204I  460675.1  0.99  783.8  810.9 196  17878  5871  0.285 0.038 19.80 19.4  0.2707 0.0190 19.85 19.6  2411 678.509 47.208 13.21 0.001 
   3 uu411495320I  467791.0  0.99  984.8  644.2 200  10972  5846  0.283 0.027 19.80 19.5  0.2744 0.0156 19.84 19.7  3396 697.169 39.182 13.18 0.001 
   4 uu411500960I  473431.0  0.99 1028.4  677.0 204  11687  5891  0.275 0.027 19.83 19.6  0.2745 0.0135 19.84 19.7  4424 703.104 34.150 13.17 0.001 
   5 uu411517142I  489613.0  0.99  588.9  591.4 196  13786  5869  0.232 0.044 20.02 19.5  0.2695 0.0129 19.86 19.7  5013 698.488 32.859 13.18 0.001 
    Sum (T+455258 to 490211):            3813.6       2513.8 (est. in src region)   SNR_unwtd_sum:  20.82 0.9987 signif. UL:  19.71
  0  5013 411494432  466902.7  23308.7 -11644.2    0.2695   0.0129 19.856  0.053  -0.051
Total wtd_rate (for all exposures so far): 698.488 +/-32.519 snr: 21.5 mag: 13.18 UL: 11.18
Rebinned Data for sw00020352001uuu_sk.img using a zero point of 18.432:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.98e+03  466897.0  23314.4 -11638.5    0.2695   0.0129 19.86  0.05  466897.0    0.2695   0.0129 19.86  0.05 19.71
The data range from T+455258.5 s (5.27 d) to T+490211.4 s (5.67 d)
Wrote uvot_fluxes_140116d05h46m54s127035usUT.qdp
Wrote uvot_fluxes_140116d05h46m54s127035usUT.gif
Wrote uvot_fluxes_140116d05h46m54s127035usUT.ps
Wrote uvot_fluxes_140116d05h46m54s127035usUT_vis.qdp
Wrote uvot_fluxes_140116d05h46m54s127035usUT_uv.qdp
Wrote uvot_fluxes_140116d05h46m54s127035usUT_vis.gif
Wrote uvot_fluxes_140116d05h46m54s127035usUT_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.000169  465862.8  24348.6 -10604.3    1.4966   0.0703 19.85  0.05  465862.8    1.4966   0.0703 19.85  0.05 19.71
The data range from T+455258.5 s (5.27 d) to T+490211.4 s (5.67 d)
Wrote uvot_fluxes_wtd_140116d05h46m54s127035usUT.qdp
Wrote uvot_fluxes_wtd_140116d05h46m54s127035usUT.gif
Wrote uvot_fluxes_wtd_140116d05h46m54s127035usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem