# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 171019d02h57m35s798271usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020782002 -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
# ========= GRB171010A ===================
Used archived BAT position of 66.74000 -10.53000
Reference: GCN_Circ-21985
The position is (04:26:57.60, -10:31:48.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.530,3") # color=red dash=0
Region file centered at (66.740,-10.530), which is (04:26:57.60, -10:31:48.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 57600.0,
3 sigma should become about 5.6 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.8313 from uncorrected trigger time of 529354850.58 in BAT summary file
# ============ Reading file sw00020782001uwh_sk.img ================
Use keyword TRIGTIME of 529354870.412 for trigger time.
Long-term sensitivity correction to zero point is -0.183 at 529912554
The processing date in extension 0 is: 2017-10-18T07:33:34
The trigger time is: 529354870.412. The reference is keyword in image file
Using zero point of 20.107 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  3   91.0  66.58616 -10.42965 0.286 121.3
  4   96.0  66.58557 -10.42839 0.286 121.3
  5  -15.3  66.60057 -10.45557 0.286 121.3
  6   -5.3  66.60021 -10.45257 0.286 121.3
Using background region based on sources found in extension 11:
# 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.530,25")
fk5;-circle(66.740,-10.530,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 wh529912553I  557683.3  0.97   51.9   87.9 108   4266  5836  0.000 0.196 99.00 20.0  0.0000 0.1965 99.00 20.0    52  0.000 129.740 99.00 0.001 
   2 wh529912609I  557738.7  0.97  484.0  762.7 112  38929  5868  0.000 0.065 99.00 21.2  0.0000 0.0614 99.00 21.3   536  0.000 40.588 99.00 0.001 
Low  bkg:   3 wh529919917I   17.5      0  5872  0.000  0.010
%  3 wh529919917I  565046.7  1.00   17.5    0.0 116      0  5872 
Low  bkg:   4 wh529919937I  180.6      0  5844  0.000  0.001
%  4 wh529919937I  565067.1  1.00  180.6    0.0 108      0  5844 
Low  bkg:   5 wh529925515I   32.3   1562  5892  8.198  0.207
%  5 wh529925515I  570644.8  0.98   32.3   53.6 128   1562  5892 
%  6 wh529925550I  570680.2  0.98  325.1  244.2 116  22808  5840 
   7 wh529935639I  580769.0  0.97  135.6  226.3 120  11073  5860  0.000 0.128 99.00 20.5  0.0000 0.0554 99.00 21.4   672  0.000 36.850 99.00 0.001 
   8 wh529935780I  580909.6  0.97 1362.9 2221.4 116 117000  5896  0.000 0.041 99.00 21.7  0.0000 0.0327 99.00 22.0  2034  0.000 22.238 99.00 0.001 
   9 wh529937170I  582300.5  0.95   49.3  154.2 116   7119  5860  0.000 0.283 99.00 19.6  0.0000 0.0326 99.00 22.0  2084  0.000 22.094 99.00 0.001 
  10 wh529941379I  586508.8  0.97  140.5  233.9 116  11277  5872  0.000 0.122 99.00 20.5  0.0000 0.0315 99.00 22.0  2224  0.000 21.379 99.00 0.001 
  11 wh529941524I  586654.5  0.97 1412.2 2346.5 116 120875  5876  0.000 0.040 99.00 21.7  0.0000 0.0247 99.00 22.3  3636  0.000 16.924 99.00 0.001 
  12 wh529942965I  588094.9  0.95   74.5  228.5 108  12961  5820  0.000 0.246 99.00 19.8  0.0000 0.0247 99.00 22.3  3711  0.000 16.842 99.00 0.001 
  13 wh529947882I  593012.1  0.97   61.8  102.7 112   5107  5852  0.000 0.184 99.00 20.1  0.0000 0.0245 99.00 22.3  3773  0.000 16.701 99.00 0.001 
  14 wh529947947I  593077.5  0.97  624.8 1108.7 116  52985  5876  0.000 0.060 99.00 21.3  0.0000 0.0227 99.00 22.4  4398  0.000 15.511 99.00 0.001 
  15 wh529948586I  593716.4  0.96   33.6   64.6 116   3750  5864  0.000 0.298 99.00 19.6  0.0000 0.0226 99.00 22.4  4431  0.000 15.469 99.00 0.001 
    Sum (T+557683 to 593751):            7559.0       7559.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  22.35
  0  4431 529937618  582747.5  11003.0 -25064.2    0.0000   0.0226 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-15.319 snr:  0.0 mag: 99.00 UL: 15.28
# ============ Reading file sw00020782002uwh_sk.img ================
Use keyword TRIGTIME of 529354870.412 for trigger time.
Long-term sensitivity correction to zero point is -0.183 at 530038658
The processing date in extension 0 is:  2017-10-19T02:46:51
The trigger time is: 529354870.412. The reference is keyword in image file
Using zero point of 20.107 for filter WHITE
Use aperture correction of  1.108 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  4   -8.7  66.57672 -10.50883 0.286 125.0
  5   -0.2  66.57476 -10.51027 0.286 125.0
  6    1.6  66.57437 -10.51064 0.286 125.0
 10   29.0  66.59552 -10.43819 0.286 125.0
 11   33.7  66.59657 -10.43622 0.286 125.0
 12   32.9  66.59626 -10.43662 0.286 125.0
Using background region based on sources found in extension 8:
# 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.530,25")
fk5;-circle(66.740,-10.530,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 wh530038657I  683787.6  0.97  129.7  203.0 116  10673  5872  0.000 0.129 99.00 20.5  0.0000 0.1288 99.00 20.5   130  0.000 104.248 99.00 0.001 
   2 wh530038792I  683922.3  0.97 1298.0 2081.9 112 106364  5832  0.000 0.040 99.00 21.7  0.0000 0.0382 99.00 21.8  1428  0.000 30.958 99.00 0.001 
   3 wh530040117I  685246.7  0.97  121.8  180.3 108  10158  5812  0.000 0.129 99.00 20.5  0.0000 0.0366 99.00 21.8  1549  0.000 29.695 99.00 0.001 
%  4 wh530044358I  689488.3  0.98  129.7  230.2 112   9719  5820 
%  5 wh530044493I  689622.9  0.98 1298.0 2024.0 104  99284  5808 
%  6 wh530045817I  690947.2  0.97  121.5  191.9 112   9407  5828 
   7 wh530050119I  695249.3  0.97  129.7  193.1 108  10586  5832  0.000 0.124 99.00 20.5  0.0000 0.0351 99.00 21.9  1679  0.000 28.514 99.00 0.001 
   8 wh530050254I  695383.9  0.97 1298.0 2142.7 116 106173  5828  0.000 0.041 99.00 21.7  0.0000 0.0266 99.00 22.2  2977  0.000 21.724 99.00 0.001 
   9 wh530051578I  696708.0  0.97  120.7  203.7 112  10273  5872  0.000 0.133 99.00 20.4  0.0000 0.0261 99.00 22.2  3098  0.000 21.313 99.00 0.001 
Low  bkg:  10 wh530056223I   90.3      0  5828  0.000  0.002
% 10 wh530056223I  701353.5  1.00   90.3    0.0 112      0  5828 
Low  bkg:  11 wh530056318I  908.2      0  5832  0.000  0.000
% 11 wh530056318I  701448.1  1.00  908.2    0.0 108      0  5832 
Low  bkg:  12 wh530057245I   34.5      0  5868  0.000  0.005
% 12 wh530057245I  702375.4  1.00   34.5    0.0 112      0  5868 
    Sum (T+683788 to 696831):            4947.5       4947.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  22.20
  0  3098 530045177  690306.3   6524.3  -6518.7    0.0000   0.0261 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-12.398 snr:  0.0 mag: 99.00 UL: 15.50
Rebinned Data for sw00020782002uwh_sk.img using a zero point of 20.107:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 7.32e+03  627050.8  69779.8 -69367.6    0.0000   0.0171 99.00 99.00  627050.8    0.0000   0.0171 99.00 99.00 23.26
The data range from T+557683.3 s (6.45 d) to T+696830.6 s (8.07 d)
Wrote uvot_fluxes_171019d02h57m35s798271usUT.qdp
Wrote uvot_fluxes_171019d02h57m35s798271usUT.gif
Wrote uvot_fluxes_171019d02h57m35s798271usUT.ps
Wrote uvot_fluxes_171019d02h57m35s798271usUT_vis.qdp
Wrote uvot_fluxes_171019d02h57m35s798271usUT_uv.qdp
Wrote uvot_fluxes_171019d02h57m35s798271usUT_vis.gif
Wrote uvot_fluxes_171019d02h57m35s798271usUT_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.00539  619312.4  77518.2 -61629.1    0.0000   0.0202 99.00 99.00  619312.4    0.0000   0.0202 99.00 99.00 23.26
The data range from T+557683.3 s (6.45 d) to T+696830.6 s (8.07 d)
Wrote uvot_fluxes_wtd_171019d02h57m35s798271usUT.qdp
Wrote uvot_fluxes_wtd_171019d02h57m35s798271usUT.gif
Wrote uvot_fluxes_wtd_171019d02h57m35s798271usUT.ps
Found 6 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem