# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180420d09h39m05s252510usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00824063001 -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
# ========= GRB180410A ===================
Could not find/read custom source region custom_824063_src.reg
Used archived XRT position of 95.95717 12.81142 4.00
Reference: GCN_Circulars-22622-Tue,_10_Apr_2018_07:09:44_-0400
The position is (06:23:49.72, +12:48:41.1)
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(95.95717,12.81142,4") # color=red dash=0
Source region spec. is: 95.95717 12.81142 4"
Region file centered at (95.95717,12.81142), which is (06:23:49.72, +12:48:41.1)
Could not find/read custom background region custom_824063_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.7624 from uncorrected trigger time of 545040179.23 in BAT summary file
# ============ Reading file sw00824063001uvv_sk.img ================
Use keyword TRIGTIME of 545040200 for trigger time.
Long-term sensitivity correction to zero point is -0.243 at 545045766
The processing date in extension 0 is: 2018-04-20T09:08:54
The trigger time is: 545040200. The reference is keyword in image file
Using zero point of 17.647 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(95.95717,12.81142,25")
fk5;-circle(95.95717,12.81142,12.5")
fk5;-circle(95.960362,12.816852,6")
fk5;-circle(95.956119,12.815865,6")
fk5;-circle(95.964644,12.807799,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 vv545045765I    5565.9  0.97  196.6  504.0 196  11827  5097  0.264 0.123 19.09 18.1  0.2641 0.1227 19.09 18.1   197 17.071  7.932 17.21 0.007 
    Sum (T+  5566 to   5766):             504.0        454.8 (est. in src region)   SNR_unwtd_sum:   2.15 0.9987 signif. UL:  18.14
  0   197 545045866    5665.8     99.9    -99.9    0.2641   0.1227 19.093  0.678  -0.415
Total wtd_rate (for all exposures so far): 17.071 +/- 7.798 snr:  2.2 mag: 17.21 UL: 13.63
Rebinned Data for sw00824063001uvv_sk.img using a zero point of 17.647:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      192    5665.8     99.9    -99.9    0.2641   0.1227 19.09  0.41    5665.8    0.2641   0.1227 19.09  0.41 18.14
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00824063001ubb_sk.img ================
Use keyword TRIGTIME of 545040200 for trigger time.
Long-term sensitivity correction to zero point is -0.140 at 545052145
The processing date in extension 0 is:  2018-04-20T09:08:55
The trigger time is: 545040200. The reference is keyword in image file
Using zero point of 18.970 for filter B
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(95.95717,12.81142,25")
fk5;-circle(95.95717,12.81142,12.5")
fk5;-circle(95.960379,12.816791,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 bb545052145I   11945.1  0.97   35.2  109.4 196   2486  5532  0.644 0.321 19.45 18.5  0.6438 0.3210 19.45 18.5    35 25.965 12.946 16.75 0.010 
    Sum (T+ 11945 to  11981):             109.4         88.1 (est. in src region)   SNR_unwtd_sum:   2.01 0.9987 signif. UL:  18.45
  0    35 545052163   11963.0     17.9    -17.9    0.6438   0.3210 19.449  0.749  -0.440
Total wtd_rate (for all exposures so far): 19.766 +/- 6.686 snr:  3.0 mag: 17.05 UL: 14.97
Rebinned Data for sw00824063001ubb_sk.img using a zero point of 18.970:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     34.2   11963.0     17.9    -17.9    0.6438   0.3210 19.45  0.44   11963.0    0.6438   0.3210 19.45  0.44 18.45
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00824063001uuu_sk.img ================
Use keyword TRIGTIME of 545040200 for trigger time.
Long-term sensitivity correction to zero point is -0.151 at 545048022
The processing date in extension 0 is:  2018-04-20T09:08:54
The trigger time is: 545040200. The reference is keyword in image file
Using zero point of 18.189 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(95.95717,12.81142,25")
fk5;-circle(95.95717,12.81142,12.5")
fk5;-circle(95.960428,12.816796,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 uu545048021I    7821.5  0.99   12.2   11.1 204    349  5493 -0.160 0.290 99.00 18.4 -0.1601 0.2896 99.00 18.4    12 -8.678 15.697 99.00 0.017 
   2 uu545051232I   11032.2  0.97  295.0  811.6 204  20161  5517  0.237 0.104 19.75 18.8  0.2211 0.1004 19.83 18.9   307 13.704  7.187 17.45 0.005 
   3 uu545051535I   11336.0  0.98  295.0  491.6 196  14376  5530 -0.064 0.080 99.00 19.9  0.0810 0.0645 20.92 19.6   602  3.590  4.778 18.90 0.006 
   4 uu545051839I   11639.6  0.99  295.0  396.5 208  10743  5540 -0.024 0.072 99.00 19.9  0.0461 0.0493 21.53 20.0   897  1.388  3.704 19.93 0.007 
   5 uu545085625I   45425.3  0.97  212.2  558.2 196  16435  5530 -0.122 0.120 99.00 19.5  0.0143 0.0460 22.80 20.2  1110  1.026  3.687 20.26 0.005 
    Sum (T+  7822 to  45641):            2269.0       2253.9 (est. in src region)   SNR_unwtd_sum:   0.31 0.9987 signif. UL:  20.18
  0  1110 545058158   17958.1  27682.8 -10136.6    0.0143   0.0460 22.802 76.198  -1.563
Total wtd_rate (for all exposures so far):  5.768 +/- 3.188 snr:  1.8 mag: 18.39 UL: 15.22
Rebinned Data for sw00824063001uuu_sk.img using a zero point of 18.189:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      300   11046.4    285.5  -3224.9    0.2211   0.1004 19.83  0.41   11046.4    0.2211   0.1004 19.83  0.41 18.89
  1      581   11638.0    301.4   -302.0   -0.0441   0.0539 99.00 99.00   11436.8    0.0461   0.0493 21.53  0.79 19.95
  2      207   45533.2    107.8   -107.8   -0.1216   0.1202 99.00 99.00   17911.6    0.0143   0.0460 22.80  1.56 20.18
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00824063001uw1_sk.img ================
Use keyword TRIGTIME of 545040200 for trigger time.
Long-term sensitivity correction to zero point is -0.347 at 545047817
The processing date in extension 0 is:  2018-04-20T09:08:54
The trigger time is: 545040200. The reference is keyword in image file
Using zero point of 17.093 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.00
Using background region based on sources found in extension 7:
# 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(95.95717,12.81142,25")
fk5;-circle(95.95717,12.81142,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 w1545047816I    7616.6  1.00  196.6   26.6 204   1125  5842 -0.067 0.028 99.00 20.3 -0.0669 0.0279 99.00 20.3   197 -9.810  4.088 99.00 0.034 
   2 w1545057884I   17684.2  1.00  174.0   33.3 204   1003  5832 -0.011 0.035 99.00 19.5 -0.0406 0.0221 99.00 20.4   371 -8.943  3.888 99.00 0.025 
High bkg:   3 w1545062701I   97.9    879  5832  1.539  0.052
   3 w1545062701I   22501.5  1.00   97.9   33.8 204    879  5834  0.033 0.063 20.80 18.7 -0.0253 0.0218 99.00 20.3   468 -8.236  3.858 99.00 0.020 
High bkg:   4 w1545068434I  124.8   1363  5880  1.858  0.050
   4 w1545068434I   28234.1  1.00  124.8   41.7 196   1363  5877 -0.032 0.055 99.00 19.1 -0.0266 0.0207 99.00 20.4   593 -8.421  3.827 99.00 0.015 
   5 w1545070554I   30354.0  1.00  429.9   86.9 204   2343  5833  0.012 0.023 21.89 19.8 -0.0104 0.0154 99.00 20.5  1023 -6.785  3.700 99.00 0.013 
High bkg:   6 w1545074216I  279.6   2581  5876  1.571  0.031
   6 w1545074216I   34016.9  1.00  279.6   89.7 196   2581  5876  0.013 0.036 21.79 19.3 -0.0053 0.0143 99.00 20.5  1303 -6.276  3.659 99.00 0.011 
High bkg:   7 w1545079921I  511.0   5083  5872  1.694  0.024
   7 w1545079921I   39721.7  1.00  511.0  189.4 200   5083  5872  0.033 0.028 20.79 19.4  0.0055 0.0130 22.74 20.4  1814 -5.064  3.615 99.00 0.008 
    Sum (T+  7617 to  40241):             501.4        491.7 (est. in src region)   SNR_unwtd_sum:   0.42 0.9987 signif. UL:  20.43
  0  1814 545069681   29480.9  10760.0 -21864.3    0.0055   0.0130 22.740 76.260  -1.317
Total wtd_rate (for all exposures so far):  1.623 +/- 2.393 snr:  0.7 mag: 19.76 UL: 14.70
Rebinned Data for sw00824063001uw1_sk.img using a zero point of 17.093:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    7716.5     99.9    -99.9   -0.0669   0.0279 99.00 99.00    7716.5   -0.0669   0.0279 99.00 99.00 20.31
  1  1.1e+03   28498.3   5802.7 -10814.1    0.0056   0.0161 22.71  1.46   25358.9   -0.0053   0.0143 99.00 99.00 20.53
  2      509   39981.3    259.6   -259.6    0.0331   0.0284 20.79  0.67   29475.3    0.0055   0.0130 22.74  1.32 20.43
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00824063001um2_sk.img ================
Use keyword TRIGTIME of 545040200 for trigger time.
Long-term sensitivity correction to zero point is -0.333 at 545045971
The processing date in extension 0 is:  2018-04-20T09:08:54
The trigger time is: 545040200. The reference is keyword in image file
Using zero point of 16.517 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.00
Using background region based on sources found in extension 4:
# 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(95.95717,12.81142,25")
fk5;-circle(95.95717,12.81142,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 m2545045970I    5770.9  1.00   88.6    6.0 196    152  5868  0.010 0.029 21.46 19.0  0.0105 0.0288 21.46 19.0    89  1.970  5.419 19.55 0.093 
   2 m2545047610I    7411.0  1.00  196.6    8.6 196    295  5872 -0.007 0.016 99.00 19.9 -0.0014 0.0140 99.00 19.9   285 -0.205  3.141 99.00 0.086 
   3 m2545053437I   13237.0  1.00  330.7   14.9 204    539  5832 -0.012 0.012 99.00 20.3 -0.0073 0.0093 99.00 20.5   616 -1.335  2.717 99.00 0.061 
   4 m2545056977I   16777.3  1.00  885.6   49.1 196   1527  5872 -0.002 0.008 99.00 20.5 -0.0043 0.0062 99.00 20.9  1502 -1.301  2.342 99.00 0.043 
    Sum (T+  5771 to  17677):              78.5         84.7 (est. in src region)   SNR_unwtd_sum:  -0.69 0.9987 signif. UL:  20.95
  0  1502 545054639   14439.4   3237.7  -8668.4   -0.0043   0.0062 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.098 +/- 1.656 snr:  0.1 mag: 22.82 UL: 14.69
Rebinned Data for sw00824063001um2_sk.img using a zero point of 16.517:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      285    6984.3    626.5  -1213.4   -0.0014   0.0140 99.00 99.00    6984.3   -0.0014   0.0140 99.00 99.00 19.91
  1 1.22e+03   16187.8   1489.3  -2950.8   -0.0049   0.0069 99.00 99.00   14439.2   -0.0043   0.0062 99.00 99.00 20.95
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00824063001uw2_sk.img ================
Use keyword TRIGTIME of 545040200 for trigger time.
Long-term sensitivity correction to zero point is -0.422 at 545045560
The processing date in extension 0 is:  2018-04-20T09:08:54
The trigger time is: 545040200. The reference is keyword in image file
Using zero point of 16.958 for filter UVW2
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(95.95717,12.81142,25")
fk5;-circle(95.95717,12.81142,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
High bkg:   1 w2545045560I  196.6    933  5840  0.813  0.027
   1 w2545045560I    5360.5  1.00  196.6   33.4 204    933  5841  0.004 0.031 22.94 19.4  0.0040 0.0310 22.94 19.4   197  0.476  3.640 21.10 0.051 
    Sum (T+  5360 to   5560):              33.4         32.6 (est. in src region)   SNR_unwtd_sum:   0.13 0.9987 signif. UL:  19.43
  0   197 545045660    5460.4     99.9    -99.9    0.0040   0.0310 22.940 76.060  -2.343
Total wtd_rate (for all exposures so far):  0.170 +/- 1.508 snr:  0.1 mag: 22.22 UL: 15.21
Rebinned Data for sw00824063001uw2_sk.img using a zero point of 16.958:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5460.4     99.9    -99.9    0.0040   0.0310 22.94  2.34    5460.4    0.0040   0.0310 22.94  2.34 19.43
The data range from T+5360.5 s (0.06 d) to T+45641.0 s (0.53 d)
Wrote uvot_fluxes_180420d09h39m05s252510usUT.qdp
Wrote uvot_fluxes_180420d09h39m05s252510usUT.gif
Wrote uvot_fluxes_180420d09h39m05s252510usUT.ps
Wrote uvot_fluxes_180420d09h39m05s252510usUT_vis.qdp
Wrote uvot_fluxes_180420d09h39m05s252510usUT_uv.qdp
Wrote uvot_fluxes_180420d09h39m05s252510usUT_vis.gif
Wrote uvot_fluxes_180420d09h39m05s252510usUT_vis.ps
Wrote uvot_fluxes_180420d09h39m05s252510usUT_uv.gif
Wrote uvot_fluxes_180420d09h39m05s252510usUT_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  0.00198    6306.1   1527.9   -740.1    1.4978   1.1521 19.85  0.62    6306.1    1.4978   1.1521 19.85  0.62 18.54
  1   0.0117   11608.6    372.3   -576.5    0.4446   0.3252 21.17  0.60   10843.6    0.5330   0.3132 20.97  0.50 19.86
  2 0.000101   45533.2    107.8   -107.8   -0.8423   0.8321 99.00 99.00   11096.2    0.4919   0.3049 21.06  0.52 19.91
The data range from T+5360.5 s (0.06 d) to T+45641.0 s (0.53 d)
Wrote uvot_fluxes_wtd_180420d09h39m05s252510usUT.qdp
Wrote uvot_fluxes_wtd_180420d09h39m05s252510usUT.gif
Wrote uvot_fluxes_wtd_180420d09h39m05s252510usUT.ps
Found 5 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem