# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200628d16h36m29s873732usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021005002 -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
# ========= GRB200623A ===================
Could not find/read custom source region custom_021005_src.reg
Used archived BAT position of 242.09520 53.46788
Reference: GCN_Circ-28013
The position is (16:08:22.85, +53:28:04.4)
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(242.0952,+53.46788,3") # color=red dash=0
Source region spec. is: 242.0952 +53.46788 3"
Region file centered at (242.0952,+53.46788), which is (16:08:22.85, +53:28:04.4)
Could not find/read custom background region custom_021005_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 6400.0,
3 sigma should become about 5.2 sigma and 2 sigma should become about 4.6 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999980.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -25.11598 from uncorrected trigger time of 614575080 in BAT summary file
# ============ Reading file sw00021005001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.227 at 614613015
The processing date in extension 0 is: 2020-06-23T21:50:51
The trigger time is: 614575105.11598. The reference is BAT GRB summary file
Using zero point of 20.063 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 5:
# 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(242.0952,+53.46788,25")
fk5;-circle(242.0952,+53.46788,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 wh614613014I   37909.6  0.97  179.9  364.1 108  19148  5820  0.000 0.121 99.00 20.6  0.0000 0.1213 99.00 20.6   180  0.000  5.680 99.00 0.010 
Low  bkg:   2 wh614613200I 1798.0  87089  5824  8.317  0.028
   2 wh614613200I   38095.6  0.98 1798.0 1578.5 108  87089  5824  0.000 0.025 99.00 22.3  0.0000 0.0255 99.00 22.3  1978  0.000  1.193 99.00 0.021 
Low  bkg:   3 wh614615034I  159.9   7675  5872  8.176  0.093
   3 wh614615034I   39929.1  0.98  159.9  146.1 116   7675  5872  0.000 0.088 99.00 20.9  0.0000 0.0245 99.00 22.3  2138  0.000  1.150 99.00 0.021 
   4 wh614618734I   43629.6  0.96  181.8  470.9 116  22656  5872  0.000 0.136 99.00 20.4  0.0000 0.0249 99.00 22.3  2320  0.000  1.136 99.00 0.018 
Low  bkg:   5 wh614618922I 1817.7  88203  5808  8.355  0.028
   5 wh614618922I   43817.4  0.99 1817.7 1568.1 104  88203  5808  0.000 0.025 99.00 22.3  0.0000 0.0177 99.00 22.7  4137  0.000  0.874 99.00 0.019 
Low  bkg:   6 wh614620776I  161.8   7633  5816  8.114  0.093
   6 wh614620776I   45671.7  0.99  161.8  157.5 108   7633  5816  0.000 0.084 99.00 21.0  0.0000 0.0173 99.00 22.7  4299  0.000  0.859 99.00 0.019 
   7 wh614624587I   49482.0  0.97  173.0  288.0 116  13219  5876  0.000 0.107 99.00 20.7  0.0000 0.0172 99.00 22.7  4472  0.000  0.852 99.00 0.019 
Low  bkg:   8 wh614624766I  406.8  19982  5876  8.359  0.059
   8 wh614624766I   49660.9  0.98  406.8  398.1 116  19982  5876  0.000 0.056 99.00 21.4  0.0000 0.0164 99.00 22.7  4879  0.000  0.826 99.00 0.019 
    Sum (T+ 37910 to  50074):            4946.0       4946.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999796875 signif. UL:  22.74
  0  4879 614617924   42819.3   7254.9  -4909.8    0.0000   0.0164 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: 18.49
# ============ Reading file sw00021005002uwh_sk.img ================
Use keyword TRIGTIME of 614575105.246 for trigger time.
Long-term sensitivity correction to zero point is -0.227 at 615015306
The processing date in extension 0 is:  2020-06-28T16:14:15
The trigger time is: 614575105.246. The reference is keyword in image file
Using zero point of 20.063 for filter WHITE
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(242.0952,+53.46788,25")
fk5;-circle(242.0952,+53.46788,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
Low  bkg:   1 wh615015305I  135.6   6395  5828  8.092  0.101
   1 wh615015305I  440200.6  0.98  135.6  125.7 116   6395  5828  0.000 0.095 99.00 20.8  0.0000 0.0945 99.00 20.8   136  0.000 51.292 99.00 0.002 
Low  bkg:   2 wh615015446I 1355.1  65112  5860  8.200  0.032
   2 wh615015446I  440341.2  0.98 1355.1 1343.3 116  65112  5860  0.000 0.030 99.00 22.1  0.0000 0.0287 99.00 22.1  1491  0.000 15.590 99.00 0.002 
Low  bkg:   3 wh615016828I  149.9   7182  5832  8.218  0.097
   3 wh615016828I  441723.5  0.98  149.9  157.2 116   7182  5832  0.000 0.091 99.00 20.9  0.0000 0.0274 99.00 22.2  1640  0.000 14.865 99.00 0.002 
Low  bkg:   4 wh615027241I  100.2   4744  5860  8.084  0.117
   4 wh615027241I  452136.4  0.98  100.2   84.4 112   4744  5860  0.000 0.108 99.00 20.7  0.0000 0.0265 99.00 22.2  1741  0.000 14.432 99.00 0.002 
Low  bkg:   5 wh615027346I 1003.7  46632  5824  7.977  0.037
   5 wh615027346I  452240.9  0.98 1003.7  836.3 108  46632  5824  0.000 0.033 99.00 22.0  0.0000 0.0208 99.00 22.5  2744  0.000 11.391 99.00 0.002 
Low  bkg:   6 wh615028370I  128.0   5826  5820  7.824  0.102
   6 wh615028370I  453265.6  0.99  128.0  106.0 108   5826  5820  0.000 0.092 99.00 20.9  0.0000 0.0203 99.00 22.5  2872  0.000 11.122 99.00 0.002 
Low  bkg:   7 wh615044127I  128.7   6081  5828  8.107  0.104
   7 wh615044127I  469022.6  0.98  128.7  120.4 108   6081  5828  0.000 0.094 99.00 20.8  0.0000 0.0198 99.00 22.5  3001  0.000 10.895 99.00 0.002 
Low  bkg:   8 wh615044261I 1289.1  60069  5820  8.006  0.033
   8 wh615044261I  469156.2  0.98 1289.1 1169.7 108  60069  5820  0.000 0.029 99.00 22.1  0.0000 0.0164 99.00 22.7  4290  0.000  9.176 99.00 0.002 
Low  bkg:   9 wh615045576I  141.8   6826  5884  8.181  0.099
   9 wh615045576I  470471.7  0.98  141.8  128.4 128   6826  5884  0.000 0.098 99.00 20.8  0.0000 0.0162 99.00 22.8  4432  0.000  9.058 99.00 0.002 
    Sum (T+440201 to 470616):            3998.4       3998.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999796875 signif. UL:  22.75
  0  4432 615029530  454425.1  16190.7 -14224.4    0.0000   0.0162 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.815 snr:  0.0 mag: 99.00 UL: 18.50
Rebinned Data for sw00021005002uwh_sk.img using a zero point of 20.063:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.79e+03   42820.0   7254.2  -4910.5    0.0000   0.0164 99.00 99.00   42820.0    0.0000   0.0164 99.00 99.00 23.26
  1 4.36e+03  454427.3  16188.5 -14226.6    0.0000   0.0162 99.00 99.00  238954.5    0.0000   0.0115 99.00 99.00 23.64
The data range from T+37909.6 s (0.44 d) to T+470615.7 s (5.45 d)
Wrote uvot_fluxes_200628d16h36m29s873732usUT.qdp
Wrote uvot_fluxes_200628d16h36m29s873732usUT.gif
Wrote uvot_fluxes_200628d16h36m29s873732usUT.ps
Wrote uvot_fluxes_200628d16h36m29s873732usUT_vis.qdp
Wrote uvot_fluxes_200628d16h36m29s873732usUT_uv.qdp
Wrote uvot_fluxes_200628d16h36m29s873732usUT_vis.gif
Wrote uvot_fluxes_200628d16h36m29s873732usUT_vis.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.19   42192.0   7882.3  -4282.4    0.0000   0.0196 99.00 99.00   42192.0    0.0000   0.0196 99.00 99.00 23.29
  1  0.00989  454150.3  16465.5 -13949.6    0.0000   0.0199 99.00 99.00   45591.0    0.0000   0.0180 99.00 99.00 23.38
The data range from T+37909.6 s (0.44 d) to T+470615.7 s (5.45 d)
Wrote uvot_fluxes_wtd_200628d16h36m29s873732usUT.qdp
Wrote uvot_fluxes_wtd_200628d16h36m29s873732usUT.gif
Wrote uvot_fluxes_wtd_200628d16h36m29s873732usUT.ps
Found 14 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem