# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190211d19h42m02s902018usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00888648992 -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
# ========= GRB190211A ===================
Could not find/read custom source region custom_888648_src.reg
Used archived opt source position of 196.66029 41.96804 3.00
Reference: GCN_Circulars-23884
The position is (13:06:38.47, +41:58:04.9)
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(196.66029,41.96804,3") # color=red dash=0
Source region spec. is: 196.66029 41.96804 3"
Region file centered at (196.66029,41.96804), which is (13:06:38.47, +41:58:04.9)
Could not find/read custom background region custom_888648_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.
Subtract UTCF of -22.38948 from uncorrected trigger time of 571596884.73 in BAT summary file
# ============ Reading file sw00888648992uwh_sk.img ================
Use keyword TRIGTIME of 571596906.411 for trigger time.
Long-term sensitivity correction to zero point is -0.204 at 571597110
The processing date in extension 0 is: 2019-02-11T19:38:03
The trigger time is: 571596906.411. The reference is keyword in image file
Using zero point of 20.086 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(196.66029,41.96804,25")
fk5;-circle(196.66029,41.96804,12.5")
fk5;-circle(196.664018,41.965397,6")
fk5;-circle(196.654593,41.970879,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 wh571597109E     203.3  0.97  145.5  370.6 114   8750  5139  1.387 0.152 19.73 19.4  1.3875 0.1522 19.73 19.4   146  0.464  0.051 21.12 2.170 
    Sum (T+   203 to    351):             370.6        194.1 (est. in src region)   SNR_unwtd_sum:   9.12 0.9987 signif. UL:  19.42
  0   146 571597184     277.2     73.9    -73.9    1.3875   0.1522 19.730  0.126  -0.113
Total wtd_rate (for all exposures so far):  0.464 +/- 0.051 snr:  9.2 mag: 21.12 UL: 20.61
Rebinned Data for sw00888648992uwh_sk.img using a zero point of 20.086:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      141     277.2     73.9    -73.9    1.3875   0.1522 19.73  0.11     277.2    1.3875   0.1522 19.73  0.11 19.42
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00888648992uvv_sk.img ================
Use keyword TRIGTIME of 571596906.411 for trigger time.
Long-term sensitivity correction to zero point is -0.261 at 571597089
The processing date in extension 0 is:  2019-02-11T19:38:02
The trigger time is: 571596906.411. The reference is keyword in image file
Using zero point of 17.629 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(196.66029,41.96804,25")
fk5;-circle(196.66029,41.96804,12.5")
fk5;-circle(196.663941,41.965254,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 vv571597088E     182.5  0.99    9.5    4.5 112    144  5537  0.184 0.245 19.47 17.7 
The data range from T+203.3 s (0.00 d) to T+351.1 s (0.00 d)
Wrote uvot_fluxes_190211d19h42m02s902018usUT.qdp
Wrote uvot_fluxes_190211d19h42m02s902018usUT.gif
Wrote uvot_fluxes_190211d19h42m02s902018usUT.ps
Wrote uvot_fluxes_190211d19h42m02s902018usUT_vis.qdp
Wrote uvot_fluxes_190211d19h42m02s902018usUT_uv.qdp
Wrote uvot_fluxes_190211d19h42m02s902018usUT_vis.gif
Wrote uvot_fluxes_190211d19h42m02s902018usUT_vis.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem