# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140106d08h32m40s144326usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020337001 -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
# ========= GRB140104B ===================
Used archived BAT position of 218.81000 -8.90000
Reference: GCN_Circ-15684
The position is (14:35:14.40, -08:54:00.0)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(218.810,-8.900,3") # color=red dash=0
Region file centered at (218.810,-8.900), which is (14:35:14.40, -08:54:00.0)
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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 69696.0,
3 sigma should become about 5.6 sigma and 2 sigma should become about 5.1 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999998.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -11.45224 from trigger time of 410549523.15 in BAT summary file
# ============ Reading file sw00020337001uwh_sk.img ================
Long-term sensitivity correction is 0.092 at 410605240
The processing date in extension 0 is: 2014-01-06T08:16:37
The trigger time is: 410549534.60224. The reference is BAT GRB summary file
Using zero point of 20.382 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(218.810,-8.900,25")
fk5;-circle(218.810,-8.900,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 wh410605240I   55705.6  0.90  202.9 1216.7 116  59272  5856  0.000 0.218 99.00 20.2  0.0000 0.2178 99.00 20.2   203  0.000 11.177 99.00 0.003 
   2 wh410611168I   61634.2  0.90  166.7 1029.6 112  51614  5828  0.000 0.246 99.00 20.0  0.0000 0.1632 99.00 20.5   370  0.000  8.727 99.00 0.003 
above line uses coinc_corr_src:  0.899 corr_bkg:  0.899
   3 wh410617091I   67557.2  0.89  131.3  801.3 112  44377  5828  0.000 0.295 99.00 19.8  0.0000 0.1431 99.00 20.6   501  0.000  7.882 99.00 0.003 
above line uses coinc_corr_src:  0.889 corr_bkg:  0.889
   4 wh410621442I   71907.7  0.92  245.3 1152.6 120  56418  5884  0.000 0.174 99.00 20.4  0.0000 0.1115 99.00 20.9   746  0.000  6.501 99.00 0.003 
High bkg:   5 wh410622880I  132.3  52196  5884 67.042  0.293
   5 wh410622880I   73346.1  0.87  132.3 1087.0 116  52196  5884  0.000 0.334 99.00 19.7  0.0000 0.1070 99.00 20.9   879  0.000  6.247 99.00 0.003 
above line uses coinc_corr_src:  0.870 corr_bkg:  0.870
    Sum (T+ 55706 to  73513):            5198.4       5198.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999981347567 signif. UL:  20.93
  0   879 410615447   65912.2   7600.8 -10206.6    0.0000   0.1070 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 5.912 snr:  0.0 mag: 99.00 UL: 16.58
Rebinned Data for sw00020337001uwh_sk.img using a zero point of 20.382:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      792   65907.3   7605.7 -10201.7    0.0000   0.1070 99.00 99.00   65907.3    0.0000   0.1070 99.00 99.00 21.54
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020337001uvv_sk.img ================
Long-term sensitivity correction is  0.135 at 410605563
The processing date in extension 0 is:  2014-01-06T08:16:37
The trigger time is: 410549534.60224. The reference is BAT GRB summary file
Using zero point of 18.025 for filter V
Use aperture correction of  1.087 based on aperture of  3.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(218.810,-8.900,25")
fk5;-circle(218.810,-8.900,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 vv410605563I   56028.5  0.97  311.8  557.2 116  28203  5872  0.000 0.086 99.00 18.8  0.0000 0.0857 99.00 18.8   312  0.000 38.765 99.00 0.001 
   3 vv410611418I   61884.2  0.97  227.4  411.9 104  21872  5820  0.000 0.098 99.00 18.7  0.0000 0.0647 99.00 19.1   539  0.000 30.437 99.00 0.001 
High bkg:   4 vv410617264I  146.9  15477  5812 18.128  0.146
   4 vv410617264I   67729.7  0.97  146.9  275.6 108  15477  5812  0.000 0.131 99.00 18.4  0.0000 0.0580 99.00 19.2   686  0.000 28.007 99.00 0.001 
High bkg:   5 vv410623053I  112.7  12665  5864 19.167  0.170
   5 vv410623053I   73519.4  0.96  112.7  240.8 104  12665  5864  0.000 0.151 99.00 18.2  0.0000 0.0542 99.00 19.3   799  0.000 26.735 99.00 0.001 
    Sum (T+ 56028 to  73634):            1460.2       1460.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999981347567 signif. UL:  19.32
  0   799 410611966   62431.4  11202.4  -6402.9    0.0000   0.0542 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 5.670 snr:  0.0 mag: 99.00 UL: 14.27
Rebinned Data for sw00020337001uvv_sk.img using a zero point of 18.025:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      773   62417.5  11216.4  -6389.0    0.0000   0.0542 99.00 99.00   62417.5    0.0000   0.0542 99.00 99.00 19.92
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020337001uuu_sk.img ================
Long-term sensitivity correction is  0.092 at 410604918
The processing date in extension 0 is:  2014-01-06T08:16:37
The trigger time is: 410549534.60224. The reference is BAT GRB summary file
Using zero point of 18.432 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(218.810,-8.900,25")
fk5;-circle(218.810,-8.900,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 uu410604917I   55383.2  0.98  311.8  280.0 116  14391  5876  0.000 0.061 99.00 19.6  0.0000 0.0609 99.00 19.6   312  0.000 18.737 99.00 0.004 
   2 uu410609160I   59626.1  0.99  295.6  222.6 112  11978  5824  0.000 0.058 99.00 19.7  0.0000 0.0421 99.00 20.0   607  0.000 13.380 99.00 0.004 
   3 uu410610919I   61384.7  0.98  239.9  250.4 116  12397  5884  0.000 0.074 99.00 19.4  0.0000 0.0366 99.00 20.1   847  0.000 11.802 99.00 0.003 
   4 uu410614837I   65302.5  0.99  732.1  580.8 116  29508  5828  0.000 0.037 99.00 20.1  0.0000 0.0262 99.00 20.5  1579  0.000  8.898 99.00 0.003 
   5 uu410616919I   67385.1  0.98  164.1  211.3 112  10562  5824  0.000 0.098 99.00 19.1  0.0000 0.0254 99.00 20.5  1743  0.000  8.648 99.00 0.003 
   6 uu410620599I   71065.2  0.99  822.6  600.9 112  33138  5828  0.000 0.034 99.00 20.2  0.0000 0.0205 99.00 20.8  2566  0.000  7.306 99.00 0.003 
   7 uu410622708I   73173.9  0.98  164.1  207.9 108  10967  5792  0.000 0.099 99.00 19.1  0.0000 0.0202 99.00 20.8  2730  0.000  7.187 99.00 0.003 
    Sum (T+ 55383 to  73341):            2390.6       2390.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999981347567 signif. UL:  20.80
  0  2730 410615361   65826.3   7514.3 -10443.2    0.0000   0.0202 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 4.465 snr:  0.0 mag: 99.00 UL: 14.93
Rebinned Data for sw00020337001uuu_sk.img using a zero point of 18.432:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.69e+03   65826.2   7514.4 -10443.1    0.0000   0.0202 99.00 99.00   65826.2    0.0000   0.0202 99.00 99.00 21.40
The data range from T+55383.2 s (0.64 d) to T+73633.9 s (0.85 d)
Wrote uvot_fluxes_140106d08h32m40s144326usUT.qdp
Wrote uvot_fluxes_140106d08h32m40s144326usUT.gif
Wrote uvot_fluxes_140106d08h32m40s144326usUT.ps
Wrote uvot_fluxes_140106d08h32m40s144326usUT_vis.qdp
Wrote uvot_fluxes_140106d08h32m40s144326usUT_uv.qdp
Wrote uvot_fluxes_140106d08h32m40s144326usUT_vis.gif
Wrote uvot_fluxes_140106d08h32m40s144326usUT_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.0316   64560.7   9073.2  -9177.5    0.0000   0.0864 99.00 99.00   64560.7    0.0000   0.0864 99.00 99.00 21.68
The data range from T+55383.2 s (0.64 d) to T+73633.9 s (0.85 d)
Wrote uvot_fluxes_wtd_140106d08h32m40s144326usUT.qdp
Wrote uvot_fluxes_wtd_140106d08h32m40s144326usUT.gif
Wrote uvot_fluxes_wtd_140106d08h32m40s144326usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem