# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 130508d09h28m28s191581usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020267002 -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
# ========= GRB130504C ===================
Used archived XRT position of 91.63037 3.83389 4.00
Reference: GCN_Circulars-14588-Mon,_6_May_2013_10:14:32_-0400_(EDT)
The position is (06:06:31.29, +03:50:02.0)
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(91.63037,3.83389,4") # color=red dash=0
Region file centered at (91.63037,3.83389), which is (06:06:31.29, +03:50:02.0)
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.51904 from trigger time of 389402937.52 in BAT summary file
# ============ Reading file sw00020267002uuu_sk.img ================
Use keyword TRIGTIME of 389403025.468 for trigger time.
Long-term sensitivity correction is 0.085 at 389668833
The processing date in extension 0 is: 2013-05-08T09:06:21
The trigger time is: 389403025.468. The reference is keyword in image file
Using zero point of 18.425 for filter U
Use aperture correction of 1.032 based on aperture of 4.00
Using background region based on sources found in extension 2:
# 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(91.63037,3.83389,25")
fk5;-circle(91.63037,3.83389,12.5")
fk5;-circle(91.626835,3.841258,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 uu389668832I  265807.4  0.99 1622.1 2568.4 200  71958  5793  0.054 0.033 21.59 20.4  0.0543 0.0333 21.59 20.4  1622 80.656 49.398 15.52 0.000 
   2 uu389674588I  271562.6  0.99 1626.9 2421.8 204  70093  5827 -0.021 0.032 99.00 21.1  0.0167 0.0232 22.87 21.1  3249 25.217 34.751 16.79 0.000 
   3 uu389680413I  277387.8  0.98 1326.3 2147.9 204  59226  5817  0.056 0.037 21.56 20.4  0.0281 0.0197 22.30 21.1  4575 41.847 29.764 16.24 0.000 
    Sum (T+265807 to 278735):            7138.1       7015.5 (est. in src region)   SNR_unwtd_sum:   1.43 0.9987 signif. UL:  21.07
  0  4575 389675018  271992.2   6743.2  -6184.8    0.0281   0.0197 22.305  1.310  -0.576
Total wtd_rate (for all exposures so far): 41.847 +/-29.267 snr:  1.4 mag: 16.24 UL: 13.13
Rebinned Data for sw00020267002uuu_sk.img using a zero point of 18.425:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.51e+03  271991.6   6743.8  -6184.2    0.0281   0.0197 22.30  0.58  271991.6    0.0281   0.0197 22.30  0.58 21.07
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020267001uw2_sk.img ================
Long-term sensitivity correction is  0.085 at 389468598
The processing date in extension 0 is:  2013-05-06T06:32:22
The trigger time is: 389403025.468. The reference is keyword in image file
Using zero point of 17.465 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.00
Using background region based on sources found in extension 8:
# 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(91.63037,3.83389,25")
fk5;-circle(91.63037,3.83389,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 w2389468597I   65572.3  1.00  695.1  100.6 192   2621  5865  0.022 0.015 21.60 20.4  0.0221 0.0152 21.60 20.4   695 19.645 13.478 17.06 0.009 
   2 w2389472544I   69518.8  1.00  587.3   87.9 200   2591  5828 -0.002 0.017 99.00 20.7  0.0112 0.0113 22.34 20.8  1282 11.544 10.299 17.63 0.008 
   3 w2389474602I   71576.6  1.00  463.8   61.3 188   1662  5817  0.017 0.018 21.89 20.3  0.0127 0.0095 22.21 20.9  1746 12.853  8.833 17.52 0.008 
   4 w2389478304I   75278.8  1.00  941.6  132.6 204   4125  5824 -0.013 0.013 99.00 21.2  0.0037 0.0077 23.56 21.4  2688  5.729  7.364 18.39 0.008 
   5 w2389480609I   77583.7  1.00  229.6   34.0 208    870  5877  0.014 0.027 22.08 20.0  0.0045 0.0074 23.33 21.4  2917  6.348  7.122 18.28 0.007 
   6 w2389484049I   81023.9  1.00 1428.7  202.2 200   5933  5828 -0.001 0.010 99.00 21.2  0.0027 0.0060 23.90 21.6  4346  4.384  6.067 18.68 0.007 
   7 w2389486405I   83380.3  1.00  203.1   26.9 192    843  5824 -0.005 0.027 99.00 20.2  0.0023 0.0059 24.04 21.7  4549  4.036  5.949 18.77 0.007 
   8 w2389489821I   86795.6  1.00 2518.9  317.6 200  10196  5863 -0.012 0.007 99.00 21.9 -0.0029 0.0046 99.00 22.2  7068 -1.290  4.948 99.00 0.007 
High bkg:   9 w2389495590I  664.1   3198  5872  0.820  0.015
   9 w2389495590I   92565.0  1.00  664.1  106.3 204   3198  5871 -0.007 0.016 99.00 20.8 -0.0033 0.0045 99.00 22.3  7732 -1.714  4.811 99.00 0.007 
    Sum (T+ 65572 to  93240):            1069.5       1094.1 (est. in src region)   SNR_unwtd_sum:  -0.74 0.9987 signif. UL:  22.27
  0  7732 389484064   81039.0  12200.8 -15466.7   -0.0033   0.0045 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.592 +/- 4.671 snr: -0.1 mag: 99.00 UL: 14.56
Rebinned Data for sw00020267001uw2_sk.img using a zero point of 17.465:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 7.72e+03   81039.3  12200.5 -15467.0   -0.0033   0.0045 99.00 99.00   81039.3   -0.0033   0.0045 99.00 99.00 22.27
The data range from T+65572.3 s (0.76 d) to T+278735.4 s (3.23 d)
Wrote uvot_fluxes_130508d09h28m28s191581usUT.qdp
Wrote uvot_fluxes_130508d09h28m28s191581usUT.gif
Wrote uvot_fluxes_130508d09h28m28s191581usUT.ps
Wrote uvot_fluxes_130508d09h28m28s191581usUT_vis.qdp
Wrote uvot_fluxes_130508d09h28m28s191581usUT_uv.qdp
Wrote uvot_fluxes_130508d09h28m28s191581usUT_vis.gif
Wrote uvot_fluxes_130508d09h28m28s191581usUT_vis.ps
Wrote uvot_fluxes_130508d09h28m28s191581usUT_uv.gif
Wrote uvot_fluxes_130508d09h28m28s191581usUT_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.000203  271810.9   6924.5  -6003.6    0.1496   0.1095 22.35  0.60  271810.9    0.1496   0.1095 22.35  0.60 21.08
The data range from T+65572.3 s (0.76 d) to T+278735.4 s (3.23 d)
Wrote uvot_fluxes_wtd_130508d09h28m28s191581usUT.qdp
Wrote uvot_fluxes_wtd_130508d09h28m28s191581usUT.gif
Wrote uvot_fluxes_wtd_130508d09h28m28s191581usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem