# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200626d14h39m54s410969usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021006992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/data/khamseenssd/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB200625A ===================
Could not find/read custom source region custom_021006_src.reg
Used archived BAT position of 172.80000 -14.80000
Reference: GCN_Circ-28028
The position is (11:31:12.00, -14:48:00.0)
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(172.800,-14.800,3") # color=red dash=0
Source region spec. is: 172.800 -14.800 3"
Region file centered at (172.800,-14.800), which is (11:31:12.00, -14:48:00.0)
Could not find/read custom background region custom_021006_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 57600.0,
3 sigma should become about 5.6 sigma and 2 sigma should become about 5.1 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999998.
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 614781949 in BAT summary file
# ============ Reading file sw00021006992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.227 at 614836583
The processing date in extension 0 is: 2020-06-26T14:33:04
The trigger time is: 614781974.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 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(172.800,-14.800,25")
fk5;-circle(172.800,-14.800,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 wh614836582I   54608.7  0.96  786.1 1642.5 112  85050  5824  0.000 0.060 99.00 21.3  0.0000 0.0597 99.00 21.3   786  0.000  4.045 99.00 0.007 
   2 wh614842359I   60384.9  0.96  767.4 1683.8 112  83561  5844  0.000 0.060 99.00 21.2  0.0000 0.0425 99.00 21.6  1554  0.000  3.017 99.00 0.007 
   3 wh614848068I   66094.6  0.96  303.7  601.1 108  33570  5828  0.000 0.095 99.00 20.7  0.0000 0.0388 99.00 21.7  1857  0.000  2.813 99.00 0.006 
    Sum (T+ 54609 to  66403):            3859.1       3859.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  21.72
  0  1857 614841203   59229.0   7174.2  -4620.3    0.0000   0.0388 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 2.786 snr:  0.0 mag: 99.00 UL: 17.08
Rebinned Data for sw00021006992uwh_sk.img using a zero point of 20.063:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.79e+03   59228.5   7174.6  -4619.9    0.0000   0.0388 99.00 99.00   59228.5    0.0000   0.0388 99.00 99.00 22.32
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00021006992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.290 at 614837389
The processing date in extension 0 is:  2020-06-26T14:33:04
The trigger time is: 614781974.11598. The reference is BAT GRB summary file
Using zero point of 17.600 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(172.800,-14.800,25")
fk5;-circle(172.800,-14.800,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 vv614837388I   55414.7  0.99  661.5  354.0 116  16926  5840  0.000 0.031 99.00 19.5  0.0000 0.0307 99.00 19.5   662  0.000 20.385 99.00 0.003 
   2 vv614843145I   61171.9  0.99   14.8    5.0 108    405  5824  0.000 0.206 99.00 17.4  0.0000 0.0304 99.00 19.5   676  0.000 20.199 99.00 0.003 
    Sum (T+ 55415 to  61187):             343.7        343.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  19.53
  0   676 614837843   55869.2   5317.7   -454.5    0.0000   0.0304 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 2.710 snr:  0.0 mag: 99.00 UL: 14.65
Rebinned Data for sw00021006992uvv_sk.img using a zero point of 17.600:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      671   55869.2   5317.7   -454.5    0.0000   0.0304 99.00 99.00   55869.2    0.0000   0.0304 99.00 99.00 20.13
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021006992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.179 at 614835777
The processing date in extension 0 is:  2020-06-26T14:33:04
The trigger time is: 614781974.11598. The reference is BAT GRB summary file
Using zero point of 18.161 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(172.800,-14.800,25")
fk5;-circle(172.800,-14.800,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 uu614835777I   53803.1  0.99  786.2  555.2 116  25965  5868  0.000 0.032 99.00 20.0  0.0000 0.0324 99.00 20.0   786  0.000 12.457 99.00 0.004 
   2 uu614841572I   59598.4  0.99  767.5  538.7 120  24875  5876  0.000 0.033 99.00 20.0  0.0000 0.0231 99.00 20.4  1554  0.000  9.320 99.00 0.004 
   3 uu614847270I   65296.1  0.99  779.3  503.5 112  27476  5828  0.000 0.033 99.00 20.0  0.0000 0.0189 99.00 20.6  2333  0.000  7.981 99.00 0.004 
    Sum (T+ 53803 to  66088):            1549.3       1549.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999977430556 signif. UL:  20.60
  0  2333 614841918   59943.7   6144.1  -6140.7    0.0000   0.0189 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 2.589 snr:  0.0 mag: 99.00 UL: 15.26
Rebinned Data for sw00021006992uuu_sk.img using a zero point of 18.161:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.31e+03   59942.4   6145.4  -6139.4    0.0000   0.0189 99.00 99.00   59942.4    0.0000   0.0189 99.00 99.00 21.20
The data range from T+53803.1 s (0.62 d) to T+66403.1 s (0.77 d)
Wrote uvot_fluxes_200626d14h39m54s410969usUT.qdp
Wrote uvot_fluxes_200626d14h39m54s410969usUT.gif
Wrote uvot_fluxes_200626d14h39m54s410969usUT.ps
Wrote uvot_fluxes_200626d14h39m54s410969usUT_vis.qdp
Wrote uvot_fluxes_200626d14h39m54s410969usUT_uv.qdp
Wrote uvot_fluxes_200626d14h39m54s410969usUT_vis.gif
Wrote uvot_fluxes_200626d14h39m54s410969usUT_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    0.105   58705.6   7697.5  -4902.6    0.0000   0.0469 99.00 99.00   58705.6    0.0000   0.0469 99.00 99.00 22.34
The data range from T+53803.1 s (0.62 d) to T+66403.1 s (0.77 d)
Wrote uvot_fluxes_wtd_200626d14h39m54s410969usUT.qdp
Wrote uvot_fluxes_wtd_200626d14h39m54s410969usUT.gif
Wrote uvot_fluxes_wtd_200626d14h39m54s410969usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem