# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 160402d16h29m40s725892usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020603001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB160401 ===================
Used archived BAT position of 89.73760 26.67580
Reference: GCN_Notice_Sat_02_Apr_16_08:17:00_UT
The position is (05:58:57.02, +26:40:32.9)
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(89.7376,+26.6758,3") # color=red dash=0
Region file centered at (89.7376,+26.6758), which is (05:58:57.02, +26:40:32.9)
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 -16.03856 from trigger time of 481234862.71 in BAT summary file
# ============ Reading file sw00020603001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.159 at 481278557
The processing date in extension 0 is: 2016-04-02T16:19:57
The trigger time is: 481234878.74856. The reference is BAT GRB summary file
Using zero point of 20.131 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(89.7376,+26.6758,25")
fk5;-circle(89.7376,+26.6758,12.5")
fk5;-circle(89.732633,26.673820,6")
fk5;-circle(89.742873,26.681081,6")
fk5;-circle(89.733329,26.681180,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 wh481278556I   43678.0  0.94  522.2 1991.9 104  90764  4916  0.000 0.100 99.00 20.9  0.0000 0.1004 99.00 20.9   522  0.000  5.123 99.00 0.005 
    Sum (T+ 43678 to  44502):            1920.1       1920.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  20.89
  0   522 481278969   44089.9    411.9   -411.9    0.0000   0.1004 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 5.070 snr:  0.0 mag: 99.00 UL: 16.64
Rebinned Data for sw00020603001uwh_sk.img using a zero point of 20.131:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      489   44089.9    411.9   -411.9    0.0000   0.1004 99.00 99.00   44089.9    0.0000   0.1004 99.00 99.00 21.36
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020603001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.202 at 481279388
The processing date in extension 0 is:  2016-04-02T16:19:57
The trigger time is: 481234878.74856. The reference is BAT GRB summary file
Using zero point of 17.688 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(89.7376,+26.6758,25")
fk5;-circle(89.7376,+26.6758,12.5")
fk5;-circle(89.742869,26.681076,6")
fk5;-circle(89.733284,26.681126,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 vv481279387I   44508.9  0.98  810.8  786.3 112  37690  5388  0.000 0.039 99.00 19.5  0.0000 0.0386 99.00 19.5   811  0.000 19.032 99.00 0.002 
   2 vv481280215I   45337.1  0.98   32.1   29.2 108   1459  5348  0.000 0.189 99.00 17.8  0.0000 0.0378 99.00 19.5   843  0.000 18.653 99.00 0.002 
    Sum (T+ 44509 to  45370):             812.9        812.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  19.51
  0   843 481279816   44937.3    432.4   -428.4    0.0000   0.0378 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 4.806 snr:  0.0 mag: 99.00 UL: 14.25
Rebinned Data for sw00020603001uvv_sk.img using a zero point of 17.688:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      829   44937.3    432.4   -428.4    0.0000   0.0378 99.00 99.00   44937.3    0.0000   0.0378 99.00 99.00 19.98
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020603001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.126 at 481277726
The processing date in extension 0 is:  2016-04-02T16:19:57
The trigger time is: 481234878.74856. The reference is BAT GRB summary file
Using zero point of 18.214 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(89.7376,+26.6758,25")
fk5;-circle(89.7376,+26.6758,12.5")
fk5;-circle(89.742867,26.681103,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 uu481277725I   42847.0  0.98  810.8  972.2 128  43938  5688  0.000 0.044 99.00 19.9  0.0000 0.0439 99.00 19.9   811  0.000 12.861 99.00 0.003 
   2 uu481283484I   48605.9  0.98  457.4  601.0 116  30105  5688  0.000 0.062 99.00 19.5  0.0000 0.0358 99.00 20.1  1268  0.000 10.870 99.00 0.003 
    Sum (T+ 42847 to  49071):            1602.7       1602.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  20.10
  0  1268 481280150   45271.2   3799.4  -2424.1    0.0000   0.0358 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 4.428 snr:  0.0 mag: 99.00 UL: 14.87
Rebinned Data for sw00020603001uuu_sk.img using a zero point of 18.214:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.24e+03   45266.1   3804.6  -2419.0    0.0000   0.0358 99.00 99.00   45266.1    0.0000   0.0358 99.00 99.00 20.56
The data range from T+42847.0 s (0.50 d) to T+49070.6 s (0.57 d)
Wrote uvot_fluxes_160402d16h29m40s725892usUT.qdp
Wrote uvot_fluxes_160402d16h29m40s725892usUT.gif
Wrote uvot_fluxes_160402d16h29m40s725892usUT.ps
Wrote uvot_fluxes_160402d16h29m40s725892usUT_vis.qdp
Wrote uvot_fluxes_160402d16h29m40s725892usUT_uv.qdp
Wrote uvot_fluxes_160402d16h29m40s725892usUT_vis.gif
Wrote uvot_fluxes_160402d16h29m40s725892usUT_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.0344   44124.1   4946.5  -1277.0    0.0000   0.1114 99.00 99.00   44124.1    0.0000   0.1114 99.00 99.00 21.40
The data range from T+42847.0 s (0.50 d) to T+49070.6 s (0.57 d)
Wrote uvot_fluxes_wtd_160402d16h29m40s725892usUT.qdp
Wrote uvot_fluxes_wtd_160402d16h29m40s725892usUT.gif
Wrote uvot_fluxes_wtd_160402d16h29m40s725892usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem