# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 201231d12h16m37s787459usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01014012001 -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
# ========= GRB201221 ===================
Could not find/read custom source region custom_1014012_src.reg
Used archived BAT position of 278.20500 34.41100
Reference: GCN_Position_Notice_Mon_21_Dec_20_18:42:48_UT
The position is (18:32:49.20, +34:24:39.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(278.205,+34.411,3") # color=red dash=0
Source region spec. is: 278.205 +34.411 3"
Region file centered at (278.205,+34.411), which is (18:32:49.20, +34:24:39.6)
Could not find/read custom background region custom_1014012_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 -26.194 from uncorrected trigger time of 630268893.8 in BAT summary file
# ============ Reading file sw01014012992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.180 at 630269056
The processing date in extension 0 is: 2020-12-22T01:12:37
The trigger time is: 630268919.994. The reference is BAT GRB summary file
Using zero point of 20.110 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(278.205,+34.411,25")
fk5;-circle(278.205,+34.411,12.5")
fk5;-circle(278.198133,34.404907,6")
fk5;-circle(278.203332,34.403626,6")
fk5;-circle(278.205473,34.408913,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 wh630269056I     136.1  0.95  147.4  413.9 111  21012  5677  0.000 0.161 99.00 20.3  0.0000 0.1615 99.00 20.3   147  0.000  0.040 99.00 1.372 
   2 wh630269056E     136.1  0.95  147.4  428.5 111  20993  5680  0.000 0.161 99.00 20.3 
    Sum (T+   136 to    286):             410.8        410.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.32
  0   147 630269131     210.9     74.9    -74.9    0.0000   0.1615 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.040 snr:  0.0 mag: 99.00 UL: 21.84
# ============ Reading file sw01014012001uwh_sk.img ================
Use keyword TRIGTIME of 630268920 for trigger time.
Long-term sensitivity correction to zero point is -0.180 at 630274726
The processing date in extension 0 is:  2020-12-31T12:06:01
The trigger time is: 630268920. The reference is keyword in image file
Using zero point of 20.110 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(278.205,+34.411,25")
fk5;-circle(278.205,+34.411,12.5")
fk5;-circle(278.201218,34.412515,6")
fk5;-circle(278.205453,34.408992,6")
fk5;-circle(278.198123,34.404945,6")
fk5;-circle(278.203506,34.403695,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 wh630274725I    5805.6  0.96  196.6  550.1 108  24269  5400  0.000 0.131 99.00 20.6  0.0000 0.1310 99.00 20.6   197  0.000  0.913 99.00 0.056 
    Sum (T+  5806 to   6005):             485.4        485.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.55
  0   197 630274825    5905.4     99.9    -99.9    0.0000   0.1310 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.040 snr:  0.0 mag: 99.00 UL: 21.84
Rebinned Data for sw01014012001uwh_sk.img using a zero point of 20.110:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      140     210.9     74.9    -74.9    0.0000   0.1615 99.00 99.00     210.9    0.0000   0.1615 99.00 99.00 20.82
  1      188    5905.4     99.9    -99.9    0.0000   0.1310 99.00 99.00    3471.9    0.0000   0.1019 99.00 99.00 21.32
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01014012992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.211 at 630269039
The processing date in extension 0 is:  2020-12-22T01:12:26
The trigger time is: 630268920. The reference is keyword in image file
Using zero point of 17.679 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(278.205,+34.411,25")
fk5;-circle(278.205,+34.411,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 vv630269038E     118.6  0.99    8.8    4.5 113    235  5838  0.000 0.269 99.00 17.3 
# ============ Reading file sw01014012001uvv_sk.img ================
Use keyword TRIGTIME of 630268920 for trigger time.
Long-term sensitivity correction to zero point is -0.211 at 630275136
The processing date in extension 0 is:  2020-12-31T12:06:02
The trigger time is: 630268920. The reference is keyword in image file
Using zero point of 17.679 for filter V
Use aperture correction of  1.087 based on aperture of  3.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(278.205,+34.411,25")
fk5;-circle(278.205,+34.411,12.5")
fk5;-circle(278.201267,34.412360,6")
fk5;-circle(278.205277,34.408987,6")
fk5;-circle(278.197935,34.404930,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 vv630275135I    6216.0  0.99   24.5   26.3 112   1023  5608  0.000 0.206 99.00 17.6  0.0000 0.2060 99.00 17.6    24  0.000 14.210 99.00 0.017 
   2 vv630278665I    9745.3  0.99  295.0  274.6 116  11270  5596  0.000 0.058 99.00 19.0  0.0000 0.0555 99.00 19.1   320  0.000  5.776 99.00 0.012 
   3 vv630278969I   10049.2  0.99  145.8  103.2 112   4784  5592  0.000 0.075 99.00 18.7  0.0000 0.0447 99.00 19.3   465  0.000  4.753 99.00 0.012 
    Sum (T+  6216 to  10197):             349.9        349.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.29
  0   465 630278694    9773.8    423.5  -3557.9    0.0000   0.0447 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.43
Rebinned Data for sw01014012001uvv_sk.img using a zero point of 17.679:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      459    9774.3    423.0  -3558.3    0.0000   0.0447 99.00 99.00    9774.3    0.0000   0.0447 99.00 99.00 19.78
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01014012992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.173 at 630273041
The processing date in extension 0 is:  2020-12-22T01:12:37
The trigger time is: 630268920. The reference is keyword in image file
Using zero point of 18.937 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(278.205,+34.411,25")
fk5;-circle(278.205,+34.411,12.5")
fk5;-circle(278.205580,34.409012,6")
fk5;-circle(278.198111,34.405127,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 bb630273041I    4121.0  0.98  137.5  170.2 112   9818  5796  0.000 0.115 99.00 19.5  0.0000 0.1148 99.00 19.5   137  0.000  1.672 99.00 0.049 
    Sum (T+  4121 to   4261):             189.7        189.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.52
  0   137 630273111    4190.8     69.8    -69.8    0.0000   0.1148 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.040 snr:  0.0 mag: 99.00 UL: 20.67
Rebinned Data for sw01014012992ubb_sk.img using a zero point of 18.937:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      134    4190.8     69.8    -69.8    0.0000   0.1148 99.00 99.00    4190.8    0.0000   0.1148 99.00 99.00 20.02
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01014012992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.187 at 630269214
The processing date in extension 0 is:  2020-12-22T01:12:37
The trigger time is: 630268920. The reference is keyword in image file
Using zero point of 18.153 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(278.205,+34.411,25")
fk5;-circle(278.205,+34.411,12.5")
fk5;-circle(278.198296,34.405108,6")
fk5;-circle(278.205438,34.408941,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 uu630269213I     294.0  0.99   93.6   49.7 111   3019  5776  0.000 0.091 99.00 19.0  0.0000 0.0913 99.00 19.0    94  0.000  0.223 99.00 0.653 
   2 uu630269213E     294.0  0.99   93.6   50.8 112   3015  5774  0.000 0.092 99.00 19.0 
    Sum (T+   294 to    389):              58.0         58.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.98
  0    94 630269262     341.5     47.5    -47.5    0.0000   0.0913 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.91
Rebinned Data for sw01014012992uuu_sk.img using a zero point of 18.153:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     92.6     341.5     47.5    -47.5    0.0000   0.0913 99.00 99.00     341.5    0.0000   0.0913 99.00 99.00 19.48
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01014012001uw2_sk.img ================
Use keyword TRIGTIME of 630268920 for trigger time.
Long-term sensitivity correction to zero point is -0.340 at 630274931
The processing date in extension 0 is:  2020-12-31T12:06:02
The trigger time is: 630268920. The reference is keyword in image file
Using zero point of 17.040 for filter UVW2
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(278.205,+34.411,25")
fk5;-circle(278.205,+34.411,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 w2630274931I    6011.2  1.00  196.6    7.3 112    453  5844  0.000 0.017 99.00 19.7  0.0000 0.0168 99.00 19.7   197  0.000  2.046 99.00 0.185 
    Sum (T+  6011 to   6211):               8.7          8.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.71
  0   197 630275031    6111.1     99.9    -99.9    0.0000   0.0168 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.79
Rebinned Data for sw01014012001uw2_sk.img using a zero point of 17.040:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    6111.1     99.9    -99.9    0.0000   0.0168 99.00 99.00    6111.1    0.0000   0.0168 99.00 99.00 20.21
The data range from T+136.1 s (0.00 d) to T+10197.4 s (0.12 d)
Wrote uvot_fluxes_201231d12h16m37s787459usUT.qdp
Wrote uvot_fluxes_201231d12h16m37s787459usUT.gif
Wrote uvot_fluxes_201231d12h16m37s787459usUT.ps
Wrote uvot_fluxes_201231d12h16m37s787459usUT_vis.qdp
Wrote uvot_fluxes_201231d12h16m37s787459usUT_uv.qdp
Wrote uvot_fluxes_201231d12h16m37s787459usUT_vis.gif
Wrote uvot_fluxes_201231d12h16m37s787459usUT_vis.ps
Wrote uvot_fluxes_201231d12h16m37s787459usUT_uv.gif
Wrote uvot_fluxes_201231d12h16m37s787459usUT_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      527     211.6    177.4    -75.6    0.0000   0.1890 99.00 99.00     211.6    0.0000   0.1890 99.00 99.00 20.83
  1     1.12    5761.3   4436.1  -1640.3    0.0000   0.1459 99.00 99.00     223.4    0.0000   0.1789 99.00 99.00 20.89
The data range from T+136.1 s (0.00 d) to T+10197.4 s (0.12 d)
Wrote uvot_fluxes_wtd_201231d12h16m37s787459usUT.qdp
Wrote uvot_fluxes_wtd_201231d12h16m37s787459usUT.gif
Wrote uvot_fluxes_wtd_201231d12h16m37s787459usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem