# uvot_fluxes_wget.pl vrs. 2014-08-21 fem at 140825d18h42m35s970971usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020414992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -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
# ========= GRB140824B ===================
Used archived opt source position of 17.75471 60.56042 3.00
Reference: GCN_Circ-16740
The position is (01:11:01.13, +60:33:37.5)
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(17.75471,60.56042,3") # color=red dash=0
Region file centered at (17.75471,60.56042), which is (01:11:01.13, +60:33:37.5)
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.43592 from trigger time of 430583592.04 in BAT summary file
# ============ Reading file sw00020414992uwh_sk.img ================
Long-term sensitivity correction is 0.098 at 430674855
The processing date in extension 0 is: 2014-08-25T18:37:18
The trigger time is: 430583604.47592. The reference is BAT GRB summary file
Using zero point of 20.388 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(17.75471,60.56042,25")
fk5;-circle(17.75471,60.56042,12.5")
fk5;-circle(17.757964,60.554885,6")
fk5;-circle(17.746617,60.558280,6")
fk5;-circle(17.768750,60.561660,6")
fk5;-circle(17.740647,60.559091,6")
fk5;-circle(17.744924,60.562120,6")
fk5;-circle(17.765564,60.565142,6")
fk5;-circle(17.741523,60.564931,6")
fk5;-circle(17.750092,60.564907,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 wh430674854I   91250.4  0.91  590.3 5305.7 116  44509  3699  8.038 0.156 18.13 18.1  8.0379 0.1557 18.13 18.1   590 672.115 13.021 13.22 0.005 
    Sum (T+ 91250 to  91850):            5305.7       1395.9 (est. in src region)   SNR_unwtd_sum:  51.62 0.9987 signif. UL:  18.06
  0   590 430675155   91550.3    299.9   -299.9    8.0379   0.1557 18.126  0.021  -0.021
Total wtd_rate (for all exposures so far): 672.115 +/-12.521 snr: 53.7 mag: 13.22 UL: 13.26
Rebinned Data for sw00020414992uwh_sk.img using a zero point of 20.388:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      539   91550.3    299.9   -299.9    8.0379   0.1557 18.13  0.02   91550.3    8.0379   0.1557 18.13  0.02 18.06
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020414992uvv_sk.img ================
Long-term sensitivity correction is  0.144 at 430675462
The processing date in extension 0 is:  2014-08-25T18:37:19
The trigger time is: 430583604.47592. The reference is BAT GRB summary file
Using zero point of 18.034 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(17.75471,60.56042,25")
fk5;-circle(17.75471,60.56042,12.5")
fk5;-circle(17.757941,60.554875,6")
fk5;-circle(17.768758,60.561608,6")
fk5;-circle(17.746404,60.558215,6")
fk5;-circle(17.744722,60.562098,6")
fk5;-circle(17.741518,60.564963,6")
fk5;-circle(17.765525,60.565152,6")
fk5;-circle(17.750068,60.564900,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 vv430675461I   91857.2  0.97  590.3 1408.3 116  22451  3685  1.329 0.072 17.73 17.6  1.3294 0.0717 17.73 17.6   590 978.154 52.735 12.81 0.001 
High bkg:   2 vv430676065I   46.6   3333  3692 19.383  0.336
   2 vv430676065I   92460.8  0.96   46.6  139.4 116   3333  3706  0.854 0.291 18.21 17.4  1.2951 0.0697 17.75 17.6   637 964.538 51.362 12.83 0.001 
    Sum (T+ 91857 to  92508):            1547.7        811.0 (est. in src region)   SNR_unwtd_sum:  18.57 0.9987 signif. UL:  17.59
  0   637 430675785   92181.0    327.1   -323.8    1.2951   0.0697 17.754  0.060  -0.057
Total wtd_rate (for all exposures so far): 668.756 +/-12.026 snr: 55.6 mag: 13.23 UL: 10.91
Rebinned Data for sw00020414992uvv_sk.img using a zero point of 18.034:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      619   92180.7    327.4   -323.5    1.2951   0.0697 17.75  0.06   92180.7    1.2951   0.0697 17.75  0.06 17.59
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020414992uuu_sk.img ================
Long-term sensitivity correction is  0.098 at 430674249
The processing date in extension 0 is:  2014-08-25T18:37:18
The trigger time is: 430583604.47592. The reference is BAT GRB summary file
Using zero point of 18.438 for filter U
Use aperture correction of  1.100 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(17.75471,60.56042,25")
fk5;-circle(17.75471,60.56042,12.5")
fk5;-circle(17.768740,60.561623,6")
fk5;-circle(17.757882,60.554876,6")
fk5;-circle(17.746572,60.558231,6")
fk5;-circle(17.765500,60.565134,6")
fk5;-circle(17.744906,60.562131,6")
fk5;-circle(17.741529,60.564972,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 uu430674248I   90644.2  0.98  590.3 1169.3 108  10300  4134  1.710 0.065 17.86 17.7  1.7096 0.0651 17.86 17.7   590 855.669 32.600 12.96 0.004 
    Sum (T+ 90644 to  91244):            1169.3        269.1 (est. in src region)   SNR_unwtd_sum:  26.25 0.9987 signif. UL:  17.74
  0   590 430674549   90944.1    299.9   -299.9    1.7096   0.0651 17.856  0.042  -0.040
Total wtd_rate (for all exposures so far): 701.251 +/-11.404 snr: 61.5 mag: 13.18 UL: 11.27
Rebinned Data for sw00020414992uuu_sk.img using a zero point of 18.438:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      579   90944.1    299.9   -299.9    1.7096   0.0651 17.86  0.04   90944.1    1.7096   0.0651 17.86  0.04 17.74
The data range from T+90644.2 s (1.05 d) to T+92508.1 s (1.07 d)
Wrote uvot_fluxes_140825d18h42m35s970971usUT.qdp
Wrote uvot_fluxes_140825d18h42m35s970971usUT.gif
Wrote uvot_fluxes_140825d18h42m35s970971usUT.ps
Wrote uvot_fluxes_140825d18h42m35s970971usUT_vis.qdp
Wrote uvot_fluxes_140825d18h42m35s970971usUT_uv.qdp
Wrote uvot_fluxes_140825d18h42m35s970971usUT_vis.gif
Wrote uvot_fluxes_140825d18h42m35s970971usUT_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.000171   90944.1    299.9   -299.9    9.4087   0.3585 17.86  0.04   90944.1    9.4087   0.3585 17.86  0.04 17.74
  1  0.00646   91550.3    299.9   -299.9    7.3415   0.1422 18.13  0.02   91534.6    7.3945   0.1389 18.12  0.02 18.06
  2 4.78e-05   92175.7    332.4   -318.5   10.3973   0.5556 17.75  0.06   91539.2    7.4161   0.1379 18.11  0.02 18.05
The data range from T+90644.2 s (1.05 d) to T+92508.1 s (1.07 d)
Wrote uvot_fluxes_wtd_140825d18h42m35s970971usUT.qdp
Wrote uvot_fluxes_wtd_140825d18h42m35s970971usUT.gif
Wrote uvot_fluxes_wtd_140825d18h42m35s970971usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2014-08-21 fem