# uvot_fluxes_wget.pl vrs. 2016-02-01 fem at 160423d08h50m11s794948usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020605992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB160422A ===================
Used archived uvot source position of 42.09497 -57.87511 3.00
Reference: GCN_Circ_19333
The position is (02:48:22.79, -57:52:30.4)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(42.09497,-57.87511,3") # color=red dash=0
Region file centered at (42.09497,-57.87511), which is (02:48:22.79, -57:52:30.4)
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.14854 from trigger time of 483019140.81 in BAT summary file
# ============ Reading file sw00020605992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.160 at 483052584
The processing date in extension 0 is: 2016-04-23T08:42:59
The trigger time is: 483019156.95854. The reference is BAT GRB summary file
Using zero point of 20.130 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.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(42.09497,-57.87511,25")
fk5;-circle(42.09497,-57.87511,12.5")
fk5;-circle(42.096869,-57.877427,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 wh483052583I   33426.7  0.95  627.1 2324.3 116  68862  5868  1.785 0.090 19.50 19.3  1.7853 0.0899 19.50 19.3   627 69.818  3.516 15.68 0.011 
   2 wh483058324I   39167.5  0.95  782.2 2935.7 120  96171  5842  1.432 0.081 19.74 19.6  1.5897 0.0603 19.63 19.5  1409 68.010  2.565 15.71 0.009 
   3 wh483064060I   44903.2  0.95  785.2 2476.5 104  92323  5812  1.220 0.074 19.91 19.7  1.4573 0.0469 19.72 19.6  2195 66.872  2.142 15.73 0.009 
    Sum (T+ 33427 to  45701):            7736.5       4988.8 (est. in src region)   SNR_unwtd_sum:  31.04 0.9987 signif. UL:  19.62
  0  2195 483059112   39954.6   5746.3  -6527.9    1.4573   0.0469 19.721  0.036  -0.034
Total wtd_rate (for all exposures so far): 66.872 +/- 2.129 snr: 31.4 mag: 15.73 UL: 15.47
Rebinned Data for sw00020605992uwh_sk.img using a zero point of 20.130:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.34e+03   36970.3   2992.0  -3543.6    1.5897   0.0603 19.63  0.04   36970.3    1.5897   0.0603 19.63  0.04 19.51
  1      748   45302.1    398.9   -398.9    1.2201   0.0741 19.91  0.06   39956.0    1.4573   0.0469 19.72  0.03 19.62
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020605992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.203 at 483059127
The processing date in extension 0 is:  2016-04-23T08:43:00
The trigger time is: 483019156.95854. The reference is BAT GRB summary file
Using zero point of 17.687 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(42.09497,-57.87511,25")
fk5;-circle(42.09497,-57.87511,12.5")
fk5;-circle(42.096843,-57.877384,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 vv483059127I   39970.1  0.99  210.5  133.7 112   5004  5763  0.190 0.061 19.49 18.8  0.1903 0.0608 19.49 18.8   211 83.838 26.787 15.48 0.005 
   2 vv483064866I   45709.3  0.99  109.4   88.0 116   2905  5788  0.300 0.095 18.99 18.3  0.2277 0.0515 19.29 18.7   320 101.049 23.389 15.28 0.004 
    Sum (T+ 39970 to  45820):             221.7        155.5 (est. in src region)   SNR_unwtd_sum:   4.42 0.9987 signif. UL:  18.73
  0   320 483061179   42021.6   3798.8  -2051.6    0.2277   0.0515 19.293  0.279  -0.221
Total wtd_rate (for all exposures so far): 65.906 +/- 2.082 snr: 31.7 mag: 15.74 UL: 13.04
Rebinned Data for sw00020605992uvv_sk.img using a zero point of 17.687:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      316   42020.4   3800.0  -2050.3    0.2277   0.0515 19.29  0.22   42020.4    0.2277   0.0515 19.29  0.22 18.73
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020605992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.127 at 483051781
The processing date in extension 0 is:  2016-04-23T08:42:59
The trigger time is: 483019156.95854. The reference is BAT GRB summary file
Using zero point of 18.213 for filter U
Use aperture correction of  1.100 based on aperture of  3.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(42.09497,-57.87511,25")
fk5;-circle(42.09497,-57.87511,12.5")
fk5;-circle(42.096833,-57.877416,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 uu483051781I   32624.3  0.98  783.2  966.0 116  32774  5809  0.445 0.045 19.09 18.8  0.4453 0.0447 19.09 18.8   783 99.587 10.002 15.29 0.005 
   2 uu483057523I   38366.4  0.98  782.2  876.1 112  33921  5770  0.311 0.043 19.48 19.1  0.3782 0.0309 19.27 19.0  1565 92.082  7.466 15.38 0.005 
   3 uu483063255I   44098.6  0.98  785.2  896.4 112  31792  5776  0.399 0.043 19.21 18.9  0.3850 0.0251 19.25 19.1  2351 99.239  6.467 15.30 0.005 
    Sum (T+ 32624 to  44896):            2738.5       1929.3 (est. in src region)   SNR_unwtd_sum:  15.36 0.9987 signif. UL:  19.05
  0  2351 483057923   38766.0   6130.5  -6141.6    0.3850   0.0251 19.249  0.073  -0.068
Total wtd_rate (for all exposures so far): 69.522 +/- 2.001 snr: 34.7 mag: 15.69 UL: 13.52
Rebinned Data for sw00020605992uuu_sk.img using a zero point of 18.213:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      769   33022.2    397.9   -397.9    0.4453   0.0447 19.09  0.10   33022.2    0.4453   0.0447 19.09  0.10 18.80
  1 1.54e+03   41635.5   3260.9  -3269.2    0.3550   0.0302 19.34  0.09   38768.0    0.3850   0.0251 19.25  0.07 19.05
The data range from T+32624.3 s (0.38 d) to T+45820.4 s (0.53 d)
Wrote uvot_fluxes_160423d08h50m11s794948usUT.qdp
Wrote uvot_fluxes_160423d08h50m11s794948usUT.gif
Wrote uvot_fluxes_160423d08h50m11s794948usUT.ps
Wrote uvot_fluxes_160423d08h50m11s794948usUT_vis.qdp
Wrote uvot_fluxes_160423d08h50m11s794948usUT_uv.qdp
Wrote uvot_fluxes_160423d08h50m11s794948usUT_vis.gif
Wrote uvot_fluxes_160423d08h50m11s794948usUT_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.00148   33022.2    397.9   -397.9    3.0158   0.3029 19.09  0.10   33022.2    3.0158   0.3029 19.09  0.10 18.80
  1    0.133   36502.5   3459.8  -3075.8    1.8627   0.0695 19.61  0.04   36464.3    1.8742   0.0689 19.61  0.04 19.49
  2  0.00101   43942.2    954.2  -3972.2    2.6307   0.2686 19.24  0.11   36520.0    1.8809   0.0683 19.60  0.04 19.49
  3   0.0571   45302.4    518.0   -399.2    1.4153   0.0858 19.91  0.06   39123.3    1.7211   0.0537 19.70  0.03 19.60
The data range from T+32624.3 s (0.38 d) to T+45820.4 s (0.53 d)
Wrote uvot_fluxes_wtd_160423d08h50m11s794948usUT.qdp
Wrote uvot_fluxes_wtd_160423d08h50m11s794948usUT.gif
Wrote uvot_fluxes_wtd_160423d08h50m11s794948usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2016-02-01 fem