# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190613d18h02m12s955572usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020895001 -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
# ========= GRB190531B ===================
Could not find/read custom source region custom_020895_src.reg
Used archived XRT position of 24.29621 -41.95842 4.00
Reference: GCN_Circulars-24706-Sat,_1_Jun_2019_03:47:15_-0400
The position is (01:37:11.09, -41:57:30.3)
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(24.29621,-41.95842,4") # color=red dash=0
Source region spec. is: 24.29621 -41.95842 4"
Region file centered at (24.29621,-41.95842), which is (01:37:11.09, -41:57:30.3)
Could not find/read custom background region custom_020895_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 -23.01886 from uncorrected trigger time of 581026212.14 in BAT summary file
# ============ Reading file sw00020895001uvv_sk.img ================
Use keyword TRIGTIME of 580980573.9951 for trigger time.
Long-term sensitivity correction to zero point is -0.267 at 581045701
The processing date in extension 0 is: 2019-06-11T12:42:04
The trigger time is: 580980573.9951. The reference is keyword in image file
Using zero point of 17.623 for filter V
Use aperture correction of 1.030 based on aperture of 4.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00020895001ubb_sk.img ================
Use keyword TRIGTIME of 580980573.9951 for trigger time.
Long-term sensitivity correction to zero point is -0.153 at 581044896
The processing date in extension 0 is: 2019-06-11T12:42:04
The trigger time is: 580980573.9951. The reference is keyword in image file
Using zero point of 18.957 for filter B
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(24.29621,-41.95842,25")
fk5;-circle(24.29621,-41.95842,12.5")
fk5;-circle(24.302875,-41.960187,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 bb581044895I   64321.9  0.99  156.3  178.9 200   4724  5401  0.026 0.091 22.90 20.2  0.0265 0.0912 22.90 20.2   156  5.815 20.030 18.38 0.004 
   2 bb581050159I   69586.0  0.99  208.4  285.6 200   7239  5393  0.086 0.086 21.62 20.1  0.0605 0.0630 22.00 20.4   365 13.084 14.353 17.50 0.004 
    Sum (T+ 64322 to  69798):             464.5        443.4 (est. in src region)   SNR_unwtd_sum:   0.96 0.9987 signif. UL:  20.45
  0   365 581047999   67424.9   2372.8  -3102.9    0.0605   0.0630 22.003 76.997  -0.775
Total wtd_rate (for all exposures so far): 13.084 +/-14.104 snr:  0.9 mag: 17.50 UL: 14.58
Rebinned Data for sw00020895001ubb_sk.img using a zero point of 18.957:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      360   67421.8   2375.9  -3099.9    0.0605   0.0630 22.00  0.77   67421.8    0.0605   0.0630 22.00  0.77 20.45
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020895001uuu_sk.img ================
Use keyword TRIGTIME of 580980573.9951 for trigger time.
Long-term sensitivity correction to zero point is -0.165 at 581044732
The processing date in extension 0 is:  2019-06-11T12:42:04
The trigger time is: 580980573.9951. The reference is keyword in image file
Using zero point of 18.175 for filter U
Use aperture correction of  1.032 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(24.29621,-41.95842,25")
fk5;-circle(24.29621,-41.95842,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 uu581044732I   64158.4  1.00  156.3   70.3 204   2513  5831 -0.116 0.057 99.00 20.5 -0.1165 0.0568 99.00 20.5   156 -52.498 25.608 99.00 0.004 
   2 uu581049943I   69369.4  0.99  208.4  162.6 200   5133  5872 -0.061 0.065 99.00 20.1 -0.0849 0.0443 99.00 20.8   365 -42.691 19.934 99.00 0.003 
   3 uu581055748I   75174.5  0.99  186.0  122.7 204   4189  5835 -0.133 0.063 99.00 20.4 -0.1010 0.0363 99.00 21.2   551 -49.781 17.110 99.00 0.003 
    Sum (T+ 64158 to  75363):             355.6        409.2 (est. in src region)   SNR_unwtd_sum:  -2.79 0.9987 signif. UL:  21.19
  0   551 581050519   69945.4   5418.1  -5786.9   -0.1010   0.0363 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -9.867 +/-10.829 snr: -0.9 mag: 99.00 UL: 14.56
Rebinned Data for sw00020895001uuu_sk.img using a zero point of 18.175:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      547   69942.1   5421.3  -5783.7   -0.1010   0.0363 99.00 99.00   69942.1   -0.1010   0.0363 99.00 99.00 21.19
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020895001uw1_sk.img ================
Use keyword TRIGTIME of 580980573.9951 for trigger time.
Long-term sensitivity correction to zero point is -0.428 at 581044410
The processing date in extension 0 is:  2019-06-11T12:42:04
The trigger time is: 580980573.9951. The reference is keyword in image file
Using zero point of 17.012 for filter UVW1
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(24.29621,-41.95842,25")
fk5;-circle(24.29621,-41.95842,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 w1581044410I   63836.1  1.00  311.8   36.3 196    782  5817  0.033 0.020 20.71 19.6  0.0333 0.0203 20.71 19.6   312 43.602 26.568 16.19 0.009 
   2 w1581049514I   68940.1  1.00  417.1   28.7 196    966  5819 -0.009 0.014 99.00 20.6  0.0088 0.0116 22.15 20.4   729 12.054 15.923 17.59 0.009 
   3 w1581055333I   74759.8  1.00  403.3   34.8 192   1087  5827 -0.003 0.015 99.00 20.3  0.0048 0.0093 22.81 20.7  1132  7.487 13.230 18.10 0.008 
    Sum (T+ 63836 to  75170):              99.9         94.7 (est. in src region)   SNR_unwtd_sum:   0.51 0.9987 signif. UL:  20.69
  0  1132 581050376   69802.3   5367.2  -5966.1    0.0048   0.0093 22.814 76.186  -1.172
Total wtd_rate (for all exposures so far): -2.378 +/- 8.350 snr: -0.3 mag: 99.00 UL: 13.51
Rebinned Data for sw00020895001uw1_sk.img using a zero point of 17.012:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.13e+03   69802.7   5366.8  -5966.5    0.0048   0.0093 22.81  1.17   69802.7    0.0048   0.0093 22.81  1.17 20.69
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020895001um2_sk.img ================
Use keyword TRIGTIME of 580980573.9951 for trigger time.
Long-term sensitivity correction to zero point is -0.402 at 581045865
The processing date in extension 0 is:  2019-06-11T12:42:05
The trigger time is: 580980573.9951. The reference is keyword in image file
Using zero point of 16.448 for filter UVM2
Use aperture correction of  1.031 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(24.29621,-41.95842,25")
fk5;-circle(24.29621,-41.95842,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 m2581045864I   65290.7  1.00  427.5    9.8 196    456  5820 -0.013 0.008 99.00 20.9 -0.0134 0.0077 99.00 20.9   428 -30.305 17.472 99.00 0.012 
   2 m2581051447I   70873.4  1.00  544.8   22.5 204    617  5872  0.002 0.009 23.21 20.2 -0.0048 0.0061 99.00 20.9   972 -12.865 14.161 99.00 0.011 
    Sum (T+ 65291 to  71427):              32.3         36.8 (est. in src region)   SNR_unwtd_sum:  -0.78 0.9987 signif. UL:  20.91
  0   972 581049243   68669.3   2757.6  -3378.6   -0.0048   0.0061 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -4.780 +/- 7.158 snr: -0.7 mag: 99.00 UL: 13.22
Rebinned Data for sw00020895001um2_sk.img using a zero point of 16.448:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      972   68669.2   2757.8  -3378.5   -0.0048   0.0061 99.00 99.00   68669.2   -0.0048   0.0061 99.00 99.00 20.91
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020895001uw2_sk.img ================
Use keyword TRIGTIME of 580980573.9951 for trigger time.
Long-term sensitivity correction to zero point is -0.523 at 581045061
The processing date in extension 0 is:  2019-06-11T12:42:04
The trigger time is: 580980573.9951. The reference is keyword in image file
Using zero point of 16.857 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(24.29621,-41.95842,25")
fk5;-circle(24.29621,-41.95842,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 w2581045060I   64486.5  1.00  624.8   32.0 200   1075  5828 -0.008 0.010 99.00 20.9 -0.0081 0.0096 99.00 20.9   625 -12.349 14.632 99.00 0.011 
   2 w2581050377I   69803.6  1.00  834.4   43.8 196   1321  5820 -0.001 0.008 99.00 20.8 -0.0039 0.0063 99.00 21.3  1459 -6.190 10.078 99.00 0.011 
    Sum (T+ 64487 to  70651):              75.9         81.4 (est. in src region)   SNR_unwtd_sum:  -0.62 0.9987 signif. UL:  21.25
  0  1459 581048479   67905.3   2746.1  -3418.8   -0.0039   0.0063 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -5.265 +/- 5.816 snr: -0.9 mag: 99.00 UL: 13.91
Rebinned Data for sw00020895001uw2_sk.img using a zero point of 16.857:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.46e+03   67905.4   2746.0  -3418.8   -0.0039   0.0063 99.00 99.00   67905.4   -0.0039   0.0063 99.00 99.00 21.25
The data range from T+63836.1 s (0.74 d) to T+75363.4 s (0.87 d)
Wrote uvot_fluxes_190613d18h02m12s955572usUT.qdp
Wrote uvot_fluxes_190613d18h02m12s955572usUT.gif
Wrote uvot_fluxes_190613d18h02m12s955572usUT.ps
Wrote uvot_fluxes_190613d18h02m12s955572usUT_vis.qdp
Wrote uvot_fluxes_190613d18h02m12s955572usUT_uv.qdp
Wrote uvot_fluxes_190613d18h02m12s955572usUT_vis.gif
Wrote uvot_fluxes_190613d18h02m12s955572usUT_vis.ps
Wrote uvot_fluxes_190613d18h02m12s955572usUT_uv.gif
Wrote uvot_fluxes_190613d18h02m12s955572usUT_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.00191   67408.3   7955.2  -3249.8   -0.0484   0.1712 99.00 99.00   67408.3   -0.0484   0.1712 99.00 99.00 21.01
The data range from T+63836.1 s (0.74 d) to T+75363.4 s (0.87 d)
Wrote uvot_fluxes_wtd_190613d18h02m12s955572usUT.qdp
Wrote uvot_fluxes_wtd_190613d18h02m12s955572usUT.gif
Wrote uvot_fluxes_wtd_190613d18h02m12s955572usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem