# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140106d22h34m10s659583usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020340001 -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 211.11400 48.93200
Reference: GCN_FOM_Notice_Mon_06_Jan_14_08:43:20_UT
The position is (14:04:27.36, +48:55:55.2)
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(211.114,+48.932,3") # color=red dash=0
Region file centered at (211.114,+48.932), which is (14:04:27.36, +48:55:55.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.
*** 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.
Subtract UTCF of -11.45224 from trigger time of 410578381 in BAT summary file
# ============ Reading file sw00020340001uwh_sk.img ================
Long-term sensitivity correction is 0.092 at 410691775
The processing date in extension 0 is: 2014-01-06T21:38:41
The trigger time is: 410578392.45224. The reference is BAT GRB summary file
Using zero point of 20.382 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(211.114,+48.932,25")
fk5;-circle(211.114,+48.932,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 wh410691774I  113382.5  0.94  312.8 1545.3 116  61667  5836  0.000 0.141 99.00 20.7  0.0000 0.1407 99.00 20.7   313  0.000 14.678 99.00 0.002 
   2 wh410697966I  119574.4  0.91  220.2 1414.4 116  59835  5868  0.000 0.202 99.00 20.4  0.0000 0.1171 99.00 20.9   533  0.000 12.244 99.00 0.002 
   3 wh410703534I  125141.6  0.91  318.7 2087.4 116  85403  5840  0.000 0.165 99.00 20.6  0.0000 0.0957 99.00 21.2   852  0.000 10.292 99.00 0.002 
    Sum (T+113383 to 125674):            4104.9       4104.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  21.16
  0   852 410697986  119593.4   6080.4  -6210.8    0.0000   0.0957 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 9.717 snr:  0.0 mag: 99.00 UL: 16.15
Rebinned Data for sw00020340001uwh_sk.img using a zero point of 20.382:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      784  119540.5   6133.3  -6158.0    0.0000   0.0957 99.00 99.00  119540.5    0.0000   0.0957 99.00 99.00 21.66
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020340001uvv_sk.img ================
Long-term sensitivity correction is  0.135 at 410692149
The processing date in extension 0 is:  2014-01-06T21:38:41
The trigger time is: 410578392.45224. The reference is BAT GRB summary file
Using zero point of 18.025 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(211.114,+48.932,25")
fk5;-circle(211.114,+48.932,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 vv410692149I  113756.8  0.98  361.0  520.2 112  22280  5820  0.000 0.064 99.00 19.2  0.0000 0.0643 99.00 19.2   361  0.000 58.963 99.00 0.001 
   2 vv410692519I  114127.1  0.98   15.2   17.1 112    859  5852  0.000 0.299 99.00 17.6  0.0000 0.0629 99.00 19.3   376  0.000 57.651 99.00 0.001 
    Sum (T+113757 to 114143):             445.2        445.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.26
  0   376 410692341  113948.1    194.5   -191.2    0.0000   0.0629 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 9.410 snr:  0.0 mag: 99.00 UL: 13.82
Rebinned Data for sw00020340001uvv_sk.img using a zero point of 18.025:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      369  113948.1    194.5   -191.2    0.0000   0.0629 99.00 99.00  113948.1    0.0000   0.0629 99.00 99.00 19.76
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020340001uuu_sk.img ================
Long-term sensitivity correction is  0.092 at 410691402
The processing date in extension 0 is:  2014-01-06T21:38:41
The trigger time is: 410578392.45224. The reference is BAT GRB summary file
Using zero point of 18.432 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(211.114,+48.932,25")
fk5;-circle(211.114,+48.932,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 uu410691402I  113009.9  0.99  361.0  355.4 116  13391  5876  0.000 0.051 99.00 19.9  0.0000 0.0506 99.00 19.9   361  0.000 31.729 99.00 0.002 
   2 uu410695859I  117467.3  1.00  157.3   65.1 108   1676  5828  0.000 0.039 99.00 20.2  0.0000 0.0372 99.00 20.2   518  0.000 19.957 99.00 0.003 
   3 uu410697330I  118938.2  0.99  619.8  692.4 116  27238  5872  0.000 0.042 99.00 20.1  0.0000 0.0285 99.00 20.5  1138  0.000 16.219 99.00 0.002 
   4 uu410701594I  123201.6  1.00  564.6  314.5 116   6977  5876  0.000 0.023 99.00 20.8  0.0000 0.0205 99.00 20.9  1703  0.000 11.333 99.00 0.003 
   5 uu410703301I  124908.8  0.98  223.2  282.4 116  11619  5836  0.000 0.077 99.00 19.5  0.0000 0.0202 99.00 20.9  1926  0.000 11.085 99.00 0.002 
    Sum (T+113010 to 125136):            1202.2       1202.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.90
  0  1926 410698281  119888.1   5247.5  -6878.2    0.0000   0.0202 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 7.190 snr:  0.0 mag: 99.00 UL: 14.52
Rebinned Data for sw00020340001uuu_sk.img using a zero point of 18.432:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.91e+03  119892.8   5242.7  -6883.0    0.0000   0.0202 99.00 99.00  119892.8    0.0000   0.0202 99.00 99.00 21.40
The data range from T+113009.9 s (1.31 d) to T+125673.8 s (1.45 d)
Wrote uvot_fluxes_140106d22h34m10s659583usUT.qdp
Wrote uvot_fluxes_140106d22h34m10s659583usUT.gif
Wrote uvot_fluxes_140106d22h34m10s659583usUT.ps
Wrote uvot_fluxes_140106d22h34m10s659583usUT_vis.qdp
Wrote uvot_fluxes_140106d22h34m10s659583usUT_uv.qdp
Wrote uvot_fluxes_140106d22h34m10s659583usUT_vis.gif
Wrote uvot_fluxes_140106d22h34m10s659583usUT_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.0118  118622.6   7051.2  -5612.7    0.0000   0.0766 99.00 99.00  118622.6    0.0000   0.0766 99.00 99.00 21.81
The data range from T+113009.9 s (1.31 d) to T+125673.8 s (1.45 d)
Wrote uvot_fluxes_wtd_140106d22h34m10s659583usUT.qdp
Wrote uvot_fluxes_wtd_140106d22h34m10s659583usUT.gif
Wrote uvot_fluxes_wtd_140106d22h34m10s659583usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem