# uvot_fluxes_wget.pl vrs. 2012-06-15 fem at 140613d12h01m52s975462usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020383002 -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
# ========= GRB140529A ===================
Used archived XRT position of 228.78200 -41.05294 4.00
Reference: GCN_Circulars-16342-Fri,_30_May_2014_06:16:08_-0400_(EDT)
The position is (15:15:07.68, -41:03:10.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(228.78200,-41.05294,4") # color=red dash=0
Region file centered at (228.78200,-41.05294), which is (15:15:07.68, -41:03:10.6)
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.
Found 1 bright star(s) within 50.0 arcsec of 228.78200 -41.05294:
ra: 228.7969 dec: -41.0600 mag: 11.94
Subtract UTCF of -12.06476 from trigger time of 423048486 in BAT summary file
# ============ Reading file sw00020383001uwh_sk.img ================
Use keyword TRIGTIME of 423048497.965 for trigger time.
Long-term sensitivity correction is 0.096 at 423113529
The processing date in extension 0 is: 2014-06-09T05:40:11
The trigger time is: 423048497.965. The reference is keyword in image file
Using zero point of 20.386 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Using background region based on sources found in extension 3:
# 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(228.78200,-41.05294,25")
fk5;-circle(228.78200,-41.05294,12.5")
fk5;-circle(228.782346,-41.059065,6")
fk5;-circle(228.775981,-41.056820,6")
fk5;-circle(228.781154,-41.046004,6")
fk5;-circle(228.7969389,-41.0600111,25")
 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 wh423113529I   65031.3  0.96   17.5   65.1 196   1620  4826 -0.040 0.507 99.00 19.9 -0.0404 0.5066 99.00 19.9    17 -2.406 30.162 99.00 0.004 
   2 wh423117627I   69129.3  0.96  269.5 1048.8 200  25486  4837 -0.020 0.132 99.00 21.4 -0.0213 0.1275 99.00 21.4   287 -1.351  8.050 99.00 0.004 
   3 wh423123368I   74870.9  0.97  488.6 1682.0 192  46613  4802 -0.399 0.092 99.00 22.7 -0.2592 0.0747 99.00 22.8   776 -16.884  4.976 99.00 0.004 
    Sum (T+ 65031 to  75367):            2796.0       2983.4 (est. in src region)   SNR_unwtd_sum:  -3.47 0.9987 signif. UL:  22.77
  0   776 423121356   72858.1   2509.2  -7826.8   -0.2592   0.0747 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -16.884 +/- 4.872 snr: -3.5 mag: 99.00 UL: 18.23
Rebinned Data for sw00020383001uwh_sk.img using a zero point of 20.386:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      748   72862.4   2504.9  -7831.1   -0.2592   0.0747 99.00 99.00   72862.4   -0.2592   0.0747 99.00 99.00 22.77
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020383001uvv_sk.img ================
Use keyword TRIGTIME of 423048497.965 for trigger time.
Long-term sensitivity correction is  0.141 at 423113552
The processing date in extension 0 is:  2014-06-09T05:40:11
The trigger time is: 423048497.965. The reference is keyword in image file
Using zero point of 18.031 for filter V
Use aperture correction of  1.030 based on aperture of  4.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(228.78200,-41.05294,25")
fk5;-circle(228.78200,-41.05294,12.5")
fk5;-circle(228.775947,-41.056932,6")
fk5;-circle(228.781165,-41.046009,6")
fk5;-circle(228.7969389,-41.0600111,25")
 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 vv423113552I   65054.5  0.99    5.1    5.0 200    133  5190 -0.022 0.467 99.00 17.6 -0.0218 0.4667 99.00 17.6     5 -11.334 243.195 99.00 0.002 
    Sum (T+ 65054 to  65060):               5.0          5.1 (est. in src region)   SNR_unwtd_sum:  -0.05 0.9987 signif. UL:  17.60
  0     5 423113555   65057.1      2.6     -2.6   -0.0218   0.4667 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -16.804 +/- 4.848 snr: -3.5 mag: 99.00 UL: 15.88
Rebinned Data for sw00020383001uvv_sk.img using a zero point of 18.031:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     5.05   65057.1      2.6     -2.6   -0.0218   0.4667 99.00 99.00   65057.1   -0.0218   0.4667 99.00 99.00 17.60
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020383001uuu_sk.img ================
Use keyword TRIGTIME of 423048497.965 for trigger time.
Long-term sensitivity correction is  0.096 at 423113507
The processing date in extension 0 is:  2014-06-09T05:40:10
The trigger time is: 423048497.965. The reference is keyword in image file
Using zero point of 18.436 for filter U
Use aperture correction of  1.032 based on aperture of  4.00
Using background region based on sources found in extension 3:
# 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(228.78200,-41.05294,25")
fk5;-circle(228.78200,-41.05294,12.5")
fk5;-circle(228.775909,-41.056825,6")
fk5;-circle(228.782283,-41.059044,6")
fk5;-circle(228.781154,-41.045935,6")
fk5;-circle(228.7969389,-41.0600111,25")
 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 uu423113506I   65008.5  0.99   17.5    8.7 200    290  4834 -0.198 0.180 99.00 19.3 -0.1980 0.1796 99.00 19.3    17 -70.991 64.392 99.00 0.004 
   2 uu423116802I   68304.9  0.99  804.9  521.3 200  13570  4882 -0.045 0.030 99.00 21.4 -0.0479 0.0297 99.00 21.4   822 -18.194 11.238 99.00 0.004 
   3 uu423122536I   74038.3  0.99  812.7  524.8 200  14684  4881 -0.098 0.030 99.00 21.8 -0.0729 0.0211 99.00 22.2  1635 -27.924  8.301 99.00 0.004 
    Sum (T+ 65009 to  74864):            1054.8       1169.6 (est. in src region)   SNR_unwtd_sum:  -3.46 0.9987 signif. UL:  22.18
  0  1635 423120024   71526.1   3338.0  -6517.5   -0.0729   0.0211 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -19.680 +/- 4.169 snr: -4.7 mag: 99.00 UL: 16.68
Rebinned Data for sw00020383001uuu_sk.img using a zero point of 18.436:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.62e+03   71525.6   3338.4  -6517.1   -0.0729   0.0211 99.00 99.00   71525.6   -0.0729   0.0211 99.00 99.00 22.18
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020383002uw1_sk.img ================
Use keyword TRIGTIME of 423048497.965 for trigger time.
Long-term sensitivity correction is  0.096 at 423447136
The processing date in extension 0 is:  2014-06-13T11:18:40
The trigger time is: 423048497.965. The reference is keyword in image file
Using zero point of 17.536 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.00
Using background region based on sources found in extension 8:
# 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(228.78200,-41.05294,25")
fk5;-circle(228.78200,-41.05294,12.5")
fk5;-circle(228.775791,-41.056775,6")
fk5;-circle(228.780977,-41.045986,6")
fk5;-circle(228.7969389,-41.0600111,25")
 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 w1423447135I  398637.8  1.00  280.7   33.2 196   1190  5170 -0.044 0.022 99.00 20.9 -0.0439 0.0218 99.00 20.9   281 -221.290 109.839 99.00 0.001 
   2 w1423452852I  404354.1  1.00  205.5   23.9 204    771  5163 -0.033 0.025 99.00 20.6 -0.0393 0.0165 99.00 21.3   486 -198.193 83.701 99.00 0.001 
   3 w1423458804I  410306.9  1.00  134.0   18.4 196    474  5173  0.003 0.034 23.82 19.9 -0.0301 0.0149 99.00 21.4   620 -148.200 76.060 99.00 0.001 
   4 w1423475594I  427096.1  1.00  617.1   74.5 196   2306  5211 -0.021 0.015 99.00 21.2 -0.0253 0.0105 99.00 21.8  1237 -130.015 55.121 99.00 0.001 
   5 w1423480195I  431698.0  1.00  457.7   46.3 204   1671  5166 -0.044 0.016 99.00 21.5 -0.0305 0.0088 99.00 22.2  1695 -158.895 46.594 99.00 0.001 
   6 w1423485448I  436950.5  1.00  366.7   58.5 204   1447  5168  0.004 0.022 23.60 20.4 -0.0244 0.0082 99.00 22.2  2062 -130.819 43.665 99.00 0.001 
   7 w1423496970I  448472.5  1.00  364.8   43.7 196   1510  5174 -0.038 0.019 99.00 21.1 -0.0265 0.0075 99.00 22.4  2426 -141.794 40.554 99.00 0.001 
   8 w1423502730I  454232.4  1.00  955.4  136.4 196   4002  5211 -0.015 0.013 99.00 21.3 -0.0233 0.0065 99.00 22.6  3382 -128.610 35.616 99.00 0.001 
   9 w1423515688I  467190.0  1.00  485.2   71.3 196   1859  5224  0.003 0.018 23.72 20.6 -0.0200 0.0062 99.00 22.6  3867 -111.639 33.893 99.00 0.001 
  10 w1423527863I  479365.9  1.00  135.0   27.2 196    524  5214  0.058 0.041 20.64 19.4 -0.0174 0.0061 99.00 22.5  4002 -98.340 33.672 99.00 0.001 
    Sum (T+398638 to 479503):             533.5        600.6 (est. in src region)   SNR_unwtd_sum:  -2.84 0.9987 signif. UL:  22.50
  0  4002 423488622  440124.1  39379.0 -41486.3   -0.0174   0.0061 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -20.914 +/- 4.147 snr: -5.0 mag: 99.00 UL: 15.84
Rebinned Data for sw00020383002uw1_sk.img using a zero point of 17.536:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0    4e+03  440122.0  39381.1 -41484.1   -0.0174   0.0061 99.00 99.00  440122.0   -0.0174   0.0061 99.00 99.00 22.50
The data range from T+65008.5 s (0.75 d) to T+479503.1 s (5.55 d)
Wrote uvot_fluxes_140613d12h01m52s975462usUT.qdp
Wrote uvot_fluxes_140613d12h01m52s975462usUT.gif
Wrote uvot_fluxes_140613d12h01m52s975462usUT.ps
Wrote uvot_fluxes_140613d12h01m52s975462usUT_vis.qdp
Wrote uvot_fluxes_140613d12h01m52s975462usUT_uv.qdp
Wrote uvot_fluxes_140613d12h01m52s975462usUT_vis.gif
Wrote uvot_fluxes_140613d12h01m52s975462usUT_vis.ps
Wrote uvot_fluxes_140613d12h01m52s975462usUT_uv.gif
Wrote uvot_fluxes_140613d12h01m52s975462usUT_uv.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.0183   68936.1    467.0  -3927.6   -0.0392   0.1083 99.00 99.00   68936.1   -0.0392   0.1083 99.00 99.00 21.53
  1   0.0286   75091.1    276.2  -1052.8   -0.3722   0.0809 99.00 99.00   72687.8   -0.2489   0.0648 99.00 99.00 22.89
The data range from T+65008.5 s (0.75 d) to T+479503.1 s (5.55 d)
Wrote uvot_fluxes_wtd_140613d12h01m52s975462usUT.qdp
Wrote uvot_fluxes_wtd_140613d12h01m52s975462usUT.gif
Wrote uvot_fluxes_wtd_140613d12h01m52s975462usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2012-06-15 fem