# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210501d07h04m39s675756usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01044426001 -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
# ========= GRB210421A ===================
Could not find/read custom source region custom_1044426_src.reg
Used archived XRT position of 104.87442 4.92233 4.00
Reference: GCN_Circulars-29865-Wed,_21_Apr_2021_11:22:44_-0400
The position is (06:59:29.86, +04:55:20.4)
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(104.87442,4.92233,4") # color=red dash=0
Source region spec. is: 104.87442 4.92233 4"
Region file centered at (104.87442,4.92233), which is (06:59:29.86, +04:55:20.4)
Could not find/read custom background region custom_1044426_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 -26.88102 from uncorrected trigger time of 640657650.3 in BAT summary file
# ============ Reading file sw01044426992uwh_sk.img ================
Use keyword TRIGTIME of 640657676.968 for trigger time.
Long-term sensitivity correction to zero point is -0.179 at 640657774
The processing date in extension 0 is: 2021-04-21T15:12:54
The trigger time is: 640657676.968. The reference is keyword in image file
Using zero point of 20.111 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(104.87442,4.92233,25")
fk5;-circle(104.87442,4.92233,12.5")
fk5;-circle(104.872867,4.917509,6")
fk5;-circle(104.874110,4.929826,6")
fk5;-circle(104.870179,4.927464,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 wh640657773I      96.6  0.96  147.4  714.6 195  18352  5009  0.001 0.200 27.68 20.6  0.0009 0.2001 27.68 20.6   147  0.000  0.040 29.59 0.975 
    Sum (T+    97 to    246):             714.6        714.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.9987 signif. UL:  20.59
  0   147 640657848     171.5     74.9    -74.9    0.0009   0.2001 27.679 71.321  -5.826
Total wtd_rate (for all exposures so far):  0.000 +/- 0.040 snr:  0.0 mag: 29.59 UL: 22.34
Rebinned Data for sw01044426992uwh_sk.img using a zero point of 20.111:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      141     171.5     74.9    -74.9    0.0009   0.2001 27.68  5.83     171.5    0.0009   0.2001 27.68  5.83 20.59
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01044426001uvv_sk.img ================
Use keyword TRIGTIME of 640657677.184 for trigger time.
Long-term sensitivity correction to zero point is -0.213 at 640663018
The processing date in extension 0 is:  2021-05-01T06:49:18
The trigger time is: 640657677.184. The reference is keyword in image file
Using zero point of 17.677 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(104.87442,4.92233,25")
fk5;-circle(104.87442,4.92233,12.5")
fk5;-circle(104.874190,4.929820,6")
fk5;-circle(104.872883,4.917482,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 vv640663018I    5341.1  0.98  196.6  415.5 196  11635  5294 -0.082 0.111 99.00 19.0 -0.0819 0.1112 99.00 19.0   197 -4.945  6.712 99.00 0.007 
    Sum (T+  5341 to   5541):             415.5        430.8 (est. in src region)   SNR_unwtd_sum:  -0.74 0.9987 signif. UL:  18.99
  0   197 640663118    5440.9     99.9    -99.9   -0.0819   0.1112 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.040 snr:  0.0 mag: 32.19 UL: 19.92
Rebinned Data for sw01044426001uvv_sk.img using a zero point of 17.677:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      192    5440.9     99.9    -99.9   -0.0819   0.1112 99.00 99.00    5440.9   -0.0819   0.1112 99.00 99.00 18.99
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01044426001ubb_sk.img ================
Use keyword TRIGTIME of 640657677.184 for trigger time.
Long-term sensitivity correction to zero point is -0.176 at 640675562
The processing date in extension 0 is:  2021-05-01T06:49:19
The trigger time is: 640657677.184. The reference is keyword in image file
Using zero point of 18.934 for filter B
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(104.87442,4.92233,25")
fk5;-circle(104.87442,4.92233,12.5")
fk5;-circle(104.874229,4.929810,6")
fk5;-circle(104.872935,4.917478,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 bb640675562I   17885.3  0.98  295.0  556.2 204  14685  5258 -0.049 0.086 99.00 20.5 -0.0485 0.0859 99.00 20.5   295 -3.052  5.401 99.00 0.008 
   2 bb640675866I   18189.0  0.98  295.0  543.5 204  14569  5249 -0.081 0.085 99.00 20.6 -0.0648 0.0604 99.00 21.0   590 -4.104  3.829 99.00 0.008 
   3 bb640676169I   18492.4  0.98  207.4  367.5 192  10304  5245 -0.049 0.099 99.00 20.3 -0.0607 0.0516 99.00 21.2   797 -3.865  3.291 99.00 0.008 
    Sum (T+ 17885 to  18703):            1467.2       1513.2 (est. in src region)   SNR_unwtd_sum:  -1.18 0.9987 signif. UL:  21.19
  0   797 640675971   18293.8    409.3   -408.6   -0.0607   0.0516 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.001 +/- 0.040 snr: -0.0 mag: 99.00 UL: 21.17
Rebinned Data for sw01044426001ubb_sk.img using a zero point of 18.934:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      783   18293.8    409.3   -408.6   -0.0607   0.0516 99.00 99.00   18293.8   -0.0607   0.0516 99.00 99.00 21.19
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01044426992uuu_sk.img ================
Use keyword TRIGTIME of 640657676.968 for trigger time.
Long-term sensitivity correction to zero point is -0.191 at 640657986
The processing date in extension 0 is:  2021-04-21T15:12:55
The trigger time is: 640657676.968. The reference is keyword in image file
Using zero point of 18.149 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(104.87442,4.92233,25")
fk5;-circle(104.87442,4.92233,12.5")
fk5;-circle(104.872836,4.917515,6")
fk5;-circle(104.874127,4.929809,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 uu640657985I     308.6  0.99  172.7  151.7 198   3954  5276  0.020 0.076 22.41 19.6  0.0198 0.0755 22.41 19.6   173  0.056  0.215 23.41 0.405 
    Sum (T+   309 to    484):             151.7        148.4 (est. in src region)   SNR_unwtd_sum:   0.26 0.9987 signif. UL:  19.62
  0   173 640658073     396.3     87.7    -87.7    0.0198   0.0755 22.406 76.594  -1.706
Total wtd_rate (for all exposures so far):  0.001 +/- 0.039 snr:  0.0 mag: 27.41 UL: 20.40
# ============ Reading file sw01044426001uuu_sk.img ================
Use keyword TRIGTIME of 640657677.184 for trigger time.
Long-term sensitivity correction to zero point is -0.191 at 640674649
The processing date in extension 0 is:  2021-05-01T06:49:19
The trigger time is: 640657677.184. The reference is keyword in image file
Using zero point of 18.149 for filter U
Use aperture correction of  1.032 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(104.87442,4.92233,25")
fk5;-circle(104.87442,4.92233,12.5")
fk5;-circle(104.874207,4.929842,6")
fk5;-circle(104.872945,4.917504,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 uu640674648I   16971.5  0.99  295.0  335.3 196   9481  5287 -0.057 0.066 99.00 20.1 -0.0574 0.0660 99.00 20.1   295 -7.063  8.121 99.00 0.007 
   2 uu640674953I   17276.2  0.99  295.0  221.6 196   6676  5309 -0.088 0.054 99.00 20.5 -0.0726 0.0425 99.00 20.7   590 -9.347  5.172 99.00 0.008 
   3 uu640675257I   17579.8  0.99  295.0  213.4 196   6134  5233 -0.058 0.052 99.00 20.4 -0.0676 0.0333 99.00 21.1   885 -8.589  4.090 99.00 0.008 
    Sum (T+ 16972 to  17880):             770.2        827.7 (est. in src region)   SNR_unwtd_sum:  -2.03 0.9987 signif. UL:  21.09
  0   885 640675103   17425.7    453.9   -454.2   -0.0676   0.0333 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.001 +/- 0.039 snr:  0.0 mag: 28.21 UL: 20.40
Rebinned Data for sw01044426001uuu_sk.img using a zero point of 18.149:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      171     396.3     87.7    -87.7    0.0198   0.0755 22.41  1.71     396.3    0.0198   0.0755 22.41  1.71 19.62
  1      877   17426.2    453.4   -454.7   -0.0676   0.0333 99.00 99.00   14644.8   -0.0533   0.0305 99.00 99.00 21.12
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01044426001uw1_sk.img ================
Use keyword TRIGTIME of 640657677.184 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 640663429
The processing date in extension 0 is:  2021-05-01T06:49:19
The trigger time is: 640657677.184. 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(104.87442,4.92233,25")
fk5;-circle(104.87442,4.92233,12.5")
fk5;-circle(104.872953,4.917557,6")
fk5;-circle(104.874161,4.929857,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 w1640663429I    5752.2  1.00  188.3   26.4 204    939  5278 -0.054 0.029 99.00 20.2 -0.0543 0.0290 99.00 20.2   188 -5.624  3.008 99.00 0.050 
    Sum (T+  5752 to   5944):              26.4         36.3 (est. in src region)   SNR_unwtd_sum:  -1.87 0.9987 signif. UL:  20.22
  0   188 640663525    5847.9     95.6    -95.6   -0.0543   0.0290 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.000 +/- 0.039 snr: -0.0 mag: 99.00 UL: 19.42
Rebinned Data for sw01044426001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      188    5847.9     95.6    -95.6   -0.0543   0.0290 99.00 99.00    5847.9   -0.0543   0.0290 99.00 99.00 20.22
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01044426001um2_sk.img ================
Use keyword TRIGTIME of 640657677.184 for trigger time.
Long-term sensitivity correction to zero point is -0.260 at 640663223
The processing date in extension 0 is:  2021-05-01T06:49:18
The trigger time is: 640657677.184. The reference is keyword in image file
Using zero point of 16.590 for filter UVM2
Use aperture correction of  1.031 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(104.87442,4.92233,25")
fk5;-circle(104.87442,4.92233,12.5")
fk5;-circle(104.872923,4.917516,6")
fk5;-circle(104.874106,4.929784,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 m2640663223I    5545.9  1.00  196.6    7.7 196    246  5256 -0.008 0.015 99.00 20.0 -0.0079 0.0148 99.00 20.0   197 -1.347  2.530 99.00 0.126 
   2 m2640680075I   22398.0  1.00  693.4   35.3 196   1042  5256 -0.005 0.009 99.00 20.6 -0.0059 0.0078 99.00 20.8   890 -1.700  2.343 99.00 0.045 
    Sum (T+  5546 to  23103):              42.9         48.0 (est. in src region)   SNR_unwtd_sum:  -0.76 0.9987 signif. UL:  20.80
  0   890 640676649   18971.7   4130.8 -13425.8   -0.0059   0.0078 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.000 +/- 0.039 snr: -0.0 mag: 99.00 UL: 18.85
Rebinned Data for sw01044426001um2_sk.img using a zero point of 16.590:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5645.8     99.9    -99.9   -0.0079   0.0148 99.00 99.00    5645.8   -0.0079   0.0148 99.00 99.00 20.03
  1      693   22750.2    352.3   -352.3   -0.0053   0.0090 99.00 99.00   18971.2   -0.0059   0.0078 99.00 99.00 20.80
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01044426001uw2_sk.img ================
Use keyword TRIGTIME of 640657677.184 for trigger time.
Long-term sensitivity correction to zero point is -0.342 at 640662814
The processing date in extension 0 is:  2021-05-01T06:49:18
The trigger time is: 640657677.184. The reference is keyword in image file
Using zero point of 17.038 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(104.87442,4.92233,25")
fk5;-circle(104.87442,4.92233,12.5")
fk5;-circle(104.872826,4.917373,6")
fk5;-circle(104.874160,4.929753,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 w2640662813I    5136.4  1.00  196.6   33.9 196    782  5233  0.024 0.031 21.08 19.3  0.0242 0.0312 21.08 19.3   197  2.529  3.262 19.28 0.064 
    Sum (T+  5136 to   5336):              33.9         29.3 (est. in src region)   SNR_unwtd_sum:   0.78 0.9987 signif. UL:  19.34
  0   197 640662913    5236.3     99.9    -99.9    0.0242   0.0312 21.080 77.920  -0.899
Total wtd_rate (for all exposures so far): -0.000 +/- 0.039 snr: -0.0 mag: 99.00 UL: 19.29
Rebinned Data for sw01044426001uw2_sk.img using a zero point of 17.038:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5236.3     99.9    -99.9    0.0242   0.0312 21.08  0.90    5236.3    0.0242   0.0312 21.08  0.90 19.34
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw01044426992ugu_sk.img ================
The data range from T+96.6 s (0.00 d) to T+23102.5 s (0.27 d)
Wrote uvot_fluxes_210501d07h04m39s675756usUT.qdp
Wrote uvot_fluxes_210501d07h04m39s675756usUT.gif
Wrote uvot_fluxes_210501d07h04m39s675756usUT.ps
Wrote uvot_fluxes_210501d07h04m39s675756usUT_vis.qdp
Wrote uvot_fluxes_210501d07h04m39s675756usUT_uv.qdp
Wrote uvot_fluxes_210501d07h04m39s675756usUT_vis.gif
Wrote uvot_fluxes_210501d07h04m39s675756usUT_vis.ps
Wrote uvot_fluxes_210501d07h04m39s675756usUT_uv.gif
Wrote uvot_fluxes_210501d07h04m39s675756usUT_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      518     171.5     74.9    -74.9    0.0011   0.2359 27.68  5.83     171.5    0.0011   0.2359 27.68  5.83 20.59
  1     3.01     396.3     87.7    -87.7    0.1424   0.5428 22.41  1.71     172.8    0.0030   0.2329 26.61  4.75 20.60
  2    0.002    5440.9     99.9    -99.9   -0.9088   1.2336 99.00 99.00     172.8    0.0029   0.2329 26.65  4.79 20.60
  3   0.0348   18095.0    608.1  -1123.5   -0.2768   0.1485 99.00 99.00     174.0    0.0009   0.2313 27.88  6.00 20.61
The data range from T+96.6 s (0.00 d) to T+23102.5 s (0.27 d)
Wrote uvot_fluxes_wtd_210501d07h04m39s675756usUT.qdp
Wrote uvot_fluxes_wtd_210501d07h04m39s675756usUT.gif
Wrote uvot_fluxes_wtd_210501d07h04m39s675756usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem