# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140726d11h42m46s577555usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020390001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -search_src_reg -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB140716A ===================
Used archived opt source position of 108.17167 -60.17647 3.00
Reference: GCN_Circulars-16601-Thu,_17_Jul_2014_08:21:59_-0400_(EDT)
The position is (07:12:41.20, -60:10:35.3)
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(108.17167,-60.17647,3") # color=red dash=0
Region file centered at (108.17167,-60.17647), which is (07:12:41.20, -60:10:35.3)
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 -12.26942 from trigger time of 427199277.3 in BAT summary file
# ============ Reading file sw00020390001uvv_sk.img ================
Use keyword TRIGTIME of 427199289.476 for trigger time.
Long-term sensitivity correction is 0.143 at 427238913
The processing date in extension 0 is: 2014-07-26T11:21:05
The trigger time is: 427199289.476. The reference is keyword in image file
Using zero point of 18.033 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
  4    6.6 108.50046 -60.12455 0.286   7.5
Using background region based on sources found in extension 9:
# 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(108.17167,-60.17647,25")
fk5;-circle(108.17167,-60.17647,12.5")
fk5;-circle(108.159089,-60.172939,6")
fk5;-circle(108.163861,-60.170986,6")
fk5;-circle(108.174529,-60.172530,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
Low  bkg:   1 vv427238913I   27.3      0  5060  0.000  0.007
#  1 vv427238913I   39623.8  1.00   27.3    0.0 116      0  5060 
   2 vv427239849I   40559.5  0.97   98.2  192.1 116   8052  5093  0.099 0.160 20.54 18.6  0.0991 0.1603 20.54 18.6    98 32.162 52.039 16.52 0.002 
   3 vv427239951I   40662.1  0.97  103.2  192.1 116   7484  5060  0.223 0.152 19.66 18.4  0.1627 0.1102 20.00 18.8   201 54.080 35.848 15.96 0.002 
   5 vv427245613I   46324.4  0.98  103.1  132.4 116   5879  5037 -0.032 0.125 99.00 19.1  0.0963 0.0843 20.57 19.2   304 31.017 28.413 16.56 0.002 
   6 vv427245721I   46432.0  0.98  106.6  154.5 116   5296  5099  0.354 0.131 19.16 18.4  0.1633 0.0710 20.00 19.1   411 60.574 24.618 15.83 0.002 
   7 vv427250446I   51156.7  0.98  553.9  796.8 116  32524  5072  0.106 0.057 20.46 19.4  0.1306 0.0447 20.24 19.5   965 51.980 17.021 16.00 0.002 
   8 vv427251012I   51723.1  0.98  402.0  536.8 112  21525  5045  0.163 0.065 20.00 19.1  0.1402 0.0368 20.17 19.5  1367 56.574 14.377 15.91 0.002 
   9 vv427256201I   56912.4  0.97  562.8 1020.2 112  43595  5075  0.116 0.064 20.38 19.3  0.1331 0.0321 20.22 19.6  1930 55.883 12.917 15.92 0.002 
  10 vv427256777I   57488.0  0.98  151.4  204.0 112   8124  5108  0.190 0.106 19.84 18.8  0.1372 0.0308 20.19 19.6  2081 58.045 12.486 15.88 0.002 
    Sum (T+ 40560 to  57642):            3228.9       2972.7 (est. in src region)   SNR_unwtd_sum:   4.46 0.9987 signif. UL:  19.63
  0  2081 427251279   51989.3   5652.5 -11429.8    0.1372   0.0308 20.189  0.276  -0.219
Total wtd_rate (for all exposures so far): 58.045 +/-12.360 snr:  4.7 mag: 15.88 UL: 13.09
Rebinned Data for sw00020390001uvv_sk.img using a zero point of 18.033:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      401   43620.4   2919.8  -3060.9    0.1633   0.0710 20.00  0.39   43620.4    0.1633   0.0710 20.00  0.39 19.09
  1 1.63e+03   54043.5   3598.4  -2886.8    0.1308   0.0341 20.24  0.25   51985.3    0.1372   0.0308 20.19  0.22 19.63
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020390001uuu_sk.img ================
Use keyword TRIGTIME of 427199289.476 for trigger time.
Long-term sensitivity correction is  0.097 at 427233361
The processing date in extension 0 is:  2014-07-26T11:21:05
The trigger time is: 427199289.476. The reference is keyword in image file
Using zero point of 18.437 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
Using background region based on sources found in extension 6:
# 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(108.17167,-60.17647,25")
fk5;-circle(108.17167,-60.17647,12.5")
fk5;-circle(108.163672,-60.170965,6")
fk5;-circle(108.159031,-60.172891,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 uu427233361I   34071.9  0.97  291.1  559.3 116  23727  5459  0.214 0.093 20.11 19.2  0.2144 0.0929 20.11 19.2   291 40.417 17.522 16.27 0.003 
   2 uu427239741I   40452.4  0.97   98.2  158.2 116   7379  5459  0.016 0.146 22.91 19.2  0.1643 0.0787 20.40 19.4   389 32.771 15.451 16.50 0.003 
   3 uu427244139I   44849.6  0.97  542.1  946.7 108  42068  5433  0.230 0.065 20.03 19.4  0.2028 0.0500 20.17 19.6   931 44.748 11.151 16.16 0.003 
   4 uu427245501I   46212.2  0.97  103.1  178.4 116   7002  5452  0.322 0.148 19.67 18.7  0.2148 0.0474 20.11 19.6  1034 47.988 10.694 16.09 0.003 
High bkg:   5 uu427249875I  553.9  45904  5440 15.235  0.071
   5 uu427249875I   50585.6  0.97  553.9 1034.4 116  45904  5443  0.115 0.066 20.79 19.7  0.1799 0.0386 20.30 19.8  1588 44.225  9.276 16.18 0.002 
High bkg:   6 uu427255621I  562.8  51739  5464 16.826  0.074
   6 uu427255621I   56332.4  0.97  562.8 1123.6 116  51739  5462  0.050 0.068 21.69 19.9  0.1461 0.0336 20.53 20.0  2151 39.949  8.510 16.29 0.002 
    Sum (T+ 34072 to  56904):            4000.6       3723.4 (est. in src region)   SNR_unwtd_sum:   4.34 0.9987 signif. UL:  19.95
  0  2151 427247268   47978.2   8926.0 -13906.3    0.1461   0.0336 20.526  0.284  -0.225
Total wtd_rate (for all exposures so far): 45.835 +/- 6.988 snr:  6.6 mag: 16.14 UL: 13.87
Rebinned Data for sw00020390001uuu_sk.img using a zero point of 18.437:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      378   35807.2   4745.0  -1735.3    0.1643   0.0787 20.40  0.43   35807.2    0.1643   0.0787 20.40  0.43 19.43
  1 1.71e+03   50658.7   6245.4  -5809.2    0.1420   0.0372 20.56  0.25   47969.3    0.1461   0.0336 20.53  0.23 19.95
The data range from T+34071.9 s (0.39 d) to T+57641.9 s (0.67 d)
Wrote uvot_fluxes_140726d11h42m46s577555usUT.qdp
Wrote uvot_fluxes_140726d11h42m46s577555usUT.gif
Wrote uvot_fluxes_140726d11h42m46s577555usUT.ps
Wrote uvot_fluxes_140726d11h42m46s577555usUT_vis.qdp
Wrote uvot_fluxes_140726d11h42m46s577555usUT_uv.qdp
Wrote uvot_fluxes_140726d11h42m46s577555usUT_vis.gif
Wrote uvot_fluxes_140726d11h42m46s577555usUT_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.000859   36195.9   4571.0  -2124.0    0.9560   0.3945 20.34  0.38   36195.9    0.9560   0.3945 20.34  0.38 19.46
  1  0.00246   50367.9   7274.0  -5518.3    0.9198   0.1628 20.38  0.18   46698.0    0.9271   0.1523 20.37  0.16 19.94
The data range from T+34071.9 s (0.39 d) to T+57641.9 s (0.67 d)
Wrote uvot_fluxes_wtd_140726d11h42m46s577555usUT.qdp
Wrote uvot_fluxes_wtd_140726d11h42m46s577555usUT.gif
Wrote uvot_fluxes_wtd_140726d11h42m46s577555usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem