# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 150801d02h07m42s063393usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020543002 -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
# ========= GRB150724 ===================
Used archived opt source position of 351.89092 3.81856 3.00
Reference: GCN_Circ-18078
The position is (23:27:33.82, +03:49:06.8)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(351.89092,+3.81856,3") # color=red dash=0
Region file centered at (351.89092,+3.81856), which is (23:27:33.82, +03:49:06.8)
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.
Subtract UTCF of -14.90866 from trigger time of 459456337.7 in BAT summary file
# ============ Reading file sw00020543001uwh_sk.img ================
Long-term sensitivity correction is 0.107 at 459544972
The processing date in extension 0 is: 2015-07-26T09:23:23
The trigger time is: 459456352.60866. The reference is BAT GRB summary file
Using zero point of 20.397 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
  1  -19.6 351.91520   3.68158 0.286  70.0
  2  -28.8 351.91491   3.68421 0.286  70.0
  3  -27.9 351.91519   3.68391 0.286  70.0
Using background region based on sources found in extension 5:
# 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(351.89092,+3.81856,25")
fk5;-circle(351.89092,+3.81856,12.5")
fk5;-circle(351.886876,3.824863,6")
fk5;-circle(351.885691,3.822492,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 wh459544972I   88619.4  0.97  177.9  369.4 116  16274  5464 
%  2 wh459545155I   88803.1  0.96 1764.8 4286.9 116 194044  5479 
%  3 wh459546967I   90615.4  0.90   60.3  381.8 116  18404  5421 
   4 wh459550732I   94379.6  0.97  175.9  329.4 112  16055  5494  0.013 0.119 25.08 21.4  0.0134 0.1193 25.08 21.4   176  1.151 10.210 20.14 0.006 
   5 wh459550915I   94562.4  0.96 1647.8 3766.2 116 169138  5443  0.113 0.043 22.77 21.9  0.1029 0.0407 22.87 22.0  1824  8.743  3.510 17.94 0.005 
    Sum (T+ 94380 to  96237):            4095.5       3932.2 (est. in src region)   SNR_unwtd_sum:   2.53 0.9987 signif. UL:  22.01
  0  1824 459551662   95309.8    926.9   -930.2    0.1029   0.0407 22.866  0.547  -0.362
Total wtd_rate (for all exposures so far):  8.743 +/- 3.475 snr:  2.5 mag: 17.94 UL: 17.19
# ============ Reading file sw00020543002uwh_sk.img ================
Use keyword TRIGTIME of 459456351.554 for trigger time.
Long-term sensitivity correction is  0.108 at 460045999
The processing date in extension 0 is:  2015-08-01T01:56:05
The trigger time is: 459456351.554. The reference is keyword in image file
Using zero point of 20.398 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
  1   52.3 351.94564   3.67257 0.286  54.1
  2   41.7 351.94450   3.67540 0.286  54.1
  3   42.8 351.94443   3.67507 0.286  54.1
  4  152.5 351.92052   3.64140 0.286  54.1
  5  149.7 351.91943   3.64205 0.286  54.1
  6  149.3 351.91917   3.64214 0.286  54.1
  7  141.5 351.92240   3.64473 0.286  54.1
  8  139.5 351.92146   3.64517 0.286  54.1
  9  138.0 351.92126   3.64556 0.286  54.1
 10  227.5 351.96410   3.62583 0.286  54.1
 11  238.5 351.96375   3.62269 0.286  54.1
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(351.89092,+3.81856,25")
fk5;-circle(351.89092,+3.81856,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
Low  bkg:   1 wh460045998I   76.5      0  5824  0.000  0.002
%  1 wh460045998I  589647.2  1.00   76.5    0.0 108      0  5824 
Low  bkg:   2 wh460046079I  772.4      0  5836  0.000  0.000
%  2 wh460046079I  589727.7  1.00  772.4    0.0 112      0  5836 
Low  bkg:   3 wh460046868I   71.4      0  5864  0.000  0.002
%  3 wh460046868I  590516.8  1.00   71.4    0.0 104      0  5864 
%  4 wh460057249I  600898.4  1.00   96.2    0.0   0      0     0 
%  5 wh460057350I  600999.0  1.00  969.2    0.0   0      0     0 
%  6 wh460058340I  601988.5  1.00   59.9    0.0   0      0     0 
%  7 wh460062950I  606599.4  1.00  101.2    0.0   0      0     0 
%  8 wh460063056I  606705.2  1.00 1018.5    0.0   0      0     0 
%  9 wh460064096I  607745.1  1.00   63.3    0.0   0      0     0 
% 10 wh460068852I  612501.2  1.00   51.9    0.0   0      0     0 
% 11 wh460068908I  612556.7  1.00  524.4    0.0   0      0     0 
Rebinned Data for sw00020543002uwh_sk.img using a zero point of 20.398:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.76e+03   95309.5    927.2   -929.9    0.1029   0.0407 22.87  0.36   95309.5    0.1029   0.0407 22.87  0.36 22.01
The data range from T+94379.6 s (1.09 d) to T+96236.7 s (1.11 d)
Wrote uvot_fluxes_150801d02h07m42s063393usUT.qdp
Wrote uvot_fluxes_150801d02h07m42s063393usUT.gif
Wrote uvot_fluxes_150801d02h07m42s063393usUT.ps
Wrote uvot_fluxes_150801d02h07m42s063393usUT_vis.qdp
Wrote uvot_fluxes_150801d02h07m42s063393usUT_uv.qdp
Wrote uvot_fluxes_150801d02h07m42s063393usUT_vis.gif
Wrote uvot_fluxes_150801d02h07m42s063393usUT_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.0896   95289.6    947.1   -910.0    0.0914   0.0368 22.89  0.37   95289.6    0.0914   0.0368 22.89  0.37 22.02
The data range from T+94379.6 s (1.09 d) to T+96236.7 s (1.11 d)
Wrote uvot_fluxes_wtd_150801d02h07m42s063393usUT.qdp
Wrote uvot_fluxes_wtd_150801d02h07m42s063393usUT.gif
Wrote uvot_fluxes_wtd_150801d02h07m42s063393usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem