# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 131101d05h38m16s747824usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020317001 -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
# ========= unknown GRB ===================
Used archived BAT position of 29.61800 -1.60300
Reference: GCN_FOM_Notice_Thu_31_Oct_13_22:24:27_UT
The position is (01:58:28.32, -01:36:10.8)
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(29.618,-1.603,3") # color=red dash=0
Region file centered at (29.618,-1.603), which is (01:58:28.32, -01:36:10.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.
*** 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 3600.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.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Failed to find trigger time in BAT summary file for trigger 00020317
# ============ Reading file sw00020317001uwh_sk.img ================
Long-term sensitivity correction is 0.090 at 404952285
The processing date in extension 0 is: 2013-11-01T05:19:35
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 20.380 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 3:
# 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(29.618,-1.603,25")
fk5;-circle(29.618,-1.603,12.5")
fk5;-circle(29.624983,-1.598665,6")
fk5;-circle(29.619406,-1.600636,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 wh404952285I 404952285.1  0.97  535.2 1098.9 108  53491  5668  0.000 0.069 99.00 21.5  0.0000 0.0690 99.00 21.5   535  0.000 25721.664 99.00 0.000 
   2 wh404958734I 404958734.3  0.97  209.4  485.0 128  21107  5752  0.000 0.120 99.00 20.9  0.0000 0.0600 99.00 21.7   745  0.000 22294.963 99.00 0.000 
   3 wh404963224I 404963224.8  0.97  814.7 1724.4 116  81348  5668  0.000 0.058 99.00 21.7  0.0000 0.0417 99.00 22.1  1559  0.000 15517.107 99.00 0.000 
    Sum (T+404952285 to 404964053):            3153.8       3153.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  22.06
  0  1559 404959191 404959190.8   4861.7  -6905.7    0.0000   0.0417 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-15362.957 snr:  0.0 mag: 99.00 UL:  8.15
Rebinned Data for sw00020317001uwh_sk.img using a zero point of 20.380:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.51e+03 404959190.9   4861.6  -6905.8    0.0000   0.0417 99.00 99.00 404959190.9    0.0000   0.0417 99.00 99.00 22.56
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020317001uvv_sk.img ================
Long-term sensitivity correction is  0.133 at 404952835
The processing date in extension 0 is:  2013-11-01T05:19:35
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 18.023 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(29.618,-1.603,25")
fk5;-circle(29.618,-1.603,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 vv404952835I 404952835.5  0.99  535.2  257.0 116  12652  5880  0.000 0.033 99.00 20.0  0.0000 0.0327 99.00 20.0   535  0.000 106756.946 99.00 0.000 
   2 vv404953383I 404953383.2  0.99   17.5   10.1 112    395  5856  0.000 0.174 99.00 18.2  0.0000 0.0321 99.00 20.0   553  0.000 104920.567 99.00 0.000 
   3 vv404958952I 404958952.9  0.99  209.4   93.2 116   4950  5828  0.000 0.052 99.00 19.5  0.0000 0.0274 99.00 20.2   762  0.000 89492.073 99.00 0.000 
    Sum (T+404952835 to 404959166):             355.7        355.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.16
  0   762 404954749 404954749.4   4416.2  -1914.0    0.0000   0.0274 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-14868.749 snr:  0.0 mag: 99.00 UL:  5.83
Rebinned Data for sw00020317001uvv_sk.img using a zero point of 18.023:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      756 404954749.3   4416.3  -1913.9    0.0000   0.0274 99.00 99.00 404954749.3    0.0000   0.0274 99.00 99.00 20.66
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020317001uuu_sk.img ================
Long-term sensitivity correction is  0.090 at 404951735
The processing date in extension 0 is:  2013-11-01T05:19:35
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 18.430 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
Using background region based on sources found in extension 3:
# 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(29.618,-1.603,25")
fk5;-circle(29.618,-1.603,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 uu404951735I 404951735.3  0.99  535.2  169.9 112   8954  5872  0.000 0.027 99.00 20.6  0.0000 0.0273 99.00 20.6   535  0.000 61190.401 99.00 0.000 
   2 uu404958516I 404958516.1  0.99  209.4   68.4 112   3513  5828  0.000 0.044 99.00 20.1  0.0000 0.0231 99.00 20.8   745  0.000 51955.859 99.00 0.000 
   3 uu404962390I 404962390.2  0.99  814.7  269.9 108  13824  5800  0.000 0.022 99.00 20.8  0.0000 0.0159 99.00 21.2  1559  0.000 35775.910 99.00 0.000 
    Sum (T+404951735 to 404963218):             495.7        495.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.16
  0  1559 404958537 404958536.7   4681.3  -6801.4    0.0000   0.0159 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-13840.384 snr:  0.0 mag: 99.00 UL:  6.31
Rebinned Data for sw00020317001uuu_sk.img using a zero point of 18.430:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.55e+03 404958537.0   4681.0  -6801.7    0.0000   0.0159 99.00 99.00 404958537.0    0.0000   0.0159 99.00 99.00 21.66
The data range from T+404951735.3 s (4686.94 d) to T+404964052.5 s (4687.08 d)
Wrote uvot_fluxes_131101d05h38m16s747824usUT.qdp
Wrote uvot_fluxes_131101d05h38m16s747824usUT.gif
Wrote uvot_fluxes_131101d05h38m16s747824usUT.ps
Wrote uvot_fluxes_131101d05h38m16s747824usUT_vis.qdp
Wrote uvot_fluxes_131101d05h38m16s747824usUT_uv.qdp
Wrote uvot_fluxes_131101d05h38m16s747824usUT_vis.gif
Wrote uvot_fluxes_131101d05h38m16s747824usUT_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 4.67e-09 404958999.3   5053.2  -7264.0    0.0000   0.0371 99.00 99.00 404958999.3    0.0000   0.0371 99.00 99.00 22.60
The data range from T+404951735.3 s (4686.94 d) to T+404964052.5 s (4687.08 d)
Wrote uvot_fluxes_wtd_131101d05h38m16s747824usUT.qdp
Wrote uvot_fluxes_wtd_131101d05h38m16s747824usUT.gif
Wrote uvot_fluxes_wtd_131101d05h38m16s747824usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem