# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 211001d13h16m29s936558usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01076121992 -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
# ========= GRB211001 ===================
Could not find/read custom source region custom_1076121_src.reg
Used archived BAT position of 71.47000 12.04000
Reference: GCN_Position_Notice_Fri_01_Oct_21_00:43:33_UT
The position is (04:45:52.80, +12:02:24.0)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(71.470,+12.040,3") # color=red dash=0
Source region spec. is: 71.470 +12.040 3"
Region file centered at (71.470,+12.040), which is (04:45:52.80, +12:02:24.0)
Could not find/read custom background region custom_1076121_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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -27.82196 from uncorrected trigger time of 654741799.69 in BAT summary file
# ============ Reading file sw01076121992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.176 at 654741900
The processing date in extension 0 is: 2021-10-01T13:03:24
The trigger time is: 654741827.51196. The reference is BAT GRB summary file
Using zero point of 20.114 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(71.470,+12.040,25")
fk5;-circle(71.470,+12.040,12.5")
fk5;-circle(71.463575,12.043580,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 wh654741900I      72.5  0.96  147.4  375.8 115  17130  5678  0.000 0.147 99.00 20.4  0.0000 0.1472 99.00 20.4   147  0.000  0.026 99.00 2.353 
   2 wh654741900E      72.5  0.96  147.4  366.3 113  17086  5675  0.000 0.146 99.00 20.4 
   3 wh654742391E     564.1  0.96   19.4   53.5 111   2285  5678  0.000 0.400 99.00 19.3  0.0000 0.1382 99.00 20.5   167  0.000  0.025 99.00 2.155 
   4 wh654742564E     736.6  0.96   19.5   50.2 112   2337  5675  0.000 0.407 99.00 19.3  0.0000 0.1308 99.00 20.6   186  0.000  0.025 99.00 1.977 
   5 wh654742689I     862.1  0.96  147.4  393.0 112  18166  5681  0.000 0.150 99.00 20.4  0.0000 0.0985 99.00 20.9   334  0.000  0.025 99.00 1.248 
    Sum (T+    73 to   1012):             795.9        795.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.86
  0   334 654742383     556.0    455.9   -483.4    0.0000   0.0985 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.025 snr:  0.0 mag: 99.00 UL: 22.36
Rebinned Data for sw01076121992uwh_sk.img using a zero point of 20.114:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      142     147.4     74.9    -74.9    0.0000   0.1472 99.00 99.00     147.4    0.0000   0.1472 99.00 99.00 20.93
  1      179     879.2    132.7   -315.1    0.0000   0.1326 99.00 99.00     555.7    0.0000   0.0985 99.00 99.00 21.36
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01076121992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.215 at 654741882
The processing date in extension 0 is:  2021-10-01T13:03:10
The trigger time is: 654741827.51196. The reference is BAT GRB summary file
Using zero point of 17.675 for filter V
Use aperture correction of  1.087 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(71.470,+12.040,25")
fk5;-circle(71.470,+12.040,12.5")
fk5;-circle(71.463591,12.043573,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 vv654741882E      54.9  0.99    9.2    7.8 114    220  5676  0.000 0.253 99.00 17.4 
   2 vv654742441E     613.6  0.99   19.4   13.7 112    511  5673  0.000 0.181 99.00 17.8  0.0000 0.1809 99.00 17.8    19  0.000  1.254 99.00 0.276 
   3 vv654742613E     786.2  0.99   19.5    8.9 109    542  5671  0.000 0.184 99.00 17.7  0.0000 0.1290 99.00 18.1    39  0.000  0.993 99.00 0.242 
   4 vv654742869E    1042.2  0.99   19.5   10.5 115    603  5679  0.000 0.199 99.00 17.7  0.0000 0.1087 99.00 18.3    58  0.000  0.914 99.00 0.202 
    Sum (T+   614 to   1062):              32.7         32.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.32
  0    58 654742651     823.9    238.1   -210.3    0.0000   0.1087 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.024 snr:  0.0 mag: 99.00 UL: 19.94
Rebinned Data for sw01076121992uvv_sk.img using a zero point of 17.675:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     57.8     823.8    238.2   -210.2    0.0000   0.1087 99.00 99.00     823.8    0.0000   0.1087 99.00 99.00 18.82
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01076121992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.182 at 654742367
The processing date in extension 0 is:  2021-10-01T13:03:21
The trigger time is: 654741827.51196. The reference is BAT GRB summary file
Using zero point of 18.928 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(71.470,+12.040,25")
fk5;-circle(71.470,+12.040,12.5")
fk5;-circle(71.463710,12.043597,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 bb654742367E     539.8  0.99   19.5   15.2 110    847  5660  0.000 0.237 99.00 18.7  0.0000 0.2367 99.00 18.7    19  0.000  0.456 99.00 0.605 
   2 bb654742539E     712.2  0.99   19.4   12.2 109    852  5659  0.000 0.236 99.00 18.7  0.0000 0.1673 99.00 19.1    39  0.000  0.363 99.00 0.533 
    Sum (T+   540 to    732):              32.9         32.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.10
  0    39 654742463     635.8     96.1    -96.1    0.0000   0.1673 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.025 snr:  0.0 mag: 99.00 UL: 21.18
Rebinned Data for sw01076121992ubb_sk.img using a zero point of 18.928:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.3     635.8     96.1    -96.1    0.0000   0.1673 99.00 99.00     635.8    0.0000   0.1673 99.00 99.00 19.60
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01076121992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.197 at 654742112
The processing date in extension 0 is:  2021-10-01T13:03:25
The trigger time is: 654741827.51196. The reference is BAT GRB summary file
Using zero point of 18.143 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(71.470,+12.040,25")
fk5;-circle(71.470,+12.040,12.5")
fk5;-circle(71.463549,12.043519,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 uu654742111I     284.4  0.99  245.8   89.2 113   4692  5670  0.000 0.044 99.00 19.8  0.0000 0.0440 99.00 19.8   246  0.000  0.130 99.00 0.883 
   2 uu654742111E     284.4  0.99  245.8   86.4 110   4681  5677  0.000 0.043 99.00 19.8 
   3 uu654742514E     687.2  0.99   19.5    6.2 114    402  5678  0.000 0.163 99.00 18.3  0.0000 0.0425 99.00 19.8   265  0.000  0.128 99.00 0.851 
    Sum (T+   284 to    707):             101.6        101.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.81
  0   265 654742258     430.4    276.6   -146.0    0.0000   0.0425 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.024 snr:  0.0 mag: 99.00 UL: 20.42
Rebinned Data for sw01076121992uuu_sk.img using a zero point of 18.143:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      244     409.3    124.9   -124.9    0.0000   0.0440 99.00 99.00     409.3    0.0000   0.0440 99.00 99.00 20.27
  1     19.3     697.1      9.9     -9.9    0.0000   0.1633 99.00 99.00     430.4    0.0000   0.0425 99.00 99.00 20.30
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01076121992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.271 at 654742490
The processing date in extension 0 is:  2021-10-01T13:03:22
The trigger time is: 654741827.51196. The reference is BAT GRB summary 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(71.470,+12.040,25")
fk5;-circle(71.470,+12.040,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 w1654742490E     662.8  1.00   19.5    3.2 112     74  5843  0.000 0.069 99.00 18.3  0.0000 0.0693 99.00 18.3    19  0.000  0.826 99.00 1.156 
   2 w1654742663E     835.5  1.00   19.4    2.0 113     88  5848  0.000 0.076 99.00 18.2  0.0000 0.0516 99.00 18.6    39  0.000  0.670 99.00 0.938 
   3 w1654742918E    1091.2  1.00   10.8    0.0 111     48  5841  0.000 0.100 99.00 17.9  0.0000 0.0458 99.00 18.7    50  0.000  0.633 99.00 0.865 
    Sum (T+   663 to   1102):               4.0          4.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.75
  0    50 654742660     832.5    269.8   -169.6    0.0000   0.0458 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.025 snr:  0.0 mag: 99.00 UL: 19.43
Rebinned Data for sw01076121992uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     49.6     832.4    269.8   -169.6    0.0000   0.0458 99.00 99.00     832.4    0.0000   0.0458 99.00 99.00 19.25
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01076121992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 654742466
The processing date in extension 0 is:  2021-10-01T13:03:22
The trigger time is: 654741827.51196. The reference is BAT GRB summary file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01076121992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.344 at 654742417
The processing date in extension 0 is:  2021-10-01T13:03:22
The trigger time is: 654741827.51196. The reference is BAT GRB summary file
Using zero point of 17.036 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw01076121992ugu_sk.img ================
The data range from T+72.5 s (0.00 d) to T+1102.2 s (0.01 d)
Wrote uvot_fluxes_211001d13h16m29s936558usUT.qdp
Wrote uvot_fluxes_211001d13h16m29s936558usUT.gif
Wrote uvot_fluxes_211001d13h16m29s936558usUT.ps
Wrote uvot_fluxes_211001d13h16m29s936558usUT_vis.qdp
Wrote uvot_fluxes_211001d13h16m29s936558usUT_uv.qdp
Wrote uvot_fluxes_211001d13h16m29s936558usUT_vis.gif
Wrote uvot_fluxes_211001d13h16m29s936558usUT_vis.ps
Wrote uvot_fluxes_211001d13h16m29s936558usUT_uv.gif
Wrote uvot_fluxes_211001d13h16m29s936558usUT_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  1.3e+03     147.4     74.9    -74.9    0.0000   0.1732 99.00 99.00     147.4    0.0000   0.1732 99.00 99.00 20.93
  1     28.9     571.1    234.8   -286.7    0.0000   0.2518 99.00 99.00     156.6    0.0000   0.1607 99.00 99.00 21.01
  2     31.2     937.1    124.9    -74.9    0.0000   0.1760 99.00 99.00     174.5    0.0000   0.1426 99.00 99.00 21.14
The data range from T+72.5 s (0.00 d) to T+1102.2 s (0.01 d)
Wrote uvot_fluxes_wtd_211001d13h16m29s936558usUT.qdp
Wrote uvot_fluxes_wtd_211001d13h16m29s936558usUT.gif
Wrote uvot_fluxes_wtd_211001d13h16m29s936558usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem