# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 131201d02h32m37s714024usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020328002 -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
# ========= GRB131122A ===================
Used archived XRT position of 152.54217 57.72769 4.00
Reference: GCN_Circulars-15513-Sat,_23_Nov_2013_04:31:09_-0500_(EST)
The position is (10:10:10.12, +57:43:39.7)
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(152.54217,57.72769,4") # color=red dash=0
Region file centered at (152.54217,57.72769), which is (10:10:10.12, +57:43:39.7)
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.31178 from trigger time of 406848301 in BAT summary file
# ============ Reading file sw00020328002uwh_sk.img ================
Long-term sensitivity correction is 0.091 at 407444660
The processing date in extension 0 is: 2013-12-01T02:01:53
The trigger time is: 406848312.31178. The reference is BAT GRB summary file
Using zero point of 20.381 for filter WHITE
Use aperture correction of 1.035 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(152.54217,57.72769,25")
fk5;-circle(152.54217,57.72769,12.5")
fk5;-circle(152.543416,57.723422,6")
fk5;-circle(152.541336,57.729542,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 wh407444659I  596347.5  0.97  545.0 1603.3 196  45082  5443 -0.039 0.080 99.00 22.0 -0.0395 0.0797 99.00 22.0   545 -21.644 43.731 99.00 0.001 
   2 wh407531123I  682811.4  0.97  545.0 1604.8 204  41345  5430  0.100 0.080 22.88 21.5  0.0305 0.0563 24.17 22.1  1090 15.981 32.919 17.28 0.001 
   3 wh407536916I  688603.9  0.97  490.9 1345.6 200  37126  5477 -0.022 0.081 99.00 21.9  0.0142 0.0463 25.00 22.4  1581  7.379 27.703 18.12 0.001 
    Sum (T+596347 to 689103):            4553.8       4532.6 (est. in src region)   SNR_unwtd_sum:   0.31 0.9987 signif. UL:  22.37
  0  1581 407503383  655070.5  34032.2 -58723.0    0.0142   0.0463 24.998 74.002  -1.571
Total wtd_rate (for all exposures so far):  7.379 +/-27.211 snr:  0.3 mag: 18.12 UL: 15.46
Rebinned Data for sw00020328002uwh_sk.img using a zero point of 20.381:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.54e+03  655108.2  33994.4 -58760.8    0.0142   0.0463 25.00  1.57  655108.2    0.0142   0.0463 25.00  1.57 22.37
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020328002uvv_sk.img ================
Long-term sensitivity correction is  0.134 at 407445220
The processing date in extension 0 is:  2013-12-01T02:01:54
The trigger time is: 406848312.31178. The reference is BAT GRB summary file
Using zero point of 18.024 for filter V
Use aperture correction of  1.030 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(152.54217,57.72769,25")
fk5;-circle(152.54217,57.72769,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 vv407445220I  596907.8  0.99  545.1  627.5 208  18204  5869 -0.034 0.049 99.00 20.2 -0.0338 0.0487 99.00 20.2   545 -162.812 234.651 99.00 0.000 
   3 vv407531684I  683371.8  0.99  545.0  554.8 204  16551  5840 -0.045 0.046 99.00 20.4 -0.0392 0.0334 99.00 20.7  1090 -200.813 171.800 99.00 0.000 
   4 vv407537421I  689109.2  0.99  490.9  420.4 200  12588  5823 -0.025 0.044 99.00 20.3 -0.0348 0.0268 99.00 21.0  1581 -180.892 140.721 99.00 0.000 
   5 vv407537923I  689611.6  0.99   75.8   90.9 196   2635  5813  0.029 0.133 21.89 18.9 -0.0320 0.0263 99.00 21.0  1657 -168.486 138.260 99.00 0.000 
    Sum (T+596908 to 689689):            1693.7       1744.6 (est. in src region)   SNR_unwtd_sum:  -1.21 0.9987 signif. UL:  21.02
  0  1657 407505482  657169.6  32519.0 -60261.8   -0.0320   0.0263 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.834 +/-26.563 snr:  0.0 mag: 20.49 UL: 13.19
Rebinned Data for sw00020328002uvv_sk.img using a zero point of 18.024:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.64e+03  657209.3  32479.3 -60301.5   -0.0320   0.0263 99.00 99.00  657209.3   -0.0320   0.0263 99.00 99.00 21.02
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020328002uuu_sk.img ================
Long-term sensitivity correction is  0.091 at 407444100
The processing date in extension 0 is:  2013-12-01T02:01:53
The trigger time is: 406848312.31178. The reference is BAT GRB summary file
Using zero point of 18.431 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(152.54217,57.72769,25")
fk5;-circle(152.54217,57.72769,12.5")
fk5;-circle(152.541149,57.729594,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 uu407444099I  595787.5  1.00  545.0  226.9 208   5688  5834  0.046 0.029 21.78 20.6  0.0459 0.0291 21.78 20.6   545 151.583 96.041 14.84 0.001 
   2 uu407530563I  682251.6  1.00  545.0  179.7 196   5860  5835 -0.033 0.026 99.00 21.5  0.0067 0.0195 23.87 21.4  1090 30.695 68.951 16.57 0.001 
   3 uu407536411I  688099.0  1.00  490.9  176.8 196   5052  5806  0.013 0.029 23.13 20.9  0.0087 0.0161 23.58 21.5  1581 36.383 58.228 16.39 0.001 
    Sum (T+595787 to 688598):             583.5        570.2 (est. in src region)   SNR_unwtd_sum:   0.54 0.9987 signif. UL:  21.51
  0  1581 407502840  654527.4  34070.4 -58739.9    0.0087   0.0161 23.582 75.418  -1.137
Total wtd_rate (for all exposures so far):  7.294 +/-24.136 snr:  0.3 mag: 18.13 UL: 13.63
Rebinned Data for sw00020328002uuu_sk.img using a zero point of 18.431:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.58e+03  654532.2  34065.5 -58744.8    0.0087   0.0161 23.58  1.14  654532.2    0.0087   0.0161 23.58  1.14 21.51
The data range from T+595787.5 s (6.90 d) to T+689688.6 s (7.98 d)
Wrote uvot_fluxes_131201d02h32m37s714024usUT.qdp
Wrote uvot_fluxes_131201d02h32m37s714024usUT.gif
Wrote uvot_fluxes_131201d02h32m37s714024usUT.ps
Wrote uvot_fluxes_131201d02h32m37s714024usUT_vis.qdp
Wrote uvot_fluxes_131201d02h32m37s714024usUT_uv.qdp
Wrote uvot_fluxes_131201d02h32m37s714024usUT_vis.gif
Wrote uvot_fluxes_131201d02h32m37s714024usUT_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.00148  650201.3  39487.3 -54413.8    0.0101   0.0410 25.28  1.76  650201.3    0.0101   0.0410 25.28  1.76 22.43
The data range from T+595787.5 s (6.90 d) to T+689688.6 s (7.98 d)
Wrote uvot_fluxes_wtd_131201d02h32m37s714024usUT.qdp
Wrote uvot_fluxes_wtd_131201d02h32m37s714024usUT.gif
Wrote uvot_fluxes_wtd_131201d02h32m37s714024usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem