# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 230215d08h49m07s925859usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021535001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/data/uvot/swift_data/home/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /data/uvot/swift_data/home/uvot_lc
# ========= GRB230204B ===================
Could not find/read custom source region custom_021535_src.reg
Used archived opt source position of 197.64567 -21.71814 3.00
Reference: GCN-Circ-33269
The position is (13:10:34.96, -21:43:05.3)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(197.64567,-21.71814,3") # color=red dash=0
Source region spec. is: 197.64567 -21.71814 3"
Region file centered at (197.64567,-21.71814), which is (13:10:34.96, -21:43:05.3)
Could not find/read custom background region custom_021535_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 -30.70348 from uncorrected trigger time of 697240071 in BAT summary file
# ============ Reading file sw00021535001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.220 at 697321183
The processing date in extension 0 is: 2023-02-15T08:26:08
The trigger time is: 697240101.70348. The reference is BAT GRB summary file
Using zero point of 17.670 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(197.64567,-21.71814,25")
fk5;-circle(197.64567,-21.71814,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 vv697321183I   81081.8  0.99   78.5   55.0 116   2291  5854  0.134 0.105 19.85 18.5  0.1341 0.1046 19.85 18.5    79 121.553 94.812 15.08 0.002 
   2 vv697331494I   91392.4  0.99   78.5   34.6 116   1665  5842  0.021 0.083 21.87 19.0  0.0774 0.0667 20.45 19.0   157 69.280 63.244 15.69 0.002 
   3 vv697337195I   97093.7  0.99   78.5   32.8 104   1618  5837  0.055 0.080 20.82 19.0  0.0699 0.0519 20.56 19.3   236 65.940 51.217 15.74 0.002 
   4 vv697349671I  109570.3  0.99   78.5   36.3 116   1858  5831 -0.010 0.085 99.00 19.1  0.0500 0.0443 20.92 19.5   314 52.371 46.004 15.99 0.002 
    Sum (T+ 81082 to 109650):             158.6        144.2 (est. in src region)   SNR_unwtd_sum:   1.13 0.9987 signif. UL:  19.50
  0   314 697334925   94823.3  14826.7 -13741.5    0.0500   0.0443 20.922  2.359  -0.689
Total wtd_rate (for all exposures so far): 52.371 +/-45.607 snr:  1.1 mag: 15.99 UL: 11.96
Rebinned Data for sw00021535001uvv_sk.img using a zero point of 17.670:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      312   94835.2  14814.9 -13753.4    0.0500   0.0443 20.92  0.69   94835.2    0.0500   0.0443 20.92  0.69 19.50
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00021535001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.198 at 697320773
The processing date in extension 0 is:  2023-02-15T08:26:07
The trigger time is: 697240101.70348. The reference is BAT GRB summary file
Using zero point of 18.912 for filter B
Use aperture correction of  1.108 based on aperture of  3.00
Using background region based on sources found in extension 3:
# 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(197.64567,-21.71814,25")
fk5;-circle(197.64567,-21.71814,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 bb697320773I   80671.6  0.99   78.5   67.3 120   2876  5863  0.121 0.118 21.21 19.7  0.1206 0.1183 21.21 19.7    79 34.611 33.960 16.44 0.005 
   2 bb697331083I   90982.2  0.99   78.5   52.8 116   2809  5851 -0.041 0.105 99.00 20.2  0.0398 0.0790 22.41 20.3   157 12.890 24.115 17.51 0.004 
   3 bb697336784I   96682.9  0.99   78.5   57.8 108   2758  5809  0.093 0.109 21.50 19.8  0.0574 0.0641 22.01 20.4   236 18.662 20.309 17.11 0.004 
   4 bb697349262I  109160.4  0.99   78.5   81.6 116   2952  5853  0.330 0.130 20.12 19.3  0.1254 0.0580 21.17 20.2   314 37.539 18.930 16.35 0.004 
    Sum (T+ 80672 to 109240):             259.5        224.3 (est. in src region)   SNR_unwtd_sum:   2.16 0.9987 signif. UL:  20.22
  0   314 697334515   94413.8  14826.4 -13742.2    0.1254   0.0580 21.166  0.674  -0.413
Total wtd_rate (for all exposures so far): 39.708 +/-17.402 snr:  2.3 mag: 16.29 UL: 14.00
Rebinned Data for sw00021535001ubb_sk.img using a zero point of 18.912:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      310   94413.1  14827.1 -13741.4    0.1254   0.0580 21.17  0.41   94413.1    0.1254   0.0580 21.17  0.41 20.22
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021535001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.214 at 697320689
The processing date in extension 0 is:  2023-02-15T08:26:07
The trigger time is: 697240101.70348. The reference is BAT GRB summary file
Using zero point of 18.126 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(197.64567,-21.71814,25")
fk5;-circle(197.64567,-21.71814,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 uu697320689I   80587.3  1.00   78.5   22.6 116   1215  5853 -0.021 0.068 99.00 19.9 -0.0207 0.0676 99.00 19.9    79 -12.265 40.009 99.00 0.005 
   2 uu697330999I   90898.0  0.99   78.5   26.6 116   1209  5840  0.036 0.073 21.72 19.6  0.0078 0.0498 23.39 20.1   157  3.847 31.064 18.83 0.005 
   3 uu697336700I   96598.8  1.00   78.5   17.0 116   1201  5839 -0.097 0.059 99.00 20.4 -0.0271 0.0386 99.00 20.6   236 -16.667 25.202 99.00 0.005 
   4 uu697349177I  109076.1  1.00   78.5   22.7 116   1205  5835 -0.017 0.068 99.00 19.8 -0.0247 0.0335 99.00 20.7   314 -16.183 22.859 99.00 0.005 
    Sum (T+ 80587 to 109156):              88.9         95.9 (est. in src region)   SNR_unwtd_sum:  -0.74 0.9987 signif. UL:  20.74
  0   314 697334431   94329.4  14826.4 -13742.1   -0.0247   0.0335 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): 21.339 +/-13.783 snr:  1.5 mag: 16.97 UL: 13.62
Rebinned Data for sw00021535001uuu_sk.img using a zero point of 18.126:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      313   94329.4  14826.4 -13742.1   -0.0247   0.0335 99.00 99.00   94329.4   -0.0247   0.0335 99.00 99.00 20.74
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00021535001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 697320525
The processing date in extension 0 is:  2023-02-15T08:26:06
The trigger time is: 697240101.70348. The reference is BAT GRB summary file
Using zero point of 17.169 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(197.64567,-21.71814,25")
fk5;-circle(197.64567,-21.71814,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 w1697320525I   80423.4  1.00  157.3    7.5 116    422  5868 -0.006 0.020 99.00 20.2 -0.0061 0.0198 99.00 20.2   157 -8.736 28.176 99.00 0.013 
   2 w1697330835I   90733.9  1.00  157.2    8.7 116    379  5849  0.008 0.021 22.38 20.0  0.0011 0.0145 24.59 20.5   315  1.525 21.902 19.83 0.013 
   3 w1697336536I   96434.8  1.00  157.2    8.2 116    456  5844 -0.006 0.021 99.00 20.2 -0.0013 0.0119 99.00 20.7   472 -1.516 18.647 99.00 0.012 
   4 w1697349013I  108912.0  1.00  157.2    8.8 112    433  5848  0.004 0.021 23.24 20.0 -0.0001 0.0104 99.00 20.9   629  0.040 17.006 23.79 0.011 
    Sum (T+ 80423 to 109072):              33.2         33.2 (est. in src region)   SNR_unwtd_sum:  -0.01 0.9987 signif. UL:  20.86
  0   629 697334305   94203.8  14868.0 -13780.4   -0.0001   0.0104 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): 13.161 +/-10.806 snr:  1.2 mag: 17.49 UL: 13.01
Rebinned Data for sw00021535001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      629   94204.0  14867.8 -13780.6   -0.0001   0.0104 99.00 99.00   94204.0   -0.0001   0.0104 99.00 99.00 20.86
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00021535001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 697321267
The processing date in extension 0 is:  2023-02-15T08:26:08
The trigger time is: 697240101.70348. The reference is BAT GRB summary file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.106 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(197.64567,-21.71814,25")
fk5;-circle(197.64567,-21.71814,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 m2697321267I   81165.7  1.00  406.9    8.9 116    512  5844 -0.003 0.008 99.00 20.6 -0.0034 0.0082 99.00 20.6   407 -8.384 20.126 99.00 0.016 
   2 m2697331577I   91476.2  1.00  974.3   15.8 116    796  5876  0.000 0.005 26.81 21.2 -0.0009 0.0040 99.00 21.4  1381 -1.981 10.719 99.00 0.020 
   3 m2697337279I   97177.8  1.00  535.6   12.0 112    436  5828  0.007 0.007 21.92 20.4  0.0014 0.0035 23.74 21.4  1917  4.481  9.695 18.66 0.020 
   4 m2697349757I  109655.9  1.00  237.4    4.5 108    256  5824 -0.001 0.010 99.00 20.3  0.0011 0.0033 23.97 21.4  2154  3.939  9.311 18.80 0.020 
    Sum (T+ 81166 to 109897):              41.2         39.0 (est. in src region)   SNR_unwtd_sum:   0.34 0.9987 signif. UL:  21.43
  0  2154 697333395   93293.5  16603.7 -12127.8    0.0011   0.0033 23.971 75.029  -1.498
Total wtd_rate (for all exposures so far):  7.714 +/- 6.972 snr:  1.1 mag: 18.07 UL: 12.94
Rebinned Data for sw00021535001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.15e+03   93293.6  16603.5 -12127.9    0.0011   0.0033 23.97  1.50   93293.6    0.0011   0.0033 23.97  1.50 21.43
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00021535001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.345 at 697320859
The processing date in extension 0 is:  2023-02-15T08:26:07
The trigger time is: 697240101.70348. The reference is BAT GRB summary file
Using zero point of 17.035 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(197.64567,-21.71814,25")
fk5;-circle(197.64567,-21.71814,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 w2697320858I   80757.1  1.00  314.7    9.1 116    494  5872 -0.002 0.011 99.00 20.7 -0.0022 0.0107 99.00 20.7   315 -3.610 17.423 99.00 0.020 
   2 w2697331169I   91068.0  1.00  314.7    8.6 108    442  5824  0.001 0.010 24.32 20.7 -0.0005 0.0075 99.00 21.1   629 -0.785 12.855 99.00 0.020 
   3 w2697336870I   96769.0  1.00  314.7   14.4 120    356  5865  0.025 0.013 21.04 20.0  0.0080 0.0067 22.27 20.9   944 15.309 12.135 17.33 0.021 
   4 w2697349347I  109245.8  1.00  314.7    4.6 112    458  5828 -0.015 0.008 99.00 21.5  0.0023 0.0054 23.62 21.3  1259  6.998 10.441 18.18 0.020 
    Sum (T+ 80757 to 109566):              36.7         34.0 (est. in src region)   SNR_unwtd_sum:   0.43 0.9987 signif. UL:  21.33
  0  1259 697334722   94619.9  14945.7 -13862.8    0.0023   0.0054 23.616 75.384  -1.298
Total wtd_rate (for all exposures so far):  7.485 +/- 5.797 snr:  1.3 mag: 18.11 UL: 13.54
Rebinned Data for sw00021535001uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.26e+03   94620.2  14945.4 -13863.1    0.0023   0.0054 23.62  1.30   94620.2    0.0023   0.0054 23.62  1.30 21.33
The data range from T+80423.4 s (0.93 d) to T+109897.1 s (1.27 d)
Wrote uvot_fluxes_230215d08h49m07s925859usUT.qdp
Wrote uvot_fluxes_230215d08h49m07s925859usUT.gif
Wrote uvot_fluxes_230215d08h49m07s925859usUT.ps
Wrote uvot_fluxes_230215d08h49m07s925859usUT_vis.qdp
Wrote uvot_fluxes_230215d08h49m07s925859usUT_uv.qdp
Wrote uvot_fluxes_230215d08h49m07s925859usUT_vis.gif
Wrote uvot_fluxes_230215d08h49m07s925859usUT_vis.ps
Wrote uvot_fluxes_230215d08h49m07s925859usUT_uv.gif
Wrote uvot_fluxes_230215d08h49m07s925859usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  v (0)  , white (0)  , u (0)  , b (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.00111   92056.2  17593.8 -11468.9    0.2164   0.1596 21.95  0.60   92056.2    0.2164   0.1596 21.95  0.60 20.68
The data range from T+80423.4 s (0.93 d) to T+109897.1 s (1.27 d)
Wrote uvot_fluxes_wtd_230215d08h49m07s925859usUT.qdp
Wrote uvot_fluxes_wtd_230215d08h49m07s925859usUT.gif
Wrote uvot_fluxes_wtd_230215d08h49m07s925859usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem