# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180211d06h50m53s343549usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020787001 -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
# ========= GRB180210 ===================
Could not find/read custom source region custom_020787_src.reg
Used archived BAT position of 1.80000 18.35000
Reference: GCN_Notice_Sat_10_Feb_18_21:09:26_UT
The position is (00:07:12.00, +18:21:00.0)
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(1.800,+18.350,3") # color=red dash=0
Source region spec. is: 1.800 +18.350 3"
Region file centered at (1.800,+18.350), which is (00:07:12.00, +18:21:00.0)
Could not find/read custom background region custom_020787_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.
*** 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 46569.6,
3 sigma should become about 5.6 sigma and 2 sigma should become about 5.0 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999997.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -20.44766 from uncorrected trigger time of 539958278.54 in BAT summary file
# ============ Reading file sw00020787001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.188 at 539989862
The processing date in extension 0 is: 2018-02-11T02:21:16
The trigger time is: 539958298.98766. The reference is BAT GRB summary file
Using zero point of 20.102 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 2:
# 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(1.800,+18.350,25")
fk5;-circle(1.800,+18.350,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 wh539989862I   31563.3  0.93  358.3 1565.0 112  82288  5848  0.000 0.134 99.00 20.4  0.0000 0.1338 99.00 20.4   358  0.000  5.065 99.00 0.006 
   2 wh539994999I   36700.6  0.92  513.2 2314.9 116 119069  5876  0.000 0.114 99.00 20.6  0.0000 0.0870 99.00 20.9   871  0.000  3.576 99.00 0.005 
   3 wh540000747I   42448.3  0.93  425.0 1767.4 104  98095  5828  0.000 0.119 99.00 20.6  0.0000 0.0702 99.00 21.1  1296  0.000  3.078 99.00 0.005 
    Sum (T+ 31563 to  43109):            5677.0       5677.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999972084818 signif. UL:  21.12
  0  1296 539995809   37510.2   5599.1  -5946.8    0.0000   0.0702 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 3.049 snr:  0.0 mag: 99.00 UL: 17.03
Rebinned Data for sw00020787001uwh_sk.img using a zero point of 20.102:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.2e+03   37511.2   5598.1  -5947.9    0.0000   0.0702 99.00 99.00   37511.2    0.0000   0.0702 99.00 99.00 21.72
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00020787001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.240 at 539990403
The processing date in extension 0 is:  2018-02-11T02:21:16
The trigger time is: 539958298.98766. The reference is BAT GRB summary file
Using zero point of 17.650 for filter V
Use aperture correction of  1.087 based on aperture of  3.00
Using background region based on sources found in extension 2:
# 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(1.800,+18.350,25")
fk5;-circle(1.800,+18.350,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 vv539990402I   32103.8  0.98   57.2   77.1 116   3386  5860  0.000 0.160 99.00 17.8  0.0000 0.1603 99.00 17.8    57  0.000 58.573 99.00 0.002 
   2 vv539995831I   37532.7  0.98  678.5  741.9 112  40448  5824  0.000 0.046 99.00 19.1  0.0000 0.0442 99.00 19.2   736  0.000 18.783 99.00 0.002 
    Sum (T+ 32104 to  38222):             844.9        844.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999972084818 signif. UL:  19.17
  0   736 539995730   37430.6    791.4  -5326.8    0.0000   0.0442 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 2.955 snr:  0.0 mag: 99.00 UL: 14.61
Rebinned Data for sw00020787001uvv_sk.img using a zero point of 17.650:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      721   37430.5    791.4  -5326.8    0.0000   0.0442 99.00 99.00   37430.5    0.0000   0.0442 99.00 99.00 19.77
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020787001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.149 at 539989322
The processing date in extension 0 is:  2018-02-11T02:21:15
The trigger time is: 539958298.98766. The reference is BAT GRB summary file
Using zero point of 18.191 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
Using background region based on sources found in extension 2:
# 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(1.800,+18.350,25")
fk5;-circle(1.800,+18.350,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 uu539989322I   31023.5  0.99  525.3  436.9 112  21067  5860  0.000 0.043 99.00 19.7  0.0000 0.0430 99.00 19.7   525  0.000  9.293 99.00 0.006 
   2 uu539994167I   35869.0  0.98  811.8  910.9 116  46854  5876  0.000 0.042 99.00 19.8  0.0000 0.0308 99.00 20.1  1337  0.000  6.997 99.00 0.004 
   3 uu539999919I   41621.0  0.98  807.8  992.6 120  46261  5884  0.000 0.043 99.00 19.7  0.0000 0.0251 99.00 20.3  2145  0.000  6.106 99.00 0.004 
    Sum (T+ 31024 to  42442):            2271.1       2271.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999972084818 signif. UL:  20.33
  0  2145 539995523   37224.5   5217.2  -6201.0    0.0000   0.0251 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 2.679 snr:  0.0 mag: 99.00 UL: 15.26
Rebinned Data for sw00020787001uuu_sk.img using a zero point of 18.191:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.11e+03   37216.7   5225.0  -6193.2    0.0000   0.0251 99.00 99.00   37216.7    0.0000   0.0251 99.00 99.00 20.92
The data range from T+31023.5 s (0.36 d) to T+43109.3 s (0.50 d)
Wrote uvot_fluxes_180211d06h50m53s343549usUT.qdp
Wrote uvot_fluxes_180211d06h50m53s343549usUT.gif
Wrote uvot_fluxes_180211d06h50m53s343549usUT.ps
Wrote uvot_fluxes_180211d06h50m53s343549usUT_vis.qdp
Wrote uvot_fluxes_180211d06h50m53s343549usUT_uv.qdp
Wrote uvot_fluxes_180211d06h50m53s343549usUT_vis.gif
Wrote uvot_fluxes_180211d06h50m53s343549usUT_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.0929   36586.6   6522.7  -5563.1    0.0000   0.0807 99.00 99.00   36586.6    0.0000   0.0807 99.00 99.00 21.75
The data range from T+31023.5 s (0.36 d) to T+43109.3 s (0.50 d)
Wrote uvot_fluxes_wtd_180211d06h50m53s343549usUT.qdp
Wrote uvot_fluxes_wtd_180211d06h50m53s343549usUT.gif
Wrote uvot_fluxes_wtd_180211d06h50m53s343549usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem