# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 171011d10h04m09s930228usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020778992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB171010 ===================
Used archived BAT position of 66.74000 -10.54000
Reference: GCN_FOM_Notice_Wed_11_Oct_17_01:33:04_UT
The position is (04:26:57.60, -10:32:24.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(66.740,-10.540,3") # color=red dash=0
Region file centered at (66.740,-10.540), which is (04:26:57.60, -10:32:24.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 82828.8,
3 sigma should become about 5.7 sigma and 2 sigma should become about 5.1 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999998.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -19.80288 from uncorrected trigger time of 529354850.58 in BAT summary file
# ============ Reading file sw00020778992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.183 at 529379651
The processing date in extension 0 is: 2017-10-11T09:56:26
The trigger time is: 529354870.38288. The reference is BAT GRB summary file
Using zero point of 20.107 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(66.740,-10.540,25")
fk5;-circle(66.740,-10.540,12.5")
fk5;-circle(66.747944,-10.538919,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 wh529379650I   24780.6  0.97  539.1  963.4 108  43298  5760  0.000 0.061 99.00 21.3  0.0000 0.0607 99.00 21.3   539  0.000  1.800 99.00 0.022 
   2 wh529385529I   30659.6  0.97  475.2  824.9 108  38345  5768  0.000 0.065 99.00 21.2  0.0000 0.0443 99.00 21.6  1014  0.000  1.433 99.00 0.020 
   3 wh529391246I   36376.5  0.97  487.0  875.7 108  39424  5768  0.000 0.064 99.00 21.2  0.0000 0.0364 99.00 21.8  1501  0.000  1.273 99.00 0.018 
    Sum (T+ 24781 to  36871):            2268.0       2268.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999984304984 signif. UL:  21.82
  0  1501 529385528   30657.7   6213.5  -5877.2    0.0000   0.0364 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.262 snr:  0.0 mag: 99.00 UL: 17.97
Rebinned Data for sw00020778992uwh_sk.img using a zero point of 20.107:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.46e+03   30657.4   6213.9  -5876.8    0.0000   0.0364 99.00 99.00   30657.4    0.0000   0.0364 99.00 99.00 22.43
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020778992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.233 at 529380205
The processing date in extension 0 is:  2017-10-11T09:56:27
The trigger time is: 529354870.38288. The reference is BAT GRB summary file
Using zero point of 17.657 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(66.740,-10.540,25")
fk5;-circle(66.740,-10.540,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 vv529380205I   25335.0  0.99  539.1  409.6 116  18997  5860  0.000 0.040 99.00 19.3  0.0000 0.0400 99.00 19.3   539  0.000 11.566 99.00 0.005 
   2 vv529380756I   25886.4  0.98   21.5   31.9 108   1357  5848  0.000 0.261 99.00 17.2  0.0000 0.0397 99.00 19.3   561  0.000 11.436 99.00 0.005 
   3 vv529386019I   31148.8  0.99  475.1  333.3 104  16645  5800  0.000 0.040 99.00 19.3  0.0000 0.0284 99.00 19.6  1036  0.000  8.935 99.00 0.005 
   4 vv529386505I   31635.2  0.98   11.8   13.7 116    747  5836  0.000 0.367 99.00 16.9  0.0000 0.0283 99.00 19.6  1047  0.000  8.914 99.00 0.005 
   5 vv529391748I   36877.8  0.99  366.9  232.8 112  10964  5840  0.000 0.044 99.00 19.2  0.0000 0.0239 99.00 19.8  1414  0.000  8.018 99.00 0.004 
    Sum (T+ 25335 to  37251):             924.7        924.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999984304984 signif. UL:  19.83
  0  1414 529385447   30577.1   6673.5  -5242.1    0.0000   0.0239 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.224 snr:  0.0 mag: 99.00 UL: 15.56
Rebinned Data for sw00020778992uvv_sk.img using a zero point of 17.657:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.4e+03   30580.7   6669.9  -5245.7    0.0000   0.0239 99.00 99.00   30580.7    0.0000   0.0239 99.00 99.00 20.44
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020778992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.145 at 529379097
The processing date in extension 0 is:  2017-10-11T09:56:26
The trigger time is: 529354870.38288. The reference is BAT GRB summary file
Using zero point of 18.195 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(66.740,-10.540,25")
fk5;-circle(66.740,-10.540,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 uu529379097I   24226.8  1.00  539.1  161.5 112   7005  5840  0.000 0.024 99.00 20.4  0.0000 0.0240 99.00 20.4   539  0.000  4.043 99.00 0.024 
   2 uu529385040I   30170.5  1.00  475.2  135.5 112   6062  5844  0.000 0.025 99.00 20.3  0.0000 0.0174 99.00 20.7  1014  0.000  3.214 99.00 0.022 
   3 uu529389864I   34994.5  1.00   35.6   11.5 116    482  5844  0.000 0.097 99.00 18.8  0.0000 0.0171 99.00 20.7  1050  0.000  3.184 99.00 0.021 
   4 uu529390745I   35875.6  1.00  487.0  163.5 116   6283  5868  0.000 0.026 99.00 20.3  0.0000 0.0142 99.00 20.9  1537  0.000  2.846 99.00 0.020 
   5 uu529396144I   41274.3  1.00  378.5  100.1 112   4877  5828  0.000 0.029 99.00 20.2  0.0000 0.0127 99.00 21.1  1915  0.000  2.686 99.00 0.019 
    Sum (T+ 24227 to  41659):             478.0        478.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999984304984 signif. UL:  21.05
  0  1915 529387341   32470.4   9188.6  -8243.5    0.0000   0.0127 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.122 snr:  0.0 mag: 99.00 UL: 16.19
Rebinned Data for sw00020778992uuu_sk.img using a zero point of 18.195:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.91e+03   32470.6   9188.4  -8243.7    0.0000   0.0127 99.00 99.00   32470.6    0.0000   0.0127 99.00 99.00 21.66
The data range from T+24226.8 s (0.28 d) to T+41658.9 s (0.48 d)
Wrote uvot_fluxes_171011d10h04m09s930228usUT.qdp
Wrote uvot_fluxes_171011d10h04m09s930228usUT.gif
Wrote uvot_fluxes_171011d10h04m09s930228usUT.ps
Wrote uvot_fluxes_171011d10h04m09s930228usUT_vis.qdp
Wrote uvot_fluxes_171011d10h04m09s930228usUT_uv.qdp
Wrote uvot_fluxes_171011d10h04m09s930228usUT_vis.gif
Wrote uvot_fluxes_171011d10h04m09s930228usUT_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.543   29211.5  12447.5  -4984.6    0.0000   0.0420 99.00 99.00   29211.5    0.0000   0.0420 99.00 99.00 22.46
The data range from T+24226.8 s (0.28 d) to T+41658.9 s (0.48 d)
Wrote uvot_fluxes_wtd_171011d10h04m09s930228usUT.qdp
Wrote uvot_fluxes_wtd_171011d10h04m09s930228usUT.gif
Wrote uvot_fluxes_wtd_171011d10h04m09s930228usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem