# uvot_fluxes_wget.pl vrs. 2011-02-18b fem at 110218d18h28m27s605634usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget_wrk.pl -rebin -plot_mag -targid=00020157 -seg=002 -useprev -usex -web
# Current directory: /local/data/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB110213B ===================
Used archived optical source position of 41.75588 1.14619 3.00
Reference: GCN_Circ_11732
The position is (02:47:01.41, +01:08:46.3)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl optical
global color=red font="helvetica 10 normal" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source
fk5;circle(41.75588,+1.14619,3")
Region file centered at (41.75588,+1.14619), which is (02:47:01.41, +01:08:46.3)
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 rate is converted to a magnitude using the white zero point.
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 -6.65888 from trigger time of 319300308 in BAT summary file
# ============ Reading file sw00020157992uwh_sk.img ================
Ignore invalid TRIGTIME of 15
The processing date in extension 0 is: 2011-02-14T08:35:21
The trigger time is: 319300314.65888. The reference is BAT GRB summary file
Using zero point of 20.29 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  209.1  41.56630   1.21992 0.286 246.1
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(41.75588,+1.14619,25")
fk5;-circle(41.75588,+1.14619,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 wh319348767I   48453.1  1.00  802.9    0.0   0      0     0 
# ============ Reading file sw00020157001uwh_sk.img ================
Ignore invalid TRIGTIME of 2011-02-13T14:31:48
The processing date in extension 0 is:  2011-02-16T20:10:58
The trigger time is: 319300314.65888. The reference is BAT GRB summary file
Using zero point of 20.29 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  209.1  41.56630   1.21992 0.286 246.1
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(41.75588,+1.14619,25")
fk5;-circle(41.75588,+1.14619,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 wh319348767I   48453.1  1.00  802.9    0.0   0      0     0 
# ============ Reading file sw00020157002uwh_sk.img ================
Ignore invalid TRIGTIME of 2011-02-13T14:31:48
The processing date in extension 0 is:  2011-02-17T21:06:33
The trigger time is: 319300314.65888. The reference is BAT GRB summary file
Using zero point of 20.29 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   82.4  41.60263   1.20033 0.286 250.5
  3   56.5  41.60908   1.19531 0.286 250.5
  4   90.6  41.60044   1.20104 0.286 250.5
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(41.75588,+1.14619,25")
fk5;-circle(41.75588,+1.14619,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 wh319551272I  411.2      0  1912  0.000  0.001
%  1 wh319551272I  250957.9  1.00  411.2    0.0   0      0  1912 
   2 wh319556479I  256164.3  0.94  258.6 1022.6 116  47490  5885  0.395 0.153 21.30 20.5  0.3950 0.1532 21.30 20.5   259  0.395  0.153 21.30 0.259 
Low  bkg:   3 wh319568429I  468.3      0  5832  0.000  0.000
%  3 wh319568429I  268115.1  1.00  468.3    0.0 116      0  5832 
Low  bkg:   4 wh319574191I  468.3      0  5836  0.000  0.000
%  4 wh319574191I  273876.7  1.00  468.3    0.0 116      0  5836 
    Sum (T+256164 to 256427):            1022.6        936.1 (est. in src region)   SNR_unwtd_sum:   2.58 0.9987 signif. UL:  20.46
  0   259  256295.7    131.4   -131.4    0.3950   0.1532 21.30  0.36
Total wtd_rate (for all exposures so far):  0.395 +/- 0.146 snr:  2.7 mag: 21.30 UL: 20.49
Rebinned Data for sw00020157002uwh_sk.img using a zero point of 20.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      242  256295.7    131.4   -131.4    0.3950   0.1532 21.30  0.36  256295.7    0.3950   0.1532 21.30  0.36 20.46
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020157992uvv_sk.img ================
Ignore invalid TRIGTIME of 15
The processing date in extension 0 is:  2011-02-14T08:35:21
The trigger time is: 319300314.65888. The reference is BAT GRB summary file
Using zero point of 17.89 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  208.9  41.56632   1.21954 0.286 246.1
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(41.75588,+1.14619,25")
fk5;-circle(41.75588,+1.14619,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 vv319349590I   49276.1  1.00  344.1    0.0   0      0     0 
# ============ Reading file sw00020157001uvv_sk.img ================
Ignore invalid TRIGTIME of 2011-02-13T14:31:48
The processing date in extension 0 is:  2011-02-16T20:10:59
The trigger time is: 319300314.65888. The reference is BAT GRB summary file
Using zero point of 17.89 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  208.9  41.56632   1.21954 0.286 246.1
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(41.75588,+1.14619,25")
fk5;-circle(41.75588,+1.14619,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 vv319349590I   49276.1  1.00  344.1    0.0   0      0     0 
# ============ Reading file sw00020157002uvv_sk.img ================
Ignore invalid TRIGTIME of 2011-02-13T14:31:48
The processing date in extension 0 is:  2011-02-17T21:06:33
The trigger time is: 319300314.65888. The reference is BAT GRB summary file
Using zero point of 17.89 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   80.8  41.60302   1.20006 0.286 250.5
  2   81.7  41.60278   1.19999 0.286 250.5
  4   55.9  41.60923   1.19504 0.286 250.5
  5   55.5  41.60933   1.19501 0.286 250.5
  6   89.2  41.60078   1.20065 0.286 250.5
  7   88.8  41.60089   1.20082 0.286 250.5
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(41.75588,+1.14619,25")
fk5;-circle(41.75588,+1.14619,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 vv319551696I  411.2      0  2108  0.000  0.001
%  1 vv319551696I  251381.8  1.00  411.2    0.0   0      0  2108 
Low  bkg:   2 vv319552117I   22.7      0  2016  0.000  0.022
%  2 vv319552117I  251803.3  1.00   22.7    0.0   0      0  2016 
   3 vv319556747I  256433.0  0.99  249.2  196.7 112   9727  5861  0.048 0.063 21.19 19.4  0.0479 0.0625 21.19 19.4   249  0.437  0.570 21.19 0.145 
Low  bkg:   4 vv319568911I  468.3      0  5864  0.000  0.000
%  4 vv319568911I  268597.3  1.00  468.3    0.0 116      0  5864 
Low  bkg:   5 vv319569391I   29.1      0  5820  0.000  0.006
%  5 vv319569391I  269076.8  1.00   29.1    0.0 108      0  5820 
Low  bkg:   6 vv319574673I  468.2      0  5868  0.000  0.000
%  6 vv319574673I  274358.8  1.00  468.2    0.0 112      0  5868 
Low  bkg:   7 vv319575152I   27.7      0  5832  0.000  0.006
%  7 vv319575152I  274838.0  1.00   27.7    0.0 112      0  5832 
    Sum (T+256433 to 256686):             196.7        185.9 (est. in src region)   SNR_unwtd_sum:   0.77 0.9987 signif. UL:  19.44
  0   249  256559.6    126.6   -126.6    0.0479   0.0625 21.19  0.91
Total wtd_rate (for all exposures so far):  0.391 +/- 0.139 snr:  2.8 mag: 21.31 UL: 18.12
Rebinned Data for sw00020157002uvv_sk.img using a zero point of 17.89:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      246  256559.6    126.6   -126.6    0.0479   0.0625 21.19  0.91  256559.6    0.0479   0.0625 21.19  0.91 19.44
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020157992uuu_sk.img ================
Ignore invalid TRIGTIME of 15
The processing date in extension 0 is:  2011-02-14T08:35:20
The trigger time is: 319300314.65888. The reference is BAT GRB summary file
Using zero point of 18.34 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  205.6  41.56751   1.22255 0.286 246.1
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(41.75588,+1.14619,25")
fk5;-circle(41.75588,+1.14619,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 uu319347945I   47630.6  1.00  802.9    0.0   0      0     0 
# ============ Reading file sw00020157001uuu_sk.img ================
Ignore invalid TRIGTIME of 2011-02-13T14:31:48
The processing date in extension 0 is:  2011-02-16T20:10:58
The trigger time is: 319300314.65888. The reference is BAT GRB summary file
Using zero point of 18.34 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  205.6  41.56751   1.22255 0.286 246.1
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(41.75588,+1.14619,25")
fk5;-circle(41.75588,+1.14619,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 uu319347945I   47630.6  1.00  802.9    0.0   0      0     0 
# ============ Reading file sw00020157002uuu_sk.img ================
Ignore invalid TRIGTIME of 2011-02-13T14:31:48
The processing date in extension 0 is:  2011-02-17T21:06:33
The trigger time is: 319300314.65888. The reference is BAT GRB summary file
Using zero point of 18.34 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   79.7  41.60374   1.20247 0.286 250.5
  3   53.6  41.61031   1.19776 0.286 250.5
  4   87.0  41.60183   1.20333 0.286 250.5
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(41.75588,+1.14619,25")
fk5;-circle(41.75588,+1.14619,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 uu319550848I  411.2      0  2372  0.000  0.001
%  1 uu319550848I  250534.3  1.00  411.2    0.0   0      0  2372 
   2 uu319556210I  255896.0  0.98  258.6  239.6 112  11518  5828  0.079 0.067 21.10 19.7  0.0787 0.0674 21.10 19.7   259  0.474  0.406 21.10 0.191 
Low  bkg:   3 uu319567948I  468.3      0  5820  0.000  0.000
%  3 uu319567948I  267633.4  1.00  468.3    0.0 112      0  5820 
Low  bkg:   4 uu319573709I  468.3      0  5864  0.000  0.000
%  4 uu319573709I  273394.7  1.00  468.3    0.0 116      0  5864 
    Sum (T+255896 to 256159):             239.6        221.4 (est. in src region)   SNR_unwtd_sum:   1.17 0.9987 signif. UL:  19.70
  0   259  256027.4    131.4   -131.4    0.0787   0.0674 21.10  0.67
Total wtd_rate (for all exposures so far):  0.404 +/- 0.133 snr:  3.0 mag: 21.27 UL: 18.58
Rebinned Data for sw00020157002uuu_sk.img using a zero point of 18.34:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      255  256027.4    131.4   -131.4    0.0787   0.0674 21.10  0.67  256027.4    0.0787   0.0674 21.10  0.67 19.70
The data range from T+255896.0 s (2.96 d) to T+256686.3 s (2.97 d)
Wrote uvot_fluxes_110218d18h28m27s605634usUT.qdp
Wrote uvot_fluxes_110218d18h28m27s605634usUT.gif
Wrote uvot_fluxes_110218d18h28m27s605634usUT.ps
Wrote uvot_fluxes_110218d18h28m27s605634usUT_vis.qdp
Wrote uvot_fluxes_110218d18h28m27s605634usUT_uv.qdp
Wrote uvot_fluxes_110218d18h28m27s605634usUT_vis.gif
Wrote uvot_fluxes_110218d18h28m27s605634usUT_vis.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  
Rebinned Data for All_files using a zero point of 20.29:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     43.9  256291.6    394.6   -395.6    0.3971   0.1489 21.29  0.35  256291.6    0.3971   0.1489 21.29  0.35 20.47
The data range from T+255896.0 s (2.96 d) to T+256686.3 s (2.97 d)
Wrote uvot_fluxes_wtd_110218d18h28m27s605634usUT.qdp
Wrote uvot_fluxes_wtd_110218d18h28m27s605634usUT.gif
Wrote uvot_fluxes_wtd_110218d18h28m27s605634usUT.ps
Found 12 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2011-02-18b fem