# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 130907d04h50m40s891121usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020294002 -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
# ========= GRB130903A ===================
Used archived opt source position of 82.13054 -0.12733 3.00
Reference: GCN_Circulars-15177-Wed,_4_Sep_2013_11:02:45_-0400_(EDT)
The position is (05:28:31.33, -00:07:38.4)
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(82.13054,-0.12733,3") # color=red dash=0
Region file centered at (82.13054,-0.12733), which is (05:28:31.33, -00:07:38.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.
Subtract UTCF of -10.97968 from trigger time of 399862040 in BAT summary file
# ============ Reading file sw00020294001uvv_sk.img ================
Long-term sensitivity correction is 0.130 at 399906179
The processing date in extension 0 is: 2013-09-03T20:54:21
The trigger time is: 399862050.97968. The reference is BAT GRB summary file
Using zero point of 18.020 for filter V
Use aperture correction of 1.087 based on aperture of 3.00
Using background region based on sources found in extension 4:
# 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(82.13054,-0.12733,25")
fk5;-circle(82.13054,-0.12733,12.5")
fk5;-circle(82.129051,-0.132986,6")
fk5;-circle(82.135540,-0.120906,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 vv399906178I   44127.6  0.99  243.9  149.8 112   6907  5427  0.033 0.056 21.74 19.7  0.0325 0.0557 21.74 19.7   244 11.635 19.935 17.63 0.005 
   2 vv399906429I   44378.3  0.99  976.1  591.0 108  27065  5398  0.056 0.028 21.16 20.2  0.0511 0.0247 21.25 20.3  1220 18.533  8.958 17.12 0.005 
   3 vv399911899I   49848.5  0.99  247.8  135.5 108   6654  5382  0.009 0.052 23.17 19.9  0.0439 0.0224 21.41 20.4  1468 16.354  8.244 17.26 0.005 
   4 vv399912155I   50104.1  0.99  993.9  598.2 112  26890  5417  0.047 0.027 21.35 20.2  0.0450 0.0173 21.39 20.6  2462 17.328  6.633 17.19 0.005 
    Sum (T+ 44128 to  51114):            1474.5       1373.5 (est. in src region)   SNR_unwtd_sum:   2.60 0.9987 signif. UL:  20.55
  0  2462 399909692   47641.2   3472.6  -3513.6    0.0450   0.0173 21.387  0.526  -0.353
Total wtd_rate (for all exposures so far): 17.328 +/- 6.571 snr:  2.6 mag: 17.19 UL: 14.10
Rebinned Data for sw00020294001uvv_sk.img using a zero point of 18.020:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.44e+03   47642.8   3471.0  -3515.2    0.0450   0.0173 21.39  0.35   47642.8    0.0450   0.0173 21.39  0.35 20.55
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020294001uuu_sk.img ================
Long-term sensitivity correction is  0.089 at 399907429
The processing date in extension 0 is:  2013-09-03T20:54:22
The trigger time is: 399862050.97968. The reference is BAT GRB summary file
Using zero point of 18.429 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(82.13054,-0.12733,25")
fk5;-circle(82.13054,-0.12733,12.5")
fk5;-circle(82.129012,-0.132964,6")
fk5;-circle(82.135516,-0.121004,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 uu399907428I   45377.6  0.99  779.8  480.0 116  23449  5392 -0.035 0.032 99.00 21.2 -0.0348 0.0316 99.00 21.2   780 -8.854  8.027 99.00 0.006 
   2 uu399913172I   51121.3  0.99  662.4  403.8 116  18655  5390  0.004 0.034 24.46 20.8 -0.0170 0.0232 99.00 21.4  1442 -4.687  6.193 99.00 0.006 
    Sum (T+ 45378 to  51794):             883.8        906.0 (est. in src region)   SNR_unwtd_sum:  -0.74 0.9987 signif. UL:  21.44
  0  1442 399910435   48384.4   3409.9  -3006.7   -0.0170   0.0232 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  6.059 +/- 4.509 snr:  1.3 mag: 18.33 UL: 15.19
Rebinned Data for sw00020294001uuu_sk.img using a zero point of 18.429:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.43e+03   48386.1   3408.2  -3008.4   -0.0170   0.0232 99.00 99.00   48386.1   -0.0170   0.0232 99.00 99.00 21.44
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020294002uw2_sk.img ================
Long-term sensitivity correction is  0.089 at 400154130
The processing date in extension 0 is:  2013-09-07T04:26:36
The trigger time is: 399862050.97968. The reference is BAT GRB summary file
Using zero point of 17.469 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.00
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(82.13054,-0.12733,25")
fk5;-circle(82.13054,-0.12733,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
High bkg:   1 w2400154130I 1624.5   9961  5824  1.053  0.011
   1 w2400154130I  292079.5  1.00 1624.5  180.2 108   9961  5824 -0.003 0.009 99.00 21.4 -0.0031 0.0093 99.00 21.4  1625 -12.035 36.457 99.00 0.002 
High bkg:   2 w2400194478I 1656.1   9932  5840  1.027  0.010
   2 w2400194478I  332427.3  1.00 1656.1  186.9 112   9932  5839 -0.002 0.009 99.00 21.4 -0.0027 0.0065 99.00 21.8  3281 -11.432 27.373 99.00 0.002 
High bkg:   3 w2400200309I 1585.8   9081  5820  0.984  0.010
   3 w2400200309I  338258.8  1.00 1585.8  180.8 112   9081  5820  0.004 0.009 23.39 21.1 -0.0004 0.0054 99.00 21.9  4866 -2.264 23.143 99.00 0.002 
    Sum (T+292079 to 339870):             548.0        550.0 (est. in src region)   SNR_unwtd_sum:  -0.08 0.9987 signif. UL:  21.89
  0  4866 400183734  321683.0  18187.0 -29603.6   -0.0004   0.0054 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  5.796 +/- 4.456 snr:  1.3 mag: 18.38 UL: 14.25
Rebinned Data for sw00020294002uw2_sk.img using a zero point of 17.469:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.86e+03  321684.2  18185.8 -29604.8   -0.0004   0.0054 99.00 99.00  321684.2   -0.0004   0.0054 99.00 99.00 21.89
The data range from T+44127.6 s (0.51 d) to T+339870.0 s (3.93 d)
Wrote uvot_fluxes_130907d04h50m40s891121usUT.qdp
Wrote uvot_fluxes_130907d04h50m40s891121usUT.gif
Wrote uvot_fluxes_130907d04h50m40s891121usUT.ps
Wrote uvot_fluxes_130907d04h50m40s891121usUT_vis.qdp
Wrote uvot_fluxes_130907d04h50m40s891121usUT_uv.qdp
Wrote uvot_fluxes_130907d04h50m40s891121usUT_vis.gif
Wrote uvot_fluxes_130907d04h50m40s891121usUT_vis.ps
Wrote uvot_fluxes_130907d04h50m40s891121usUT_uv.gif
Wrote uvot_fluxes_130907d04h50m40s891121usUT_uv.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.00751   47798.6   3995.7  -3671.0    0.0718   0.0962 23.15  0.92   47798.6    0.0718   0.0962 23.15  0.92 21.37
The data range from T+44127.6 s (0.51 d) to T+339870.0 s (3.93 d)
Wrote uvot_fluxes_wtd_130907d04h50m40s891121usUT.qdp
Wrote uvot_fluxes_wtd_130907d04h50m40s891121usUT.gif
Wrote uvot_fluxes_wtd_130907d04h50m40s891121usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem