# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210818d12h04m27s721133usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01064421001 -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
# ========= GRB210807C ===================
Could not find/read custom source region custom_1064421_src.reg
Used archived XRT position of 143.53387 -51.40106 4.00
Reference: GCN_Circulars-30615-Sun,_8_Aug_2021_03:13:38_-0400
The position is (09:34:08.13, -51:24:03.8)
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(143.53387,-51.40106,4") # color=red dash=0
Source region spec. is: 143.53387 -51.40106 4"
Region file centered at (143.53387,-51.40106), which is (09:34:08.13, -51:24:03.8)
Could not find/read custom background region custom_1064421_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 -27.50904 from uncorrected trigger time of 650069828.49 in BAT summary file
# ============ Reading file sw01064421992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.214 at 650070024
The processing date in extension 0 is: 2021-08-08T05:05:01
The trigger time is: 650069855.99904. The reference is BAT GRB summary file
Using zero point of 17.676 for filter V
Use aperture correction of 1.030 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(143.53387,-51.40106,25")
fk5;-circle(143.53387,-51.40106,12.5")
fk5;-circle(143.529175,-51.406484,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 vv650070023E     167.7  0.99    9.1    9.6 202    333  5502 -0.295 0.363 99.00 17.7 
   2 vv650070036I     180.3  0.99  245.8  354.2 201   9203  5508  0.078 0.081 20.44 18.9  0.0782 0.0813 20.44 18.9   246  0.265  0.276 21.73 0.213 
   3 vv650070036E     188.6  0.99  237.6  320.6 197   8887  5498  0.009 0.080 22.74 19.1 
   4 vv650070290E     434.5  0.99   19.5   28.6 202    818  5505 -0.079 0.292 99.00 17.8  0.0667 0.0783 20.61 19.0   265  0.244  0.271 21.82 0.206 
   5 vv650070314E     458.9  0.99   19.5   29.3 201    783  5493  0.036 0.296 21.30 17.7  0.0646 0.0757 20.65 19.0   285  0.243  0.267 21.83 0.201 
   6 vv650070338E     482.1  0.99   19.5   30.2 196    772  5497  0.143 0.300 19.79 17.6  0.0696 0.0734 20.57 19.0   304  0.257  0.263 21.77 0.196 
   7 vv650070361E     505.4  0.99   19.5   31.1 195    756  5518  0.233 0.304 19.26 17.5  0.0794 0.0714 20.43 19.0   324  0.283  0.260 21.66 0.192 
   8 vv650070385E     529.3  0.98   19.5   33.9 200    808  5499  0.245 0.318 19.20 17.5  0.0888 0.0697 20.30 19.0   343  0.307  0.258 21.57 0.187 
   9 vv650070408E     552.6  0.99   19.4   21.9 199    729  5488 -0.243 0.256 99.00 18.1  0.0710 0.0674 20.55 19.1   363  0.270  0.255 21.71 0.183 
  10 vv650070431E     575.9  0.98   19.5   41.1 202    792  5521  0.657 0.350 18.13 17.1  0.1007 0.0664 20.17 19.0   382  0.336  0.253 21.47 0.178 
  11 vv650070455E     599.2  0.99   19.4   38.6 195    771  5517  0.609 0.338 18.21 17.1  0.1253 0.0653 19.93 18.9   401  0.397  0.252 21.29 0.175 
  12 vv650070478E     622.4  0.99   19.5   20.0 202    781  5487 -0.467 0.246 99.00 18.4  0.0978 0.0633 20.20 19.0   421  0.345  0.250 21.44 0.171 
  13 vv650070501E     645.7  0.99   19.4   32.9 201    801  5487  0.192 0.313 19.47 17.5  0.1020 0.0620 20.15 19.0   440  0.359  0.248 21.40 0.167 
  14 vv650070525E     669.0  0.98   19.5   37.8 200    757  5514  0.554 0.335 18.32 17.2  0.1211 0.0611 19.97 19.0   460  0.405  0.247 21.27 0.164 
  15 vv650070548E     692.3  0.99   19.4   31.2 205    772  5497  0.129 0.305 19.90 17.6  0.1214 0.0599 19.96 19.0   479  0.412  0.246 21.25 0.161 
  16 vv650070571E     715.6  0.99   19.5   25.9 199    765  5502 -0.095 0.279 99.00 17.9  0.1130 0.0586 20.04 19.0   499  0.400  0.244 21.29 0.158 
  17 vv650070594E     738.8  0.99   19.4   17.3 207    738  5481 -0.567 0.230 99.00 18.6  0.0874 0.0570 20.32 19.1   518  0.350  0.243 21.43 0.155 
  18 vv650070618E     762.1  0.98   19.4   29.8 196    730  5520  0.208 0.298 19.38 17.5  0.0918 0.0560 20.27 19.1   538  0.364  0.242 21.39 0.152 
  19 vv650070641E     785.3  0.99   19.4   30.7 199    771  5499  0.152 0.303 19.72 17.6  0.0939 0.0551 20.25 19.1   557  0.372  0.241 21.36 0.150 
  20 vv650070664E     808.5  0.98   19.5   33.5 197    735  5509  0.386 0.315 18.71 17.4  0.1037 0.0543 20.14 19.1   576  0.398  0.240 21.29 0.148 
  21 vv650070687E     831.9  0.99   19.4   20.9 198    698  5476 -0.232 0.250 99.00 18.2  0.0927 0.0531 20.26 19.2   596  0.377  0.239 21.35 0.146 
    Sum (T+   180 to    852):             888.9        836.0 (est. in src region)   SNR_unwtd_sum:   1.74 0.9987 signif. UL:  19.17
  0   596 650070360     504.0    347.6   -323.8    0.0927   0.0531 20.258  0.924  -0.492
Total wtd_rate (for all exposures so far):  0.377 +/- 0.235 snr:  1.6 mag: 21.35 UL: 17.59
# ============ Reading file sw01064421001uvv_sk.img ================
Use keyword TRIGTIME of 650069856 for trigger time.
Long-term sensitivity correction to zero point is -0.214 at 650082495
The processing date in extension 0 is:  2021-08-18T11:37:45
The trigger time is: 650069856. The reference is keyword in image file
Using zero point of 17.676 for filter V
Use aperture correction of  1.030 based on aperture of  4.00
Using background region based on sources found in extension 17:
# 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(143.53387,-51.40106,25")
fk5;-circle(143.53387,-51.40106,12.5")
fk5;-circle(143.529130,-51.406459,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 vv650082495I   12639.0  0.99  295.0  303.5 208   8257  5539 -0.023 0.063 99.00 19.5 -0.0231 0.0626 99.00 19.5   295 -3.275  8.889 99.00 0.007 
   2 vv650082798I   12942.7  0.99  100.4   93.2 196   2689  5479 -0.032 0.102 99.00 19.0 -0.0252 0.0533 99.00 19.7   395 -3.614  7.604 99.00 0.007 
   3 vv650091953I   22097.1  0.97  295.0  895.1 208  24051  5548 -0.024 0.109 99.00 18.9 -0.0246 0.0556 99.00 19.7   691 -3.783  7.321 99.00 0.003 
   4 vv650092256I   22400.9  0.98  295.0  688.2 200  18050  5509  0.118 0.095 20.00 18.6  0.0178 0.0482 22.05 19.6   986 -0.738  7.000 99.00 0.003 
   5 vv650092560I   22704.7  0.98   59.2  132.5 196   3566  5483  0.089 0.208 20.30 18.0  0.0218 0.0470 21.83 19.6  1045 -0.313  6.939 99.00 0.003 
   6 vv650098130I   28274.1  0.97  295.0  814.7 204  20278  5473  0.211 0.104 19.37 18.4  0.0632 0.0432 20.67 19.5  1340  2.797  6.790 19.17 0.002 
   7 vv650098435I   28579.0  0.98  295.0  627.3 192  17057  5483  0.107 0.091 20.11 18.7  0.0711 0.0390 20.55 19.5  1635  4.517  6.611 18.65 0.002 
   8 vv650098738I   28882.7  0.98  120.1  214.3 208   5267  5548  0.147 0.130 19.76 18.3  0.0763 0.0374 20.47 19.5  1755  5.654  6.530 18.41 0.002 
High bkg:   9 vv650103414I  295.0  29521  5468 18.299  0.107
   9 vv650103414I   33558.5  0.97  295.0 1036.4 204  29521  5458 -0.242 0.119 99.00 19.2  0.0310 0.0362 21.45 19.8  2050  3.722  6.461 18.86 0.002 
  10 vv650103718I   33862.4  0.98  295.0  630.0 204  17264  5467 -0.051 0.091 99.00 19.2  0.0207 0.0337 21.88 19.9  2345  2.955  6.350 19.11 0.002 
  11 vv650104022I   34166.2  0.98  295.0  515.3 200  15004  5498 -0.108 0.082 99.00 19.5  0.0062 0.0313 23.19 20.1  2640  1.289  6.224 20.01 0.002 
  12 vv650104326I   34470.2  0.98  171.8  310.7 200   9201  5534 -0.133 0.110 99.00 19.1 -0.0023 0.0301 99.00 20.2  2812  0.231  6.157 21.88 0.002 
  13 vv650120732I   50876.0  0.98  295.0  717.3 200  19628  5481  0.004 0.097 23.75 18.9 -0.0017 0.0288 99.00 20.3  3107  0.254  6.119 21.78 0.002 
  14 vv650121035I   51179.9  0.98  295.0  492.5 196  13116  5473  0.081 0.080 20.41 18.9  0.0055 0.0272 23.33 20.3  3402  1.106  6.065 20.18 0.002 
  15 vv650121339I   51483.7  0.99  295.0  446.9 200  12790  5490 -0.067 0.076 99.00 19.4 -0.0004 0.0258 99.00 20.4  3697  0.380  6.008 21.34 0.001 
  16 vv650121643I   51787.8  0.99  295.0  440.9 200  11593  5475  0.061 0.076 20.70 19.0  0.0042 0.0245 23.62 20.4  3992  1.062  5.952 20.23 0.001 
  17 vv650121947I   52091.8  0.99  295.0  389.2 200  10635  5525  0.015 0.071 22.24 19.2  0.0049 0.0233 23.44 20.4  4287  1.219  5.890 20.07 0.001 
  18 vv650122251I   52395.6  0.99  200.0  262.7 200   6988  5486  0.042 0.086 21.12 18.9  0.0066 0.0226 23.13 20.4  4487  1.545  5.850 19.82 0.001 
  19 vv650126335I   56479.5  0.98  295.0  752.4 192  20065  5486  0.179 0.100 19.54 18.5  0.0172 0.0221 22.09 20.3  4782  2.576  5.825 19.26 0.001 
  20 vv650126639I   56783.2  0.97   26.2   68.9 196   1824  5483  0.150 0.340 19.73 17.5  0.0179 0.0220 22.04 20.3  4808  2.647  5.823 19.23 0.001 
    Sum (T+ 12639 to  56810):            9831.9       9749.9 (est. in src region)   SNR_unwtd_sum:   0.81 0.9987 signif. UL:  20.34
  0  4808 650107476   37619.9  19190.0 -24980.9    0.0179   0.0220 22.043 76.957  -0.871
Total wtd_rate (for all exposures so far):  0.381 +/- 0.234 snr:  1.6 mag: 21.34 UL: 17.58
Rebinned Data for sw01064421001uvv_sk.img using a zero point of 17.676:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      243     305.1    124.9   -124.9    0.0782   0.0813 20.44  0.77     305.1    0.0782   0.0813 20.44  0.77 18.89
  1      345     643.8    207.9   -209.3    0.1029   0.0702 20.14  0.56     504.0    0.0927   0.0531 20.26  0.49 19.17
  2 1.03e+03   18765.3   3999.5  -6126.3    0.0218   0.0470 21.83  1.25   12110.2    0.0476   0.0356 20.98  0.61 19.69
  3 3.38e+03   41589.7  11009.2 -13315.6    0.0020   0.0258 24.44  2.87   32061.1    0.0167   0.0209 22.12  0.88 20.40
  4      314   56643.0    166.8   -163.5    0.1768   0.0957 19.56  0.47   33514.5    0.0262   0.0205 21.63  0.63 20.31
The data range from T+180.3 s (0.00 d) to T+56809.9 s (0.66 d)
Wrote uvot_fluxes_210818d12h04m27s721133usUT.qdp
Wrote uvot_fluxes_210818d12h04m27s721133usUT.gif
Wrote uvot_fluxes_210818d12h04m27s721133usUT.ps
Wrote uvot_fluxes_210818d12h04m27s721133usUT_vis.qdp
Wrote uvot_fluxes_210818d12h04m27s721133usUT_uv.qdp
Wrote uvot_fluxes_210818d12h04m27s721133usUT_vis.gif
Wrote uvot_fluxes_210818d12h04m27s721133usUT_vis.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     1.33     323.7    201.5   -143.5    0.8605   0.8036 20.45  0.72     323.7    0.8605   0.8036 20.45  0.72 18.99
  1    0.268     670.3    181.3   -141.0    0.2356   0.8642 21.86  1.67     381.9    0.6764   0.6214 20.71  0.71 19.26
  2  0.00238   18097.2  16547.5  -5458.2   -0.0298   0.3400 99.00 99.00     408.2    0.6299   0.5809 20.79  0.71 19.34
  3 0.000281   52242.5   4567.4  -1366.5    0.4093   0.3428 21.26  0.66     417.3    0.6251   0.5682 20.80  0.70 19.36
The data range from T+180.3 s (0.00 d) to T+56809.9 s (0.66 d)
Wrote uvot_fluxes_wtd_210818d12h04m27s721133usUT.qdp
Wrote uvot_fluxes_wtd_210818d12h04m27s721133usUT.gif
Wrote uvot_fluxes_wtd_210818d12h04m27s721133usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem