# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180615d10h02m38s544749usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00841583992 -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
# ========= GRB180614 ===================
Could not find/read custom source region custom_841583_src.reg
Used archived BAT position of 245.06700 -15.70400
Reference: GCN_Position_Notice_Thu_14_Jun_18_20:42:57_UT
The position is (16:20:16.08, -15:42:14.4)
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(245.067,-15.704,3") # color=red dash=0
Source region spec. is: 245.067 -15.704 3"
Region file centered at (245.067,-15.704), which is (16:20:16.08, -15:42:14.4)
Could not find/read custom background region custom_841583_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 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -21.10588 from uncorrected trigger time of 550700946.89 in BAT summary file
# ============ Reading file sw00841583992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.194 at 550702134
The processing date in extension 0 is: 2018-06-15T09:51:21
The trigger time is: 550700967.99588. The reference is BAT GRB summary file
Using zero point of 20.096 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  3  137.2 244.98340 -15.63506 0.134 296.8
  4  136.8 244.98345 -15.63515 0.134 296.8
  5  136.6 244.98307 -15.63548 0.134 296.8
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(245.067,-15.704,25")
fk5;-circle(245.067,-15.704,12.5")
fk5;-circle(245.067546,-15.706982,6")
fk5;-circle(245.068201,-15.699805,6")
fk5;-circle(245.059429,-15.700297,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 wh550702134I    1166.2  0.96  147.4  399.8 113  17356  5258  0.000 0.153 99.00 20.4  0.0000 0.1533 99.00 20.4   147  0.000  0.227 99.00 0.255 
   2 wh550702134E    1167.6  0.96  146.1  387.9 110  17229  5258  0.000 0.152 99.00 20.4 
Low  bkg:   3 wh550702414E   19.4      0  5254  0.000  0.010
%  3 wh550702414E    1446.8  1.00   19.4    0.0 111      0  5254 
Low  bkg:   4 wh550702587E   19.4      0  5265  0.000  0.010
%  4 wh550702587E    1619.0  1.00   19.4    0.0 110      0  5265 
Low  bkg:   5 wh550702761E   19.4      0  5258  0.000  0.010
%  5 wh550702761E    1793.1  1.00   19.4    0.0 111      0  5258 
    Sum (T+  1166 to   1316):             373.0        373.0 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.37
  0   147 550702209    1241.1     74.9    -74.9    0.0000   0.1533 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.225 snr:  0.0 mag: 99.00 UL: 19.95
Rebinned Data for sw00841583992uwh_sk.img using a zero point of 20.096:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      141    1241.1     74.9    -74.9    0.0000   0.1533 99.00 99.00    1241.1    0.0000   0.1533 99.00 99.00 20.86
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00841583992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.247 at 550702116
The processing date in extension 0 is:  2018-06-15T09:51:09
The trigger time is: 550700967.99588. The reference is BAT GRB summary file
Using zero point of 17.643 for filter V
Use aperture correction of  1.087 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  2  135.6 244.98314 -15.63576 0.134 296.8
  3  136.1 244.98327 -15.63553 0.134 296.8
  4  136.3 244.98320 -15.63549 0.134 296.8
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(245.067,-15.704,25")
fk5;-circle(245.067,-15.704,12.5")
fk5;-circle(245.068268,-15.699859,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 vv550702115E    1148.0  0.99    9.6    8.0 115    268  5471  0.000 0.275 99.00 17.3 
Low  bkg:   2 vv550702291E   19.5      0  5464  0.000  0.009
%  2 vv550702291E    1323.7  1.00   19.5    0.0 111      0  5464 
Low  bkg:   3 vv550702464E   19.5      0  5471  0.000  0.009
%  3 vv550702464E    1496.8  1.00   19.5    0.0 116      0  5471 
Low  bkg:   4 vv550702636E   19.5      0  5466  0.000  0.009
%  4 vv550702636E    1668.6  1.00   19.5    0.0 111      0  5466 
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00841583992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.142 at 550702390
The processing date in extension 0 is:  2018-06-15T09:51:17
The trigger time is: 550700967.99588. The reference is BAT GRB summary file
Using zero point of 18.968 for filter B
Use aperture correction of  1.108 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1  136.8 244.98355 -15.63510 0.134 296.8
  2  135.9 244.98330 -15.63555 0.134 296.8
  3  135.9 244.98312 -15.63569 0.134 296.8
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(245.067,-15.704,25")
fk5;-circle(245.067,-15.704,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
Low  bkg:   1 bb550702390E   19.4      0  5840  0.000  0.009
%  1 bb550702390E    1422.5  1.00   19.4    0.0 111      0  5840 
Low  bkg:   2 bb550702562E   19.4      0  5846  0.000  0.009
%  2 bb550702562E    1594.7  1.00   19.4    0.0 112      0  5846 
Low  bkg:   3 bb550702736E   19.5      0  5842  0.000  0.009
%  3 bb550702736E    1768.2  1.00   19.5    0.0 112      0  5842 
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00841583992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.153 at 550702366
The processing date in extension 0 is:  2018-06-15T09:51:17
The trigger time is: 550700967.99588. The reference is BAT GRB summary file
Using zero point of 18.187 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1  134.1 244.98411 -15.63565 0.134 296.8
  2  133.6 244.98381 -15.63600 0.134 296.8
  3  133.4 244.98368 -15.63616 0.134 296.8
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(245.067,-15.704,25")
fk5;-circle(245.067,-15.704,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
Low  bkg:   1 uu550702365E   19.4      0  5842  0.000  0.009
%  1 uu550702365E    1397.8  1.00   19.4    0.0 108      0  5842 
Low  bkg:   2 uu550702538E   19.4      0  5844  0.000  0.009
%  2 uu550702538E    1570.0  1.00   19.4    0.0 110      0  5844 
Low  bkg:   3 uu550702711E   19.4      0  5852  0.000  0.009
%  3 uu550702711E    1743.5  1.00   19.4    0.0 111      0  5852 
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00841583992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.359 at 550702342
The processing date in extension 0 is:  2018-06-15T09:51:16
The trigger time is: 550700967.99588. The reference is BAT GRB summary file
Using zero point of 17.081 for filter UVW1
Use aperture correction of  1.123 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(245.067,-15.704,25")
fk5;-circle(245.067,-15.704,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 w1550702341E    1373.5  1.00   19.4    1.7 113    108  5838  0.000 0.085 99.00 18.0  0.0000 0.0846 99.00 18.0    19  0.000  2.249 99.00 0.348 
   2 w1550702513E    1545.8  1.00   19.5    1.3 113    104  5834  0.000 0.083 99.00 18.0  0.0000 0.0592 99.00 18.4    39  0.000  1.665 99.00 0.336 
   3 w1550702685E    1717.6  1.00   19.4    2.8 109    108  5847  0.000 0.083 99.00 18.0  0.0000 0.0482 99.00 18.6    58  0.000  1.426 99.00 0.320 
    Sum (T+  1374 to   1737):               6.1          6.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.61
  0    58 550702523    1555.4    181.9   -181.9    0.0000   0.0482 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.225 snr:  0.0 mag: 99.00 UL: 16.93
Rebinned Data for sw00841583992uw1_sk.img using a zero point of 17.081:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     58.2    1555.4    181.9   -181.9    0.0000   0.0482 99.00 99.00    1555.4    0.0000   0.0482 99.00 99.00 19.10
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00841583992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.344 at 550702316
The processing date in extension 0 is:  2018-06-15T09:51:16
The trigger time is: 550700967.99588. The reference is BAT GRB summary file
Using zero point of 16.506 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00841583992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.437 at 550702441
The processing date in extension 0 is:  2018-06-15T09:51:18
The trigger time is: 550700967.99588. The reference is BAT GRB summary file
Using zero point of 16.943 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.00
There are no aspect corrected images to process.
The data range from T+1166.2 s (0.01 d) to T+1737.3 s (0.02 d)
Wrote uvot_fluxes_180615d10h02m38s544749usUT.qdp
Wrote uvot_fluxes_180615d10h02m38s544749usUT.gif
Wrote uvot_fluxes_180615d10h02m38s544749usUT.ps
Wrote uvot_fluxes_180615d10h02m38s544749usUT_vis.qdp
Wrote uvot_fluxes_180615d10h02m38s544749usUT_uv.qdp
Wrote uvot_fluxes_180615d10h02m38s544749usUT_vis.gif
Wrote uvot_fluxes_180615d10h02m38s544749usUT_vis.ps
Wrote uvot_fluxes_180615d10h02m38s544749usUT_uv.gif
Wrote uvot_fluxes_180615d10h02m38s544749usUT_uv.ps
Found 12 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem