# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220422d09h43m02s697653usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01102281001 -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
# ========= GRB220412A ===================
Could not find/read custom source region custom_1102281_src.reg
Used archived opt source position of 123.96728 30.34269 3.00
Reference: GCN_Circ-31882
The position is (08:15:52.15, +30:20:33.7)
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(123.96728,+30.34269,3") # color=red dash=0
Source region spec. is: 123.96728 +30.34269 3"
Region file centered at (123.96728,+30.34269), which is (08:15:52.15, +30:20:33.7)
Could not find/read custom background region custom_1102281_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 -28.95034 from uncorrected trigger time of 671438210.22 in BAT summary file
# ============ Reading file sw01102281992uwh_sk.img ================
Use keyword TRIGTIME of 671438239.168 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 671438366
The processing date in extension 0 is: 2022-04-12T18:44:32
The trigger time is: 671438239.168. The reference is keyword in image file
Using zero point of 20.115 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(123.96728,+30.34269,25")
fk5;-circle(123.96728,+30.34269,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 wh671438365I     126.6  0.96  147.4  341.2 112  17691  5846  0.018 0.146 24.50 20.9  0.0177 0.1460 24.50 20.9   147  0.004  0.035 26.23 1.763 
   2 wh671439102I     863.2  0.96  147.4  405.6 113  17706  5849  0.498 0.159 20.87 20.1  0.2576 0.1080 21.59 20.7   295  0.028  0.034 24.17 1.066 
    Sum (T+   127 to   1013):             746.8        681.0 (est. in src region)   SNR_unwtd_sum:   2.39 0.9987 signif. UL:  20.70
  0   295 671438809     569.8    443.2   -443.2    0.2576   0.1080 21.587  0.590  -0.380
Total wtd_rate (for all exposures so far):  0.028 +/- 0.034 snr:  0.8 mag: 24.17 UL: 22.32
Rebinned Data for sw01102281992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      141     201.5     74.9    -74.9    0.0177   0.1460 24.50  2.42     201.5    0.0177   0.1460 24.50  2.42 20.90
  1      141     938.1     74.9    -74.9    0.4977   0.1591 20.87  0.30     569.7    0.2576   0.1080 21.59  0.38 20.70
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01102281001uvv_sk.img ================
Use keyword TRIGTIME of 671438239.168 for trigger time.
Long-term sensitivity correction to zero point is -0.217 at 671465494
The processing date in extension 0 is:  2022-04-22T09:24:58
The trigger time is: 671438239.168. The reference is keyword in image file
Using zero point of 17.673 for filter V
Use aperture correction of  1.087 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(123.96728,+30.34269,25")
fk5;-circle(123.96728,+30.34269,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 vv671465494I   27255.3  0.98  295.0  350.6 112  18971  5848 -0.048 0.071 99.00 19.4 -0.0479 0.0712 99.00 19.4   295 -14.631 21.725 99.00 0.003 
   2 vv671465797I   27558.7  0.99  295.1  197.2 112  10753  5820 -0.036 0.053 99.00 19.8 -0.0420 0.0443 99.00 20.0   590 -12.430 13.049 99.00 0.003 
   3 vv671466101I   27862.1  0.99   19.3   11.1 112    554  5809  0.022 0.190 21.81 18.2 -0.0400 0.0433 99.00 20.1   609 -11.465 12.744 99.00 0.003 
    Sum (T+ 27255 to  27882):             558.9        580.9 (est. in src region)   SNR_unwtd_sum:  -0.92 0.9987 signif. UL:  20.05
  0   609 671465806   27566.9    314.9   -311.6   -0.0400   0.0433 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.027 +/- 0.033 snr:  0.8 mag: 24.20 UL: 19.90
Rebinned Data for sw01102281001uvv_sk.img using a zero point of 17.673:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      600   27567.7    314.1   -312.4   -0.0400   0.0433 99.00 99.00   27567.7   -0.0400   0.0433 99.00 99.00 20.05
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01102281001ubb_sk.img ================
Use keyword TRIGTIME of 671438239.168 for trigger time.
Long-term sensitivity correction to zero point is -0.188 at 671448335
The processing date in extension 0 is:  2022-04-22T09:24:58
The trigger time is: 671438239.168. The reference is keyword in image file
Using zero point of 18.922 for filter B
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(123.96728,+30.34269,25")
fk5;-circle(123.96728,+30.34269,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 bb671448334I   10095.7  0.97  261.8  459.6 108  26582  5819 -0.147 0.095 99.00 20.6 -0.1472 0.0945 99.00 20.6   262 -5.309  3.409 99.00 0.014 
   2 bb671471439I   33200.2  0.97  295.0  470.4 120  23109  5883 -0.004 0.084 99.00 20.3 -0.0709 0.0631 99.00 20.9   557 -4.761  3.225 99.00 0.010 
   3 bb671471742I   33503.8  0.98  201.2  212.4 116  10718  5876  0.004 0.083 24.82 20.3 -0.0508 0.0512 99.00 21.1   758 -4.211  3.063 99.00 0.009 
    Sum (T+ 10096 to  33708):            1142.4       1176.3 (est. in src region)   SNR_unwtd_sum:  -0.99 0.9987 signif. UL:  21.14
  0   758 671463671   25431.8   8276.4 -15336.1   -0.0508   0.0512 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.027 +/- 0.034 snr:  0.8 mag: 24.20 UL: 21.13
Rebinned Data for sw01102281001ubb_sk.img using a zero point of 18.922:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      254   10228.7    133.0   -133.0   -0.1472   0.0945 99.00 99.00   10228.7   -0.1472   0.0945 99.00 99.00 20.61
  1      485   33454.3    253.9   -254.1   -0.0004   0.0603 99.00 99.00   25476.9   -0.0508   0.0512 99.00 99.00 21.14
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01102281992uuu_sk.img ================
Use keyword TRIGTIME of 671438239.168 for trigger time.
Long-term sensitivity correction to zero point is -0.204 at 671438524
The processing date in extension 0 is:  2022-04-12T18:44:32
The trigger time is: 671438239.168. The reference is keyword in image file
Using zero point of 18.136 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(123.96728,+30.34269,25")
fk5;-circle(123.96728,+30.34269,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 uu671438523I     284.6  0.99  245.8   87.2 111   4768  5835 -0.016 0.042 99.00 20.4 -0.0156 0.0424 99.00 20.4   246 -0.046  0.126 99.00 0.905 
    Sum (T+   285 to    534):              87.2         90.7 (est. in src region)   SNR_unwtd_sum:  -0.37 0.9987 signif. UL:  20.39
  0   246 671438649     409.5    124.9   -124.9   -0.0156   0.0424 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.023 +/- 0.032 snr:  0.7 mag: 24.41 UL: 20.42
# ============ Reading file sw01102281001uuu_sk.img ================
Use keyword TRIGTIME of 671438239.168 for trigger time.
Long-term sensitivity correction to zero point is -0.204 at 671442847
The processing date in extension 0 is:  2022-04-22T09:24:57
The trigger time is: 671438239.168. The reference is keyword in image file
Using zero point of 18.136 for filter U
Use aperture correction of  1.100 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(123.96728,+30.34269,25")
fk5;-circle(123.96728,+30.34269,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 uu671442846I    4607.4  0.99  112.6   83.6 116   4149  5883  0.018 0.091 22.49 19.4  0.0181 0.0912 22.49 19.4   113  0.614  3.091 20.82 0.040 
   2 uu671455899I   17660.8  0.99  295.0  103.6 104   5538  5831  0.018 0.038 22.48 20.3  0.0182 0.0375 22.48 20.3   408  1.109  2.627 20.18 0.031 
   3 uu671456203I   17964.2  0.99  135.3   43.7 116   2673  5874 -0.074 0.055 99.00 20.4 -0.0048 0.0313 99.00 20.7   543  0.052  2.472 23.50 0.028 
    Sum (T+  4607 to  18102):             231.0        233.4 (est. in src region)   SNR_unwtd_sum:  -0.15 0.9987 signif. UL:  20.67
  0   543 671453379   15139.6   2962.1 -10532.2   -0.0048   0.0313 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.023 +/- 0.032 snr:  0.7 mag: 24.41 UL: 20.42
Rebinned Data for sw01102281001uuu_sk.img using a zero point of 18.136:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      244     409.5    124.9   -124.9   -0.0156   0.0424 99.00 99.00     409.5   -0.0156   0.0424 99.00 99.00 20.39
  1      111    4664.6     57.2    -57.2    0.0181   0.0912 22.49  1.95    1741.3   -0.0051   0.0408 99.00 99.00 20.37
  2      428   17880.5    221.2   -219.8   -0.0107   0.0315 99.00 99.00   10552.7   -0.0081   0.0253 99.00 99.00 20.95
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01102281001uw1_sk.img ================
Use keyword TRIGTIME of 671438239.168 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 671442642
The processing date in extension 0 is:  2022-04-22T09:24:57
The trigger time is: 671438239.168. The reference is keyword in image 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 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(123.96728,+30.34269,25")
fk5;-circle(123.96728,+30.34269,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
High bkg:   1 w1671442641I  196.6   2230  5848  1.939  0.041
   1 w1671442641I    4402.7  1.00  196.6   32.3 108   2230  5848 -0.051 0.033 99.00 20.0 -0.0508 0.0330 99.00 20.0   197 -4.051  2.631 99.00 0.060 
   2 w1671454993I   16754.5  1.00  885.6   83.3 116   4127  5873  0.002 0.012 23.78 20.7 -0.0073 0.0113 99.00 20.9  1082 -2.090  2.135 99.00 0.044 
    Sum (T+  4403 to  17654):             115.6        122.7 (est. in src region)   SNR_unwtd_sum:  -0.65 0.9987 signif. UL:  20.94
  0  1082 671453136   14896.6   2757.6 -10493.9   -0.0073   0.0113 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.023 +/- 0.033 snr:  0.7 mag: 24.41 UL: 19.43
Rebinned Data for sw01102281001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    4502.6     99.9    -99.9   -0.0508   0.0330 99.00 99.00    4502.6   -0.0508   0.0330 99.00 99.00 20.00
  1      884   17204.3    449.9   -449.9    0.0023   0.0117 23.78  1.97   14900.8   -0.0073   0.0113 99.00 99.00 20.94
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01102281001um2_sk.img ================
Use keyword TRIGTIME of 671438239.168 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 671442437
The processing date in extension 0 is:  2022-04-22T09:24:57
The trigger time is: 671438239.168. The reference is keyword in image 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(123.96728,+30.34269,25")
fk5;-circle(123.96728,+30.34269,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 m2671442436I    4197.5  1.00  196.6   11.3 112    359  5833  0.025 0.019 20.61 19.3  0.0247 0.0190 20.61 19.3   197  3.195  2.463 19.03 0.220 
   2 m2671454086I   15847.5  1.00  885.6   15.7 104    991  5828 -0.003 0.005 99.00 21.2  0.0024 0.0053 23.14 20.9  1082  1.622  1.812 19.77 0.135 
    Sum (T+  4198 to  16747):              26.9         24.6 (est. in src region)   SNR_unwtd_sum:   0.45 0.9987 signif. UL:  20.89
  0  1082 671452356   14117.1   2630.1  -9919.6    0.0024   0.0053 23.135 75.865  -1.269
Total wtd_rate (for all exposures so far):  0.023 +/- 0.032 snr:  0.7 mag: 24.39 UL: 18.86
Rebinned Data for sw01102281001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    4297.4     99.9    -99.9    0.0247   0.0190 20.61  0.62    4297.4    0.0247   0.0190 20.61  0.62 19.30
  1      885   16297.4    449.9   -449.9   -0.0025   0.0050 99.00 99.00   14117.9    0.0024   0.0053 23.14  1.27 20.89
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01102281001uw2_sk.img ================
Use keyword TRIGTIME of 671438239.168 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 671459639
The processing date in extension 0 is:  2022-04-22T09:24:58
The trigger time is: 671438239.168. The reference is keyword in image 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 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(123.96728,+30.34269,25")
fk5;-circle(123.96728,+30.34269,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 w2671459639I   21400.2  1.00  769.4   44.3 104   2073  5821  0.010 0.010 21.98 20.5  0.0105 0.0097 21.98 20.5   769  4.573  4.219 18.64 0.048 
    Sum (T+ 21400 to  22182):              44.3         37.0 (est. in src region)   SNR_unwtd_sum:   1.08 0.9987 signif. UL:  20.53
  0   769 671460030   21791.0    390.8   -390.8    0.0105   0.0097 21.985  2.778  -0.710
Total wtd_rate (for all exposures so far):  0.023 +/- 0.032 snr:  0.7 mag: 24.37 UL: 19.30
Rebinned Data for sw01102281001uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      769   21791.0    390.8   -390.8    0.0105   0.0097 21.98  0.71   21791.0    0.0105   0.0097 21.98  0.71 20.53
The data range from T+126.6 s (0.00 d) to T+33708.2 s (0.39 d)
Wrote uvot_fluxes_220422d09h43m02s697653usUT.qdp
Wrote uvot_fluxes_220422d09h43m02s697653usUT.gif
Wrote uvot_fluxes_220422d09h43m02s697653usUT.ps
Wrote uvot_fluxes_220422d09h43m02s697653usUT_vis.qdp
Wrote uvot_fluxes_220422d09h43m02s697653usUT_uv.qdp
Wrote uvot_fluxes_220422d09h43m02s697653usUT_vis.gif
Wrote uvot_fluxes_220422d09h43m02s697653usUT_vis.ps
Wrote uvot_fluxes_220422d09h43m02s697653usUT_uv.gif
Wrote uvot_fluxes_220422d09h43m02s697653usUT_uv.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      712     201.5     74.9    -74.9    0.0208   0.1716 24.50  2.42     201.5    0.0208   0.1716 24.50  2.42 20.90
  1     8.62     409.5    124.9   -124.9   -0.1135   0.3084 99.00 99.00     204.0    0.0176   0.1676 24.68  2.56 20.93
  2     27.7     938.1     74.9    -74.9    0.5849   0.1869 20.87  0.30     231.1    0.1027   0.1452 22.76  0.96 20.93
  3   0.0388    8164.5   2197.2  -3557.2   -0.3811   0.2979 99.00 99.00     231.5    0.1018   0.1449 22.77  0.96 20.94
  4   0.0146   24489.5   9218.6  -6828.8   -0.0527   0.1489 99.00 99.00     232.0    0.1015   0.1446 22.77  0.96 20.94
The data range from T+126.6 s (0.00 d) to T+33708.2 s (0.39 d)
Wrote uvot_fluxes_wtd_220422d09h43m02s697653usUT.qdp
Wrote uvot_fluxes_wtd_220422d09h43m02s697653usUT.gif
Wrote uvot_fluxes_wtd_220422d09h43m02s697653usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem