# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 211213d07h16m38s303825usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01086826001 -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
# ========= GRB211203A ===================
Could not find/read custom source region custom_1086826_src.reg
Used archived BAT position of 170.17400 16.25600
Reference: GCN_Position_Notice_Fri_03_Dec_21_09:14:03_UT
The position is (11:20:41.76, +16:15:21.6)
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(170.174,+16.256,3") # color=red dash=0
Source region spec. is: 170.174 +16.256 3"
Region file centered at (170.174,+16.256), which is (11:20:41.76, +16:15:21.6)
Could not find/read custom background region custom_1086826_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 -28.19012 from uncorrected trigger time of 660214958.36 in BAT summary file
# ============ Reading file sw01086826992uwh_sk.img ================
Use keyword TRIGTIME of 660214986.56 for trigger time.
Long-term sensitivity correction to zero point is -0.176 at 660215068
The processing date in extension 0 is: 2021-12-03T22:30:56
The trigger time is: 660214986.56. The reference is keyword in image 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(170.174,+16.256,25")
fk5;-circle(170.174,+16.256,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 wh660215068I      81.9  0.89  147.4  967.9 112  48434  5833  0.000 0.259 99.00 19.8  0.0000 0.2591 99.00 19.8   147  0.000  0.048 99.00 0.768 
above line uses coinc_corr_src:  0.893 corr_bkg:  0.893
   2 wh660215068E      81.9  0.89  147.4  946.9 111  48633  5846  0.000 0.258 99.00 19.8 
above line uses coinc_corr_src:  0.893 corr_bkg:  0.893
#  3 wh660218836I    3850.1  0.96  196.6  484.6 116  26088  5860 
    Sum (T+    82 to    232):             930.0        930.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.81
  0   147 660215143     156.7     74.9    -74.9    0.0000   0.2591 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.047 snr:  0.0 mag: 99.00 UL: 21.66
Rebinned Data for sw01086826992uwh_sk.img using a zero point of 20.114:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      132     156.7     74.9    -74.9    0.0000   0.2591 99.00 99.00     156.7    0.0000   0.2591 99.00 99.00 20.31
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01086826992uvv_sk.img ================
Use keyword TRIGTIME of 660214986.56 for trigger time.
Long-term sensitivity correction to zero point is -0.216 at 660215051
The processing date in extension 0 is:  2021-12-03T22:30:29
The trigger time is: 660214986.56. The reference is keyword in image file
Using zero point of 17.674 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(170.174,+16.256,25")
fk5;-circle(170.174,+16.256,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 vv660215050E      64.1  0.98    9.1   13.1 111    616  5846  0.000 0.422 99.00 16.8 
# ============ Reading file sw01086826001uvv_sk.img ================
Use keyword TRIGTIME of 660214986.56 for trigger time.
Long-term sensitivity correction to zero point is -0.216 at 660236193
The processing date in extension 0 is:  2021-12-13T06:58:42
The trigger time is: 660214986.56. The reference is keyword in image file
Using zero point of 17.674 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(170.174,+16.256,25")
fk5;-circle(170.174,+16.256,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 vv660236193I   21206.5  0.99  295.0  183.6 116   9648  5844  0.000 0.052 99.00 19.1  0.0000 0.0521 99.00 19.1   295  0.000 12.369 99.00 0.006 
   2 vv660236496I   21510.0  0.99  295.0  199.5 112   9754  5840  0.000 0.051 99.00 19.1  0.0000 0.0366 99.00 19.5   590  0.000  8.756 99.00 0.006 
   3 vv660236800I   21813.5  0.99  295.0  189.7 112  10085  5852  0.000 0.052 99.00 19.1  0.0000 0.0300 99.00 19.7   885  0.000  7.223 99.00 0.006 
    Sum (T+ 21207 to  22113):             571.6        571.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.72
  0   885 660236646   21659.9    453.3   -453.4    0.0000   0.0300 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.046 snr:  0.0 mag: 99.00 UL: 19.24
Rebinned Data for sw01086826001uvv_sk.img using a zero point of 17.674:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      875   21659.8    453.4   -453.3    0.0000   0.0300 99.00 99.00   21659.8    0.0000   0.0300 99.00 99.00 20.21
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01086826992ubb_sk.img ================
Use keyword TRIGTIME of 660214986.56 for trigger time.
Long-term sensitivity correction to zero point is -0.184 at 660218632
The processing date in extension 0 is:  2021-12-03T22:30:58
The trigger time is: 660214986.56. The reference is keyword in image file
Using zero point of 18.926 for filter B
Use aperture correction of  1.108 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01086826992uuu_sk.img ================
Use keyword TRIGTIME of 660214986.56 for trigger time.
Long-term sensitivity correction to zero point is -0.199 at 660215280
The processing date in extension 0 is:  2021-12-03T22:30:57
The trigger time is: 660214986.56. The reference is keyword in image file
Using zero point of 18.141 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(170.174,+16.256,25")
fk5;-circle(170.174,+16.256,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 uu660215280I     293.8  0.97   45.5   66.6 111   3981  5841  0.000 0.219 99.00 18.0  0.0000 0.2186 99.00 18.0    45  0.000  0.502 99.00 0.254 
High bkg:   2 uu660215280E   45.4   3983  5839 15.008  0.238
   2 uu660215280E     293.8  0.97   45.4   75.2 111   3983  5839  0.000 0.219 99.00 18.0 
    Sum (T+   294 to    340):              75.6         75.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.02
  0    45 660215303     316.9     23.1    -23.1    0.0000   0.2186 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.047 snr:  0.0 mag: 99.00 UL: 19.70
# ============ Reading file sw01086826001uuu_sk.img ================
Use keyword TRIGTIME of 660214986.56 for trigger time.
Long-term sensitivity correction to zero point is -0.199 at 660264358
The processing date in extension 0 is:  2021-12-13T06:58:42
The trigger time is: 660214986.56. The reference is keyword in image file
Using zero point of 18.141 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(170.174,+16.256,25")
fk5;-circle(170.174,+16.256,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 uu660264357I   49370.9  0.99  287.6  127.8 116   6139  5848  0.000 0.043 99.00 19.8  0.0000 0.0429 99.00 19.8   288  0.000 15.379 99.00 0.007 
    Sum (T+ 49371 to  49663):             121.8        121.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.79
  0   288 660264504   49517.0    146.1   -146.1    0.0000   0.0429 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.047 snr:  0.0 mag: 99.00 UL: 19.70
Rebinned Data for sw01086826001uuu_sk.img using a zero point of 18.141:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     44.2     316.9     23.1    -23.1    0.0000   0.2186 99.00 99.00     316.9    0.0000   0.2186 99.00 99.00 18.52
  1      286   49517.0    146.1   -146.1    0.0000   0.0429 99.00 99.00   42929.0    0.0000   0.0473 99.00 99.00 20.18
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01086826001uw1_sk.img ================
Use keyword TRIGTIME of 660214986.56 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 660241510
The processing date in extension 0 is:  2021-12-13T06:58:42
The trigger time is: 660214986.56. 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(170.174,+16.256,25")
fk5;-circle(170.174,+16.256,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 w1660241509I   26523.3  1.00  286.2   22.5 120    977  5856  0.000 0.018 99.00 19.8  0.0000 0.0178 99.00 19.8   286  0.000  8.390 99.00 0.030 
   2 w1660247259I   32273.3  1.00  296.0   19.4 112   1085  5840  0.000 0.017 99.00 19.8  0.0000 0.0125 99.00 20.2   582  0.000  6.441 99.00 0.027 
   3 w1660253296I   38310.3  1.00  496.0   31.6 112   1675  5848  0.000 0.013 99.00 20.1  0.0000 0.0090 99.00 20.5  1078  0.000  5.209 99.00 0.025 
    Sum (T+ 26523 to  38814):              72.9         72.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.52
  0  1078 660248706   33719.7   5094.6  -7196.3    0.0000   0.0090 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.048 snr:  0.0 mag: 99.00 UL: 18.70
Rebinned Data for sw01086826001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.08e+03   33719.8   5094.4  -7196.5    0.0000   0.0090 99.00 99.00   33719.8    0.0000   0.0090 99.00 99.00 21.02
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01086826001um2_sk.img ================
Use keyword TRIGTIME of 660214986.56 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 660237105
The processing date in extension 0 is:  2021-12-13T06:58:42
The trigger time is: 660214986.56. 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(170.174,+16.256,25")
fk5;-circle(170.174,+16.256,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 m2660237104I   22118.4  1.00  812.1   19.3 112    878  5848  0.000 0.006 99.00 20.4  0.0000 0.0056 99.00 20.4   812  0.000  3.832 99.00 0.071 
    Sum (T+ 22118 to  22944):              16.8         16.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.45
  0   812 660237518   22531.0    412.6   -412.6    0.0000   0.0056 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.047 snr:  0.0 mag: 99.00 UL: 18.14
Rebinned Data for sw01086826001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      812   22531.0    412.6   -412.6    0.0000   0.0056 99.00 99.00   22531.0    0.0000   0.0056 99.00 99.00 20.95
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01086826992uw2_sk.img ================
Use keyword TRIGTIME of 660214986.56 for trigger time.
Long-term sensitivity correction to zero point is -0.344 at 660219042
The processing date in extension 0 is:  2021-12-03T22:30:58
The trigger time is: 660214986.56. The reference is keyword in image 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 sw01086826992ugu_sk.img ================
Use keyword TRIGTIME of 660214986.56 for trigger time.
The data range from T+81.9 s (0.00 d) to T+49663.1 s (0.57 d)
Wrote uvot_fluxes_211213d07h16m38s303825usUT.qdp
Wrote uvot_fluxes_211213d07h16m38s303825usUT.gif
Wrote uvot_fluxes_211213d07h16m38s303825usUT.ps
Wrote uvot_fluxes_211213d07h16m38s303825usUT_vis.qdp
Wrote uvot_fluxes_211213d07h16m38s303825usUT_uv.qdp
Wrote uvot_fluxes_211213d07h16m38s303825usUT_vis.gif
Wrote uvot_fluxes_211213d07h16m38s303825usUT_vis.ps
Wrote uvot_fluxes_211213d07h16m38s303825usUT_uv.gif
Wrote uvot_fluxes_211213d07h16m38s303825usUT_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      373     156.7     74.9    -74.9    0.0000   0.3046 99.00 99.00     156.7    0.0000   0.3046 99.00 99.00 20.31
  1    0.549     316.9     23.1    -23.1    0.0000   1.5826 99.00 99.00     157.0    0.0000   0.3037 99.00 99.00 20.32
  2  0.00231   28708.1  20955.1  -7501.5    0.0000   0.2317 99.00 99.00     157.1    0.0000   0.3034 99.00 99.00 20.32
The data range from T+81.9 s (0.00 d) to T+49663.1 s (0.57 d)
Wrote uvot_fluxes_wtd_211213d07h16m38s303825usUT.qdp
Wrote uvot_fluxes_wtd_211213d07h16m38s303825usUT.gif
Wrote uvot_fluxes_wtd_211213d07h16m38s303825usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem