# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 230516d07h33m05s317477usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01167288002 -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
# ========= GRB230506C ===================
Could not find/read custom source region custom_1167288_src.reg
Used archived opt source position of 134.36721 45.13319 3.00
Reference: GCN_Circulars-33734
The position is (08:57:28.13, +45:07:59.5)
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(134.36721,45.13319,3") # color=red dash=0
Source region spec. is: 134.36721 45.13319 3"
Region file centered at (134.36721,45.13319), which is (08:57:28.13, +45:07:59.5)
Could not find/read custom background region custom_1167288_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.2415 from uncorrected trigger time of 705085759.35 in BAT summary file
# ============ Reading file sw01167288001uwh_sk.img ================
Use keyword TRIGTIME of 705085790.592 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 705090416
The processing date in extension 0 is: 2023-05-16T07:14:29
The trigger time is: 705085790.592. 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(134.36721,45.13319,25")
fk5;-circle(134.36721,45.13319,12.5")
fk5;-circle(134.363069,45.133060,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 wh705090415I    4625.4  0.97  196.6  450.2 128  18499  5739  0.220 0.125 21.76 20.7  0.2196 0.1249 21.76 20.7   197  1.219  0.694 20.07 0.083 
    Sum (T+  4625 to   4825):             450.2        412.6 (est. in src region)   SNR_unwtd_sum:   1.76 0.9987 signif. UL:  20.67
  0   197 705090516    4725.2     99.9    -99.9    0.2196   0.1249 21.761  0.913  -0.489
Total wtd_rate (for all exposures so far):  1.219 +/- 0.687 snr:  1.8 mag: 20.07 UL: 18.82
Rebinned Data for sw01167288001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      190    4725.2     99.9    -99.9    0.2196   0.1249 21.76  0.49    4725.2    0.2196   0.1249 21.76  0.49 20.67
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01167288001uvv_sk.img ================
Use keyword TRIGTIME of 705085790.592 for trigger time.
Long-term sensitivity correction to zero point is -0.221 at 705090827
The processing date in extension 0 is:  2023-05-16T07:14:30
The trigger time is: 705085790.592. The reference is keyword in image file
Using zero point of 17.669 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(134.36721,45.13319,25")
fk5;-circle(134.36721,45.13319,12.5")
fk5;-circle(134.362892,45.133251,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 vv705090826I    5035.9  0.99  196.6   91.6 112   4378  5666  0.028 0.054 21.54 19.4  0.0282 0.0539 21.54 19.4   197  1.618  3.092 19.77 0.039 
    Sum (T+  5036 to   5236):              91.6         86.5 (est. in src region)   SNR_unwtd_sum:   0.52 0.9987 signif. UL:  19.44
  0   197 705090926    5135.8     99.9    -99.9    0.0282   0.0539 21.544 77.456  -1.160
Total wtd_rate (for all exposures so far):  1.216 +/- 0.658 snr:  1.8 mag: 20.08 UL: 16.40
Rebinned Data for sw01167288001uvv_sk.img using a zero point of 17.669:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    5135.8     99.9    -99.9    0.0282   0.0539 21.54  1.16    5135.8    0.0282   0.0539 21.54  1.16 19.44
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01167288002ubb_sk.img ================
Use keyword TRIGTIME of 705085790.592 for trigger time.
Long-term sensitivity correction to zero point is -0.201 at 705102378
The processing date in extension 0 is:  2023-05-16T07:14:59
The trigger time is: 705085790.592. The reference is keyword in image file
Using zero point of 18.909 for filter B
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(134.36721,45.13319,25")
fk5;-circle(134.36721,45.13319,12.5")
fk5;-circle(134.362794,45.133386,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 bb705102377I   16587.2  0.99  295.0  241.0 112  11198  5653  0.073 0.060 21.75 20.4  0.0728 0.0596 21.75 20.4   295  4.348  3.556 18.69 0.022 
   2 bb705102681I   16890.7  0.99  186.6  147.7 112   7056  5639  0.046 0.074 22.26 20.3  0.0623 0.0464 21.92 20.6   482  3.744  2.784 18.86 0.022 
   3 bb705117868I   32077.6  0.96  295.0  675.2 116  32044  5644  0.065 0.102 21.88 20.0  0.0632 0.0480 21.91 20.6   777  3.932  2.709 18.80 0.010 
   4 bb705118171I   32381.2  0.98  184.0  205.5 108  11298  5618 -0.072 0.089 99.00 20.5  0.0373 0.0424 22.48 20.8   961  3.228  2.621 19.02 0.010 
   5 bb705135077I   49286.6  0.97  295.0  503.6 116  23666  5676  0.077 0.088 21.69 20.1  0.0466 0.0384 22.24 20.9  1256  3.513  2.584 18.93 0.008 
   6 bb705135380I   49590.2  0.98  166.4  209.3 116   9939  5685  0.044 0.099 22.29 20.0  0.0463 0.0358 22.24 20.9  1422  3.602  2.556 18.90 0.008 
    Sum (T+ 16587 to  49759):            1982.3       1924.2 (est. in src region)   SNR_unwtd_sum:   1.29 0.9987 signif. UL:  20.93
  0  1422 705118448   32657.5  17101.8 -16070.2    0.0463   0.0358 22.244  1.611  -0.621
Total wtd_rate (for all exposures so far):  1.390 +/- 0.648 snr:  2.1 mag: 19.93 UL: 17.60
Rebinned Data for sw01167288002ubb_sk.img using a zero point of 18.909:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      940   24489.6   8078.5  -7902.4    0.0373   0.0424 22.48  0.82   24489.6    0.0373   0.0424 22.48  0.82 20.85
  1      450   49522.9    236.4   -236.2    0.0652   0.0664 21.87  0.76   32593.1    0.0463   0.0358 22.24  0.62 20.93
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01167288001uuu_sk.img ================
Use keyword TRIGTIME of 705085790.592 for trigger time.
Long-term sensitivity correction to zero point is -0.217 at 705091442
The processing date in extension 0 is:  2023-05-16T07:14:30
The trigger time is: 705085790.592. The reference is keyword in image file
Using zero point of 18.123 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(134.36721,45.13319,25")
fk5;-circle(134.36721,45.13319,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 uu705091441I    5651.0  0.99  123.4   34.8 108   1858  5826  0.003 0.053 24.41 20.0  0.0031 0.0533 24.41 20.0   123  0.128  2.241 22.52 0.085 
    Sum (T+  5651 to   5776):              34.8         34.4 (est. in src region)   SNR_unwtd_sum:   0.06 0.9987 signif. UL:  20.02
  0   123 705091504    5713.8     62.7    -62.7    0.0031   0.0533 24.412 74.588  -3.166
Total wtd_rate (for all exposures so far):  1.289 +/- 0.618 snr:  2.1 mag: 20.01 UL: 16.88
Rebinned Data for sw01167288001uuu_sk.img using a zero point of 18.123:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      123    5713.8     62.7    -62.7    0.0031   0.0533 24.41  3.17    5713.8    0.0031   0.0533 24.41  3.17 20.02
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01167288001uw1_sk.img ================
Use keyword TRIGTIME of 705085790.592 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 705091237
The processing date in extension 0 is:  2023-05-16T07:14:30
The trigger time is: 705085790.592. 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 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(134.36721,45.13319,25")
fk5;-circle(134.36721,45.13319,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 w1705091236I    5446.2  1.00  196.6    7.0 108    442  5795 -0.007 0.015 99.00 20.6 -0.0073 0.0152 99.00 20.6   197 -0.717  1.498 99.00 0.243 
    Sum (T+  5446 to   5646):               7.0          8.2 (est. in src region)   SNR_unwtd_sum:  -0.48 0.9987 signif. UL:  20.57
  0   197 705091337    5546.1     99.9    -99.9   -0.0073   0.0152 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  1.064 +/- 0.583 snr:  1.8 mag: 20.22 UL: 16.04
# ============ Reading file sw01167288002uw1_sk.img ================
Use keyword TRIGTIME of 705085790.592 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 705106437
The processing date in extension 0 is:  2023-05-16T07:14:59
The trigger time is: 705085790.592. 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 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(134.36721,45.13319,25")
fk5;-circle(134.36721,45.13319,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 w1705106437I   20646.7  1.00  458.0   69.4 116   3452  5840  0.002 0.021 23.95 20.1  0.0019 0.0207 23.95 20.1   458  0.718  7.647 20.65 0.018 
   2 w1705123585I   37794.7  1.00  465.9   56.0 116   2971  5871 -0.007 0.018 99.00 20.3 -0.0024 0.0138 99.00 20.6   924 -0.668  6.497 99.00 0.015 
   3 w1705140774I   54984.0  1.00  469.5   70.4 116   2884  5865  0.032 0.020 20.90 19.7  0.0092 0.0114 22.25 20.6  1393  3.087  6.188 19.07 0.013 
    Sum (T+ 20647 to  55461):             195.7        184.3 (est. in src region)   SNR_unwtd_sum:   0.81 0.9987 signif. UL:  20.55
  0  1393 705123977   38186.0  17275.0 -17539.3    0.0092   0.0114 22.254 76.746  -0.873
Total wtd_rate (for all exposures so far):  1.082 +/- 0.580 snr:  1.9 mag: 20.20 UL: 16.04
Rebinned Data for sw01167288002uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5546.1     99.9    -99.9   -0.0073   0.0152 99.00 99.00    5546.1   -0.0073   0.0152 99.00 99.00 20.57
  1      922   29530.6   8737.5  -8883.8   -0.0024   0.0138 99.00 99.00   25316.2   -0.0032   0.0117 99.00 99.00 20.81
  2      468   55222.5    238.5   -238.5    0.0321   0.0203 20.90  0.53   34145.2    0.0072   0.0102 22.53  0.96 20.70
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01167288001um2_sk.img ================
Use keyword TRIGTIME of 705085790.592 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 705091031
The processing date in extension 0 is:  2023-05-16T07:14:30
The trigger time is: 705085790.592. 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 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(134.36721,45.13319,25")
fk5;-circle(134.36721,45.13319,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
Low  bkg:   1 m2705091031I  196.6     99  5808  0.087  0.009
   1 m2705091031I    5240.9  1.00  196.6    0.1 104     99  5807 -0.010 0.006 99.00 21.4 -0.0097 0.0057 99.00 21.4   197 -1.567  0.259 99.00 0.686 
    Sum (T+  5241 to   5441):               0.1          1.8 (est. in src region)   SNR_unwtd_sum:  -1.70 0.9987 signif. UL:  21.37
  0   197 705091131    5340.7     99.9    -99.9   -0.0097   0.0057 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.604 +/- 0.473 snr:  1.3 mag: 20.84 UL: 15.82
Rebinned Data for sw01167288001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5340.7     99.9    -99.9   -0.0097   0.0057 99.00 99.00    5340.7   -0.0097   0.0057 99.00 99.00 21.37
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01167288001uw2_sk.img ================
Use keyword TRIGTIME of 705085790.592 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 705090622
The processing date in extension 0 is:  2023-05-16T07:14:29
The trigger time is: 705085790.592. 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(134.36721,45.13319,25")
fk5;-circle(134.36721,45.13319,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 w2705090621I    4831.2  1.00  196.6    5.2 112    233  5844  0.004 0.013 22.92 20.4  0.0044 0.0130 22.92 20.4   197  0.436  1.285 21.19 0.446 
    Sum (T+  4831 to   5031):               5.2          4.5 (est. in src region)   SNR_unwtd_sum:   0.34 0.9987 signif. UL:  20.39
  0   197 705090722    4931.1     99.9    -99.9    0.0044   0.0130 22.923 76.077  -1.490
Total wtd_rate (for all exposures so far):  0.579 +/- 0.446 snr:  1.3 mag: 20.88 UL: 16.32
# ============ Reading file sw01167288002uw2_sk.img ================
Use keyword TRIGTIME of 705085790.592 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 705096377
The processing date in extension 0 is:  2023-05-16T07:14:59
The trigger time is: 705085790.592. 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(134.36721,45.13319,25")
fk5;-circle(134.36721,45.13319,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 w2705096377I   10586.7  1.00  485.7   11.9 108    608  5824  0.001 0.008 24.18 21.0  0.0014 0.0079 24.18 21.0   486  0.301  1.722 21.59 0.198 
   2 w2705112214I   26424.0  1.00  468.8   28.5 104   1466  5808  0.005 0.013 22.71 20.4  0.0033 0.0074 23.23 21.0   954  0.459  1.669 21.14 0.083 
   3 w2705129303I   43512.9  1.00  449.2   25.8 116   1572  5835 -0.013 0.013 99.00 20.8 -0.0020 0.0065 99.00 21.3  1404  0.247  1.652 21.81 0.053 
   4 w2705146443I   60653.0  1.00  463.8   33.8 116   1536  5860  0.008 0.014 22.25 20.2  0.0005 0.0060 25.23 21.3  1867  0.342  1.644 21.45 0.040 
    Sum (T+ 10587 to  61124):             100.1         99.2 (est. in src region)   SNR_unwtd_sum:   0.09 0.9987 signif. UL:  21.30
  0  1867 705120945   35154.4  25969.9 -24567.7    0.0005   0.0060 25.228 73.772  -2.729
Total wtd_rate (for all exposures so far):  0.560 +/- 0.431 snr:  1.3 mag: 20.92 UL: 16.36
Rebinned Data for sw01167288002uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    4931.1     99.9    -99.9    0.0044   0.0130 22.92  1.49    4931.1    0.0044   0.0130 22.92  1.49 20.39
  1      485   10833.4    246.7   -246.7    0.0014   0.0079 24.18  2.07    9132.6    0.0023   0.0068 23.65  1.51 21.10
  2      917   35019.2   8950.1  -8595.3   -0.0038   0.0090 99.00 99.00   23978.4   -0.0012   0.0059 99.00 99.00 21.39
  3      463   60888.6    235.6   -235.6    0.0082   0.0140 22.25  1.08   32270.4    0.0009   0.0056 24.65  2.14 21.36
The data range from T+4625.4 s (0.05 d) to T+61124.2 s (0.71 d)
Wrote uvot_fluxes_230516d07h33m05s317477usUT.qdp
Wrote uvot_fluxes_230516d07h33m05s317477usUT.gif
Wrote uvot_fluxes_230516d07h33m05s317477usUT.ps
Wrote uvot_fluxes_230516d07h33m05s317477usUT_vis.qdp
Wrote uvot_fluxes_230516d07h33m05s317477usUT_uv.qdp
Wrote uvot_fluxes_230516d07h33m05s317477usUT_vis.gif
Wrote uvot_fluxes_230516d07h33m05s317477usUT_vis.ps
Wrote uvot_fluxes_230516d07h33m05s317477usUT_uv.gif
Wrote uvot_fluxes_230516d07h33m05s317477usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  b (0)  , u (0)  , v (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     1.81    4742.2   1034.3   -116.8    0.2541   0.1435 21.78  0.49    4742.2    0.2541   0.1435 21.78  0.49 20.70
  1   0.0429   20110.2  29649.1  -3523.0    0.1753   0.1271 22.18  0.59    5099.3    0.2469   0.1309 21.81  0.46 20.77
The data range from T+4625.4 s (0.05 d) to T+61124.2 s (0.71 d)
Wrote uvot_fluxes_wtd_230516d07h33m05s317477usUT.qdp
Wrote uvot_fluxes_wtd_230516d07h33m05s317477usUT.gif
Wrote uvot_fluxes_wtd_230516d07h33m05s317477usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem