# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190704d07h35m36s054372usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00911102001 -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
# ========= GRB190624 ===================
Could not find/read custom source region custom_911102_src.reg
Used archived BAT position of 144.52400 46.47600
Reference: GCN_Position_Notice_Mon_24_Jun_19_20:42:30_UT
The position is (09:38:05.76, +46:28:33.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(144.524,+46.476,3") # color=red dash=0
Source region spec. is: 144.524 +46.476 3"
Region file centered at (144.524,+46.476), which is (09:38:05.76, +46:28:33.6)
Could not find/read custom background region custom_911102_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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -23.1302 from uncorrected trigger time of 583101640.86 in BAT summary file
# ============ Reading file sw00911102992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.210 at 583105022
The processing date in extension 0 is: 2019-06-25T01:35:00
The trigger time is: 583101663.9902. The reference is BAT GRB summary file
Using zero point of 20.080 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(144.524,+46.476,25")
fk5;-circle(144.524,+46.476,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 wh583105022I    3358.5  0.90  147.4  845.5 111  46447  5843  0.000 0.251 99.00 19.8  0.0000 0.2511 99.00 19.8   147  0.000  1.047 99.00 0.036 
above line uses coinc_corr_src:  0.897 corr_bkg:  0.897
   2 wh583105022E    3358.5  0.90  147.4  864.3 113  46352  5834  0.000 0.253 99.00 19.8 
above line uses coinc_corr_src:  0.898 corr_bkg:  0.898
    Sum (T+  3358 to   3508):             882.4        882.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.81
  0   147 583105097    3433.3     74.9    -74.9    0.0000   0.2511 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.037 snr:  0.0 mag: 99.00 UL: 18.27
Rebinned Data for sw00911102992uwh_sk.img using a zero point of 20.080:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      132    3433.3     74.9    -74.9    0.0000   0.2511 99.00 99.00    3433.3    0.0000   0.2511 99.00 99.00 20.31
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00911102992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.268 at 583105004
The processing date in extension 0 is:  2019-06-25T01:35:00
The trigger time is: 583101663.9902. The reference is BAT GRB summary file
Using zero point of 17.622 for filter V
Use aperture correction of  1.087 based on aperture of  3.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(144.524,+46.476,25")
fk5;-circle(144.524,+46.476,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 vv583105003E    3339.7  0.98    9.1    6.5 111    680  5844  0.000 0.445 99.00 16.7 
   2 vv583105179I    3515.4  0.98  196.6  241.9 116  12518  5872  0.000 0.090 99.00 18.5  0.0000 0.0897 99.00 18.5   197  0.000  3.788 99.00 0.018 
    Sum (T+  3515 to   3715):             247.3        247.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.47
  0   197 583105279    3615.3     99.9    -99.9    0.0000   0.0897 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.982 snr:  0.0 mag: 99.00 UL: 15.88
Rebinned Data for sw00911102992uvv_sk.img using a zero point of 17.622:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      192    3615.3     99.9    -99.9    0.0000   0.0897 99.00 99.00    3615.3    0.0000   0.0897 99.00 99.00 18.97
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00911102001ubb_sk.img ================
Use keyword TRIGTIME of 583101664 for trigger time.
Long-term sensitivity correction to zero point is -0.153 at 583110971
The processing date in extension 0 is:  2019-07-04T07:23:33
The trigger time is: 583101664. The reference is keyword in image file
Using zero point of 18.957 for filter B
Use aperture correction of  1.108 based on aperture of  3.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(144.524,+46.476,25")
fk5;-circle(144.524,+46.476,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 bb583110971I    9307.3  0.96   78.5  188.4 104   9425  5808  0.000 0.192 99.00 19.0  0.0000 0.1917 99.00 19.0    79  0.000  6.119 99.00 0.014 
   2 bb583112480I   10816.1  0.98   78.5  117.4 124   5482  5880  0.000 0.157 99.00 19.2  0.0000 0.1237 99.00 19.5   157  0.000  4.215 99.00 0.016 
    Sum (T+  9307 to  10896):             284.4        284.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.46
  0   157 583111766   10101.7    794.2   -794.3    0.0000   0.1237 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.973 snr:  0.0 mag: 99.00 UL: 17.22
Rebinned Data for sw00911102001ubb_sk.img using a zero point of 18.957:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      152   10106.6    789.3   -799.3    0.0000   0.1237 99.00 99.00   10106.6    0.0000   0.1237 99.00 99.00 19.96
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00911102992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.166 at 583105794
The processing date in extension 0 is:  2019-06-25T01:35:01
The trigger time is: 583101664. The reference is keyword in image file
Using zero point of 18.174 for filter U
Use aperture correction of  1.100 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(144.524,+46.476,25")
fk5;-circle(144.524,+46.476,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 uu583105794I    4130.1  0.99  105.5   76.9 112   3330  5852  0.000 0.085 99.00 19.1  0.0000 0.0849 99.00 19.1   105  0.000  2.494 99.00 0.056 
    Sum (T+  4130 to   4237):              63.7         63.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.09
  0   105 583105848    4183.7     53.6    -53.6    0.0000   0.0849 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.900 snr:  0.0 mag: 99.00 UL: 16.52
# ============ Reading file sw00911102001uuu_sk.img ================
Use keyword TRIGTIME of 583101664 for trigger time.
Long-term sensitivity correction to zero point is -0.166 at 583110887
The processing date in extension 0 is:  2019-07-04T07:23:33
The trigger time is: 583101664. The reference is keyword in image file
Using zero point of 18.174 for filter U
Use aperture correction of  1.100 based on aperture of  3.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(144.524,+46.476,25")
fk5;-circle(144.524,+46.476,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 uu583110886I    9223.0  0.98   78.5   89.5 108   5284  5828  0.000 0.143 99.00 18.5  0.0000 0.1429 99.00 18.5    79  0.000  9.293 99.00 0.012 
   2 uu583112395I   10731.9  0.99   78.5   55.0 128   2136  5896  0.000 0.097 99.00 18.9  0.0000 0.0862 99.00 19.1   157  0.000  5.767 99.00 0.015 
    Sum (T+  9223 to  10812):             144.3        144.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.07
  0   157 583111681   10017.3    794.3   -794.4    0.0000   0.0862 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.889 snr:  0.0 mag: 99.00 UL: 16.54
Rebinned Data for sw00911102001uuu_sk.img using a zero point of 18.174:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      104    4183.7     53.6    -53.6    0.0000   0.0849 99.00 99.00    4183.7    0.0000   0.0849 99.00 99.00 19.58
  1      155   10022.0    789.6   -799.1    0.0000   0.0862 99.00 99.00    7669.7    0.0000   0.0618 99.00 99.00 19.93
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00911102992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.433 at 583105589
The processing date in extension 0 is:  2019-06-25T01:35:01
The trigger time is: 583101664. The reference is keyword in image file
Using zero point of 17.007 for filter UVW1
Use aperture correction of  1.123 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(144.524,+46.476,25")
fk5;-circle(144.524,+46.476,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 w1583105589I    3925.4  1.00  196.6   16.7 116    998  5872  0.000 0.026 99.00 19.2  0.0000 0.0256 99.00 19.2   197  0.000  2.124 99.00 0.120 
    Sum (T+  3925 to   4125):              19.7         19.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.22
  0   197 583105689    4025.3     99.9    -99.9    0.0000   0.0256 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.833 snr:  0.0 mag: 99.00 UL: 15.44
# ============ Reading file sw00911102001uw1_sk.img ================
Use keyword TRIGTIME of 583101664 for trigger time.
Long-term sensitivity correction to zero point is -0.433 at 583110722
The processing date in extension 0 is:  2019-07-04T07:23:33
The trigger time is: 583101664. The reference is keyword in image file
Using zero point of 17.007 for filter UVW1
Use aperture correction of  1.123 based on aperture of  3.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(144.524,+46.476,25")
fk5;-circle(144.524,+46.476,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 w1583110721I  157.2   1866  5864  2.024  0.047
   1 w1583110721I    9057.5  1.00  157.2   32.0 104   1866  5864  0.000 0.042 99.00 18.7  0.0000 0.0416 99.00 18.7   157  0.000  7.824 99.00 0.025 
   2 w1583112231I   10567.9  1.00  157.2   13.2 104    673  5864  0.000 0.025 99.00 19.2  0.0000 0.0242 99.00 19.3   314  0.000  4.477 99.00 0.034 
    Sum (T+  9058 to  10728):              45.0         45.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.28
  0   314 583111557    9892.6    835.1   -835.1    0.0000   0.0242 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.819 snr:  0.0 mag: 99.00 UL: 15.46
Rebinned Data for sw00911102001uw1_sk.img using a zero point of 17.007:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    4025.3     99.9    -99.9    0.0000   0.0256 99.00 99.00    4025.3    0.0000   0.0256 99.00 99.00 19.72
  1      314    9893.5    834.1   -836.0    0.0000   0.0242 99.00 99.00    7634.7    0.0000   0.0179 99.00 99.00 20.11
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00911102992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.406 at 583105384
The processing date in extension 0 is:  2019-06-25T01:35:01
The trigger time is: 583101664. The reference is keyword in image file
Using zero point of 16.444 for filter UVM2
Use aperture correction of  1.106 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(144.524,+46.476,25")
fk5;-circle(144.524,+46.476,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 m2583105384I    3720.1  1.00  196.6    2.8 108    211  5824  0.000 0.011 99.00 19.6  0.0000 0.0112 99.00 19.6   197  0.000  1.483 99.00 0.380 
    Sum (T+  3720 to   3920):               3.9          3.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.55
  0   197 583105484    3820.0     99.9    -99.9    0.0000   0.0112 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.707 snr:  0.0 mag: 99.00 UL: 15.05
Rebinned Data for sw00911102992um2_sk.img using a zero point of 16.444:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    3820.0     99.9    -99.9    0.0000   0.0112 99.00 99.00    3820.0    0.0000   0.0112 99.00 99.00 20.05
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00911102001uw2_sk.img ================
Use keyword TRIGTIME of 583101664 for trigger time.
Long-term sensitivity correction to zero point is -0.529 at 583111057
The processing date in extension 0 is:  2019-07-04T07:23:33
The trigger time is: 583101664. The reference is keyword in image file
Using zero point of 16.851 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.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(144.524,+46.476,25")
fk5;-circle(144.524,+46.476,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 w2583111056I    9392.6  1.00   83.0    5.9 120    245  5884  0.000 0.030 99.00 18.9  0.0000 0.0301 99.00 18.9    83  0.000  6.755 99.00 0.074 
   2 w2583112565I   10901.4  1.00  231.3    7.8 128    430  5892  0.000 0.015 99.00 19.7  0.0000 0.0135 99.00 19.8   314  0.000  3.361 99.00 0.087 
    Sum (T+  9393 to  11136):              14.3         14.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.76
  0   314 583112265   10600.6    535.8  -1208.1    0.0000   0.0135 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.693 snr:  0.0 mag: 99.00 UL: 15.48
Rebinned Data for sw00911102001uw2_sk.img using a zero point of 16.851:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      314   10600.8    535.7  -1208.2    0.0000   0.0135 99.00 99.00   10600.8    0.0000   0.0135 99.00 99.00 20.26
The data range from T+3358.5 s (0.04 d) to T+11136.4 s (0.13 d)
Wrote uvot_fluxes_190704d07h35m36s054372usUT.qdp
Wrote uvot_fluxes_190704d07h35m36s054372usUT.gif
Wrote uvot_fluxes_190704d07h35m36s054372usUT.ps
Wrote uvot_fluxes_190704d07h35m36s054372usUT_vis.qdp
Wrote uvot_fluxes_190704d07h35m36s054372usUT_uv.qdp
Wrote uvot_fluxes_190704d07h35m36s054372usUT_vis.gif
Wrote uvot_fluxes_190704d07h35m36s054372usUT_vis.ps
Wrote uvot_fluxes_190704d07h35m36s054372usUT_uv.gif
Wrote uvot_fluxes_190704d07h35m36s054372usUT_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.791    3527.1   5860.0   -168.7    0.0000   0.2837 99.00 99.00    3527.1    0.0000   0.2837 99.00 99.00 20.39
  1   0.0113   10836.4     59.5   -104.5    0.0000   0.4408 99.00 99.00    3630.1    0.0000   0.2724 99.00 99.00 20.43
The data range from T+3358.5 s (0.04 d) to T+11136.4 s (0.13 d)
Wrote uvot_fluxes_wtd_190704d07h35m36s054372usUT.qdp
Wrote uvot_fluxes_wtd_190704d07h35m36s054372usUT.gif
Wrote uvot_fluxes_wtd_190704d07h35m36s054372usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem