# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 141008d08h18m17s428118usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020418001 -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
# ========= GRB140928A ===================
Used archived opt source position of 43.69883 -55.92889 3.00
Reference: GCN_Circulars-16849-Mon,_29_Sep_2014_05:43:32_-0400_(EDT)
The position is (02:54:47.72, -55:55:44.0)
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(43.69883,-55.92889,3") # color=red dash=0
Region file centered at (43.69883,-55.92889), which is (02:54:47.72, -55:55:44.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.
Subtract UTCF of -12.57972 from trigger time of 433592993.54 in BAT summary file
# ============ Reading file sw00020418001uvv_sk.img ================
Use keyword TRIGTIME of 433593005.957 for trigger time.
Long-term sensitivity correction is 0.146 at 433633723
The processing date in extension 0 is: 2014-10-08T08:08:46
The trigger time is: 433593005.957. The reference is keyword in image file
Using zero point of 18.036 for filter V
Use aperture correction of 1.087 based on aperture of 3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1  144.2  43.80986 -56.10124 0.286 146.1
  2  142.6  43.82363 -56.10012 0.286 146.1
  3  253.1  43.79839 -56.13218 0.286 146.1
  4  136.1  43.80689 -56.09914 0.286 146.1
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(43.69883,-55.92889,25")
fk5;-circle(43.69883,-55.92889,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 vv433633722I   40716.9  1.00   17.9    0.0   0      0     0 
%  2 vv433634160I   41154.2  1.00  869.8    0.0   0      0     0 
%  3 vv433639170I   46164.1  1.00 1237.9    0.0   0      0     0 
%  4 vv433644924I   51918.7  1.00  730.1    0.0   0      0     0 
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020418001uuu_sk.img ================
Use keyword TRIGTIME of 433593005.957 for trigger time.
Long-term sensitivity correction is  0.099 at 433635051
The processing date in extension 0 is:  2014-10-08T08:08:46
The trigger time is: 433593005.957. The reference is keyword in image file
Using zero point of 18.439 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1  150.6  43.82053 -56.10251 0.286 146.1
  2  249.1  43.79208 -56.13138 0.286 146.1
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(43.69883,-55.92889,25")
fk5;-circle(43.69883,-55.92889,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 uu433635051I   42045.3  1.00  830.0    0.0   0      0     0 
%  2 uu433640435I   47430.0  1.00 1194.1    0.0   0      0     0 
Wrote uvot_fluxes_141008d08h18m17s428118usUT.qdp
Failed to write uvot_fluxes_141008d08h18m17s428118usUT.gif
Failed to write uvot_fluxes_141008d08h18m17s428118usUT.ps
Wrote uvot_fluxes_141008d08h18m17s428118usUT_vis.qdp
Wrote uvot_fluxes_141008d08h18m17s428118usUT_uv.qdp
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem