# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 150611d08h16m43s842321usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020532001 -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
# ========= GRB150610 ===================
Used archived BAT position of 178.32040 16.02800
Reference: GCN_Notice_Wed_10_Jun_15_16:40:44_UT
The position is (11:53:16.90, +16:01:40.8)
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(178.3204,+16.0280,3") # color=red dash=0
Region file centered at (178.3204,+16.0280), which is (11:53:16.90, +16:01:40.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.
*** 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 4844.2,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.6 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999973.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -13.68466 from trigger time of 455617095.45 in BAT summary file
# ============ Reading file sw00020532001uwh_sk.img ================
Long-term sensitivity correction is 0.106 at 455647248
The processing date in extension 0 is: 2015-06-11T05:23:16
The trigger time is: 455617109.13466. The reference is BAT GRB summary file
Using zero point of 20.396 for filter WHITE
Use aperture correction of 1.108 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(178.3204,+16.0280,25")
fk5;-circle(178.3204,+16.0280,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 wh455647247I   30138.5  0.96  400.4  914.3 116  46062  5864  0.000 0.088 99.00 21.3  0.0000 0.0877 99.00 21.3   400  0.000  2.412 99.00 0.015 
   2 wh455653043I   35934.1  0.96  380.7  874.4 120  43697  5880  0.000 0.091 99.00 21.2  0.0000 0.0632 99.00 21.6   781  0.000  1.877 99.00 0.014 
   3 wh455658970I   41861.0  0.96  305.9  696.1 120  35206  5888  0.000 0.102 99.00 21.1  0.0000 0.0537 99.00 21.8  1087  0.000  1.689 99.00 0.013 
   4 wh455664885I   47776.4  0.96  232.1  493.0 112  26634  5852  0.000 0.113 99.00 21.0  0.0000 0.0485 99.00 21.9  1319  0.000  1.598 99.00 0.013 
    Sum (T+ 30138 to  48012):            3030.2       3030.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999731635619 signif. UL:  21.90
  0  1319 455654916   37807.2  10204.9  -7668.8    0.0000   0.0485 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.582 snr:  0.0 mag: 99.00 UL: 18.12
Rebinned Data for sw00020532001uwh_sk.img using a zero point of 20.396:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.27e+03   37807.8  10204.4  -7669.3    0.0000   0.0485 99.00 99.00   37807.8    0.0000   0.0485 99.00 99.00 22.41
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020532001uvv_sk.img ================
Long-term sensitivity correction is  0.156 at 455647661
The processing date in extension 0 is:  2015-06-11T05:23:17
The trigger time is: 455617109.13466. The reference is BAT GRB summary file
Using zero point of 18.046 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(178.3204,+16.0280,25")
fk5;-circle(178.3204,+16.0280,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 vv455647660I   30551.6  0.99  400.4  198.3 108  11067  5804  0.000 0.040 99.00 19.8  0.0000 0.0397 99.00 19.8   400  0.000  9.644 99.00 0.008 
   2 vv455648070I   30961.9  0.99   10.7    7.1 112    273  5844  0.000 0.236 99.00 17.8  0.0000 0.0391 99.00 19.8   411  0.000  9.512 99.00 0.008 
   3 vv455653436I   36327.2  0.99  380.7  187.8 116  10238  5844  0.000 0.041 99.00 19.7  0.0000 0.0285 99.00 20.1   792  0.000  7.448 99.00 0.007 
   5 vv455659286I   42177.8  0.99  286.3  149.5 112   7817  5820  0.000 0.047 99.00 19.6  0.0000 0.0244 99.00 20.3  1078  0.000  6.742 99.00 0.007 
   6 vv455665127I   48018.1  0.99  196.1  108.5 116   5415  5860  0.000 0.059 99.00 19.3  0.0000 0.0225 99.00 20.4  1274  0.000  6.453 99.00 0.006 
    Sum (T+ 30552 to  48217):             672.0        672.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999731635619 signif. UL:  20.39
  0  1274 455654860   37750.6  10466.7  -7199.0    0.0000   0.0225 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.509 snr:  0.0 mag: 99.00 UL: 15.82
Rebinned Data for sw00020532001uvv_sk.img using a zero point of 18.046:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.26e+03   37749.5  10467.8  -7197.9    0.0000   0.0225 99.00 99.00   37749.5    0.0000   0.0225 99.00 99.00 20.89
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020532001uuu_sk.img ================
Long-term sensitivity correction is  0.106 at 455646835
The processing date in extension 0 is:  2015-06-11T05:23:16
The trigger time is: 455617109.13466. The reference is BAT GRB summary file
Using zero point of 18.446 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(178.3204,+16.0280,25")
fk5;-circle(178.3204,+16.0280,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 uu455646834I   29725.8  0.99  400.3  140.7 108   7790  5828  0.000 0.034 99.00 20.4  0.0000 0.0335 99.00 20.4   400  0.000  5.481 99.00 0.017 
   2 uu455652650I   35541.5  0.99  380.7  112.2 112   6891  5824  0.000 0.034 99.00 20.3  0.0000 0.0238 99.00 20.7   781  0.000  4.215 99.00 0.016 
   3 uu455658653I   41544.7  0.99  305.9   96.7 112   5696  5844  0.000 0.038 99.00 20.2  0.0000 0.0202 99.00 20.9  1087  0.000  3.793 99.00 0.015 
   4 uu455662771I   45662.8  0.98  264.8  285.2 108  15014  5816  0.000 0.071 99.00 19.5  0.0000 0.0214 99.00 20.8  1352  0.000  3.710 99.00 0.010 
   5 uu455664644I   47535.1  0.99  232.1   75.1 120   4177  5880  0.000 0.044 99.00 20.0  0.0000 0.0194 99.00 21.0  1584  0.000  3.533 99.00 0.010 
   6 uu455668520I   51410.9  0.99  569.2  450.6 108  24730  5824  0.000 0.042 99.00 20.1  0.0000 0.0181 99.00 21.0  2153  0.000  3.388 99.00 0.008 
    Sum (T+ 29726 to  51989):            1208.7       1208.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999731635619 signif. UL:  21.02
  0  2153 455659355   42246.1   9743.2 -12520.3    0.0000   0.0181 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.389 snr:  0.0 mag: 99.00 UL: 16.31
Rebinned Data for sw00020532001uuu_sk.img using a zero point of 18.446:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.13e+03   42221.2   9768.1 -12495.3    0.0000   0.0181 99.00 99.00   42221.2    0.0000   0.0181 99.00 99.00 21.53
The data range from T+29725.8 s (0.34 d) to T+51989.3 s (0.60 d)
Wrote uvot_fluxes_150611d08h16m43s842321usUT.qdp
Wrote uvot_fluxes_150611d08h16m43s842321usUT.gif
Wrote uvot_fluxes_150611d08h16m43s842321usUT.ps
Wrote uvot_fluxes_150611d08h16m43s842321usUT_vis.qdp
Wrote uvot_fluxes_150611d08h16m43s842321usUT_uv.qdp
Wrote uvot_fluxes_150611d08h16m43s842321usUT_vis.gif
Wrote uvot_fluxes_150611d08h16m43s842321usUT_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.451   35877.8  16111.5  -6152.0    0.0000   0.0428 99.00 99.00   35877.8    0.0000   0.0428 99.00 99.00 22.44
The data range from T+29725.8 s (0.34 d) to T+51989.3 s (0.60 d)
Wrote uvot_fluxes_wtd_150611d08h16m43s842321usUT.qdp
Wrote uvot_fluxes_wtd_150611d08h16m43s842321usUT.gif
Wrote uvot_fluxes_wtd_150611d08h16m43s842321usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem