# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 230121d14h46m53s117520usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01150107992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/data/uvot/swift_data/home/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /data/uvot/swift_data/home/uvot_lc
# ========= GRB230121 ===================
Could not find/read custom source region custom_1150107_src.reg
Used archived XRT position of 70.24930 44.53090 4.00
Reference: GCN_Notice_Sat_21_Jan_23_05:46:42_UT-ground
The position is (04:40:59.83, +44:31:51.2)
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(70.2493,+44.5309,4") # color=red dash=0
Source region spec. is: 70.2493 +44.5309 4"
Region file centered at (70.2493,+44.5309), which is (04:40:59.83, +44:31:51.2)
Could not find/read custom background region custom_1150107_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.
Found 1 bright star(s) within 50.0 arcsec of 70.2493 +44.5309:
ra: 70.2472 dec: 44.5304 mag: 11.13
Subtract UTCF of -30.58838 from uncorrected trigger time of 695972657.38 in BAT summary file
# ============ Reading file sw01150107992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 695972812
The processing date in extension 0 is: 2023-01-21T14:34:56
The trigger time is: 695972687.96838. 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 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(70.2493,+44.5309,25")
fk5;-circle(70.2493,+44.5309,12.5")
fk5;-circle(70.249160,44.535875,6")
fk5;-circle(70.251022,44.535377,6")
fk5;-circle(70.250991,44.537136,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 wh695972811I     123.5  0.85  147.4 1292.1 200  30924  5549  1.472 0.302 19.70 19.2  1.4717 0.3025 19.70 19.2   147  0.343  0.071 21.45 0.480 
above line uses coinc_corr_src:  0.847 corr_bkg:  0.922
   2 wh695972811E     123.5  0.86  147.4 1280.2 196  30887  5462  1.402 0.296 19.75 19.2 
above line uses coinc_corr_src:  0.860 corr_bkg:  0.922
   3 wh695973249E     561.5  0.89   19.4  324.0 200   3733  5295 10.912 1.082 17.52 17.2  2.6238 0.2966 19.07 18.7   167  0.469  0.070 21.11 0.447 
above line uses coinc_corr_src:  0.893 corr_bkg:  0.928
   4 wh695973423E     735.2  0.82   19.5  554.9 197   3818  5775 27.611 1.538 16.51 16.3  5.1383 0.3084 18.34 18.2   186  0.697  0.071 20.68 0.418 
above line uses coinc_corr_src:  0.818 corr_bkg:  0.927
   5 wh695973548I     860.4  0.85  147.4 3251.9 200  28921  5571 18.305 0.474 16.96 16.9 10.9548 0.2712 17.52 17.4   334  1.572  0.072 19.80 0.286 
above line uses coinc_corr_src:  0.849 corr_bkg:  0.926
   6 wh695973854E    1166.6  0.86   19.5  418.5 200   3763  5505 17.408 1.271 17.01 16.8 11.3151 0.2657 17.48 17.4   353  1.659  0.072 19.74 0.275 
above line uses coinc_corr_src:  0.861 corr_bkg:  0.928
    Sum (T+   124 to   1186):            5841.3       2560.7 (est. in src region)   SNR_unwtd_sum:  42.59 0.9987 signif. UL:  17.41
  0   353 695973298     610.5    575.8   -486.9   11.3151   0.2657 17.481  0.025  -0.026
Total wtd_rate (for all exposures so far):  1.659 +/- 0.071 snr: 23.4 mag: 19.74 UL: 19.43
Rebinned Data for sw01150107992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      125     198.4     74.9    -74.9    1.4717   0.3025 19.70  0.20     198.4    1.4717   0.3025 19.70  0.20 19.17
  1     17.4     571.4      9.9     -9.9   10.9122   1.0820 17.52  0.10     243.9    2.6238   0.2966 19.07  0.12 18.75
  2     15.9     745.1      9.9     -9.9   27.6111   1.5378 16.51  0.06     294.4    5.1383   0.3084 18.34  0.06 18.16
  3      125     935.3     74.9    -74.9   18.3049   0.4742 16.96  0.03     577.5   10.9548   0.2712 17.52  0.03 17.44
  4     16.7    1176.4      9.9     -9.9   17.4076   1.2713 17.01  0.08     611.0   11.3151   0.2657 17.48  0.03 17.41
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01150107992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.220 at 695972773
The processing date in extension 0 is:  2023-01-21T14:34:37
The trigger time is: 695972687.96838. The reference is BAT GRB summary file
Using zero point of 17.670 for filter V
Use aperture correction of  1.030 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(70.2493,+44.5309,25")
fk5;-circle(70.2493,+44.5309,12.5")
fk5;-circle(70.250752,44.536891,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 vv695972772E      84.9  0.82   30.9  429.8 199   2136  6559 14.906 0.849 14.74 14.6 14.9063 0.8486 14.74 14.6    31 16.755  0.954 17.23 0.346 
above line uses coinc_corr_src:  0.817 corr_bkg:  0.976
   2 vv695973299E     611.5  0.90   19.5  105.9 201   1233  5981  3.804 0.611 16.22 15.8 10.3648 0.5604 15.13 15.0    50 16.941  0.939 17.22 0.235 
above line uses coinc_corr_src:  0.897 corr_bkg:  0.978
   3 vv695973473E     785.1  0.81   19.5  236.3 200   1231  6656 13.073 1.011 14.88 14.7 11.0931 0.4917 15.06 14.9    70 17.988  0.934 17.15 0.186 
above line uses coinc_corr_src:  0.807 corr_bkg:  0.978
   4 vv695973730E    1042.3  0.92   19.5   88.4 198   1246  5819  2.646 0.545 16.61 16.1  9.1097 0.3974 15.27 15.1    89 18.077  0.929 17.15 0.152 
   5 vv695973905E    1217.3  0.93   19.4   63.0 200   1219  5781  1.191 0.459 17.48 16.6  7.5956 0.3331 15.47 15.3   109 18.068  0.925 17.15 0.130 
    Sum (T+    85 to   1237):             923.4        227.8 (est. in src region)   SNR_unwtd_sum:  22.80 0.9987 signif. UL:  15.33
  0   109 695973378     690.0    547.1   -605.0    7.5956   0.3331 15.468  0.049  -0.046
Total wtd_rate (for all exposures so far):  2.116 +/- 0.073 snr: 28.9 mag: 19.48 UL: 16.75
Rebinned Data for sw01150107992uvv_sk.img using a zero point of 17.670:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     25.2     100.6     15.7    -15.7   14.9063   0.8486 14.74  0.06     100.6   14.9063   0.8486 14.74  0.06 14.56
  1     17.5     621.4      9.9     -9.9    3.8041   0.6112 16.22  0.16     313.7   10.3648   0.5604 15.13  0.06 14.97
  2     15.7     795.0      9.9     -9.9   13.0728   1.0108 14.88  0.08     443.1   11.0931   0.4917 15.06  0.05 14.92
  3     35.9    1140.0     97.1    -97.7    1.9163   0.3560 16.96  0.18     708.7    7.5956   0.3331 15.47  0.05 15.33
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01150107992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.197 at 695973225
The processing date in extension 0 is:  2023-01-21T14:34:50
The trigger time is: 695972687.96838. The reference is BAT GRB summary file
Using zero point of 18.913 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(70.2493,+44.5309,25")
fk5;-circle(70.2493,+44.5309,12.5")
fk5;-circle(70.251094,44.537201,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 bb695973225E     537.2  0.84   19.5  170.1 199   1990  6333  6.768 0.825 16.84 16.5  6.7679 0.8255 16.84 16.5    19 13.165  1.606 17.49 0.135 
above line uses coinc_corr_src:  0.845 corr_bkg:  0.965
   2 bb695973398E     710.3  0.62   19.4  288.5 200   1913  8676 21.073 1.467 15.60 15.4 12.8042 0.7816 16.14 16.0    39 25.552  1.597 16.77 0.123 
above line uses coinc_corr_src:  0.617 corr_bkg:  0.966
   3 bb695973829E    1141.5  0.92   19.5  150.3 201   1859  5824  4.973 0.713 17.17 16.8  9.7779 0.5531 16.44 16.3    58 24.752  1.424 16.81 0.103 
    Sum (T+   537 to   1161):             608.9        170.8 (est. in src region)   SNR_unwtd_sum:  17.68 0.9987 signif. UL:  16.27
  0    58 695973494     806.3    355.0   -269.1    9.7779   0.5531 16.437  0.063  -0.060
Total wtd_rate (for all exposures so far):  2.278 +/- 0.074 snr: 30.9 mag: 19.40 UL: 17.92
Rebinned Data for sw01150107992ubb_sk.img using a zero point of 18.913:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     16.4     547.1      9.9     -9.9    6.7679   0.8255 16.84  0.12     547.1    6.7679   0.8255 16.84  0.12 16.50
  1       12     720.2      9.9     -9.9   21.0734   1.4670 15.60  0.07     620.1   12.8042   0.7816 16.14  0.06 15.96
  2     17.9    1151.4      9.9     -9.9    4.9732   0.7132 17.17  0.14     825.4    9.7779   0.5531 16.44  0.06 16.27
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01150107992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.214 at 695972969
The processing date in extension 0 is:  2023-01-21T14:34:56
The trigger time is: 695972687.96838. The reference is BAT GRB summary file
Using zero point of 18.126 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(70.2493,+44.5309,25")
fk5;-circle(70.2493,+44.5309,12.5")
fk5;-circle(70.250915,44.536501,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 uu695972969I     281.5  0.90  245.8 1666.6 200  17326  5900  5.045 0.192 16.37 16.3  5.0454 0.1920 16.37 16.3   246 15.043  0.572 17.35 0.126 
above line uses coinc_corr_src:  0.898 corr_bkg:  0.975
   2 uu695972969E     281.5  0.90  245.8 1614.9 202  17338  5918  4.794 0.189 16.42 16.3 
above line uses coinc_corr_src:  0.896 corr_bkg:  0.975
   3 uu695973373E     685.5  0.87   19.4   65.1 199   1348  6069  1.272 0.496 17.86 17.0  4.7758 0.1817 16.43 16.3   265 14.819  0.561 17.36 0.123 
above line uses coinc_corr_src:  0.874 corr_bkg:  0.976
   4 uu695973804E    1116.8  0.91   19.4  100.5 196   1388  5797  3.110 0.586 16.89 16.4  4.6598 0.1739 16.45 16.3   285 14.930  0.558 17.36 0.117 
    Sum (T+   281 to   1137):            1832.3        678.4 (est. in src region)   SNR_unwtd_sum:  26.79 0.9987 signif. UL:  16.34
  0   285 695973163     475.3    661.2   -193.8    4.6598   0.1739 16.455  0.042  -0.039
Total wtd_rate (for all exposures so far):  2.683 +/- 0.073 snr: 36.5 mag: 19.22 UL: 16.97
Rebinned Data for sw01150107992uuu_sk.img using a zero point of 18.126:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      221     406.4    124.9   -124.9    5.0454   0.1920 16.37  0.04     406.4    5.0454   0.1920 16.37  0.04 16.25
  1       17     695.4      9.9     -9.9    1.2725   0.4958 17.86  0.36     427.0    4.7758   0.1817 16.43  0.04 16.31
  2     17.8    1126.6      9.9     -9.9    3.1101   0.5863 16.89  0.19     475.7    4.6598   0.1739 16.45  0.04 16.34
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01150107992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 695973349
The processing date in extension 0 is:  2023-01-21T14:34:51
The trigger time is: 695972687.96838. The reference is BAT GRB summary 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 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(70.2493,+44.5309,25")
fk5;-circle(70.2493,+44.5309,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 w1695973349E   19.4    340  5845  2.989  0.162
   1 w1695973349E     661.2  0.94   19.4   56.3 198    340  6179  2.572 0.426 16.14 15.7  2.5716 0.4260 16.14 15.7    19 30.582  5.066 16.58 0.141 
High bkg:   2 w1695973522E   19.4    328  5844  2.884  0.159
   2 w1695973522E     834.4  0.89   19.4  122.7 198    328  6538  6.752 0.664 15.10 14.8  4.6029 0.3899 15.51 15.3    39 57.517  4.921 15.89 0.129 
above line uses coinc_corr_src:  0.889 corr_bkg:  0.995
High bkg:   3 w1695973780E   19.5    330  5838  2.909  0.160
   3 w1695973780E    1092.1  0.90   19.5  101.5 199    330  6429  5.376 0.594 15.34 15.0  4.8584 0.3267 15.45 15.3    58 66.236  4.548 15.74 0.116 
High bkg:   4 w1695973954E    6.3    102  5843  2.748  0.272
#  4 w1695973954E    1266.3  0.57    6.3  276.3 198    102 10273 
    Sum (T+   661 to   1112):             280.5         31.0 (est. in src region)   SNR_unwtd_sum:  14.87 0.9987 signif. UL:  15.25
  0    58 695973560     872.5    239.4   -211.3    4.8584   0.3267 15.453  0.075  -0.071
Total wtd_rate (for all exposures so far):  2.782 +/- 0.074 snr: 37.7 mag: 19.18 UL: 15.97
Rebinned Data for sw01150107992uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     18.3     671.1      9.9     -9.9    2.5716   0.4260 16.14  0.17     671.1    2.5716   0.4260 16.14  0.17 15.70
  1     17.3     844.3      9.9     -9.9    6.7518   0.6639 15.10  0.10     755.3    4.6029   0.3899 15.51  0.09 15.27
  2     17.6    1102.0      9.9     -9.9    5.3756   0.5943 15.34  0.11     869.9    4.8584   0.3267 15.45  0.07 15.25
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01150107992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 695973324
The processing date in extension 0 is:  2023-01-21T14:34:51
The trigger time is: 695972687.96838. The reference is BAT GRB summary file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01150107992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.345 at 695973275
The processing date in extension 0 is:  2023-01-21T14:34:51
The trigger time is: 695972687.96838. The reference is BAT GRB summary file
Using zero point of 17.035 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.00
There are no aspect corrected images to process.
The data range from T+84.9 s (0.00 d) to T+1237.1 s (0.01 d)
Wrote uvot_fluxes_230121d14h46m53s117520usUT.qdp
Wrote uvot_fluxes_230121d14h46m53s117520usUT.gif
Wrote uvot_fluxes_230121d14h46m53s117520usUT.ps
Wrote uvot_fluxes_230121d14h46m53s117520usUT_vis.qdp
Wrote uvot_fluxes_230121d14h46m53s117520usUT_uv.qdp
Wrote uvot_fluxes_230121d14h46m53s117520usUT_vis.gif
Wrote uvot_fluxes_230121d14h46m53s117520usUT_vis.ps
Wrote uvot_fluxes_230121d14h46m53s117520usUT_uv.gif
Wrote uvot_fluxes_230121d14h46m53s117520usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  u (0)  , v (0)  , b (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   0.0984     100.6     15.7    -15.7  166.4979   9.4791 14.74  0.06     100.6  166.4979   9.4791 14.74  0.06 14.56
  1      171     198.4     74.9    -74.9    1.7294   0.3555 19.70  0.20     198.4    1.7774   0.3554 19.67  0.20 19.15
  2    0.416     406.4    124.9   -124.9   37.0160   1.4084 16.37  0.04     198.9    1.9520   0.3537 19.56  0.18 19.09
  3    0.109     547.1      9.9     -9.9   24.0631   2.9349 16.84  0.12     199.1    1.9906   0.3531 19.54  0.18 19.08
  4     1.61     571.4      9.9     -9.9   12.8229   1.2715 17.52  0.10     202.6    2.2749   0.3454 19.40  0.15 18.99
  5  0.00497     621.4      9.9     -9.9   42.4902   6.8270 16.22  0.16     202.6    2.2785   0.3454 19.40  0.15 18.99
  6   0.0213     695.4      9.9     -9.9    9.3357   3.6372 17.86  0.36     202.6    2.2815   0.3453 19.39  0.15 18.99
  7   0.0199     720.2      9.9     -9.9   74.9253   5.2158 15.60  0.07     202.7    2.3111   0.3451 19.38  0.15 18.98
  8    0.469     745.1      9.9     -9.9   32.4458   1.8071 16.51  0.06     204.2    2.6081   0.3422 19.25  0.13 18.89
  9  0.00111     795.0      9.9     -9.9  146.0187  11.2904 14.88  0.08     204.2    2.6117   0.3422 19.25  0.13 18.89
 10     3.13     935.3     74.9    -74.9   21.5101   0.5573 16.96  0.03     217.1    4.0530   0.3189 18.77  0.08 18.54
 11    0.319    1172.4     64.6   -130.2   20.2178   1.3242 17.03  0.07     218.8    4.2088   0.3161 18.73  0.08 18.51
The data range from T+84.9 s (0.00 d) to T+1237.1 s (0.01 d)
Wrote uvot_fluxes_wtd_230121d14h46m53s117520usUT.qdp
Wrote uvot_fluxes_wtd_230121d14h46m53s117520usUT.gif
Wrote uvot_fluxes_wtd_230121d14h46m53s117520usUT.ps
Found 4 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem