# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 141206d04h25m09s116659usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020444001 -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
# ========= GRB141205A ===================
Used archived BAT position of 92.85875 37.87561
Reference: GCN_Circulars-17140-Fri,_5_Dec_2014_11:42:07_-0500_(EST)
The position is (06:11:26.10, +37:52:32.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(92.85875,37.87561,3") # color=red dash=0
Region file centered at (92.85875,37.87561), which is (06:11:26.10, +37:52:32.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 1600.0,
3 sigma should become about 4.9 sigma and 2 sigma should become about 4.3 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999919.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -12.8571 from trigger time of 439459517 in BAT summary file
# ============ Reading file sw00020444001uwh_sk.img ================
Long-term sensitivity correction is 0.101 at 439483505
The processing date in extension 0 is: 2014-12-06T04:15:54
The trigger time is: 439459529.8571. The reference is BAT GRB summary file
Using zero point of 20.391 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(92.85875,37.87561,25")
fk5;-circle(92.85875,37.87561,12.5")
fk5;-circle(92.860025,37.870353,6")
fk5;-circle(92.851520,37.873326,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 wh439483504I   23974.7  0.93   35.2  128.4 112   6970  5048  0.000 0.447 99.00 19.5  0.0000 0.4466 99.00 19.5    35  0.000  9.761 99.00 0.010 
   2 wh439487650I   28120.8  0.96  801.9 1790.4 112  82933  5024  0.000 0.063 99.00 21.7  0.0000 0.0627 99.00 21.7   837  0.000  1.604 99.00 0.016 
   3 wh439493383I   33853.7  0.96  811.8 1895.2 116  85289  5076  0.000 0.063 99.00 21.7  0.0000 0.0446 99.00 22.0  1649  0.000  1.246 99.00 0.014 
    Sum (T+ 23975 to  34678):            3952.5       3952.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  22.04
  0  1649 439490786   31256.1   3422.3  -7281.4    0.0000   0.0446 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.232 snr:  0.0 mag: 99.00 UL: 18.43
Rebinned Data for sw00020444001uwh_sk.img using a zero point of 20.391:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.58e+03   31261.4   3417.0  -7286.7    0.0000   0.0446 99.00 99.00   31261.4    0.0000   0.0446 99.00 99.00 22.50
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020444001uvv_sk.img ================
Long-term sensitivity correction is  0.148 at 439483546
The processing date in extension 0 is:  2014-12-06T04:15:54
The trigger time is: 439459529.8571. The reference is BAT GRB summary file
Using zero point of 18.038 for filter V
Use aperture correction of  1.087 based on aperture of  3.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(92.85875,37.87561,25")
fk5;-circle(92.85875,37.87561,12.5")
fk5;-circle(92.860076,37.870340,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 vv439483545I   24016.0  0.98   23.7   24.0 112   1150  5420  0.000 0.230 99.00 17.9  0.0000 0.2299 99.00 17.9    24  0.000 43.946 99.00 0.005 
   2 vv439488472I   28942.7  0.99  801.9  434.4 116  23261  5428  0.000 0.031 99.00 20.1  0.0000 0.0307 99.00 20.1   826  0.000  7.114 99.00 0.007 
   3 vv439489291I   29761.8  0.98   31.5   20.2 108   1621  5380  0.000 0.202 99.00 18.0  0.0000 0.0305 99.00 20.1   857  0.000  7.037 99.00 0.007 
   4 vv439494215I   34685.7  0.99  704.4  371.7 116  18828  5400  0.000 0.032 99.00 20.1  0.0000 0.0220 99.00 20.4  1562  0.000  5.504 99.00 0.006 
    Sum (T+ 24016 to  35401):             957.9        957.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  20.45
  0  1562 439491376   31846.2   3555.2  -7830.1    0.0000   0.0220 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.180 snr:  0.0 mag: 99.00 UL: 16.13
Rebinned Data for sw00020444001uvv_sk.img using a zero point of 18.038:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.55e+03   31848.8   3552.6  -7832.8    0.0000   0.0220 99.00 99.00   31848.8    0.0000   0.0220 99.00 99.00 20.91
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020444001uuu_sk.img ================
Long-term sensitivity correction is  0.101 at 439483464
The processing date in extension 0 is:  2014-12-06T04:15:54
The trigger time is: 439459529.8571. The reference is BAT GRB summary file
Using zero point of 18.441 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(92.85875,37.87561,25")
fk5;-circle(92.85875,37.87561,12.5")
fk5;-circle(92.860050,37.870364,6")
fk5;-circle(92.862146,37.871217,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 uu439483463I   23933.8  0.99   35.2   31.9 112   1302  5112  0.000 0.171 99.00 18.6  0.0000 0.1710 99.00 18.6    35  0.000 22.482 99.00 0.009 
   2 uu439486828I   27298.8  0.99  801.9  299.3 112  15060  5096  0.000 0.025 99.00 20.7  0.0000 0.0254 99.00 20.7   837  0.000  3.807 99.00 0.015 
   3 uu439492551I   33022.0  0.99  811.8  330.8 112  14910  5120  0.000 0.025 99.00 20.7  0.0000 0.0178 99.00 21.1  1649  0.000  2.925 99.00 0.014 
    Sum (T+ 23934 to  33847):             685.7        685.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  21.08
  0  1649 439489976   30446.0   3400.8  -6512.2    0.0000   0.0178 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.103 snr:  0.0 mag: 99.00 UL: 16.60
Rebinned Data for sw00020444001uuu_sk.img using a zero point of 18.441:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.64e+03   30447.3   3399.5  -6513.5    0.0000   0.0178 99.00 99.00   30447.3    0.0000   0.0178 99.00 99.00 21.55
The data range from T+23933.8 s (0.28 d) to T+35401.4 s (0.41 d)
Wrote uvot_fluxes_141206d04h25m09s116659usUT.qdp
Wrote uvot_fluxes_141206d04h25m09s116659usUT.gif
Wrote uvot_fluxes_141206d04h25m09s116659usUT.ps
Wrote uvot_fluxes_141206d04h25m09s116659usUT_vis.qdp
Wrote uvot_fluxes_141206d04h25m09s116659usUT_uv.qdp
Wrote uvot_fluxes_141206d04h25m09s116659usUT_vis.gif
Wrote uvot_fluxes_141206d04h25m09s116659usUT_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.732   30707.8   4693.6  -6774.0    0.0000   0.0393 99.00 99.00   30707.8    0.0000   0.0393 99.00 99.00 22.54
The data range from T+23933.8 s (0.28 d) to T+35401.4 s (0.41 d)
Wrote uvot_fluxes_wtd_141206d04h25m09s116659usUT.qdp
Wrote uvot_fluxes_wtd_141206d04h25m09s116659usUT.gif
Wrote uvot_fluxes_wtd_141206d04h25m09s116659usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem