# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 161027d05h03m06s257009usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020709002 -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
# ========= GRB161023A ===================
Used archived opt source position of 311.02154 -47.66328 3.00
Reference: GCN_Circ_20107
The position is (20:44:05.17, -47:39:47.8)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(311.02154,-47.66328,3") # color=red dash=0
Region file centered at (311.02154,-47.66328), which is (20:44:05.17, -47:39:47.8)
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 -17.05128 from uncorrected trigger time of 498955120 in BAT summary file
# ============ Reading file sw00020709001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.213 at 498989967
The processing date in extension 0 is: 2016-10-24T22:38:07
The trigger time is: 498955137.05128. The reference is BAT GRB summary 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 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(311.02154,-47.66328,25")
fk5;-circle(311.02154,-47.66328,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 vv498989966I   34829.6  0.99  370.8  261.9 112   8670  5842  0.283 0.048 19.05 18.6  0.2831 0.0482 19.05 18.6   371 110.033 18.729 15.19 0.006 
   2 vv498994282I   39145.0  0.98  841.3  961.6 112  36945  5862  0.336 0.041 18.86 18.5  0.3197 0.0320 18.91 18.6  1212 128.159 13.018 15.02 0.003 
   3 vv499002321I   47184.4  0.99   79.5   48.2 116   1809  5847  0.170 0.097 19.60 18.5  0.3104 0.0306 18.95 18.7  1292 125.939 12.610 15.04 0.003 
   4 vv499007426I   52289.1  0.99   87.0   63.4 112   2050  5874  0.307 0.101 18.96 18.2  0.3102 0.0294 18.95 18.7  1379 128.476 12.333 15.02 0.003 
   5 vv499012412I   57275.8  0.99  224.0  144.9 112   5680  5845  0.177 0.059 19.56 18.8  0.2915 0.0266 19.02 18.8  1603 127.081 11.730 15.03 0.003 
    Sum (T+ 34830 to  57503):            1480.0       1056.0 (est. in src region)   SNR_unwtd_sum:  10.95 0.9987 signif. UL:  18.75
  0  1603 498997224   42086.6  15416.7  -7257.0    0.2915   0.0266 19.015  0.104  -0.095
Total wtd_rate (for all exposures so far): 127.081 +/-11.654 snr: 10.9 mag: 15.03 UL: 12.15
# ============ Reading file sw00020709002uvv_sk.img ================
Use keyword TRIGTIME of 498955136.883 for trigger time.
Long-term sensitivity correction to zero point is -0.213 at 499179625
The processing date in extension 0 is:  2016-10-27T04:51:52
The trigger time is: 498955136.883. 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
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  2  -17.5 310.83188 -47.62077 0.286 248.7
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(311.02154,-47.66328,25")
fk5;-circle(311.02154,-47.66328,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 vv499179624I  224488.1  0.99  230.1  117.6 116   5273  5893  0.066 0.052 20.63 19.3  0.0658 0.0521 20.63 19.3   230 164.156 129.962 14.75 0.001 
%  2 vv499184565I  229428.8  0.99  505.7  272.6 108  10793  5841 
   3 vv499190556I  235419.4  0.99   92.4   44.0 116   2246  5828 -0.008 0.080 99.00 19.2  0.0446 0.0436 21.05 19.6   322 116.861 110.398 15.12 0.001 
   4 vv499196556I  241420.0  0.99  328.5  172.3 112   7667  5834  0.084 0.044 20.37 19.3  0.0644 0.0310 20.66 19.7   651 168.735 80.796 14.72 0.001 
   5 vv499202523I  247386.8  0.99  269.5  131.7 116   6367  5883  0.025 0.047 21.68 19.6  0.0529 0.0259 20.87 19.9   920 142.239 68.587 14.91 0.001 
    Sum (T+224488 to 247661):             465.6        421.2 (est. in src region)   SNR_unwtd_sum:   2.04 0.9987 signif. UL:  19.88
  0   920 499193603  238465.6   9194.9 -13977.6    0.0529   0.0259 20.869  0.732  -0.434
Total wtd_rate (for all exposures so far): 127.413 +/-11.496 snr: 11.1 mag: 15.03 UL: 12.15
Rebinned Data for sw00020709002uvv_sk.img using a zero point of 17.677:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.2e+03   38172.4   1827.4  -3342.7    0.3197   0.0320 18.91  0.10   38172.4    0.3197   0.0320 18.91  0.10 18.63
  1      165   49946.6   2639.2  -2762.2    0.2415   0.0701 19.22  0.28   39600.7    0.3102   0.0294 18.95  0.10 18.68
  2      222   57389.5    113.8   -113.8    0.1768   0.0594 19.56  0.31   42096.1    0.2915   0.0266 19.02  0.09 18.75
  3      913  238465.7   9194.9 -13977.7    0.0529   0.0259 20.87  0.43  113945.6    0.2042   0.0194 19.40  0.10 19.13
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00020709001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.123 at 498990732
The processing date in extension 0 is:  2016-10-24T22:38:08
The trigger time is: 498955136.883. The reference is keyword in image file
Using zero point of 18.987 for filter B
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(311.02154,-47.66328,25")
fk5;-circle(311.02154,-47.66328,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 bb498990731I   35594.9  0.98  337.8  470.1 112  13975  5844  0.675 0.073 19.41 19.1  0.6752 0.0728 19.41 19.1   338 80.201  8.644 15.53 0.010 
   2 bb498996005I   40869.0  0.98  795.0  978.2 112  31342  5879  0.540 0.045 19.66 19.4  0.5801 0.0381 19.58 19.4  1133 76.138  4.990 15.59 0.010 
   3 bb499002493I   47357.0  0.98   58.5   82.0 116   2427  5840  0.649 0.175 19.46 18.8  0.5835 0.0372 19.57 19.4  1191 76.974  4.910 15.57 0.010 
   4 bb499008026I   52890.0  0.98   39.0   51.6 116   1588  5848  0.579 0.209 19.58 18.8  0.5833 0.0366 19.57 19.4  1230 77.402  4.867 15.57 0.010 
    Sum (T+ 35595 to  53156):            1581.8        944.7 (est. in src region)   SNR_unwtd_sum:  15.93 0.9987 signif. UL:  19.38
  0  1230 498995561   40424.1  12731.8  -4829.2    0.5833   0.0366 19.572  0.070  -0.066
Total wtd_rate (for all exposures so far): 84.146 +/- 4.478 snr: 18.8 mag: 15.48 UL: 14.01
# ============ Reading file sw00020709002ubb_sk.img ================
Use keyword TRIGTIME of 498955136.883 for trigger time.
Long-term sensitivity correction to zero point is -0.123 at 499180103
The processing date in extension 0 is:  2016-10-27T04:51:52
The trigger time is: 498955136.883. The reference is keyword in image file
Using zero point of 18.987 for filter B
Use aperture correction of  1.108 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  2  -15.7 310.83074 -47.62281 0.286 248.7
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(311.02154,-47.66328,25")
fk5;-circle(311.02154,-47.66328,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 bb499180103I  224966.4  0.99  214.2  202.0 120   8401  5889  0.161 0.075 20.97 20.0  0.1615 0.0751 20.97 20.0   214 120.697 56.160 15.09 0.002 
%  2 bb499185605I  230468.4  0.99  527.2  417.6 108  16580  5846 
   3 bb499190754I  235617.8  0.99   65.2   60.7 112   2616  5856  0.184 0.135 20.82 19.6  0.1667 0.0657 20.93 20.1   279 125.909 49.602 15.04 0.002 
   4 bb499197235I  242098.6  0.99  359.7  329.0 128  14142  5879  0.066 0.057 21.94 20.5  0.1099 0.0431 21.39 20.5   639 88.508 33.762 15.42 0.002 
   5 bb499203082I  247945.6  0.99  274.1  223.3 108  10865  5812  0.088 0.062 21.63 20.4  0.1032 0.0354 21.45 20.7   913 83.572 28.121 15.48 0.002 
    Sum (T+224966 to 248224):             815.0        731.0 (est. in src region)   SNR_unwtd_sum:   2.92 0.9987 signif. UL:  20.68
  0   913 499194650  239513.3   8710.8 -14546.9    0.1032   0.0354 21.453  0.456  -0.320
Total wtd_rate (for all exposures so far): 84.136 +/- 4.427 snr: 19.0 mag: 15.48 UL: 14.02
Rebinned Data for sw00020709002ubb_sk.img using a zero point of 18.987:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.11e+03   39632.7   2044.0  -4037.8    0.5801   0.0381 19.58  0.07   39632.7    0.5801   0.0381 19.58  0.07 19.38
  1     95.9   49640.7   3515.2  -2283.7    0.6215   0.1343 19.50  0.21   40425.8    0.5833   0.0366 19.57  0.07 19.38
  2      902  239516.9   8707.1 -14550.5    0.1032   0.0354 21.45  0.32  125436.9    0.3783   0.0259 20.04  0.07 19.84
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020709001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.133 at 498990350
The processing date in extension 0 is:  2016-10-24T22:38:07
The trigger time is: 498955136.883. The reference is keyword in image file
Using zero point of 18.207 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(311.02154,-47.66328,25")
fk5;-circle(311.02154,-47.66328,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 uu498990349I   35212.8  0.99  370.8  232.9 116   5805  5845  0.352 0.046 19.34 19.0  0.3516 0.0458 19.34 19.0   371 84.779 11.046 15.47 0.013 
   2 uu498995144I   40007.4  0.99  841.3  469.2 108  13649  5822  0.284 0.029 19.57 19.3  0.3049 0.0243 19.50 19.3  1212 80.616  6.426 15.52 0.012 
   3 uu499002408I   47271.7  0.99   79.5   31.4 116   1250  5868  0.094 0.079 20.78 19.4  0.2919 0.0233 19.54 19.3  1292 78.537  6.249 15.55 0.012 
   4 uu499007726I   52590.0  0.99  102.1   40.5 120   1583  5900  0.090 0.069 20.82 19.5  0.2771 0.0222 19.60 19.4  1394 76.671  6.081 15.58 0.012 
    Sum (T+ 35213 to  52887):             774.1        425.3 (est. in src region)   SNR_unwtd_sum:  12.47 0.9987 signif. UL:  19.37
  0  1394 498995526   40389.3  12497.5  -5176.5    0.2771   0.0222 19.601  0.090  -0.084
Total wtd_rate (for all exposures so far): 80.954 +/- 3.562 snr: 22.7 mag: 15.52 UL: 13.30
# ============ Reading file sw00020709002uuu_sk.img ================
Use keyword TRIGTIME of 498955136.883 for trigger time.
Long-term sensitivity correction to zero point is -0.133 at 499179865
The processing date in extension 0 is:  2016-10-27T04:51:52
The trigger time is: 498955136.883. The reference is keyword in image file
Using zero point of 18.207 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  2  -18.3 310.83182 -47.62279 0.286 248.7
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(311.02154,-47.66328,25")
fk5;-circle(311.02154,-47.66328,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 uu499179864I  224727.8  0.99  230.1   89.2 112   3526  5839  0.103 0.046 20.67 19.8  0.1035 0.0457 20.67 19.8   230 158.507 70.006 14.79 0.002 
%  2 uu499185085I  229949.0  1.00  505.7  145.3 112   7413  5837 
   3 uu499190656I  235519.3  0.99   92.3   38.5 120   1610  5875  0.067 0.075 21.14 19.5  0.0930 0.0391 20.79 19.9   322 146.693 60.584 14.87 0.002 
   4 uu499196896I  241759.8  0.99  328.5  142.0 112   5184  5820  0.142 0.040 20.32 19.7  0.1179 0.0281 20.53 19.9   651 188.686 44.863 14.60 0.002 
   5 uu499202803I  247666.5  0.99  269.5   77.9 112   4209  5832 -0.012 0.037 99.00 20.6  0.0798 0.0226 20.95 20.3   920 131.184 36.687 14.99 0.002 
    Sum (T+224728 to 247940):             347.5        281.1 (est. in src region)   SNR_unwtd_sum:   3.54 0.9987 signif. UL:  20.28
  0   920 499193876  238738.8   9201.5 -14011.0    0.0798   0.0226 20.952  0.361  -0.271
Total wtd_rate (for all exposures so far): 81.299 +/- 3.546 snr: 22.9 mag: 15.52 UL: 13.30
Rebinned Data for sw00020709002uuu_sk.img using a zero point of 18.207:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.2e+03   38895.3   1966.9  -3682.5    0.3049   0.0243 19.50  0.08   38895.3    0.3049   0.0243 19.50  0.08 19.26
  1      181   50364.2   2522.5  -3092.6    0.0915   0.0521 20.80  0.49   40391.1    0.2771   0.0222 19.60  0.08 19.37
  2      915  238740.1   9200.1 -14012.4    0.0798   0.0226 20.95  0.27  119337.0    0.1985   0.0161 19.96  0.09 19.73
The data range from T+34829.6 s (0.40 d) to T+248224.0 s (2.87 d)
Wrote uvot_fluxes_161027d05h03m06s257009usUT.qdp
Wrote uvot_fluxes_161027d05h03m06s257009usUT.gif
Wrote uvot_fluxes_161027d05h03m06s257009usUT.ps
Wrote uvot_fluxes_161027d05h03m06s257009usUT_vis.qdp
Wrote uvot_fluxes_161027d05h03m06s257009usUT_uv.qdp
Wrote uvot_fluxes_161027d05h03m06s257009usUT_vis.gif
Wrote uvot_fluxes_161027d05h03m06s257009usUT_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.00549   35651.4    286.7   -821.8    2.3169   0.1921 19.38  0.09   35651.4    2.3169   0.1921 19.38  0.09 19.14
  1 0.000278   39572.4    427.4   -427.4    3.7280   0.4553 18.86  0.12   35840.1    2.3918   0.1835 19.34  0.08 19.12
  2   0.0111   41456.1   5960.4  -1448.7    1.8101   0.1178 19.65  0.07   39535.0    1.9905   0.0992 19.54  0.05 19.39
  3  2.6e-05   52437.4    148.3   -148.3    3.4023   1.1217 18.96  0.31   39554.9    1.9934   0.0990 19.54  0.05 19.39
  4 0.000522   53420.9   4082.4   -830.9    1.3438   0.3719 19.97  0.27   39970.5    1.9674   0.0962 19.55  0.05 19.41
  5 0.000513  239123.4   9100.6 -14635.3    0.3820   0.0941 21.34  0.24   45665.0    1.7300   0.0830 19.70  0.05 19.55
The data range from T+34829.6 s (0.40 d) to T+248224.0 s (2.87 d)
Wrote uvot_fluxes_wtd_161027d05h03m06s257009usUT.qdp
Wrote uvot_fluxes_wtd_161027d05h03m06s257009usUT.gif
Wrote uvot_fluxes_wtd_161027d05h03m06s257009usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem