# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 150204d06h57m08s114320usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020475001 -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 87.12000 59.05000
Reference: GCN_FOM_Notice_Wed_04_Feb_15_01:46:13_UT
The position is (05:48:28.80, +59:02:60.0)
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(87.120,+59.050,3") # color=red dash=0
Region file centered at (87.120,+59.050), which is (05:48:28.80, +59:02:60.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.
*** 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 00020475
# ============ Reading file sw00020475001uwh_sk.img ================
Long-term sensitivity correction is 0.103 at 444711604
The processing date in extension 0 is: 2015-02-04T06:48:21
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 20.393 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(87.120,+59.050,25")
fk5;-circle(87.120,+59.050,12.5")
fk5;-circle(87.106831,59.049446,6")
fk5;-circle(87.128112,59.044080,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 wh444711603I 444711603.6  0.97  295.0  465.0 112  23354  5432  0.000 0.086 99.00 21.3  0.0000 0.0856 99.00 21.3   295  0.000 34632.479 99.00 0.000 
   2 wh444711907I 444711907.2  0.97  295.0  463.2 104  23723  5436  0.000 0.083 99.00 21.3  0.0000 0.0596 99.00 21.7   590  0.000 24111.601 99.00 0.000 
   3 wh444712210I 444712210.8  0.97   27.3   35.2 112   2137  5432  0.000 0.280 99.00 20.0  0.0000 0.0583 99.00 21.7   617  0.000 23582.540 99.00 0.000 
    Sum (T+444711604 to 444712238):             979.5        979.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.71
  0   617 444711919 444711919.4    319.1   -315.8    0.0000   0.0583 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-23351.497 snr:  0.0 mag: 99.00 UL:  7.71
Rebinned Data for sw00020475001uwh_sk.img using a zero point of 20.393:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      600 444711919.4    319.1   -315.8    0.0000   0.0583 99.00 99.00 444711919.4    0.0000   0.0583 99.00 99.00 22.21
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00020475001ubb_sk.img ================
Long-term sensitivity correction is  0.103 at 444710691
The processing date in extension 0 is:  2015-02-04T06:48:21
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 19.213 for filter B
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(87.120,+59.050,25")
fk5;-circle(87.120,+59.050,12.5")
fk5;-circle(87.107004,59.049402,6")
fk5;-circle(87.128089,59.044102,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 bb444710691I 444710691.3  0.99  295.1  232.9 112   9830  5448  0.000 0.055 99.00 20.6  0.0000 0.0546 99.00 20.6   295  0.000 65436.924 99.00 0.000 
   2 bb444710994I 444710994.8  0.99  295.0  195.4 108   9582  5400  0.000 0.053 99.00 20.6  0.0000 0.0381 99.00 21.0   590  0.000 45635.148 99.00 0.000 
   3 bb444711298I 444711298.5  0.99  295.0  181.5 112   9866  5452  0.000 0.055 99.00 20.6  0.0000 0.0312 99.00 21.2   885  0.000 37448.267 99.00 0.000 
    Sum (T+444710691 to 444711598):             596.4        596.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.21
  0   885 444711145 444711144.8    453.5   -453.5    0.0000   0.0312 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-19758.548 snr:  0.0 mag: 99.00 UL:  6.71
Rebinned Data for sw00020475001ubb_sk.img using a zero point of 19.213:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      875 444711144.8    453.5   -453.5    0.0000   0.0312 99.00 99.00 444711144.8    0.0000   0.0312 99.00 99.00 21.71
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020475001uuu_sk.img ================
Long-term sensitivity correction is  0.103 at 444709779
The processing date in extension 0 is:  2015-02-04T06:48:21
The trigger time is: 0. The reference is trigger time unknown
Using zero point of 18.443 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(87.120,+59.050,25")
fk5;-circle(87.120,+59.050,12.5")
fk5;-circle(87.107185,59.049428,6")
fk5;-circle(87.128116,59.044056,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 uu444709778I 444709778.9  0.99  295.0  140.1 120   5737  5448  0.000 0.043 99.00 20.1  0.0000 0.0426 99.00 20.1   295  0.000 103952.653 99.00 0.000 
   2 uu444710082I 444710082.5  1.00  295.0  102.3 116   4118  5440  0.000 0.035 99.00 20.3  0.0000 0.0277 99.00 20.6   590  0.000 66469.101 99.00 0.000 
   3 uu444710385I 444710386.0  1.00  295.0   74.1 104   3897  5404  0.000 0.033 99.00 20.4  0.0000 0.0215 99.00 20.8   885  0.000 51067.599 99.00 0.000 
    Sum (T+444709779 to 444710686):             289.2        289.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.85
  0   885 444710232 444710232.3    453.4   -453.5    0.0000   0.0215 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-18285.274 snr:  0.0 mag: 99.00 UL:  6.02
Rebinned Data for sw00020475001uuu_sk.img using a zero point of 18.443:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      880 444710232.6    453.2   -453.7    0.0000   0.0215 99.00 99.00 444710232.6    0.0000   0.0215 99.00 99.00 21.34
The data range from T+444709778.9 s (5147.10 d) to T+444712238.5 s (5147.13 d)
Wrote uvot_fluxes_150204d06h57m08s114320usUT.qdp
Wrote uvot_fluxes_150204d06h57m08s114320usUT.gif
Wrote uvot_fluxes_150204d06h57m08s114320usUT.ps
Wrote uvot_fluxes_150204d06h57m08s114320usUT_vis.qdp
Wrote uvot_fluxes_150204d06h57m08s114320usUT_uv.qdp
Wrote uvot_fluxes_150204d06h57m08s114320usUT_vis.gif
Wrote uvot_fluxes_150204d06h57m08s114320usUT_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 2.31e-09 444711784.8    453.7  -2005.9    0.0000   0.0465 99.00 99.00 444711784.8    0.0000   0.0465 99.00 99.00 22.35
The data range from T+444709778.9 s (5147.10 d) to T+444712238.5 s (5147.13 d)
Wrote uvot_fluxes_wtd_150204d06h57m08s114320usUT.qdp
Wrote uvot_fluxes_wtd_150204d06h57m08s114320usUT.gif
Wrote uvot_fluxes_wtd_150204d06h57m08s114320usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem