# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 230425d07h05m12s765396usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01165354001 -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
# ========= GRB230423A ===================
Could not find/read custom source region custom_1165354_src.reg
Used archived XRT position of 122.58296 -21.92586 4.00
Reference: GCN_Circulars-33681-Tue,_25_Apr_2023_04:27:14_+0000
The position is (08:10:19.91, -21:55:33.1)
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(122.58296,-21.92586,4") # color=red dash=0
Source region spec. is: 122.58296 -21.92586 4"
Region file centered at (122.58296,-21.92586), which is (08:10:19.91, -21:55:33.1)
Could not find/read custom background region custom_1165354_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 -31.15872 from uncorrected trigger time of 703969675.46 in BAT summary file
# ============ Reading file sw01165354992uwh_sk.img ================
Use keyword TRIGTIME of 703969706.624 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 703970438
The processing date in extension 0 is: 2023-04-25T04:15:31
The trigger time is: 703969706.624. 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 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(122.58296,-21.92586,25")
fk5;-circle(122.58296,-21.92586,12.5")
fk5;-circle(122.583674,-21.918653,6")
fk5;-circle(122.579043,-21.923157,6")
fk5;-circle(122.586601,-21.929528,6")
fk5;-circle(122.579989,-21.930833,6")
fk5;-circle(122.583630,-21.931761,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 wh703970437I     731.0  0.97  147.4  441.9 200   9301  4046 -0.130 0.156 99.00 21.1 -0.1296 0.1559 99.00 21.1   147 -0.123  0.148 99.00 0.328 
   2 wh703970592I     885.5  0.97  147.4  437.8 197   9189  4053 -0.064 0.155 99.00 21.0 -0.0969 0.1100 99.00 21.5   295 -0.102  0.113 99.00 0.306 
   3 wh703974921I    5214.8  0.96  196.6  875.3 208  16649  4061  0.123 0.166 22.39 20.6 -0.0095 0.0936 99.00 21.4   491 -0.091  0.112 99.00 0.175 
    Sum (T+   731 to   5415):            1754.9       1759.3 (est. in src region)   SNR_unwtd_sum:  -0.10 0.9987 signif. UL:  21.45
  0   491 703972363    2656.3   2758.3  -1925.3   -0.0095   0.0936 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.091 +/- 0.109 snr: -0.8 mag: 99.00 UL: 21.46
Rebinned Data for sw01165354992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      286     883.2    152.1   -152.2   -0.0969   0.1100 99.00 99.00     883.2   -0.0969   0.1100 99.00 99.00 21.47
  1      188    5314.7     99.9    -99.9    0.1232   0.1664 22.39  0.93    2643.2   -0.0095   0.0936 99.00 99.00 21.45
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01165354992ubb_sk.img ================
Use keyword TRIGTIME of 703969706.624 for trigger time.
Long-term sensitivity correction to zero point is -0.200 at 703974716
The processing date in extension 0 is:  2023-04-25T04:15:32
The trigger time is: 703969706.624. The reference is keyword in image file
Using zero point of 18.910 for filter B
Use aperture correction of  1.035 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(122.58296,-21.92586,25")
fk5;-circle(122.58296,-21.92586,12.5")
fk5;-circle(122.583661,-21.918619,6")
fk5;-circle(122.579045,-21.923156,6")
fk5;-circle(122.586599,-21.929503,6")
fk5;-circle(122.579954,-21.930885,6")
fk5;-circle(122.583636,-21.931787,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 bb703974716I    5009.8  0.97  196.6  529.8 200  11116  4089 -0.075 0.127 99.00 20.0 -0.0755 0.1273 99.00 20.0   197 -1.375  2.320 99.00 0.019 
    Sum (T+  5010 to   5210):             529.8        543.8 (est. in src region)   SNR_unwtd_sum:  -0.59 0.9987 signif. UL:  20.03
  0   197 703974816    5109.7     99.9    -99.9   -0.0755   0.1273 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.094 +/- 0.109 snr: -0.9 mag: 99.00 UL: 20.27
Rebinned Data for sw01165354992ubb_sk.img using a zero point of 18.910:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      192    5109.7     99.9    -99.9   -0.0755   0.1273 99.00 99.00    5109.7   -0.0755   0.1273 99.00 99.00 20.03
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01165354992uuu_sk.img ================
Use keyword TRIGTIME of 703969706.624 for trigger time.
Long-term sensitivity correction to zero point is -0.217 at 703974511
The processing date in extension 0 is:  2023-04-25T04:15:32
The trigger time is: 703969706.624. The reference is keyword in image file
Using zero point of 18.123 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(122.58296,-21.92586,25")
fk5;-circle(122.58296,-21.92586,12.5")
fk5;-circle(122.579075,-21.923153,6")
fk5;-circle(122.580040,-21.930820,6")
fk5;-circle(122.583681,-21.931747,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 uu703974511I    4804.7  0.98  196.6  384.9 200   8809  4632  0.024 0.107 22.17 19.2  0.0240 0.1071 22.17 19.2   197  0.866  3.866 20.45 0.014 
    Sum (T+  4805 to   5004):             384.9        380.4 (est. in src region)   SNR_unwtd_sum:   0.22 0.9987 signif. UL:  19.22
  0   197 703974611    4904.5     99.9    -99.9    0.0240   0.1071 22.173 76.827  -1.844
Total wtd_rate (for all exposures so far): -0.093 +/- 0.109 snr: -0.9 mag: 99.00 UL: 19.48
# ============ Reading file sw01165354001uuu_sk.img ================
Use keyword TRIGTIME of 703969706.624 for trigger time.
Long-term sensitivity correction to zero point is -0.217 at 704031706
The processing date in extension 0 is:  2023-04-25T06:58:26
The trigger time is: 703969706.624. The reference is keyword in image file
Using zero point of 18.123 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(122.58296,-21.92586,25")
fk5;-circle(122.58296,-21.92586,12.5")
fk5;-circle(122.579047,-21.923079,6")
fk5;-circle(122.579932,-21.930777,6")
fk5;-circle(122.583626,-21.931734,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 uu704031706I   61999.7  0.98  255.8  435.2 200   9703  4626  0.064 0.087 21.10 19.3  0.0643 0.0873 21.10 19.3   256 29.409 39.908 16.62 0.001 
    Sum (T+ 62000 to  62260):             435.2        419.5 (est. in src region)   SNR_unwtd_sum:   0.74 0.9987 signif. UL:  19.31
  0   256 704031836   62129.7    130.0   -130.0    0.0643   0.0873 21.102 77.898  -0.931
Total wtd_rate (for all exposures so far): -0.093 +/- 0.109 snr: -0.8 mag: 99.00 UL: 19.48
Rebinned Data for sw01165354001uuu_sk.img using a zero point of 18.123:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      193    4904.5     99.9    -99.9    0.0240   0.1071 22.17  1.84    4904.5    0.0240   0.1071 22.17  1.84 19.22
  1      252   62129.7    130.0   -130.0    0.0643   0.0873 21.10  0.93   37293.7    0.0468   0.0678 21.45  0.97 19.60
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01165354001uw1_sk.img ================
Use keyword TRIGTIME of 703969706.624 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 704026901
The processing date in extension 0 is:  2023-04-25T06:58:26
The trigger time is: 703969706.624. The reference is keyword in image file
Using zero point of 17.169 for filter UVW1
Use aperture correction of  1.035 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(122.58296,-21.92586,25")
fk5;-circle(122.58296,-21.92586,12.5")
fk5;-circle(122.583680,-21.931670,6")
fk5;-circle(122.578924,-21.923092,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 w1704026901I   57194.8  1.00  609.7   86.5 196   2664  5011 -0.030 0.016 99.00 20.9 -0.0301 0.0162 99.00 20.9   610 -30.715 16.477 99.00 0.006 
    Sum (T+ 57195 to  57814):              86.5        104.2 (est. in src region)   SNR_unwtd_sum:  -1.86 0.9987 signif. UL:  20.85
  0   610 704027211   57504.6    309.8   -309.8   -0.0301   0.0162 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.094 +/- 0.109 snr: -0.9 mag: 99.00 UL: 18.53
Rebinned Data for sw01165354001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      609   57504.6    309.8   -309.8   -0.0301   0.0162 99.00 99.00   57504.6   -0.0301   0.0162 99.00 99.00 20.85
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01165354001um2_sk.img ================
Use keyword TRIGTIME of 703969706.624 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 704025994
The processing date in extension 0 is:  2023-04-25T06:58:25
The trigger time is: 703969706.624. The reference is keyword in image file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.031 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(122.58296,-21.92586,25")
fk5;-circle(122.58296,-21.92586,12.5")
fk5;-circle(122.583632,-21.931685,6")
fk5;-circle(122.579106,-21.923135,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 m2704025993I  885.6   3020  5080  0.671  0.012
   1 m2704025993I   56287.2  1.00  885.6  100.5 208   3020  5079 -0.027 0.012 99.00 20.7 -0.0271 0.0120 99.00 20.7   886 -46.291 20.487 99.00 0.004 
    Sum (T+ 56287 to  57187):             100.5        123.7 (est. in src region)   SNR_unwtd_sum:  -2.26 0.9987 signif. UL:  20.70
  0   886 704026444   56737.1    449.9   -449.9   -0.0271   0.0120 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.095 +/- 0.109 snr: -0.9 mag: 99.00 UL: 17.96
Rebinned Data for sw01165354001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885   56737.1    449.9   -449.9   -0.0271   0.0120 99.00 99.00   56737.1   -0.0271   0.0120 99.00 99.00 20.70
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01165354992uw2_sk.img ================
Use keyword TRIGTIME of 703969706.624 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 703975127
The processing date in extension 0 is:  2023-04-25T04:15:32
The trigger time is: 703969706.624. The reference is keyword in image file
Using zero point of 17.035 for filter UVW2
Use aperture correction of  1.035 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(122.58296,-21.92586,25")
fk5;-circle(122.58296,-21.92586,12.5")
fk5;-circle(122.583792,-21.931719,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 w2703975127I    5420.5  1.00  122.0   17.8 204    497  5495 -0.006 0.036 99.00 19.4 -0.0061 0.0365 99.00 19.4   122 -0.670  4.006 99.00 0.060 
    Sum (T+  5421 to   5544):              17.8         18.5 (est. in src region)   SNR_unwtd_sum:  -0.17 0.9987 signif. UL:  19.41
  0   122 703975189    5482.5     62.0    -62.0   -0.0061   0.0365 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.096 +/- 0.109 snr: -0.9 mag: 99.00 UL: 18.40
Rebinned Data for sw01165354992uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      122    5482.5     62.0    -62.0   -0.0061   0.0365 99.00 99.00    5482.5   -0.0061   0.0365 99.00 99.00 19.41
The data range from T+731.0 s (0.01 d) to T+62259.6 s (0.72 d)
Wrote uvot_fluxes_230425d07h05m12s765396usUT.qdp
Wrote uvot_fluxes_230425d07h05m12s765396usUT.gif
Wrote uvot_fluxes_230425d07h05m12s765396usUT.ps
Wrote uvot_fluxes_230425d07h05m12s765396usUT_vis.qdp
Wrote uvot_fluxes_230425d07h05m12s765396usUT_uv.qdp
Wrote uvot_fluxes_230425d07h05m12s765396usUT_vis.gif
Wrote uvot_fluxes_230425d07h05m12s765396usUT_vis.ps
Wrote uvot_fluxes_230425d07h05m12s765396usUT_uv.gif
Wrote uvot_fluxes_230425d07h05m12s765396usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  b (0)  , v (0)  , u (0)  , white (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     66.8     870.2    165.1   -139.2   -0.1171   0.1297 99.00 99.00     870.2   -0.1171   0.1297 99.00 99.00 21.47
  1    0.849    5297.7    116.9   -493.1    0.1206   0.1842 22.59  1.01     925.7   -0.1000   0.1211 99.00 99.00 21.53
  2 8.53e-05   62129.7    130.0   -130.0    0.4734   0.6423 21.10  0.93     925.8   -0.0999   0.1211 99.00 99.00 21.53
The data range from T+731.0 s (0.01 d) to T+62259.6 s (0.72 d)
Wrote uvot_fluxes_wtd_230425d07h05m12s765396usUT.qdp
Wrote uvot_fluxes_wtd_230425d07h05m12s765396usUT.gif
Wrote uvot_fluxes_wtd_230425d07h05m12s765396usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem