# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 171201d15h53m12s493219usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020784002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB171124A ===================
Used archived XRT position of 335.47600 35.33214 4.00
Reference: GCN_Circulars-22174-Fri,_1_Dec_2017_06:21:24_-0500
The position is (22:21:54.24, +35:19:55.7)
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(335.47600,35.33214,4") # color=red dash=0
Region file centered at (335.47600,35.33214), which is (22:21:54.24, +35:19:55.7)
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 -20.04608 from uncorrected trigger time of 533194676.5 in BAT summary file
# ============ Reading file sw00020784002uw1_sk.img ================
Use keyword TRIGTIME of 533194696.556 for trigger time.
Long-term sensitivity correction to zero point is -0.324 at 533716563
The processing date in extension 0 is: 2017-12-01T15:41:51
The trigger time is: 533194696.556. The reference is keyword in image file
Using zero point of 17.116 for filter UVW1
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
  5  -13.7 335.43358  35.20341 0.286 254.9
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(335.47600,35.33214,25")
fk5;-circle(335.47600,35.33214,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 w1533716563I  647.3   8035  5836  2.127  0.024
   1 w1533716563I  521866.8  1.00  647.3  252.5 196   8035  5835 -0.028 0.026 99.00 20.1 -0.0279 0.0260 99.00 20.1   647 -270.715 252.203 99.00 0.000 
   2 w1533721813I  527116.5  1.00 1090.3  227.2 196   7927  5863 -0.036 0.015 99.00 21.0 -0.0329 0.0133 99.00 21.2  1738 -331.597 124.804 99.00 0.000 
   3 w1533733281I  538584.7  1.00 1259.4  140.4 188   4746  5820 -0.011 0.010 99.00 21.1 -0.0235 0.0088 99.00 21.7  2997 -191.758 77.824 99.00 0.000 
   4 w1533739372I  544675.7  1.00 1228.9  150.0 196   4198  5820  0.007 0.010 22.46 20.6 -0.0146 0.0069 99.00 21.8  4226 -89.474 63.003 99.00 0.001 
%  5 w1533763304I  568607.8  1.00  646.2   53.1 204   1612  5880 
   6 w1533773379I  578682.7  1.00  415.1   73.4 208   2212  5879 -0.012 0.022 99.00 20.1 -0.0144 0.0066 99.00 21.8  4641 -92.224 60.850 99.00 0.001 
    Sum (T+521867 to 579104):             843.6        907.9 (est. in src region)   SNR_unwtd_sum:  -2.18 0.9987 signif. UL:  21.85
  0  4641 533733988  539291.4  39813.1 -17424.6   -0.0144   0.0066 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -92.224 +/-59.824 snr: -1.5 mag: 99.00 UL: 11.80
Rebinned Data for sw00020784002uw1_sk.img using a zero point of 17.116:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.63e+03  539299.3  39805.1 -17432.5   -0.0144   0.0066 99.00 99.00  539299.3   -0.0144   0.0066 99.00 99.00 21.85
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020784001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.393 at 533216454
The processing date in extension 0 is:  2017-11-24T16:47:56
The trigger time is: 533194696.556. The reference is keyword in image file
Using zero point of 16.987 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(335.47600,35.33214,25")
fk5;-circle(335.47600,35.33214,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 w2533216453I   21757.0  1.00 2103.0  163.1 208   4407  5876  0.004 0.006 23.13 21.1  0.0035 0.0064 23.13 21.1  2103  1.675  3.058 19.73 0.028 
   2 w2533221911I   27214.5  1.00 2382.1  181.9 200   5270  5828  0.000 0.006 25.35 21.3  0.0019 0.0044 23.80 21.5  4485  1.090  2.317 20.20 0.025 
   3 w2533227613I   32917.3  1.00  416.7   46.4 184   1494  5820 -0.002 0.017 99.00 20.2  0.0016 0.0042 24.01 21.6  4902  1.004  2.275 20.29 0.023 
    Sum (T+ 21757 to  33341):             391.4        384.1 (est. in src region)   SNR_unwtd_sum:   0.37 0.9987 signif. UL:  21.55
  0  4902 533221119   26422.3   6918.4  -4665.3    0.0016   0.0042 24.010 74.990  -1.432
Total wtd_rate (for all exposures so far):  0.882 +/- 2.236 snr:  0.4 mag: 20.43 UL: 14.74
Rebinned Data for sw00020784001uw2_sk.img using a zero point of 16.987:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  4.9e+03   26422.1   6918.6  -4665.1    0.0016   0.0042 24.01  1.43   26422.1    0.0016   0.0042 24.01  1.43 21.55
The data range from T+21757.0 s (0.25 d) to T+579104.4 s (6.70 d)
Wrote uvot_fluxes_171201d15h53m12s493219usUT.qdp
Wrote uvot_fluxes_171201d15h53m12s493219usUT.gif
Wrote uvot_fluxes_171201d15h53m12s493219usUT.ps
Wrote uvot_fluxes_171201d15h53m12s493219usUT_vis.qdp
Wrote uvot_fluxes_171201d15h53m12s493219usUT_uv.qdp
Wrote uvot_fluxes_171201d15h53m12s493219usUT_uv.gif
Wrote uvot_fluxes_171201d15h53m12s493219usUT_uv.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem