# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210922d06h52m49s939055usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01072990001 -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
# ========= GRB210912A ===================
Could not find/read custom source region custom_1072990_src.reg
Used archived uvot source position of 129.89280 79.22141 3.00
Reference: GCN_Circ_30832
The position is (08:39:34.27, +79:13:17.1)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(129.89280,79.22141,3") # color=red dash=0
Source region spec. is: 129.89280 79.22141 3"
Region file centered at (129.89280,79.22141), which is (08:39:34.27, +79:13:17.1)
Could not find/read custom background region custom_1072990_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.7144 from uncorrected trigger time of 653137271.54 in BAT summary file
# ============ Reading file sw01072990001ubb_sk.img ================
Use keyword TRIGTIME of 653137299.264 for trigger time.
Long-term sensitivity correction to zero point is -0.181 at 653143409
The processing date in extension 0 is: 2021-09-22T06:44:39
The trigger time is: 653137299.264. The reference is keyword in image file
Using zero point of 18.929 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(129.89280,79.22141,25")
fk5;-circle(129.89280,79.22141,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 bb653143408I    6109.5  0.97   98.1  159.5 116   7897  5860  0.037 0.148 22.51 19.7  0.0371 0.1480 22.51 19.7    98  0.800  3.194 20.53 0.028 
    Sum (T+  6109 to   6209):             159.5        156.3 (est. in src region)   SNR_unwtd_sum:   0.25 0.9987 signif. UL:  19.67
  0    98 653143459    6159.3     49.8    -49.8    0.0371   0.1480 22.506 76.494  -1.746
Total wtd_rate (for all exposures so far):  0.800 +/- 3.164 snr:  0.3 mag: 20.53 UL: 16.34
Rebinned Data for sw01072990001ubb_sk.img using a zero point of 18.929:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     95.4    6159.3     49.8    -49.8    0.0371   0.1480 22.51  1.75    6159.3    0.0371   0.1480 22.51  1.75 19.67
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01072990001uuu_sk.img ================
Use keyword TRIGTIME of 653137299.264 for trigger time.
Long-term sensitivity correction to zero point is -0.196 at 653143204
The processing date in extension 0 is:  2021-09-22T06:44:39
The trigger time is: 653137299.264. The reference is keyword in image file
Using zero point of 18.144 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(129.89280,79.22141,25")
fk5;-circle(129.89280,79.22141,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 uu653143203I    5904.3  0.98  196.6  182.4 112   8561  5847  0.105 0.077 20.59 19.3  0.1049 0.0774 20.59 19.3   197  4.545  3.354 18.65 0.027 
    Sum (T+  5904 to   6104):             182.4        164.0 (est. in src region)   SNR_unwtd_sum:   1.36 0.9987 signif. UL:  19.32
  0   197 653143303    6004.2     99.9    -99.9    0.1049   0.0774 20.592  1.454  -0.600
Total wtd_rate (for all exposures so far):  2.643 +/- 2.285 snr:  1.2 mag: 19.23 UL: 15.69
Rebinned Data for sw01072990001uuu_sk.img using a zero point of 18.144:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    6004.2     99.9    -99.9    0.1049   0.0774 20.59  0.60    6004.2    0.1049   0.0774 20.59  0.60 19.32
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01072990001uw1_sk.img ================
Use keyword TRIGTIME of 653137299.264 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 653142999
The processing date in extension 0 is:  2021-09-22T06:44:39
The trigger time is: 653137299.264. 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 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(129.89280,79.22141,25")
fk5;-circle(129.89280,79.22141,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 w1653142998I    5699.6  1.00  196.6   21.4 112   1002  5833  0.012 0.027 21.94 19.7  0.0123 0.0267 21.94 19.7   197  1.264  2.744 20.04 0.099 
    Sum (T+  5700 to   5899):              21.4         19.2 (est. in src region)   SNR_unwtd_sum:   0.46 0.9987 signif. UL:  19.71
  0   197 653143099    5799.5     99.9    -99.9    0.0123   0.0267 21.944 77.056  -1.253
Total wtd_rate (for all exposures so far):  2.076 +/- 1.772 snr:  1.2 mag: 19.50 UL: 14.98
Rebinned Data for sw01072990001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5799.5     99.9    -99.9    0.0123   0.0267 21.94  1.25    5799.5    0.0123   0.0267 21.94  1.25 19.71
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01072990001um2_sk.img ================
Use keyword TRIGTIME of 653137299.264 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 653142794
The processing date in extension 0 is:  2021-09-22T06:44:39
The trigger time is: 653137299.264. 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(129.89280,79.22141,25")
fk5;-circle(129.89280,79.22141,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 m2653142793I    5494.4  1.00  196.6    5.4 116    200  5841  0.008 0.013 21.81 19.9  0.0082 0.0132 21.81 19.9   197  1.378  2.229 19.94 0.293 
    Sum (T+  5494 to   5694):               5.4          4.0 (est. in src region)   SNR_unwtd_sum:   0.62 0.9987 signif. UL:  19.86
  0   197 653142894    5594.3     99.9    -99.9    0.0082   0.0132 21.811 77.189  -1.044
Total wtd_rate (for all exposures so far):  1.752 +/- 1.379 snr:  1.3 mag: 19.68 UL: 14.65
Rebinned Data for sw01072990001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5594.3     99.9    -99.9    0.0082   0.0132 21.81  1.04    5594.3    0.0082   0.0132 21.81  1.04 19.86
The data range from T+5494.4 s (0.06 d) to T+6209.1 s (0.07 d)
Wrote uvot_fluxes_210922d06h52m49s939055usUT.qdp
Wrote uvot_fluxes_210922d06h52m49s939055usUT.gif
Wrote uvot_fluxes_210922d06h52m49s939055usUT.ps
Wrote uvot_fluxes_210922d06h52m49s939055usUT_vis.qdp
Wrote uvot_fluxes_210922d06h52m49s939055usUT_uv.qdp
Wrote uvot_fluxes_210922d06h52m49s939055usUT_vis.gif
Wrote uvot_fluxes_210922d06h52m49s939055usUT_vis.ps
Wrote uvot_fluxes_210922d06h52m49s939055usUT_uv.gif
Wrote uvot_fluxes_210922d06h52m49s939055usUT_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   0.0403    6111.9     97.2   -207.6    0.3182   0.3998 21.53  0.88    6111.9    0.3182   0.3998 21.53  0.88 19.81
The data range from T+5494.4 s (0.06 d) to T+6209.1 s (0.07 d)
Wrote uvot_fluxes_wtd_210922d06h52m49s939055usUT.qdp
Wrote uvot_fluxes_wtd_210922d06h52m49s939055usUT.gif
Wrote uvot_fluxes_wtd_210922d06h52m49s939055usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem