# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180721d23h51m21s703105usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00848932001 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB180720C ===================
Could not find/read custom source region custom_848932_src.reg
Used archived XRT position of 265.63558 -26.62903 4.00
Reference: GCN_Circulars-22987-Fri,_20_Jul_2018_23:45:09_-0400
The position is (17:42:32.54, -26:37:44.5)
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(265.63558,-26.62903,4") # color=red dash=0
Source region spec. is: 265.63558 -26.62903 4"
Region file centered at (265.63558,-26.62903), which is (17:42:32.54, -26:37:44.5)
Could not find/read custom background region custom_848932_bkg.reg
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 -21.28558 from uncorrected trigger time of 553818237.64 in BAT summary file
# ============ Reading file sw00848932992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.195 at 553818359
The processing date in extension 0 is: 2018-07-21T00:06:16
The trigger time is: 553818258.92558. The reference is BAT GRB summary file
Using zero point of 20.095 for filter WHITE
Use aperture correction of 1.035 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(265.63558,-26.62903,25")
fk5;-circle(265.63558,-26.62903,12.5")
fk5;-circle(265.633850,-26.634355,6")
fk5;-circle(265.630018,-26.631661,6")
fk5;-circle(265.639246,-26.631312,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 wh553818359E     100.2  0.95  114.0  639.8 200  15075  4650 -0.082 0.248 99.00 20.4 -0.0825 0.2476 99.00 20.4   114 -0.016  0.047 99.00 0.880 
    Sum (T+   100 to    216):             639.8        648.4 (est. in src region)   SNR_unwtd_sum:  -0.33 0.9987 signif. UL:  20.43
  0   114 553818417     158.1     57.9    -57.9   -0.0825   0.2476 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.016 +/- 0.046 snr: -0.3 mag: 99.00 UL: 22.26
Rebinned Data for sw00848932992uwh_sk.img using a zero point of 20.095:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      108     158.1     57.9    -57.9   -0.0825   0.2476 99.00 99.00     158.1   -0.0825   0.2476 99.00 99.00 20.43
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00848932992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.249 at 553818339
The processing date in extension 0 is:  2018-07-21T00:06:15
The trigger time is: 553818258.92558. The reference is BAT GRB summary file
Using zero point of 17.641 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(265.63558,-26.62903,25")
fk5;-circle(265.63558,-26.62903,12.5")
fk5;-circle(265.630100,-26.631662,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 vv553818339E      80.3  0.99   11.7   17.9 201    499  5407 -0.060 0.384 99.00 17.5 
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00848932001uuu_sk.img ================
Use keyword TRIGTIME of 553818258.944 for trigger time.
Long-term sensitivity correction to zero point is -0.154 at 553885371
The processing date in extension 0 is:  2018-07-21T23:44:11
The trigger time is: 553818258.944. The reference is keyword in image file
Using zero point of 18.186 for filter U
Use aperture correction of  1.032 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(265.63558,-26.62903,25")
fk5;-circle(265.63558,-26.62903,12.5")
fk5;-circle(265.633858,-26.634368,6")
fk5;-circle(265.630081,-26.631674,6")
fk5;-circle(265.639204,-26.631393,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 uu553885371I   67112.5  0.99 2140.0 1719.2 196  41568  4636 -0.019 0.021 99.00 21.4 -0.0186 0.0206 99.00 21.4  2140 -8.812  9.750 99.00 0.003 
   2 uu553891323I   73064.4  0.99 1930.5 1576.2 196  37003  4640  0.007 0.022 23.55 21.0 -0.0064 0.0150 99.00 21.6  4070 -3.356  7.362 99.00 0.002 
   3 uu553897263I   79004.7  0.99  829.6  674.2 200  15767  4636 -0.008 0.033 99.00 20.7 -0.0066 0.0137 99.00 21.7  4900 -3.470  6.833 99.00 0.002 
    Sum (T+ 67113 to  79848):            3969.5       4000.6 (est. in src region)   SNR_unwtd_sum:  -0.48 0.9987 signif. UL:  21.70
  0  4900 553890662   72403.2   7444.3  -5290.7   -0.0066   0.0137 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.016 +/- 0.046 snr: -0.3 mag: 99.00 UL: 20.36
Rebinned Data for sw00848932001uuu_sk.img using a zero point of 18.186:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.86e+03   72403.2   7444.3  -5290.7   -0.0066   0.0137 99.00 99.00   72403.2   -0.0066   0.0137 99.00 99.00 21.70
The data range from T+100.2 s (0.00 d) to T+79847.5 s (0.92 d)
Wrote uvot_fluxes_180721d23h51m21s703105usUT.qdp
Wrote uvot_fluxes_180721d23h51m21s703105usUT.gif
Wrote uvot_fluxes_180721d23h51m21s703105usUT.ps
Wrote uvot_fluxes_180721d23h51m21s703105usUT_vis.qdp
Wrote uvot_fluxes_180721d23h51m21s703105usUT_uv.qdp
Wrote uvot_fluxes_180721d23h51m21s703105usUT_vis.gif
Wrote uvot_fluxes_180721d23h51m21s703105usUT_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      380     158.1     57.9    -57.9   -0.0987   0.2964 99.00 99.00     158.1   -0.0987   0.2964 99.00 99.00 20.43
  1  0.00308   71920.9   7926.6  -4808.4   -0.0493   0.0950 99.00 99.00     158.7   -0.0985   0.2953 99.00 99.00 20.43
The data range from T+100.2 s (0.00 d) to T+79847.5 s (0.92 d)
Wrote uvot_fluxes_wtd_180721d23h51m21s703105usUT.qdp
Wrote uvot_fluxes_wtd_180721d23h51m21s703105usUT.gif
Wrote uvot_fluxes_wtd_180721d23h51m21s703105usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem