# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 160914d23h33m50s536828usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020700002 -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
# ========= GRB160910A ===================
Used archived opt source position of 221.44183 39.06672 3.00
Reference: GCN_Circ-19908
The position is (14:45:46.04, +39:04:00.2)
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(221.44183,39.06672,3") # color=red dash=0
Region file centered at (221.44183,39.06672), which is (14:45:46.04, +39:04:00.2)
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 -16.81862 from uncorrected trigger time of 495220779.15 in BAT summary file
# ============ Reading file sw00020700001uwh_sk.img ================
Use keyword TRIGTIME of 495220795.724 for trigger time.
Long-term sensitivity correction to zero point is -0.166 at 495417751
The processing date in extension 0 is: 2016-09-13T12:40:24
The trigger time is: 495220795.724. The reference is keyword in image file
Using zero point of 20.124 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.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(221.44183,39.06672,25")
fk5;-circle(221.44183,39.06672,12.5")
fk5;-circle(221.437781,39.065876,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 wh495417750I  196954.9  0.96   71.6  211.7 112   8264  5649  0.774 0.237 20.40 19.7  0.7742 0.2371 20.40 19.7    72 177.733 54.421 14.67 0.002 
   2 wh495417826I  197030.3  0.95   22.8   68.4 112   2617  5692  0.857 0.423 20.29 19.3  0.7943 0.2068 20.37 19.7    94 182.403 47.482 14.64 0.002 
   3 wh495445742I  224946.5  0.91   82.4  453.0 112  21293  5641  0.447 0.317 21.00 19.8  0.6366 0.1829 20.61 19.9   177 168.546 41.352 14.72 0.001 
   4 wh495445828I  225033.0  0.94  546.0 1996.1 108  91206  5636  0.536 0.097 20.80 20.3  0.5603 0.0859 20.75 20.3   723 148.916 21.738 14.86 0.001 
   5 wh495451980I  231184.5  0.95   84.4  272.6 116  12549  5682  0.228 0.231 21.73 20.2  0.5253 0.0806 20.82 20.4   807 140.172 20.530 14.92 0.001 
   6 wh495452069I  231273.8  0.95  209.4  611.9 112  26125  5670  0.531 0.138 20.81 20.2  0.5265 0.0700 20.82 20.5  1017 140.887 17.985 14.92 0.001 
    Sum (T+196955 to 231487):            3613.7       3158.0 (est. in src region)   SNR_unwtd_sum:   7.52 0.9987 signif. UL:  20.45
  0  1017 495445235  224439.1   7047.5 -27484.2    0.5265   0.0700 20.820  0.155  -0.135
Total wtd_rate (for all exposures so far): 140.887 +/-17.837 snr:  7.9 mag: 14.92 UL: 14.40
# ============ Reading file sw00020700002uwh_sk.img ================
Use keyword TRIGTIME of 495220795.98 for trigger time.
Long-term sensitivity correction to zero point is -0.166 at 495538329
The processing date in extension 0 is:  2016-09-14T23:19:08
The trigger time is: 495220795.98. The reference is keyword in image file
Using zero point of 20.124 for filter WHITE
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(221.44183,39.06672,25")
fk5;-circle(221.44183,39.06672,12.5")
fk5;-circle(221.439094,39.061956,6")
fk5;-circle(221.437940,39.065768,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 wh495538328I  317532.6  0.95   95.2  284.0 116  10967  5233  0.499 0.207 20.88 20.0  0.4986 0.2073 20.88 20.0    95 184.559 76.743 14.62 0.001 
   2 wh495538428I  317632.0  0.97  959.4 1850.3 112  73514  5184  0.312 0.052 21.39 20.9  0.3286 0.0506 21.33 20.9  1055 119.712 18.596 15.10 0.002 
   3 wh495539407I  318611.5  0.97  111.6  202.3 112   7865  5204  0.338 0.147 21.30 20.4  0.3294 0.0478 21.33 20.9  1166 120.323 17.599 15.09 0.002 
   4 wh495543365I  322569.2  0.93   90.3  378.3 116  15431  5205  0.451 0.258 20.99 19.9  0.3379 0.0480 21.30 20.9  1257 121.810 17.317 15.08 0.001 
   5 wh495543459I  322663.7  0.96  853.7 2426.2 108 101988  5184  0.410 0.068 21.09 20.7  0.3667 0.0395 21.21 20.9  2110 131.947 14.312 14.99 0.001 
   6 wh495544385I  323590.0  0.97  172.1  352.8 116  13007  5263  0.439 0.126 21.02 20.3  0.3722 0.0377 21.20 20.9  2282 134.902 13.704 14.96 0.001 
   7 wh495549652I  328856.4  0.96   68.7  180.1 108   8311  5181  0.115 0.228 22.47 20.3  0.3647 0.0372 21.22 20.9  2351 132.960 13.541 14.98 0.001 
   8 wh495549724I  328928.8  0.97  685.8 1420.2 104  60454  5183  0.346 0.064 21.28 20.8  0.3605 0.0322 21.23 21.0  3037 132.929 11.838 14.98 0.001 
   9 wh495550425I  329629.8  0.97   73.9  137.1 112   5217  5215  0.387 0.182 21.16 20.2  0.3611 0.0317 21.23 21.0  3111 133.383 11.673 14.98 0.001 
  10 wh495573285I  352489.4  0.97   65.7  122.6 116   4852  5250  0.267 0.194 21.56 20.3  0.3592 0.0313 21.23 21.0  3176 132.897 11.550 14.98 0.001 
  11 wh495573354I  352558.9  0.97  656.3 1255.2 112  48590  5191  0.360 0.062 21.23 20.8  0.3593 0.0281 21.23 21.0  3833 135.498 10.526 14.96 0.001 
  12 wh495574025I  353229.7  0.97   54.3   84.1 104   3764  5182  0.179 0.194 21.99 20.4  0.3567 0.0278 21.24 21.0  3887 134.491 10.436 14.97 0.001 
  13 wh495577791I  356995.2  0.93   24.4  110.7 112   4588  5231  0.612 0.521 20.66 19.3  0.3583 0.0278 21.24 21.0  3911 134.759 10.424 14.97 0.001 
  14 wh495577819I  357023.1  0.94  244.9  911.2 112  39656  5206  0.280 0.147 21.51 20.5  0.3538 0.0275 21.25 21.0  4156 134.287 10.277 14.97 0.001 
  15 wh495578070I  357274.9  0.94   23.3   80.0 112   3400  5234  0.366 0.457 21.21 19.5  0.3538 0.0275 21.25 21.0  4179 134.337 10.262 14.97 0.001 
  16 wh495579054I  358258.9  0.97   51.0  106.5 116   3791  5239  0.505 0.233 20.86 19.9  0.3557 0.0273 21.25 21.0  4230 135.253 10.206 14.96 0.001 
  17 wh495579109I  358313.4  0.97  508.6  950.9 112  36270  5190  0.377 0.070 21.18 20.7  0.3580 0.0255 21.24 21.0  4739 137.769  9.632 14.94 0.001 
  18 wh495579629I  358833.8  0.97   30.7   55.0 104   2131  5194  0.460 0.278 20.97 19.8  0.3586 0.0254 21.24 21.0  4770 138.177  9.600 14.94 0.001 
    Sum (T+317533 to 358865):           10907.7       9419.0 (est. in src region)   SNR_unwtd_sum:  14.13 0.9987 signif. UL:  21.03
  0  4770 495555094  334297.8  24567.2 -16765.2    0.3586   0.0254 21.237  0.080  -0.074
Total wtd_rate (for all exposures so far): 138.775 +/- 8.395 snr: 16.5 mag: 14.93 UL: 14.59
Rebinned Data for sw00020700002uwh_sk.img using a zero point of 20.124:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      959  224419.6   7067.0 -27464.7    0.5265   0.0700 20.82  0.14  224419.6    0.5265   0.0700 20.82  0.14 20.45
  1  4.6e+03  334308.1  24556.8 -16775.6    0.3586   0.0254 21.24  0.07  315349.5    0.3876   0.0242 21.15  0.07 20.97
The data range from T+196954.9 s (2.28 d) to T+358865.0 s (4.15 d)
Wrote uvot_fluxes_160914d23h33m50s536828usUT.qdp
Wrote uvot_fluxes_160914d23h33m50s536828usUT.gif
Wrote uvot_fluxes_160914d23h33m50s536828usUT.ps
Wrote uvot_fluxes_160914d23h33m50s536828usUT_vis.qdp
Wrote uvot_fluxes_160914d23h33m50s536828usUT_uv.qdp
Wrote uvot_fluxes_160914d23h33m50s536828usUT_vis.gif
Wrote uvot_fluxes_160914d23h33m50s536828usUT_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.00266  223186.3   8300.3 -26231.4    0.6252   0.0805 20.80  0.13  223186.3    0.6252   0.0805 20.80  0.13 20.44
  1 0.000146  317580.9     48.4    -48.4    0.5811   0.2417 20.88  0.38  228086.2    0.6220   0.0767 20.81  0.13 20.46
  2  0.00917  333532.9  25332.0 -15900.9    0.4108   0.0290 21.26  0.07  308832.0    0.4473   0.0274 21.16  0.06 20.98
The data range from T+196954.9 s (2.28 d) to T+358865.0 s (4.15 d)
Wrote uvot_fluxes_wtd_160914d23h33m50s536828usUT.qdp
Wrote uvot_fluxes_wtd_160914d23h33m50s536828usUT.gif
Wrote uvot_fluxes_wtd_160914d23h33m50s536828usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem