# uvot_fluxes_wget.pl vrs. 2020-10-20 fem at 201023d01h25m45s457508usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021035002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/data/khamseenssd/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB201020B ===================
Could not find/read custom source region custom_021035_src.reg
Used archived uvot source position of 75.47026 77.06828 3.00
Reference: uvotdetect
The position is (05:01:52.86, +77:04:05.8)
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(75.47026,77.06828,3") # color=red dash=0
Source region spec. is: 75.47026 77.06828 3"
Region file centered at (75.47026,77.06828), which is (05:01:52.86, +77:04:05.8)
Could not find/read custom background region custom_021035_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 -25.8363 from uncorrected trigger time of 624908034.33 in BAT summary file
# ============ Reading file sw00021035002uwh_sk.img ================
Use keyword TRIGTIME of 624908059.914 for trigger time.
Long-term sensitivity correction to zero point is -0.179 at 625095854
The processing date in extension 0 is: 2020-10-23T01:15:14
The trigger time is: 624908059.914. 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(75.47026,77.06828,25")
fk5;-circle(75.47026,77.06828,12.5")
fk5;-circle(75.470881,77.076880,6")
fk5;-circle(75.500533,77.069116,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 wh625095853I  187793.9  0.98  516.5  795.8 108  30150  5594  0.469 0.062 20.93 20.6  0.4686 0.0623 20.93 20.6   516 103.939 13.820 15.25 0.004 
   2 wh625101490I  193430.6  0.98  558.8  859.8 116  33625  5631  0.339 0.060 21.29 20.8  0.4013 0.0432 21.10 20.8  1075 91.225  9.743 15.39 0.004 
    Sum (T+187794 to 193998):            1655.6       1274.8 (est. in src region)   SNR_unwtd_sum:   9.29 0.9987 signif. UL:  20.80
  0  1075 625099057  190996.7   3001.7  -3202.8    0.4013   0.0432 21.102  0.124  -0.111
Total wtd_rate (for all exposures so far): 91.225 +/- 9.669 snr:  9.4 mag: 15.39 UL: 14.91
Rebinned Data for sw00021035002uwh_sk.img using a zero point of 20.111:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.05e+03  190995.3   3003.1  -3201.4    0.4013   0.0432 21.10  0.11  190995.3    0.4013   0.0432 21.10  0.11 20.80
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00021035002uvv_sk.img ================
Use keyword TRIGTIME of 624908059.914 for trigger time.
Long-term sensitivity correction to zero point is -0.210 at 625096385
The processing date in extension 0 is:  2020-10-23T01:15:14
The trigger time is: 624908059.914. The reference is keyword in image file
Using zero point of 17.680 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(75.47026,77.06828,25")
fk5;-circle(75.47026,77.06828,12.5")
fk5;-circle(75.500097,77.069145,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 vv625096385I  188325.5  1.00  514.5  161.0 116   6657  5589  0.049 0.027 20.96 19.9  0.0486 0.0272 20.96 19.9   515 101.359 56.735 15.28 0.002 
   2 vv625102064I  194005.0  0.99  250.3   77.5 104   3299  5608  0.071 0.039 20.55 19.5  0.0559 0.0222 20.81 20.0   765 118.611 46.902 15.11 0.002 
    Sum (T+188326 to 194259):             238.5        199.3 (est. in src region)   SNR_unwtd_sum:   2.51 0.9987 signif. UL:  19.95
  0   765 625098462  190401.9   3857.4  -2076.4    0.0559   0.0222 20.810  0.551  -0.363
Total wtd_rate (for all exposures so far): 90.630 +/- 9.302 snr:  9.7 mag: 15.40 UL: 12.49
Rebinned Data for sw00021035002uvv_sk.img using a zero point of 17.680:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      761  190401.3   3858.0  -2075.8    0.0559   0.0222 20.81  0.36  190401.3    0.0559   0.0222 20.81  0.36 19.95
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021035002uuu_sk.img ================
Use keyword TRIGTIME of 624908059.914 for trigger time.
Long-term sensitivity correction to zero point is -0.185 at 625095323
The processing date in extension 0 is:  2020-10-23T01:15:14
The trigger time is: 624908059.914. The reference is keyword in image file
Using zero point of 18.155 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(75.47026,77.06828,25")
fk5;-circle(75.47026,77.06828,12.5")
fk5;-circle(75.470404,77.076816,6")
fk5;-circle(75.500083,77.069214,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 uu625095322I  187263.0  1.00  516.5  122.8 104   4968  5614  0.066 0.024 21.11 20.3  0.0658 0.0238 21.11 20.3   516 88.185 31.942 15.43 0.004 
   2 uu625100916I  192856.7  1.00  558.8  185.9 116   5613  5628  0.139 0.027 20.30 19.8  0.1037 0.0182 20.62 20.2  1075 136.433 24.395 14.95 0.004 
    Sum (T+187263 to 193424):             308.7        207.7 (est. in src region)   SNR_unwtd_sum:   5.71 0.9987 signif. UL:  20.16
  0  1075 625098503  190443.5   2981.0  -3180.5    0.1037   0.0182 20.616  0.208  -0.176
Total wtd_rate (for all exposures so far): 98.115 +/- 8.776 snr: 11.2 mag: 15.31 UL: 12.92
Rebinned Data for sw00021035002uuu_sk.img using a zero point of 18.155:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.07e+03  190442.7   2981.8  -3179.7    0.1037   0.0182 20.62  0.18  190442.7    0.1037   0.0182 20.62  0.18 20.16
The data range from T+187263.0 s (2.17 d) to T+194259.3 s (2.25 d)
Wrote uvot_fluxes_201023d01h25m45s457508usUT.qdp
Wrote uvot_fluxes_201023d01h25m45s457508usUT.gif
Wrote uvot_fluxes_201023d01h25m45s457508usUT.ps
Wrote uvot_fluxes_201023d01h25m45s457508usUT_vis.qdp
Wrote uvot_fluxes_201023d01h25m45s457508usUT_uv.qdp
Wrote uvot_fluxes_201023d01h25m45s457508usUT_vis.gif
Wrote uvot_fluxes_201023d01h25m45s457508usUT_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.00923  190879.9   3379.4  -3616.9    0.4808   0.0496 21.09  0.11  190879.9    0.4808   0.0496 21.09  0.11 20.79
The data range from T+187263.0 s (2.17 d) to T+194259.3 s (2.25 d)
Wrote uvot_fluxes_wtd_201023d01h25m45s457508usUT.qdp
Wrote uvot_fluxes_wtd_201023d01h25m45s457508usUT.gif
Wrote uvot_fluxes_wtd_201023d01h25m45s457508usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-10-20 fem