# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 130711d03h21m49s550457usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020284002 -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
# ========= GRB130623A ===================
Used archived XRT position of 20.85346 -77.77339 4.00
Reference: GCN_Circulars-14926-Tue,_25_Jun_2013_10:35:17_-0400_(EDT)
The position is (01:23:24.83, -77:46:24.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(20.85346,-77.77339,4") # color=red dash=0
Region file centered at (20.85346,-77.77339), which is (01:23:24.83, -77:46:24.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 -10.70736 from trigger time of 393680567.05 in BAT summary file
# ============ Reading file sw00020284001uwh_sk.img ================
Long-term sensitivity correction is 0.087 at 393780977
The processing date in extension 0 is: 2013-06-25T16:17:46
The trigger time is: 393680577.75736. The reference is BAT GRB summary file
Using zero point of 20.377 for filter WHITE
Use aperture correction of 1.035 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(20.85346,-77.77339,25")
fk5;-circle(20.85346,-77.77339,12.5")
fk5;-circle(20.829484,-77.776924,6")
fk5;-circle(20.852567,-77.769652,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 wh393780976I  100398.9  0.98  190.7  421.0 188  10422  5177  0.236 0.116 21.95 21.0  0.2358 0.1156 21.95 21.0   191 21.873 10.722 16.94 0.005 
   2 wh393781173I  100595.6  0.96  853.9 3442.7 204  87961  5199 -0.011 0.075 99.00 22.0  0.0348 0.0650 24.02 21.9  1045  6.366  5.883 18.28 0.003 
   3 wh393787948I  107371.1  0.94   91.3  548.9 204  14337  5186 -0.182 0.294 99.00 20.6  0.0178 0.0642 24.75 22.0  1136  5.421  5.767 18.45 0.003 
   4 wh393788044I  107467.0  0.94  114.4  693.1 200  18417  5243 -0.091 0.264 99.00 20.6  0.0081 0.0630 25.61 22.1  1250  4.755  5.632 18.60 0.003 
   5 wh393792400I  111822.4  0.98  199.6  468.9 204  10867  5199  0.225 0.117 22.00 21.0  0.0384 0.0566 23.92 22.1  1450  8.236  5.105 18.00 0.003 
   6 wh393792605I  112028.1  0.95 1522.1 7407.0 200 184304  5207  0.234 0.062 21.95 21.3  0.1379 0.0422 22.53 21.8  2972 14.376  4.017 17.40 0.002 
   7 wh393798110I  117532.3  0.98  204.5  419.6 204  11077  5206 -0.074 0.108 99.00 21.7  0.1240 0.0401 22.64 21.9  3176 12.165  3.800 17.58 0.002 
   8 wh393798320I  117743.2  0.96 1434.3 6538.6 208 162059  5259  0.097 0.062 22.91 21.7  0.1157 0.0337 22.72 22.0  4611 11.809  3.316 17.61 0.002 
    Sum (T+100399 to 119289):           19939.8      19445.0 (est. in src region)   SNR_unwtd_sum:   3.43 0.9987 signif. UL:  22.04
  0  4611 393792438  111860.0   7428.6 -11461.1    0.1157   0.0337 22.718  0.374  -0.277
Total wtd_rate (for all exposures so far): 11.809 +/- 3.253 snr:  3.6 mag: 17.61 UL: 17.04
Rebinned Data for sw00020284001uwh_sk.img using a zero point of 20.377:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.42e+03  111849.6   7439.1 -11450.7    0.1157   0.0337 22.72  0.28  111849.6    0.1157   0.0337 22.72  0.28 22.04
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020284002uw2_sk.img ================
Use keyword TRIGTIME of 393680575.378 for trigger time.
Long-term sensitivity correction is  0.087 at 394247804
The processing date in extension 0 is:  2013-07-11T02:32:17
The trigger time is: 393680575.378. The reference is keyword in image file
Using zero point of 17.467 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.00
Using background region based on sources found in extension 4:
# 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(20.85346,-77.77339,25")
fk5;-circle(20.85346,-77.77339,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 w2394247804I  567228.8  1.00 1670.0   91.2 200   2988  5864 -0.007 0.006 99.00 22.0 -0.0067 0.0060 99.00 22.0  1670 -50.998 46.131 99.00 0.002 
   2 w2394253936I  573361.0  1.00 1480.8   88.1 200   2659  5864 -0.002 0.007 99.00 21.7 -0.0044 0.0045 99.00 22.3  3151 -33.869 34.422 99.00 0.002 
   3 w2394288546I  607971.6  1.00  368.2   11.3 192    508  5811 -0.016 0.010 99.00 21.6 -0.0056 0.0041 99.00 22.5  3519 -45.183 31.733 99.00 0.002 
   4 w2394305403I  624828.2  1.00 1670.6   79.3 192   2576  5828 -0.003 0.006 99.00 22.0 -0.0049 0.0033 99.00 22.8  5190 -40.112 26.355 99.00 0.002 
   5 w2394311227I  630651.9  1.00 1607.9   89.5 196   2493  5816  0.004 0.006 23.61 21.6 -0.0029 0.0029 99.00 22.8  6797 -24.299 23.610 99.00 0.002 
   6 w2394317165I  636590.6  1.00 1668.3  119.1 200   2940  5856  0.012 0.007 22.30 21.2 -0.0000 0.0027 99.00 22.6  8466 -3.638 21.993 99.00 0.002 
   7 w2394328445I  647870.5  1.00 1668.4   77.4 200   2685  5859 -0.009 0.006 99.00 22.2 -0.0015 0.0024 99.00 22.9 10134 -14.679 20.068 99.00 0.002 
    Sum (T+567229 to 649566):             555.8        570.3 (est. in src region)   SNR_unwtd_sum:  -0.61 0.9987 signif. UL:  22.88
  0 10134 394295238  614662.7  34903.0 -47433.8   -0.0015   0.0024 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): 11.153 +/- 3.210 snr:  3.5 mag: 17.67 UL: 14.17
Rebinned Data for sw00020284002uw2_sk.img using a zero point of 17.467:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.01e+04  614663.3  34902.3 -47434.5   -0.0015   0.0024 99.00 99.00  614663.3   -0.0015   0.0024 99.00 99.00 22.88
The data range from T+100398.9 s (1.16 d) to T+649565.6 s (7.52 d)
Wrote uvot_fluxes_130711d03h21m49s550457usUT.qdp
Wrote uvot_fluxes_130711d03h21m49s550457usUT.gif
Wrote uvot_fluxes_130711d03h21m49s550457usUT.ps
Wrote uvot_fluxes_130711d03h21m49s550457usUT_vis.qdp
Wrote uvot_fluxes_130711d03h21m49s550457usUT_uv.qdp
Wrote uvot_fluxes_130711d03h21m49s550457usUT_vis.gif
Wrote uvot_fluxes_130711d03h21m49s550457usUT_vis.ps
Wrote uvot_fluxes_130711d03h21m49s550457usUT_uv.gif
Wrote uvot_fluxes_130711d03h21m49s550457usUT_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.0417  103296.8   8728.4  -2897.9    0.0743   0.0494 23.11  0.55  103296.8    0.0743   0.0494 23.11  0.55 21.91
  1    0.057  115872.7   3415.9  -3844.6    0.1226   0.0376 22.57  0.29  110560.7    0.1035   0.0300 22.75  0.28 22.07
The data range from T+100398.9 s (1.16 d) to T+649565.6 s (7.52 d)
Wrote uvot_fluxes_wtd_130711d03h21m49s550457usUT.qdp
Wrote uvot_fluxes_wtd_130711d03h21m49s550457usUT.gif
Wrote uvot_fluxes_wtd_130711d03h21m49s550457usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem