# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200614d10h34m22s317673usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00975998001 -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/data/khamseenssd/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB200604 ===================
Could not find/read custom source region custom_975998_src.reg
Used archived BAT position of 257.19500 -40.12700
Reference: GCN_Position_Notice_Thu_04_Jun_20_11:18:54_UT
The position is (17:08:46.80, -40:07:37.2)
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(257.195,-40.127,3") # color=red dash=0
Source region spec. is: 257.195 -40.127 3"
Region file centered at (257.195,-40.127), which is (17:08:46.80, -40:07:37.2)
Could not find/read custom background region custom_975998_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 -25.0569 from uncorrected trigger time of 612962321.18 in BAT summary file
# ============ Reading file sw00975998001uwh_sk.img ================
Use keyword TRIGTIME of 612962346.24 for trigger time.
Long-term sensitivity correction to zero point is -0.226 at 612967688
The processing date in extension 0 is: 2020-06-14T10:21:22
The trigger time is: 612962346.24. The reference is keyword in image file
Using zero point of 20.064 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(257.195,-40.127,25")
fk5;-circle(257.195,-40.127,12.5")
fk5;-circle(257.189820,-40.127313,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 wh612967688I    5341.9  0.95  196.6  553.3 104  27589  5492  0.000 0.136 99.00 20.5  0.0000 0.1365 99.00 20.5   197  0.000  0.914 99.00 0.054 
   2 wh612969124I    6778.7  0.95  146.0  419.7 112  20593  5508  0.000 0.165 99.00 20.3  0.0000 0.1052 99.00 20.7   343  0.000  0.764 99.00 0.047 
    Sum (T+  5342 to   6927):             941.2        941.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.74
  0   343 612968389    6043.0    884.0   -701.2    0.0000   0.1052 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.757 snr:  0.0 mag: 99.00 UL: 18.60
Rebinned Data for sw00975998001uwh_sk.img using a zero point of 20.064:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      326    6042.3    884.7   -700.5    0.0000   0.1052 99.00 99.00    6042.3    0.0000   0.1052 99.00 99.00 21.24
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00975998001uvv_sk.img ================
Use keyword TRIGTIME of 612962346.24 for trigger time.
Long-term sensitivity correction to zero point is -0.289 at 612968099
The processing date in extension 0 is:  2020-06-14T10:21:22
The trigger time is: 612962346.24. The reference is keyword in image file
Using zero point of 17.601 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(257.195,-40.127,25")
fk5;-circle(257.195,-40.127,12.5")
fk5;-circle(257.189814,-40.127329,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 vv612968099I    5753.2  0.99  196.6  117.3 112   6922  5496  0.000 0.067 99.00 18.8  0.0000 0.0672 99.00 18.8   197  0.000  4.678 99.00 0.020 
    Sum (T+  5753 to   5953):             141.1        141.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.77
  0   197 612968199    5853.1     99.9    -99.9    0.0000   0.0672 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.734 snr:  0.0 mag: 99.00 UL: 16.17
Rebinned Data for sw00975998001uvv_sk.img using a zero point of 17.601:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    5853.1     99.9    -99.9    0.0000   0.0672 99.00 99.00    5853.1    0.0000   0.0672 99.00 99.00 19.27
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00975998001ubb_sk.img ================
Use keyword TRIGTIME of 612962346.24 for trigger time.
Long-term sensitivity correction to zero point is -0.164 at 612967483
The processing date in extension 0 is:  2020-06-14T10:21:22
The trigger time is: 612962346.24. The reference is keyword in image file
Using zero point of 18.946 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(257.195,-40.127,25")
fk5;-circle(257.195,-40.127,12.5")
fk5;-circle(257.189786,-40.127329,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 bb612967483I    5137.1  0.98  196.6  244.4 112  10300  5512  0.000 0.084 99.00 19.9  0.0000 0.0839 99.00 19.9   197  0.000  1.515 99.00 0.051 
   2 bb612968920I    6574.0  0.98  196.6  192.2 108  10115  5484  0.000 0.082 99.00 19.9  0.0000 0.0585 99.00 20.3   393  0.000  1.180 99.00 0.047 
    Sum (T+  5137 to   6774):             408.5        408.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.26
  0   393 612968302    5955.5    818.3   -818.3    0.0000   0.0585 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.629 snr:  0.0 mag: 99.00 UL: 17.68
Rebinned Data for sw00975998001ubb_sk.img using a zero point of 18.946:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      386    5956.0    817.8   -818.8    0.0000   0.0585 99.00 99.00    5956.0    0.0000   0.0585 99.00 99.00 20.76
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00975998001uuu_sk.img ================
Use keyword TRIGTIME of 612962346.24 for trigger time.
Long-term sensitivity correction to zero point is -0.178 at 612967278
The processing date in extension 0 is:  2020-06-14T10:21:22
The trigger time is: 612962346.24. The reference is keyword in image file
Using zero point of 18.162 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(257.195,-40.127,25")
fk5;-circle(257.195,-40.127,12.5")
fk5;-circle(257.189870,-40.127316,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 uu612967278I    4932.0  0.99  196.6   96.4 112   4214  5520  0.000 0.053 99.00 19.6  0.0000 0.0526 99.00 19.6   197  0.000  1.880 99.00 0.064 
   2 uu612968714I    6368.7  0.99  196.6   85.2 108   4252  5512  0.000 0.052 99.00 19.6  0.0000 0.0370 99.00 20.0   393  0.000  1.476 99.00 0.058 
    Sum (T+  4932 to   6568):             168.8        168.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.98
  0   393 612968096    5750.2    818.2   -818.2    0.0000   0.0370 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.575 snr:  0.0 mag: 99.00 UL: 17.00
Rebinned Data for sw00975998001uuu_sk.img using a zero point of 18.162:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      390    5750.3    818.2   -818.2    0.0000   0.0370 99.00 99.00    5750.3    0.0000   0.0370 99.00 99.00 20.47
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00975998001uw1_sk.img ================
Use keyword TRIGTIME of 612962346.24 for trigger time.
Long-term sensitivity correction to zero point is -0.512 at 612968510
The processing date in extension 0 is:  2020-06-14T10:21:22
The trigger time is: 612962346.24. The reference is keyword in image file
Using zero point of 16.928 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(257.195,-40.127,25")
fk5;-circle(257.195,-40.127,12.5")
fk5;-circle(257.189591,-40.127362,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 w1612968510I    6164.1  1.00  196.6   18.3 112    829  5484  0.000 0.024 99.00 19.2  0.0000 0.0238 99.00 19.2   197  0.000  3.296 99.00 0.084 
    Sum (T+  6164 to   6364):              16.9         16.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.22
  0   197 612968610    6264.0     99.9    -99.9    0.0000   0.0238 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.578 snr:  0.0 mag: 99.00 UL: 15.76
Rebinned Data for sw00975998001uw1_sk.img using a zero point of 16.928:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    6264.0     99.9    -99.9    0.0000   0.0238 99.00 99.00    6264.0    0.0000   0.0238 99.00 99.00 19.72
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00975998001um2_sk.img ================
Use keyword TRIGTIME of 612962346.24 for trigger time.
Long-term sensitivity correction to zero point is -0.472 at 612968305
The processing date in extension 0 is:  2020-06-14T10:21:22
The trigger time is: 612962346.24. The reference is keyword in image file
Using zero point of 16.378 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00975998001uw2_sk.img ================
Use keyword TRIGTIME of 612962346.24 for trigger time.
Long-term sensitivity correction to zero point is -0.629 at 612967895
The processing date in extension 0 is:  2020-06-14T10:21:22
The trigger time is: 612962346.24. The reference is keyword in image file
Using zero point of 16.751 for filter UVW2
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(257.195,-40.127,25")
fk5;-circle(257.195,-40.127,12.5")
fk5;-circle(257.189930,-40.127312,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 w2612967894I    5548.4  1.00  196.6   10.7 112    513  5532  0.000 0.018 99.00 19.3  0.0000 0.0184 99.00 19.3   197  0.000  2.700 99.00 0.129 
    Sum (T+  5548 to   5748):              10.4         10.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.32
  0   197 612967995    5648.3     99.9    -99.9    0.0000   0.0184 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.557 snr:  0.0 mag: 99.00 UL: 15.62
Rebinned Data for sw00975998001uw2_sk.img using a zero point of 16.751:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5648.3     99.9    -99.9    0.0000   0.0184 99.00 99.00    5648.3    0.0000   0.0184 99.00 99.00 19.82
The data range from T+4932.0 s (0.06 d) to T+6927.0 s (0.08 d)
Wrote uvot_fluxes_200614d10h34m22s317673usUT.qdp
Wrote uvot_fluxes_200614d10h34m22s317673usUT.gif
Wrote uvot_fluxes_200614d10h34m22s317673usUT.ps
Wrote uvot_fluxes_200614d10h34m22s317673usUT_vis.qdp
Wrote uvot_fluxes_200614d10h34m22s317673usUT_uv.qdp
Wrote uvot_fluxes_200614d10h34m22s317673usUT_vis.gif
Wrote uvot_fluxes_200614d10h34m22s317673usUT_vis.ps
Wrote uvot_fluxes_200614d10h34m22s317673usUT_uv.gif
Wrote uvot_fluxes_200614d10h34m22s317673usUT_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     1.67    5847.9   1079.1   -915.9    0.0000   0.1123 99.00 99.00    5847.9    0.0000   0.1123 99.00 99.00 21.40
The data range from T+4932.0 s (0.06 d) to T+6927.0 s (0.08 d)
Wrote uvot_fluxes_wtd_200614d10h34m22s317673usUT.qdp
Wrote uvot_fluxes_wtd_200614d10h34m22s317673usUT.gif
Wrote uvot_fluxes_wtd_200614d10h34m22s317673usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem