# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180212d17h41m36s002527usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020788001 -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/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB180210A ===================
Could not find/read custom source region custom_020788_src.reg
Used archived XRT position of 1.84175 18.55275 4.00
Reference: GCN_Circulars-22413-Mon,_12_Feb_2018_09:46:04_-0500
The position is (00:07:22.02, +18:33:09.9)
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(1.84175,18.55275,4") # color=red dash=0
Source region spec. is: 1.84175 18.55275 4"
Region file centered at (1.84175,18.55275), which is (00:07:22.02, +18:33:09.9)
Could not find/read custom background region custom_020788_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 -20.44766 from uncorrected trigger time of 539958278.55 in BAT summary file
# ============ Reading file sw00020788001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.188 at 540070278
The processing date in extension 0 is: 2018-02-12T17:29:52
The trigger time is: 539958298.99766. The reference is BAT GRB summary file
Using zero point of 20.102 for filter WHITE
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(1.84175,18.55275,25")
fk5;-circle(1.84175,18.55275,12.5")
fk5;-circle(1.850316,18.551463,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 wh540070277I  111978.5  0.92  331.2 2738.0 208  77614  5850 -0.074 0.180 99.00 20.8 -0.0736 0.1799 99.00 20.8   331 -9.821 24.019 99.00 0.001 
   2 wh540075321I  117022.4  0.92  509.1 4240.2 204 117931  5793  0.192 0.146 21.89 20.6  0.0874 0.1132 22.75 21.0   840 11.762 15.531 17.61 0.001 
   3 wh540081350I  123052.0  0.93  360.2 2686.1 188  83734  5798 -0.090 0.163 99.00 20.9  0.0341 0.0932 23.77 21.3  1200  4.501 13.036 18.66 0.001 
    Sum (T+111979 to 123602):            9664.3       9627.7 (est. in src region)   SNR_unwtd_sum:   0.37 0.9987 signif. UL:  21.32
  0  1200 540076066  117767.4   5834.6  -5788.9    0.0341   0.0932 23.769 75.231  -1.430
Total wtd_rate (for all exposures so far):  4.501 +/-12.817 snr:  0.4 mag: 18.66 UL: 15.97
Rebinned Data for sw00020788001uwh_sk.img using a zero point of 20.102:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.11e+03  117769.6   5832.4  -5791.1    0.0341   0.0932 23.77  1.43  117769.6    0.0341   0.0932 23.77  1.43 21.32
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020788001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.240 at 540070779
The processing date in extension 0 is:  2018-02-12T17:29:52
The trigger time is: 539958298.99766. The reference is BAT GRB summary file
Using zero point of 17.650 for filter V
Use aperture correction of  1.030 based on aperture of  4.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(1.84175,18.55275,25")
fk5;-circle(1.84175,18.55275,12.5")
fk5;-circle(1.850396,18.551509,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 vv540070778I  112479.7  0.98  487.0  947.4 192  30010  5780 -0.107 0.068 99.00 19.7 -0.1068 0.0675 99.00 19.7   487 -136.898 86.571 99.00 0.000 
   2 vv540071277I  112978.1  0.98   18.6   26.5 196   1164  5789 -0.725 0.297 99.00 18.3 -0.1296 0.0659 99.00 19.8   506 -165.232 84.586 99.00 0.000 
   3 vv540076162I  117863.3  0.98  510.4 1028.9 200  31193  5859 -0.074 0.067 99.00 19.6 -0.1016 0.0471 99.00 20.2  1016 -133.991 61.724 99.00 0.000 
    Sum (T+112480 to 118382):            2002.9       2101.2 (est. in src region)   SNR_unwtd_sum:  -2.16 0.9987 signif. UL:  20.24
  0  1016 540073741  115442.4   2939.5  -2962.6   -0.1016   0.0471 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -1.101 +/-12.486 snr: -0.1 mag: 99.00 UL: 13.66
Rebinned Data for sw00020788001uvv_sk.img using a zero point of 17.650:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      996  115441.6   2940.2  -2961.9   -0.1016   0.0471 99.00 99.00  115441.6   -0.1016   0.0471 99.00 99.00 20.24
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020788001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.149 at 540069777
The processing date in extension 0 is:  2018-02-12T17:29:52
The trigger time is: 539958298.99766. The reference is BAT GRB summary file
Using zero point of 18.191 for filter U
Use aperture correction of  1.032 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(1.84175,18.55275,25")
fk5;-circle(1.84175,18.55275,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 uu540069776I  111477.6  0.99  487.0  691.0 200  19901  5856  0.024 0.057 22.23 19.9  0.0242 0.0574 22.23 19.9   487 18.695 44.320 17.11 0.001 
   2 uu540074479I  116180.5  0.98  820.6 1764.1 200  50015  5863  0.075 0.055 21.01 19.7  0.0557 0.0405 21.33 20.1  1308 39.627 31.283 16.30 0.001 
   3 uu540080652I  122353.8  0.99  680.9  993.7 200  29405  5848 -0.018 0.049 99.00 20.3  0.0303 0.0315 21.99 20.4  1988 20.235 25.046 17.02 0.001 
    Sum (T+111478 to 123046):            3448.8       3391.4 (est. in src region)   SNR_unwtd_sum:   0.96 0.9987 signif. UL:  20.43
  0  1988 540075793  117493.6   5552.0  -6016.0    0.0303   0.0315 21.989 77.011  -0.775
Total wtd_rate (for all exposures so far):  3.309 +/-11.154 snr:  0.3 mag: 18.99 UL: 14.23
Rebinned Data for sw00020788001uuu_sk.img using a zero point of 18.191:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.96e+03  117495.6   5550.0  -6018.0    0.0303   0.0315 21.99  0.78  117495.6    0.0303   0.0315 21.99  0.78 20.43
The data range from T+111477.6 s (1.29 d) to T+123602.0 s (1.43 d)
Wrote uvot_fluxes_180212d17h41m36s002527usUT.qdp
Wrote uvot_fluxes_180212d17h41m36s002527usUT.gif
Wrote uvot_fluxes_180212d17h41m36s002527usUT.ps
Wrote uvot_fluxes_180212d17h41m36s002527usUT_vis.qdp
Wrote uvot_fluxes_180212d17h41m36s002527usUT_uv.qdp
Wrote uvot_fluxes_180212d17h41m36s002527usUT_vis.gif
Wrote uvot_fluxes_180212d17h41m36s002527usUT_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.0052  117615.3   5986.7  -6137.7    0.0362   0.1059 23.89  1.48  117615.3    0.0362   0.1059 23.89  1.48 21.37
The data range from T+111477.6 s (1.29 d) to T+123602.0 s (1.43 d)
Wrote uvot_fluxes_wtd_180212d17h41m36s002527usUT.qdp
Wrote uvot_fluxes_wtd_180212d17h41m36s002527usUT.gif
Wrote uvot_fluxes_wtd_180212d17h41m36s002527usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem