# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 210417d06h39m44s668191usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021426002 -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
# ========= GRB210323B ===================
Could not find/read custom source region custom_021426_src.reg
Used archived BAT position of 259.66400 15.67700
Reference: GCN_Circ-29701
The position is (17:18:39.36, +15:40:37.2)
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(259.664,15.677,3") # color=red dash=0
Source region spec. is: 259.664 15.677 3"
Region file centered at (259.664,15.677), which is (17:18:39.36, +15:40:37.2)
Could not find/read custom background region custom_021426_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 14400.0,
3 sigma should become about 5.3 sigma and 2 sigma should become about 4.8 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999991.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -26.71974 from uncorrected trigger time of 638193813 in BAT summary file
# ============ Reading file sw00021426002uwh_sk.img ================
Use keyword TRIGTIME of 638193839.741 for trigger time.
Long-term sensitivity correction to zero point is -0.179 at 639479477
The processing date in extension 0 is: 2021-04-17T06:22:56
The trigger time is: 638193839.741. The reference is keyword in image file
Using zero point of 20.111 for filter WHITE
Use aperture correction of 1.108 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(259.664,15.677,25")
fk5;-circle(259.664,15.677,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 wh639479476I 1285637.1  0.98  186.7  232.0 108  13561  5804  0.000 0.097 99.00 20.8  0.0000 0.0973 99.00 20.8   187  0.000 147.524 99.00 0.000 
   2 wh639495837I 1301998.2  0.98  529.3  907.4 128  38837  5892  0.000 0.063 99.00 21.3  0.0000 0.0530 99.00 21.5   716  0.000 80.865 99.00 0.000 
   3 wh639518819I 1324980.1  0.98  521.4  696.8 108  37909  5820  0.000 0.058 99.00 21.4  0.0000 0.0393 99.00 21.8  1237  0.000 60.457 99.00 0.000 
   4 wh639524420I 1330580.4  0.98  411.2  634.3 120  30524  5884  0.000 0.070 99.00 21.2  0.0000 0.0342 99.00 22.0  1649  0.000 52.889 99.00 0.000 
    Sum (T+1285637 to 1330998):            2422.1       2422.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999909722222 signif. UL:  21.96
  0  1649 639508615 1314775.1  16223.1 -29138.0    0.0000   0.0342 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-52.369 snr:  0.0 mag: 99.00 UL: 13.99
Rebinned Data for sw00021426002uwh_sk.img using a zero point of 20.111:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.61e+03 1314771.1  16227.1 -29134.0    0.0000   0.0342 99.00 99.00 1314771.1    0.0000   0.0342 99.00 99.00 22.51
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00021426002uvv_sk.img ================
Use keyword TRIGTIME of 638193839.741 for trigger time.
Long-term sensitivity correction to zero point is -0.213 at 639479673
The processing date in extension 0 is:  2021-04-17T06:22:57
The trigger time is: 638193839.741. The reference is keyword in image file
Using zero point of 17.677 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(259.664,15.677,25")
fk5;-circle(259.664,15.677,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 vv639479672I 1285832.9  0.99  186.7   54.4 104   3055  5800  0.000 0.044 99.00 19.3  0.0000 0.0437 99.00 19.3   187  0.000 623.527 99.00 0.000 
   2 vv639479866I 1286026.5  0.99   14.6    4.6 104    267  5848  0.000 0.165 99.00 17.8  0.0000 0.0423 99.00 19.3   201  0.000 602.731 99.00 0.000 
   3 vv639496382I 1302542.5  0.99  529.3  192.9 128   8930  5892  0.000 0.029 99.00 19.7  0.0000 0.0241 99.00 19.9   731  0.000 344.771 99.00 0.000 
   4 vv639496923I 1303084.0  0.99   56.3   22.1 108    983  5808  0.000 0.084 99.00 18.6  0.0000 0.0231 99.00 19.9   787  0.000 331.587 99.00 0.000 
   5 vv639519355I 1325516.3  0.99  521.4  137.7 104   8621  5812  0.000 0.026 99.00 19.8  0.0000 0.0174 99.00 20.3  1308  0.000 251.629 99.00 0.000 
   6 vv639519889I 1326049.8  0.99   70.3   21.9 116   1185  5856  0.000 0.076 99.00 18.7  0.0000 0.0170 99.00 20.3  1379  0.000 245.498 99.00 0.000 
   7 vv639524844I 1331004.6  0.99  411.2  126.8 112   6743  5840  0.000 0.031 99.00 19.6  0.0000 0.0148 99.00 20.4  1790  0.000 215.601 99.00 0.000 
   8 vv639525265I 1331425.8  0.99   34.8   11.9 104    582  5852  0.000 0.102 99.00 18.3  0.0000 0.0147 99.00 20.4  1825  0.000 213.429 99.00 0.000 
    Sum (T+1285833 to 1331461):             589.2        589.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999909722222 signif. UL:  20.44
  0  1825 639509206 1315366.1  16095.1 -29533.3    0.0000   0.0147 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-49.957 snr:  0.0 mag: 99.00 UL: 11.61
Rebinned Data for sw00021426002uvv_sk.img using a zero point of 17.677:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.81e+03 1315366.2  16095.0 -29533.4    0.0000   0.0147 99.00 99.00 1315366.2    0.0000   0.0147 99.00 99.00 20.99
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021426002uuu_sk.img ================
Use keyword TRIGTIME of 638193839.741 for trigger time.
Long-term sensitivity correction to zero point is -0.191 at 639479282
The processing date in extension 0 is:  2021-04-17T06:22:56
The trigger time is: 638193839.741. The reference is keyword in image file
Using zero point of 18.149 for filter U
Use aperture correction of  1.100 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(259.664,15.677,25")
fk5;-circle(259.664,15.677,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 uu639479281I 1285441.8  1.00  186.8   38.5 104   2175  5848  0.000 0.037 99.00 19.9  0.0000 0.0371 99.00 19.9   187  0.000 342.365 99.00 0.001 
   2 uu639495293I 1301454.2  1.00  529.3  145.1 124   6068  5876  0.000 0.024 99.00 20.4  0.0000 0.0201 99.00 20.6   716  0.000 186.809 99.00 0.000 
   3 uu639518283I 1324443.3  1.00  521.4  111.9 108   5814  5808  0.000 0.022 99.00 20.5  0.0000 0.0149 99.00 20.9  1237  0.000 139.946 99.00 0.000 
   4 uu639523996I 1330157.0  1.00  411.2   94.6 108   4674  5808  0.000 0.025 99.00 20.3  0.0000 0.0129 99.00 21.1  1649  0.000 121.054 99.00 0.000 
    Sum (T+1285442 to 1330575):             361.8        361.8 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999909722222 signif. UL:  21.06
  0  1649 639508142 1314302.2  16272.5 -28860.4    0.0000   0.0129 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-46.551 snr:  0.0 mag: 99.00 UL: 12.16
Rebinned Data for sw00021426002uuu_sk.img using a zero point of 18.149:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.64e+03 1314304.7  16270.0 -28862.9    0.0000   0.0129 99.00 99.00 1314304.7    0.0000   0.0129 99.00 99.00 21.61
The data range from T+1285441.8 s (14.88 d) to T+1331461.2 s (15.41 d)
Wrote uvot_fluxes_210417d06h39m44s668191usUT.qdp
Wrote uvot_fluxes_210417d06h39m44s668191usUT.gif
Wrote uvot_fluxes_210417d06h39m44s668191usUT.ps
Wrote uvot_fluxes_210417d06h39m44s668191usUT_vis.qdp
Wrote uvot_fluxes_210417d06h39m44s668191usUT_uv.qdp
Wrote uvot_fluxes_210417d06h39m44s668191usUT_vis.gif
Wrote uvot_fluxes_210417d06h39m44s668191usUT_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 0.000315 1314593.2  16868.0 -29151.4    0.0000   0.0389 99.00 99.00 1314593.2    0.0000   0.0389 99.00 99.00 22.55
The data range from T+1285441.8 s (14.88 d) to T+1331461.2 s (15.41 d)
Wrote uvot_fluxes_wtd_210417d06h39m44s668191usUT.qdp
Wrote uvot_fluxes_wtd_210417d06h39m44s668191usUT.gif
Wrote uvot_fluxes_wtd_210417d06h39m44s668191usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem