# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200217d00h00m48s437954usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00956824992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB200216B ===================
Could not find/read custom source region custom_956824_src.reg
Used archived XRT position of 160.43467 19.47517 4.00
Reference: GCN_Circulars-27106-Sun,_16_Feb_2020_14:51:40_-0500
The position is (10:41:44.32, +19:28:30.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(160.43467,19.47517,4") # color=red dash=0
Source region spec. is: 160.43467 19.47517 4"
Region file centered at (160.43467,19.47517), which is (10:41:44.32, +19:28:30.6)
Could not find/read custom background region custom_956824_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 -24.39248 from uncorrected trigger time of 603552753.85 in BAT summary file
# ============ Reading file sw00956824992uwh_sk.img ================
Use keyword TRIGTIME of 603552778.304 for trigger time.
Long-term sensitivity correction to zero point is -0.221 at 603552903
The processing date in extension 0 is: 2020-02-16T23:44:55
The trigger time is: 603552778.304. The reference is keyword in image file
Using zero point of 20.069 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.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(160.43467,19.47517,25")
fk5;-circle(160.43467,19.47517,12.5")
fk5;-circle(160.442242,19.476802,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 wh603552902I     124.5  0.97  147.4  512.1 201  15052  5693 -0.141 0.167 99.00 21.0 -0.1409 0.1674 99.00 21.0   147 -0.034  0.041 99.00 1.096 
   2 wh603552902E     126.3  0.97  145.7  515.5 200  14897  5689 -0.060 0.170 99.00 20.8 
#  3 wh603553394E     616.0  0.97   17.5   55.1 199   1706  5691 
#  4 wh603553566E     788.2  0.97   19.4   78.3 199   2019  5691 
   5 wh603553643I     865.7  0.97  147.4  519.0 201  14983  5680 -0.081 0.168 99.00 20.9 -0.1110 0.1187 99.00 21.4   295 -0.037  0.040 99.00 0.665 
#  6 wh603553946E    1168.5  0.97   19.4   68.2 199   1981  5695 
#  7 wh603554121E    1342.8  0.97   19.5   71.8 199   2032  5692 
   8 wh603554293E    1515.3  0.97   19.4   72.0 200   2091  5680 -0.090 0.475 99.00 19.7 -0.1097 0.1152 99.00 21.4   314 -0.037  0.040 99.00 0.631 
#  9 wh603554466E    1688.3  0.96    8.5   36.2 199   1118  5687 
    Sum (T+   125 to   1535):            1103.0       1135.3 (est. in src region)   SNR_unwtd_sum:  -0.95 0.9987 signif. UL:  21.39
  0   314 603553407     629.1    906.0   -504.5   -0.1097   0.1152 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.037 +/- 0.039 snr: -0.9 mag: 99.00 UL: 22.56
Rebinned Data for sw00956824992uwh_sk.img using a zero point of 20.069:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      142     199.4     74.9    -74.9   -0.1409   0.1674 99.00 99.00     199.4   -0.1409   0.1674 99.00 99.00 20.96
  1      161    1008.7    526.4   -143.0   -0.0822   0.1587 99.00 99.00     629.3   -0.1097   0.1152 99.00 99.00 21.39
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00956824992uvv_sk.img ================
Use keyword TRIGTIME of 603552778.304 for trigger time.
Long-term sensitivity correction to zero point is -0.282 at 603552881
The processing date in extension 0 is:  2020-02-16T23:44:40
The trigger time is: 603552778.304. The reference is keyword in image file
Using zero point of 17.608 for filter V
Use aperture correction of  1.030 based on aperture of  4.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(160.43467,19.47517,25")
fk5;-circle(160.43467,19.47517,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 vv603552881E     102.8  0.99   12.0    9.9 198    265  5840  0.080 0.276 20.34 17.7 
#  2 vv603553443E     665.6  0.99   19.5   18.0 199    465  5851 
#  3 vv603553616E     838.4  0.99   19.5   13.6 199    437  5834 
#  4 vv603553824E    1045.7  0.99   19.5   18.2 199    460  5844 
#  5 vv603553997E    1219.0  0.99   19.5   19.0 199    492  5843 
#  6 vv603554170E    1392.4  0.99   19.4   15.9 199    495  5849 
#  7 vv603554343E    1565.0  0.99   19.5   13.2 199    488  5840 
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00956824992ubb_sk.img ================
Use keyword TRIGTIME of 603552778.304 for trigger time.
Long-term sensitivity correction to zero point is -0.161 at 603553370
The processing date in extension 0 is:  2020-02-16T23:44:47
The trigger time is: 603552778.304. The reference is keyword in image file
Using zero point of 18.949 for filter B
Use aperture correction of  1.035 based on aperture of  4.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00956824992uuu_sk.img ================
Use keyword TRIGTIME of 603552778.304 for trigger time.
Long-term sensitivity correction to zero point is -0.174 at 603553115
The processing date in extension 0 is:  2020-02-16T23:44:56
The trigger time is: 603552778.304. The reference is keyword in image file
Using zero point of 18.166 for filter U
Use aperture correction of  1.032 based on aperture of  4.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00956824992uw1_sk.img ================
Use keyword TRIGTIME of 603552778.304 for trigger time.
Long-term sensitivity correction to zero point is -0.486 at 603553493
The processing date in extension 0 is:  2020-02-16T23:44:49
The trigger time is: 603552778.304. The reference is keyword in image file
Using zero point of 16.954 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.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(160.43467,19.47517,25")
fk5;-circle(160.43467,19.47517,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 w1603553492E     714.5  1.00   19.4    2.0 199     51  5845  0.014 0.077 21.59 18.4  0.0140 0.0768 21.59 18.4    19  0.218  1.202 21.94 0.708 
   2 w1603553873E    1095.0  1.00   19.5    1.0 200     52  5840 -0.041 0.055 99.00 19.0 -0.0136 0.0472 99.00 19.1    39 -0.140  0.929 99.00 0.583 
#  3 w1603554047E    1269.3  1.00   19.5    2.3 199     49  5844 
   4 w1603554219E    1441.6  1.00   19.4    2.0 200     67  5847 -0.015 0.077 99.00 18.5 -0.0141 0.0406 99.00 19.3    58 -0.179  0.867 99.00 0.460 
   5 w1603554393E    1615.1  1.00   19.4    1.0 200     66  5842 -0.068 0.055 99.00 19.1 -0.0274 0.0334 99.00 19.6    78 -0.369  0.810 99.00 0.399 
    Sum (T+   714 to   1635):               6.0          8.1 (est. in src region)   SNR_unwtd_sum:  -0.82 0.9987 signif. UL:  19.59
  0    78 603554005    1226.7    408.2   -512.2   -0.0274   0.0334 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.038 +/- 0.039 snr: -1.0 mag: 99.00 UL: 19.45
Rebinned Data for sw00956824992uw1_sk.img using a zero point of 16.954:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.8     914.9    199.8   -200.4   -0.0136   0.0472 99.00 99.00     914.9   -0.0136   0.0472 99.00 99.00 19.08
  1     38.8    1538.2     96.6    -96.7   -0.0413   0.0474 99.00 99.00    1226.6   -0.0274   0.0334 99.00 99.00 19.59
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00956824992um2_sk.img ================
Use keyword TRIGTIME of 603552778.304 for trigger time.
Long-term sensitivity correction to zero point is -0.451 at 603553468
The processing date in extension 0 is:  2020-02-16T23:44:49
The trigger time is: 603552778.304. The reference is keyword in image file
Using zero point of 16.399 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00956824992uw2_sk.img ================
Use keyword TRIGTIME of 603552778.304 for trigger time.
Long-term sensitivity correction to zero point is -0.596 at 603553420
The processing date in extension 0 is:  2020-02-16T23:44:48
The trigger time is: 603552778.304. The reference is keyword in image file
Using zero point of 16.784 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw00956824992ugu_sk.img ================
Use keyword TRIGTIME of 603552778.304 for trigger time.
The data range from T+124.5 s (0.00 d) to T+1634.9 s (0.02 d)
Wrote uvot_fluxes_200217d00h00m48s437954usUT.qdp
Wrote uvot_fluxes_200217d00h00m48s437954usUT.gif
Wrote uvot_fluxes_200217d00h00m48s437954usUT.ps
Wrote uvot_fluxes_200217d00h00m48s437954usUT_vis.qdp
Wrote uvot_fluxes_200217d00h00m48s437954usUT_uv.qdp
Wrote uvot_fluxes_200217d00h00m48s437954usUT_vis.gif
Wrote uvot_fluxes_200217d00h00m48s437954usUT_vis.ps
Wrote uvot_fluxes_200217d00h00m48s437954usUT_uv.gif
Wrote uvot_fluxes_200217d00h00m48s437954usUT_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      487     199.4     74.9    -74.9   -0.1727   0.2052 99.00 99.00     199.4   -0.1727   0.2052 99.00 99.00 20.96
  1     22.7     967.2    567.9   -101.5   -0.1002   0.1960 99.00 99.00     233.6   -0.1593   0.1712 99.00 99.00 21.18
The data range from T+124.5 s (0.00 d) to T+1634.9 s (0.02 d)
Wrote uvot_fluxes_wtd_200217d00h00m48s437954usUT.qdp
Wrote uvot_fluxes_wtd_200217d00h00m48s437954usUT.gif
Wrote uvot_fluxes_wtd_200217d00h00m48s437954usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem