# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220501d17h54m23s554096usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021489002 -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
# ========= GRB220426A ===================
Could not find/read custom source region custom_021489_src.reg
Used archived XRT position of 338.14329 -22.95075 4.00
Reference: GCN_Circulars-31966-Thu,_28_Apr_2022_13:35:15_-0400
The position is (22:32:34.39, -22:57:02.7)
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(338.14329,-22.95075,4") # color=red dash=0
Source region spec. is: 338.14329 -22.95075 4"
Region file centered at (338.14329,-22.95075), which is (22:32:34.39, -22:57:02.7)
Could not find/read custom background region custom_021489_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 -29.0391 from uncorrected trigger time of 672648591.23 in BAT summary file
# ============ Reading file sw00021489001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 672816896
The processing date in extension 0 is: 2022-04-28T10:59:50
The trigger time is: 672648620.2691. The reference is BAT GRB summary 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 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(338.14329,-22.95075,25")
fk5;-circle(338.14329,-22.95075,12.5")
fk5;-circle(338.144431,-22.945324,6")
fk5;-circle(338.137109,-22.946689,6")
fk5;-circle(338.143070,-22.943506,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 wh672816896I  168275.9  0.90   88.3 1001.8 200  14794  5331  5.786 0.414 18.21 18.0  5.7862 0.4142 18.21 18.0    88 1144.475 81.918 12.64 0.001 
   2 wh672816988I  168368.5  0.89  524.1 6853.8 200 115178  5313  5.600 0.186 18.24 18.1  5.6275 0.1702 18.24 18.1   612 1117.281 33.733 12.67 0.001 
above line uses coinc_corr_src:  0.888 corr_bkg:  0.917
    Sum (T+168276 to 169270):            7855.6       4890.8 (est. in src region)   SNR_unwtd_sum:  33.07 0.9987 signif. UL:  18.14
  0   612 672817368  168747.5    522.8   -471.6    5.6275   0.1702 18.239  0.033  -0.032
Total wtd_rate (for all exposures so far): 1117.281 +/-33.348 snr: 33.5 mag: 12.67 UL: 12.40
# ============ Reading file sw00021489002uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 673056426
The processing date in extension 0 is:  2022-05-01T17:42:06
The trigger time is: 672648620.2691. The reference is BAT GRB summary 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 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(338.14329,-22.95075,25")
fk5;-circle(338.14329,-22.95075,12.5")
fk5;-circle(338.144399,-22.945445,6")
fk5;-circle(338.137248,-22.946738,6")
fk5;-circle(338.143046,-22.943514,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 wh673056425I  407805.4  0.92  124.8 1285.4 200  16947  5275  5.814 0.327 18.20 18.0  5.8140 0.3273 18.20 18.0   125 2786.550 156.861 11.68 0.000 
   2 wh673056555I  407935.1  0.91  999.0 10896.1 200 147438  5311  6.080 0.120 18.16 18.1  6.0503 0.1126 18.16 18.1  1124 2903.067 54.039 11.63 0.000 
   3 wh673057827I  409207.3  0.90   56.9  667.8 196  10522  5296  5.627 0.528 18.24 18.0  6.0301 0.1101 18.16 18.1  1181 2895.572 52.873 11.64 0.000 
   4 wh673063077I  414457.1  0.91   50.9  599.1 200   7903  5326  6.774 0.553 18.04 17.8  6.0608 0.1080 18.16 18.1  1232 2910.977 51.885 11.63 0.000 
   5 wh673063131I  414511.6  0.90  394.1 4740.5 200  68399  5292  6.292 0.203 18.12 18.0  6.1163 0.0955 18.15 18.1  1626 2942.875 45.967 11.62 0.000 
above line uses coinc_corr_src:  0.900 corr_bkg:  0.933
   6 wh673063654I  415034.0  0.89   14.5  188.7 200   3118  5254  5.609 1.113 18.24 17.7  6.1119 0.0951 18.15 18.1  1640 2941.655 45.808 11.62 0.000 
above line uses coinc_corr_src:  0.892 corr_bkg:  0.920
   7 wh673068779I  420159.6  0.91   54.9  565.7 204   8155  5256  5.134 0.495 18.34 18.1  6.0800 0.0934 18.16 18.1  1695 2928.853 45.029 11.62 0.000 
   8 wh673068838I  420218.0  0.90  425.8 5198.3 208  73024  5322  6.315 0.196 18.11 18.0  6.1269 0.0844 18.15 18.1  2121 2961.287 40.851 11.61 0.000 
   9 wh673069403I  420783.4  0.89   21.6  286.0 192   4302  5311  7.017 0.918 18.00 17.6  6.1357 0.0841 18.14 18.1  2142 2965.218 40.687 11.61 0.000 
above line uses coinc_corr_src:  0.891 corr_bkg:  0.927
  10 wh673085011I  436391.3  0.92   96.2 1023.6 200  12691  5315  6.415 0.379 18.10 17.9  6.1478 0.0821 18.14 18.1  2239 2980.392 39.836 11.60 0.000 
  11 wh673085112I  436491.8  0.91  840.1 9089.2 204 117295  5316  6.183 0.130 18.14 18.1  6.1574 0.0694 18.14 18.1  3079 3033.517 34.195 11.59 0.000 
  12 wh673086099I  437479.2  0.91   57.7  679.8 204   8830  5279  6.687 0.520 18.05 17.8  6.1671 0.0688 18.14 18.1  3136 3040.176 33.919 11.58 0.000 
  13 wh673108859I  460239.0  0.91   74.6  855.0 200  11359  5289  6.514 0.452 18.08 17.9  6.1751 0.0680 18.14 18.1  3211 3049.496 33.597 11.58 0.000 
  14 wh673108937I  460317.5  0.90  507.2 6277.7 208  94872  5277  5.756 0.182 18.21 18.1  6.1184 0.0637 18.15 18.1  3718 3055.587 31.823 11.58 0.000 
above line uses coinc_corr_src:  0.900 corr_bkg:  0.930
  15 wh673109703I  461083.4  0.88   26.3  362.4 196   6976  5227  4.511 0.863 18.48 18.0  6.1075 0.0636 18.15 18.1  3744 3053.540 31.755 11.58 0.000 
above line uses coinc_corr_src:  0.880 corr_bkg:  0.902
    Sum (T+407805 to 461141):           42715.4      22661.0 (est. in src region)   SNR_unwtd_sum:  96.06 0.9987 signif. UL:  18.12
  0  3744 673075528  426908.2  34232.5 -19102.8    6.1075   0.0636 18.150  0.012  -0.011
Total wtd_rate (for all exposures so far): 2223.285 +/-22.958 snr: 96.8 mag: 11.92 UL: 11.71
Rebinned Data for sw00021489002uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      545  168746.3    524.0   -470.4    5.6275   0.1702 18.24  0.03  168746.3    5.6275   0.1702 18.24  0.03 18.14
  1  3.4e+03  426875.1  34265.6 -19069.7    6.1075   0.0636 18.15  0.01  391185.7    6.0411   0.0596 18.16  0.01 18.13
The data range from T+168275.9 s (1.95 d) to T+461140.7 s (5.34 d)
Wrote uvot_fluxes_220501d17h54m23s554096usUT.qdp
Wrote uvot_fluxes_220501d17h54m23s554096usUT.gif
Wrote uvot_fluxes_220501d17h54m23s554096usUT.ps
Wrote uvot_fluxes_220501d17h54m23s554096usUT_vis.qdp
Wrote uvot_fluxes_220501d17h54m23s554096usUT_uv.qdp
Wrote uvot_fluxes_220501d17h54m23s554096usUT_vis.gif
Wrote uvot_fluxes_220501d17h54m23s554096usUT_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.00075  168735.1    535.2   -459.2    6.6177   0.1997 18.24  0.03  168735.1    6.6177   0.1997 18.24  0.03 18.14
  1 0.000847  424919.4  36221.4 -17113.9    7.1809   0.0746 18.15  0.01  304644.4    7.0344   0.0758 18.17  0.01 18.14
The data range from T+168275.9 s (1.95 d) to T+461140.7 s (5.34 d)
Wrote uvot_fluxes_wtd_220501d17h54m23s554096usUT.qdp
Wrote uvot_fluxes_wtd_220501d17h54m23s554096usUT.gif
Wrote uvot_fluxes_wtd_220501d17h54m23s554096usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem