# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180711d19h35m32s886984usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00847216992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB180711 ===================
Could not find/read custom source region custom_847216_src.reg
Used archived XRT position of 249.63000 -20.92364 4.00
Reference: GRB_Auto_Processing-Wed,_11_Jul_2018_10:01:31_+0100
The position is (16:38:31.20, -20:55:25.1)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(249.63000,-20.92364,4") # color=red dash=0
Source region spec. is: 249.63000 -20.92364 4"
Region file centered at (249.63000,-20.92364), which is (16:38:31.20, -20:55:25.1)
Could not find/read custom background region custom_847216_bkg.reg
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.
Found 1 bright star(s) within 50.0 arcsec of 249.63000 -20.92364:
ra: 249.6287 dec: -20.9235 mag: 12.00
Subtract UTCF of -21.23562 from uncorrected trigger time of 552984530.75 in BAT summary file
# ============ Reading file sw00847216992uwh_sk.img ================
Use keyword TRIGTIME of 552984552 for trigger time.
Long-term sensitivity correction to zero point is -0.195 at 552989725
The processing date in extension 0 is: 2018-07-11T19:28:30
The trigger time is: 552984552. The reference is keyword in image file
Using zero point of 20.095 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1   75.4 249.65427 -20.83286 0.134 279.6
  2   66.8 249.65292 -20.83491 0.134 279.6
  3   68.8 249.65304 -20.83431 0.134 279.6
  4   69.2 249.65289 -20.83405 0.134 279.6
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(249.63000,-20.92364,25")
fk5;-circle(249.63000,-20.92364,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 wh552989724I  147.4      0  3374  0.000  0.002
%  1 wh552989724I    5172.5  1.00  147.4    0.0 203      0  3374 
Low  bkg:   2 wh552989724E  147.4      0  4234  0.000  0.002
%  2 wh552989724E    5172.5  1.00  147.4    0.0 198      0  4234 
Low  bkg:   3 wh552990293I  196.6      0  4020  0.000  0.001
%  3 wh552990293I    5741.6  1.00  196.6    0.0 200      0  4020 
Low  bkg:   4 wh552991728I  196.6      0  3852  0.000  0.001
%  4 wh552991728I    7176.8  1.00  196.6    0.0 200      0  3852 
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00847216992uvv_sk.img ================
Use keyword TRIGTIME of 552984552 for trigger time.
Long-term sensitivity correction to zero point is -0.248 at 552989706
The processing date in extension 0 is:  2018-07-11T19:28:30
The trigger time is: 552984552. The reference is keyword in image file
Using zero point of 17.642 for filter V
Use aperture correction of  1.030 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  2   68.6 249.65320 -20.83448 0.134 279.6
  3   69.2 249.65301 -20.83411 0.134 279.6
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(249.63000,-20.92364,25")
fk5;-circle(249.63000,-20.92364,12.5")
fk5;-circle(249.632555,-20.918632,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 vv552989705E    5153.6  0.95    9.3   43.0 199    470  5579  3.050 0.767 16.43 15.8 
Low  bkg:   2 vv552990704I  196.6      0  3584  0.000  0.001
%  2 vv552990704I    6152.1  1.00  196.6    0.0 204      0  3584 
Low  bkg:   3 vv552992139I  133.7      0  3420  0.000  0.002
%  3 vv552992139I    7587.1  1.00  133.7    0.0 200      0  3420 
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00847216992ubb_sk.img ================
Use keyword TRIGTIME of 552984552 for trigger time.
Long-term sensitivity correction to zero point is -0.142 at 552990088
The processing date in extension 0 is:  2018-07-11T19:28:30
The trigger time is: 552984552. The reference is keyword in image file
Using zero point of 18.968 for filter B
Use aperture correction of  1.035 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1   68.1 249.65307 -20.83455 0.134 279.6
  2   68.7 249.65305 -20.83436 0.134 279.6
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(249.63000,-20.92364,25")
fk5;-circle(249.63000,-20.92364,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 bb552990088I  196.6      0  4124  0.000  0.001
%  1 bb552990088I    5536.2  1.00  196.6    0.0 200      0  4124 
Low  bkg:   2 bb552991523I  196.6      0  4012  0.000  0.001
%  2 bb552991523I    6972.0  1.00  196.6    0.0 200      0  4012 
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00847216992uuu_sk.img ================
Use keyword TRIGTIME of 552984552 for trigger time.
Long-term sensitivity correction to zero point is -0.154 at 552989883
The processing date in extension 0 is:  2018-07-11T19:28:30
The trigger time is: 552984552. The reference is keyword in image file
Using zero point of 18.186 for filter U
Use aperture correction of  1.032 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1   68.6 249.65370 -20.83484 0.134 279.6
  2   68.3 249.65367 -20.83496 0.134 279.6
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(249.63000,-20.92364,25")
fk5;-circle(249.63000,-20.92364,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 uu552989883I  196.6      0  4172  0.000  0.001
%  1 uu552989883I    5331.1  1.00  196.6    0.0 188      0  4172 
Low  bkg:   2 uu552991318I  196.6      0  4256  0.000  0.001
%  2 uu552991318I    6766.8  1.00  196.6    0.0 200      0  4256 
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00847216992uw1_sk.img ================
Use keyword TRIGTIME of 552984552 for trigger time.
Long-term sensitivity correction to zero point is -0.364 at 552991114
The processing date in extension 0 is:  2018-07-11T19:28:30
The trigger time is: 552984552. The reference is keyword in image file
Using zero point of 17.076 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.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(249.63000,-20.92364,25")
fk5;-circle(249.63000,-20.92364,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 w1552991114I    6562.1  0.98  196.6  326.6 200   1078  5965  1.555 0.097 16.60 16.4  1.5553 0.0970 16.60 16.4   197 200.003 12.469 14.54 0.042 
    Sum (T+  6562 to   6762):             326.6         36.1 (est. in src region)   SNR_unwtd_sum:  16.04 0.9987 signif. UL:  16.41
  0   197 552991214    6661.9     99.9    -99.9    1.5553   0.0970 16.596  0.070  -0.065
Total wtd_rate (for all exposures so far): 200.003 +/-12.445 snr: 16.1 mag: 14.54 UL: 11.14
Rebinned Data for sw00847216992uw1_sk.img using a zero point of 17.076:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      193    6661.9     99.9    -99.9    1.5553   0.0970 16.60  0.07    6661.9    1.5553   0.0970 16.60  0.07 16.41
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00847216992um2_sk.img ================
Use keyword TRIGTIME of 552984552 for trigger time.
Long-term sensitivity correction to zero point is -0.348 at 552990909
The processing date in extension 0 is:  2018-07-11T19:28:30
The trigger time is: 552984552. The reference is keyword in image file
Using zero point of 16.502 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.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(249.63000,-20.92364,25")
fk5;-circle(249.63000,-20.92364,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 m2552990909I    6357.0  0.99  196.6  124.4 200    425  5862  0.580 0.059 17.09 16.8  0.5798 0.0590 17.09 16.8   197 122.582 12.468 15.07 0.064 
    Sum (T+  6357 to   6557):             124.4         14.5 (est. in src region)   SNR_unwtd_sum:   9.83 0.9987 signif. UL:  16.80
  0   197 552991009    6456.9     99.9    -99.9    0.5798   0.0590 17.094  0.116  -0.105
Total wtd_rate (for all exposures so far): 162.057 +/- 8.786 snr: 18.4 mag: 14.77 UL: 10.81
Rebinned Data for sw00847216992um2_sk.img using a zero point of 16.502:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    6456.9     99.9    -99.9    0.5798   0.0590 17.09  0.11    6456.9    0.5798   0.0590 17.09  0.11 16.80
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00847216992uw2_sk.img ================
Use keyword TRIGTIME of 552984552 for trigger time.
Long-term sensitivity correction to zero point is -0.443 at 552990499
The processing date in extension 0 is:  2018-07-11T19:28:30
The trigger time is: 552984552. The reference is keyword in image file
Using zero point of 16.937 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.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(249.63000,-20.92364,25")
fk5;-circle(249.63000,-20.92364,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 w2552990499I    5947.1  0.99  196.6  225.4 200    717  5888  1.071 0.080 16.86 16.6  1.0709 0.0801 16.86 16.6   197 142.079 10.629 14.91 0.060 
   2 w2552991934I    7382.4  0.99  196.6  218.6 188    703  5879  1.045 0.079 16.89 16.7  1.0580 0.0562 16.88 16.7   393 154.281  8.220 14.82 0.057 
    Sum (T+  5947 to   7582):             444.0         46.8 (est. in src region)   SNR_unwtd_sum:  18.82 0.9987 signif. UL:  16.71
  0   393 552991317    6764.7    817.5   -817.6    1.0580   0.0562 16.876  0.059  -0.057
Total wtd_rate (for all exposures so far): 158.022 +/- 6.011 snr: 26.3 mag: 14.79 UL: 11.32
Rebinned Data for sw00847216992uw2_sk.img using a zero point of 16.937:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    6047.0     99.9    -99.9    1.0709   0.0801 16.86  0.08    6047.0    1.0709   0.0801 16.86  0.08 16.64
  1      194    7482.3     99.9    -99.9    1.0450   0.0789 16.89  0.08    6764.5    1.0580   0.0562 16.88  0.06 16.71
The data range from T+5947.1 s (0.07 d) to T+7582.2 s (0.09 d)
Wrote uvot_fluxes_180711d19h35m32s886984usUT.qdp
Wrote uvot_fluxes_180711d19h35m32s886984usUT.gif
Wrote uvot_fluxes_180711d19h35m32s886984usUT.ps
Wrote uvot_fluxes_180711d19h35m32s886984usUT_vis.qdp
Wrote uvot_fluxes_180711d19h35m32s886984usUT_uv.qdp
Wrote uvot_fluxes_180711d19h35m32s886984usUT_uv.gif
Wrote uvot_fluxes_180711d19h35m32s886984usUT_uv.ps
Found 10 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem