# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 230222d00h56m11s292129usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01154967002 -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
# ========= GRB230217A ===================
Could not find/read custom source region custom_1154967_src.reg
Used archived XRT position of 280.77000 -28.83739 4.00
Reference: GRB_Auto_Processing-Tue,_21_Feb_2023_22:03:11_+0000
The position is (18:43:04.80, -28:50:14.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(280.77000,-28.83739,4") # color=red dash=0
Source region spec. is: 280.77000 -28.83739 4"
Region file centered at (280.77000,-28.83739), which is (18:43:04.80, -28:50:14.6)
Could not find/read custom background region custom_1154967_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.78 from uncorrected trigger time of 698363590.66 in BAT summary file
# ============ Reading file sw01154967001uwh_sk.img ================
Use keyword TRIGTIME of 698363621.44 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 698409533
The processing date in extension 0 is: 2023-02-18T23:48:57
The trigger time is: 698363621.44. The reference is keyword in image file
Using zero point of 20.115 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Using background region based on sources found in extension 9:
# 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(280.77000,-28.83739,25")
fk5;-circle(280.77000,-28.83739,12.5")
fk5;-circle(280.770376,-28.842428,6")
fk5;-circle(280.762236,-28.837807,6")
fk5;-circle(280.766971,-28.838365,6")
fk5;-circle(280.767111,-28.831663,6")
fk5;-circle(280.770408,-28.831609,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
High bkg:   1 wh698409533I   50.9  13862  4308 63.155  0.536
   1 wh698409533I   45912.0  0.88   50.9  651.5 204  13862  4286 -0.189 0.600 99.00 19.5 -0.1890 0.6003 99.00 19.5    51 -10.200 32.407 99.00 0.001 
above line uses coinc_corr_src:  0.884 corr_bkg:  0.880
High bkg:   2 wh698409587I  257.9  81799  4316 73.474  0.257
   2 wh698409587I   45966.5  0.85  257.9 4040.3 200  81799  4355  1.338 0.306 19.80 19.2  1.0779 0.2734 20.03 19.4   309 56.494 14.779 15.91 0.001 
above line uses coinc_corr_src:  0.852 corr_bkg:  0.860
   3 wh698413344I   49722.9  0.89  166.2 1966.1 204  40695  4312  0.285 0.317 21.48 19.9  0.7933 0.2090 20.37 19.7   475 41.347 11.562 16.25 0.001 
above line uses coinc_corr_src:  0.891 corr_bkg:  0.892
   4 wh698413559I   49937.8  0.89   98.3 1269.6 208  24247  4369  1.368 0.432 19.77 19.0  0.8935 0.1883 20.24 19.7   573 48.336 10.527 16.08 0.001 
above line uses coinc_corr_src:  0.886 corr_bkg:  0.892
   5 wh698419043I   55422.3  0.89  167.2 1934.6 196  41080  4336  0.540 0.313 20.78 19.7  0.8125 0.1618 20.34 19.8   741 45.611  9.354 16.14 0.001 
above line uses coinc_corr_src:  0.890 corr_bkg:  0.893
   6 wh698419260I   55639.0  0.89  290.1 3278.8 188  71431  4335  0.722 0.233 20.47 19.7  0.7867 0.1335 20.38 19.9  1031 46.119  7.988 16.13 0.001 
above line uses coinc_corr_src:  0.893 corr_bkg:  0.896
   7 wh698425648I   62027.3  0.89  132.3 1586.0 208  32607  4354  0.247 0.358 21.63 19.8  0.7246 0.1251 20.46 20.0  1163 43.781  7.639 16.19 0.001 
above line uses coinc_corr_src:  0.890 corr_bkg:  0.891
   8 wh698431057I   67436.0  0.89  144.4 1721.9 204  35264  4334  0.500 0.342 20.87 19.6  0.6996 0.1175 20.50 20.1  1308 43.480  7.353 16.19 0.001 
above line uses coinc_corr_src:  0.889 corr_bkg:  0.892
   9 wh698431225I   67603.9  0.89  389.4 4722.1 204  95120  4307  0.646 0.210 20.59 19.8  0.6872 0.1025 20.52 20.1  1697 44.798  6.734 16.16 0.001 
above line uses coinc_corr_src:  0.890 corr_bkg:  0.892
  10 wh698436208I   72587.5  0.89  166.7 2022.7 204  40550  4304  0.704 0.321 20.50 19.6  0.6887 0.0977 20.52 20.1  1864 45.674  6.540 16.14 0.001 
above line uses coinc_corr_src:  0.888 corr_bkg:  0.892
  11 wh698436424I   72803.2  0.89  148.5 1757.3 208  37050  4360 -0.078 0.336 99.00 20.1  0.6318 0.0938 20.61 20.2  2012 43.228  6.378 16.20 0.001 
above line uses coinc_corr_src:  0.889 corr_bkg:  0.890
  12 wh698441918I   78296.8  0.89  167.1 1828.3 188  40496  4316  0.447 0.303 20.99 19.8  0.6175 0.0896 20.64 20.2  2179 43.126  6.217 16.20 0.001 
above line uses coinc_corr_src:  0.893 corr_bkg:  0.895
  13 wh698442134I   78513.5  0.89  142.5 1658.7 200  34887  4330  0.384 0.339 21.16 19.7  0.6031 0.0867 20.66 20.3  2322 42.840  6.099 16.21 0.001 
above line uses coinc_corr_src:  0.891 corr_bkg:  0.891
  14 wh698447663I   84042.1  0.89  166.2 2049.6 208  41026  4334  0.566 0.324 20.73 19.6  0.6006 0.0837 20.67 20.3  2488 43.297  5.991 16.20 0.001 
above line uses coinc_corr_src:  0.889 corr_bkg:  0.890
  15 wh698447878I   84256.9  0.89   54.4  609.6 192  13595  4363  0.242 0.541 21.66 19.4  0.5929 0.0828 20.68 20.3  2542 43.064  5.954 16.20 0.001 
above line uses coinc_corr_src:  0.887 corr_bkg:  0.890
    Sum (T+ 45912 to  84373):           31097.1      29806.0 (est. in src region)   SNR_unwtd_sum:   7.16 0.9987 signif. UL:  20.30
  0  2542 698427852   64230.4  20142.9 -18318.4    0.5929   0.0828 20.682  0.164  -0.142
Total wtd_rate (for all exposures so far): 43.064 +/- 5.827 snr:  7.4 mag: 16.20 UL: 15.66
Rebinned Data for sw01154967001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      500   47929.1   2250.3  -2017.1    0.8935   0.1883 20.24  0.21   47929.1    0.8935   0.1883 20.24  0.21 19.70
  1      525   57218.2   4947.9  -1795.9    0.5640   0.1658 20.74  0.28   52689.1    0.7246   0.1251 20.46  0.17 20.01
  2 1.23e+03   74017.8  10355.5  -6581.8    0.4828   0.1102 20.91  0.22   64309.9    0.5929   0.0828 20.68  0.14 20.30
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01154967002uuu_sk.img ================
Use keyword TRIGTIME of 698363621.44 for trigger time.
Long-term sensitivity correction to zero point is -0.215 at 698693610
The processing date in extension 0 is:  2023-02-22T00:48:14
The trigger time is: 698363621.44. The reference is keyword in image file
Using zero point of 18.125 for filter U
Use aperture correction of  1.032 based on aperture of  4.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(280.77000,-28.83739,25")
fk5;-circle(280.77000,-28.83739,12.5")
fk5;-circle(280.770331,-28.842499,6")
fk5;-circle(280.762252,-28.837866,6")
fk5;-circle(280.767051,-28.831705,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 uu698693609I  329988.6  0.98 1703.4 3571.2 208  84117  4858 -0.019 0.038 99.00 20.5 -0.0187 0.0377 99.00 20.5  1703 -45.343 91.580 99.00 0.000 
   2 uu698699306I  335685.4  0.98 1702.6 3623.4 200  86806  4829  0.018 0.038 22.51 20.3 -0.0006 0.0268 99.00 20.8  3406 -1.755 65.552 99.00 0.000 
   3 uu698705020I  341399.3  0.98 1478.3 3051.3 208  74234  4863 -0.088 0.040 99.00 20.9 -0.0271 0.0223 99.00 21.3  4884 -65.341 54.981 99.00 0.000 
    Sum (T+329989 to 342901):           10245.9      10371.8 (est. in src region)   SNR_unwtd_sum:  -1.22 0.9987 signif. UL:  21.30
  0  4884 698699880  336258.6   6642.7  -6270.0   -0.0271   0.0223 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): 41.765 +/- 5.777 snr:  7.2 mag: 16.24 UL: 13.70
Rebinned Data for sw01154967002uuu_sk.img using a zero point of 18.125:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.79e+03  336258.7   6642.5  -6270.2   -0.0271   0.0223 99.00 99.00  336258.7   -0.0271   0.0223 99.00 99.00 21.30
The data range from T+45912.0 s (0.53 d) to T+342901.3 s (3.97 d)
Wrote uvot_fluxes_230222d00h56m11s292129usUT.qdp
Wrote uvot_fluxes_230222d00h56m11s292129usUT.gif
Wrote uvot_fluxes_230222d00h56m11s292129usUT.ps
Wrote uvot_fluxes_230222d00h56m11s292129usUT_vis.qdp
Wrote uvot_fluxes_230222d00h56m11s292129usUT_uv.qdp
Wrote uvot_fluxes_230222d00h56m11s292129usUT_vis.gif
Wrote uvot_fluxes_230222d00h56m11s292129usUT_vis.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  white (0)  , b (0)  , v (0)  , u (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.00081   45937.9     25.9    -25.9   -0.2220   0.7055 99.00 99.00   45937.9   -0.2220   0.7055 99.00 99.00 19.48
  1  0.00309   46212.9    246.3   -246.3    1.5718   0.3591 19.80  0.22   46155.8    1.2009   0.3200 20.09  0.26 19.45
  2  0.00944   53443.2   2856.1  -3720.3    0.7740   0.1776 20.57  0.22   51313.3    0.8862   0.1556 20.42  0.18 19.96
  3  0.00759   68344.0   4812.4  -6316.7    0.5512   0.1550 20.94  0.27   57487.0    0.7419   0.1109 20.61  0.15 20.21
  4  0.00308   80591.0   3782.3  -2294.3    0.5195   0.2061 21.00  0.36   60453.6    0.7038   0.0985 20.67  0.14 20.29
  5 4.51e-05  336159.3   6742.0  -6170.7   -0.2001   0.1635 99.00 99.00   60969.9    0.6945   0.0975 20.69  0.14 20.30
The data range from T+45912.0 s (0.53 d) to T+342901.3 s (3.97 d)
Wrote uvot_fluxes_wtd_230222d00h56m11s292129usUT.qdp
Wrote uvot_fluxes_wtd_230222d00h56m11s292129usUT.gif
Wrote uvot_fluxes_wtd_230222d00h56m11s292129usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem