# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 131116d00h12m32s632325usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020327001 -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
# ========= GRB131110A ===================
Used archived BAT position of 69.26800 -17.25900
Reference: GCN_Circ-15487
The position is (04:37:04.32, -17:15:32.4)
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(69.268,-17.259,3") # color=red dash=0
Region file centered at (69.268,-17.259), which is (04:37:04.32, -17:15:32.4)
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 256.0,
3 sigma should become about 4.6 sigma and 2 sigma should become about 3.9 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999492.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -11.23494 from trigger time of 405777191 in BAT summary file
# ============ Reading file sw00020327001uwh_sk.img ================
Use keyword TRIGTIME of 405777202.146 for trigger time.
Long-term sensitivity correction is 0.091 at 406174748
The processing date in extension 0 is: 2013-11-15T23:47:12
The trigger time is: 405777202.146. The reference is keyword in image file
Using zero point of 20.381 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(69.268,-17.259,25")
fk5;-circle(69.268,-17.259,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 wh406174747I  397545.7  0.98  523.4  816.7 120  38642  5872  0.000 0.062 99.00 21.8  0.0000 0.0616 99.00 21.8   523  0.000 22.533 99.00 0.002 
   2 wh406185874I  408672.7  0.98  368.9  533.4 112  27304  5828  0.000 0.071 99.00 21.6  0.0000 0.0466 99.00 22.1   892  0.000 17.236 99.00 0.002 
    Sum (T+397546 to 409047):            1314.4       1314.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999994921875 signif. UL:  22.06
  0   892 406179581  402379.2   6668.3  -4833.5    0.0000   0.0466 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-17.067 snr:  0.0 mag: 99.00 UL: 15.65
Rebinned Data for sw00020327001uwh_sk.img using a zero point of 20.381:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      871  402380.2   6667.2  -4834.5    0.0000   0.0466 99.00 99.00  402380.2    0.0000   0.0466 99.00 99.00 22.44
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020327001uvv_sk.img ================
Use keyword TRIGTIME of 405777202.146 for trigger time.
Long-term sensitivity correction is  0.133 at 406175286
The processing date in extension 0 is:  2013-11-15T23:47:12
The trigger time is: 405777202.146. The reference is keyword in image file
Using zero point of 18.023 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(69.268,-17.259,25")
fk5;-circle(69.268,-17.259,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 vv406175286I  398084.0  0.99  523.4  161.3 108   8564  5828  0.000 0.027 99.00 20.3  0.0000 0.0266 99.00 20.3   523  0.000 85.332 99.00 0.001 
   2 vv406186255I  409053.7  0.99  368.9  125.5 128   6148  5892  0.000 0.035 99.00 20.0  0.0000 0.0212 99.00 20.6   892  0.000 68.378 99.00 0.001 
   3 vv406186633I  409431.8  0.99   46.4   13.0 112    737  5840  0.000 0.089 99.00 19.0  0.0000 0.0206 99.00 20.6   939  0.000 66.619 99.00 0.001 
    Sum (T+398084 to 409479):             306.4        306.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999994921875 signif. UL:  20.59
  0   939 406180381  403178.6   6300.2  -5094.6    0.0000   0.0206 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-16.240 snr:  0.0 mag: 99.00 UL: 13.35
Rebinned Data for sw00020327001uvv_sk.img using a zero point of 18.023:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      934  403178.4   6300.5  -5094.4    0.0000   0.0206 99.00 99.00  403178.4    0.0000   0.0206 99.00 99.00 20.97
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020327001uuu_sk.img ================
Use keyword TRIGTIME of 405777202.146 for trigger time.
Long-term sensitivity correction is  0.091 at 406174210
The processing date in extension 0 is:  2013-11-15T23:47:11
The trigger time is: 405777202.146. The reference is keyword in image file
Using zero point of 18.431 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(69.268,-17.259,25")
fk5;-circle(69.268,-17.259,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 uu406174209I  397007.4  1.00  523.4  133.0 112   6251  5832  0.000 0.023 99.00 20.9  0.0000 0.0233 99.00 20.9   523  0.000 51.367 99.00 0.002 
   2 uu406185494I  408292.1  1.00  368.9   83.7 112   4692  5828  0.000 0.029 99.00 20.6  0.0000 0.0181 99.00 21.1   892  0.000 40.294 99.00 0.002 
    Sum (T+397007 to 408667):             210.2        210.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999994921875 signif. UL:  21.14
  0   892 406179108  401906.1   6760.8  -4898.7    0.0000   0.0181 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-15.186 snr:  0.0 mag: 99.00 UL: 13.83
Rebinned Data for sw00020327001uuu_sk.img using a zero point of 18.431:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      889  401905.4   6761.5  -4898.0    0.0000   0.0181 99.00 99.00  401905.4    0.0000   0.0181 99.00 99.00 21.52
The data range from T+397007.4 s (4.59 d) to T+409478.9 s (4.74 d)
Wrote uvot_fluxes_131116d00h12m32s632325usUT.qdp
Wrote uvot_fluxes_131116d00h12m32s632325usUT.gif
Wrote uvot_fluxes_131116d00h12m32s632325usUT.ps
Wrote uvot_fluxes_131116d00h12m32s632325usUT_vis.qdp
Wrote uvot_fluxes_131116d00h12m32s632325usUT_uv.qdp
Wrote uvot_fluxes_131116d00h12m32s632325usUT_vis.gif
Wrote uvot_fluxes_131116d00h12m32s632325usUT_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.0038  402373.4   7105.5  -5366.0    0.0000   0.0414 99.00 99.00  402373.4    0.0000   0.0414 99.00 99.00 22.48
The data range from T+397007.4 s (4.59 d) to T+409478.9 s (4.74 d)
Wrote uvot_fluxes_wtd_131116d00h12m32s632325usUT.qdp
Wrote uvot_fluxes_wtd_131116d00h12m32s632325usUT.gif
Wrote uvot_fluxes_wtd_131116d00h12m32s632325usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem