# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140412d08h35m49s762862usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020374001 -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
# ========= GRB140402A ===================
Used archived BAT position of 207.59200 5.97100
Reference: GCN_Circ-16073
The position is (13:50:22.08, +05:58:15.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(207.592,+5.971,3") # color=red dash=0
Region file centered at (207.592,+5.971), which is (13:50:22.08, +05:58:15.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 3136.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.99999959.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -11.83308 from trigger time of 418090207 in BAT summary file
# ============ Reading file sw00020374001uwh_sk.img ================
Long-term sensitivity correction is 0.094 at 418147233
The processing date in extension 0 is: 2014-04-12T08:12:05
The trigger time is: 418090218.83308. The reference is BAT GRB summary file
Using zero point of 20.384 for filter WHITE
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(207.592,+5.971,25")
fk5;-circle(207.592,+5.971,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 wh418147233I   57014.5  0.97  631.7 1188.1 112  61343  5816  0.000 0.063 99.00 21.6  0.0000 0.0628 99.00 21.6   632  0.000  3.302 99.00 0.010 
    Sum (T+ 57014 to  57656):            1181.3       1181.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999585459184 signif. UL:  21.63
  0   632 418147554   57335.4    320.9   -320.9    0.0000   0.0628 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 3.271 snr:  0.0 mag: 99.00 UL: 17.34
Rebinned Data for sw00020374001uwh_sk.img using a zero point of 20.384:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      612   57335.4    320.9   -320.9    0.0000   0.0628 99.00 99.00   57335.4    0.0000   0.0628 99.00 99.00 22.12
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020374001uvv_sk.img ================
Long-term sensitivity correction is  0.139 at 418147882
The processing date in extension 0 is:  2014-04-12T08:12:05
The trigger time is: 418090218.83308. The reference is BAT GRB summary file
Using zero point of 18.029 for filter V
Use aperture correction of  1.087 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(207.592,+5.971,25")
fk5;-circle(207.592,+5.971,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 vv418147882I   57663.2  0.99  631.6  304.4 108  15283  5820  0.000 0.029 99.00 20.1  0.0000 0.0295 99.00 20.1   632  0.000 13.726 99.00 0.005 
   2 vv418148527I   58308.7  0.99   26.9   11.8 116    731  5868  0.000 0.156 99.00 18.3  0.0000 0.0290 99.00 20.1   659  0.000 13.491 99.00 0.005 
    Sum (T+ 57663 to  58336):             298.0        298.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999585459184 signif. UL:  20.11
  0   659 418148217   57997.9    338.2   -334.7    0.0000   0.0290 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 3.122 snr:  0.0 mag: 99.00 UL: 15.03
Rebinned Data for sw00020374001uvv_sk.img using a zero point of 18.029:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      653   57997.9    338.2   -334.7    0.0000   0.0290 99.00 99.00   57997.9    0.0000   0.0290 99.00 99.00 20.60
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020374001uuu_sk.img ================
Long-term sensitivity correction is  0.094 at 418146585
The processing date in extension 0 is:  2014-04-12T08:12:04
The trigger time is: 418090218.83308. The reference is BAT GRB summary file
Using zero point of 18.434 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(207.592,+5.971,25")
fk5;-circle(207.592,+5.971,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 uu418146585I   56366.3  0.99  631.7  203.3 112  10612  5848  0.000 0.025 99.00 20.7  0.0000 0.0252 99.00 20.7   632  0.000  7.888 99.00 0.010 
   2 uu418151767I   61548.3  0.99   16.9    5.9 120    274  5884  0.000 0.156 99.00 18.7  0.0000 0.0249 99.00 20.7   649  0.000  7.802 99.00 0.010 
    Sum (T+ 56366 to  61565):             208.8        208.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999585459184 signif. UL:  20.68
  0   649 418147033   56813.9   4751.5   -447.7    0.0000   0.0249 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 2.923 snr:  0.0 mag: 99.00 UL: 15.51
Rebinned Data for sw00020374001uuu_sk.img using a zero point of 18.434:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      645   56814.0   4751.5   -447.7    0.0000   0.0249 99.00 99.00   56814.0    0.0000   0.0249 99.00 99.00 21.18
The data range from T+56366.3 s (0.65 d) to T+61565.4 s (0.71 d)
Wrote uvot_fluxes_140412d08h35m49s762862usUT.qdp
Wrote uvot_fluxes_140412d08h35m49s762862usUT.gif
Wrote uvot_fluxes_140412d08h35m49s762862usUT.ps
Wrote uvot_fluxes_140412d08h35m49s762862usUT_vis.qdp
Wrote uvot_fluxes_140412d08h35m49s762862usUT_uv.qdp
Wrote uvot_fluxes_140412d08h35m49s762862usUT_vis.gif
Wrote uvot_fluxes_140412d08h35m49s762862usUT_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.104   57324.2   4241.3   -957.9    0.0000   0.0557 99.00 99.00   57324.2    0.0000   0.0557 99.00 99.00 22.16
The data range from T+56366.3 s (0.65 d) to T+61565.4 s (0.71 d)
Wrote uvot_fluxes_wtd_140412d08h35m49s762862usUT.qdp
Wrote uvot_fluxes_wtd_140412d08h35m49s762862usUT.gif
Wrote uvot_fluxes_wtd_140412d08h35m49s762862usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem