# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200513d19h17m10s878613usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00972030992 -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/data/khamseenssd/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB200513 ===================
Could not find/read custom source region custom_972030_src.reg
Used archived BAT position of 245.16300 -15.74600
Reference: GCN_Position_Notice_Wed_13_May_20_14:56:44_UT
The position is (16:20:39.12, -15:44:45.6)
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.163,-15.746,3") # color=red dash=0
Source region spec. is: 245.163 -15.746 3"
Region file centered at (245.163,-15.746), which is (16:20:39.12, -15:44:45.6)
Could not find/read custom background region custom_972030_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 -24.9297 from uncorrected trigger time of 611074527.06 in BAT summary file
# ============ Reading file sw00972030992uwh_sk.img ================
Use keyword TRIGTIME of 611074552 for trigger time.
Long-term sensitivity correction to zero point is -0.225 at 611074707
The processing date in extension 0 is: 2020-05-13T18:57:38
The trigger time is: 611074552. The reference is keyword in image file
Using zero point of 20.065 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  255.1 245.04295 -15.65466 0.134  76.1
  4  253.9 245.04323 -15.65498 0.134  76.1
  5   22.4 245.07550 -15.66338 0.201  76.1
  6  253.5 245.04327 -15.65526 0.134  76.1
  7  254.1 245.04327 -15.65457 0.134  76.1
  8  253.6 245.04333 -15.65491 0.134  76.1
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.163,-15.746,25")
fk5;-circle(245.163,-15.746,12.5")
fk5;-circle(245.157955,-15.752203,6")
fk5;-circle(245.164400,-15.743688,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 wh611074706I     154.9  0.96  147.4  428.9 109  18807  5655  0.000 0.151 99.00 20.4  0.0000 0.1509 99.00 20.4   147  0.000  0.043 99.00 1.377 
   2 wh611074706E     156.3  0.96  146.0  448.8 112  18657  5667  0.000 0.154 99.00 20.3 
%  3 wh611075146E     594.8  1.00   17.9    0.0   0      0     0 
%  4 wh611075319E     767.1  1.00   19.5    0.0   0      0     0 
Low  bkg:   5 wh611075419I  147.4    247  5674  0.296  0.019
%  5 wh611075419I     867.4  1.00  147.4    0.0 110    247  5674 
%  6 wh611075722E    1170.1  1.00   19.4    0.0   0      0     0 
%  7 wh611075897E    1345.4  1.00   19.4    0.0   0      0     0 
%  8 wh611076070E    1518.6  1.00   19.4    0.0   0      0     0 
    Sum (T+   155 to    305):             362.5        362.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.35
  0   147 611074782     229.8     74.9    -74.9    0.0000   0.1509 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.042 snr:  0.0 mag: 99.00 UL: 21.73
Rebinned Data for sw00972030992uwh_sk.img using a zero point of 20.065:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      141     229.8     74.9    -74.9    0.0000   0.1509 99.00 99.00     229.8    0.0000   0.1509 99.00 99.00 20.85
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00972030992uvv_sk.img ================
Use keyword TRIGTIME of 611074552 for trigger time.
Long-term sensitivity correction to zero point is -0.287 at 611074687
The processing date in extension 0 is:  2020-05-13T18:57:18
The trigger time is: 611074552. The reference is keyword in image file
Using zero point of 17.603 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  256.5 245.04276 -15.65382 0.134  76.1
  3  255.7 245.04291 -15.65424 0.134  76.1
  4  256.4 245.04276 -15.65394 0.134  76.1
  5  255.1 245.04300 -15.65451 0.134  76.1
  6  254.0 245.04324 -15.65483 0.134  76.1
  7  254.5 245.04317 -15.65460 0.134  76.1
Using background region based on sources found in extension 4:
# 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.163,-15.746,25")
fk5;-circle(245.163,-15.746,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 vv611074687E     135.2  0.98   10.1    3.9 110    553  5853 
%  2 vv611075196E     644.7  1.00   19.4    0.0   0      0     0 
%  3 vv611075368E     816.5  1.00   19.5    0.0   0      0     0 
%  4 vv611075599E    1047.4  1.00   19.5    0.0   0      0     0 
%  5 vv611075771E    1219.7  1.00   19.5    0.0   0      0     0 
%  6 vv611075947E    1395.0  1.00   19.5    0.0   0      0     0 
%  7 vv611076120E    1568.1  1.00   19.4    0.0   0      0     0 
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00972030992ubb_sk.img ================
Use keyword TRIGTIME of 611074552 for trigger time.
Long-term sensitivity correction to zero point is -0.164 at 611075122
The processing date in extension 0 is:  2020-05-13T18:57:28
The trigger time is: 611074552. The reference is keyword in image file
Using zero point of 18.946 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  255.4 245.04295 -15.65431 0.134  76.1
  2  255.0 245.04300 -15.65460 0.134  76.1
  3  255.2 245.04296 -15.65453 0.134  76.1
  4  254.4 245.04319 -15.65460 0.134  76.1
  5  255.1 245.04303 -15.65438 0.134  76.1
  6  255.0 245.04285 -15.65512 0.134  76.1
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.163,-15.746,25")
fk5;-circle(245.163,-15.746,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 bb611075122E     570.3  1.00   19.5    0.0   0      0     0 
%  2 bb611075294E     742.8  1.00   19.5    0.0   0      0     0 
%  3 bb611075697E    1145.9  1.00   19.4    0.0   0      0     0 
%  4 bb611075872E    1320.1  1.00   19.4    0.0   0      0     0 
%  5 bb611076046E    1494.3  1.00   19.4    0.0   0      0     0 
%  6 bb611076218E    1666.0  1.00    6.5    0.0   0      0     0 
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00972030992uuu_sk.img ================
Use keyword TRIGTIME of 611074552 for trigger time.
Long-term sensitivity correction to zero point is -0.177 at 611074867
The processing date in extension 0 is:  2020-05-13T18:57:38
The trigger time is: 611074552. The reference is keyword in image file
Using zero point of 18.163 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  258.1 245.04216 -15.65432 0.134  76.1
  2  257.5 245.04227 -15.65454 0.134  76.1
  3  257.7 245.04216 -15.65475 0.134  76.1
  4  258.0 245.04211 -15.65456 0.134  76.1
  5  257.2 245.04239 -15.65450 0.134  76.1
  6  257.1 245.04243 -15.65443 0.134  76.1
  7  257.1 245.04226 -15.65498 0.134  76.1
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.163,-15.746,25")
fk5;-circle(245.163,-15.746,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 uu611074866I     314.7  1.00  245.8    0.0   0      0     0 
%  2 uu611074866E     314.7  1.00  245.8    0.0   0      0     0 
%  3 uu611075270E     718.0  1.00   19.4    0.0   0      0     0 
%  4 uu611075672E    1121.0  1.00   19.4    0.0   0      0     0 
%  5 uu611075847E    1295.3  1.00   19.4    0.0   0      0     0 
%  6 uu611076021E    1469.4  1.00   19.4    0.0   0      0     0 
%  7 uu611076193E    1641.4  1.00   19.4    0.0   0      0     0 
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00972030992uw1_sk.img ================
Use keyword TRIGTIME of 611074552 for trigger time.
Long-term sensitivity correction to zero point is -0.507 at 611075246
The processing date in extension 0 is:  2020-05-13T18:57:30
The trigger time is: 611074552. The reference is keyword in image file
Using zero point of 16.933 for filter UVW1
Use aperture correction of  1.123 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1   20.8 245.07602 -15.66322 0.201  76.1
  2   23.2 245.07536 -15.66300 0.201  76.1
  3   28.5 245.07399 -15.66227 0.201  76.1
  4   19.3 245.07623 -15.66409 0.201  76.1
  5   20.7 245.07592 -15.66371 0.201  76.1
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.163,-15.746,25")
fk5;-circle(245.163,-15.746,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 w1611075245E   19.4      2  5844  0.021  0.014
%  1 w1611075245E     693.7  1.00   19.4    0.0 112      2  5844 
Low  bkg:   2 w1611075648E   19.5      1  5851  0.008  0.009
%  2 w1611075648E    1096.4  1.00   19.5    0.0 114      1  5851 
Low  bkg:   3 w1611075821E   19.4      0  5853  0.000  0.009
#  3 w1611075821E    1269.9  1.00   19.4    0.0 110      0  5853 
Low  bkg:   4 w1611075997E   19.4      6  5837  0.056  0.022
%  4 w1611075997E    1445.5  1.00   19.4    0.0 110      6  5837 
Low  bkg:   5 w1611076169E   19.5      5  5847  0.040  0.019
%  5 w1611076169E    1617.1  1.00   19.5    0.0 115      5  5847 
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00972030992um2_sk.img ================
Use keyword TRIGTIME of 611074552 for trigger time.
Long-term sensitivity correction to zero point is -0.468 at 611075221
The processing date in extension 0 is:  2020-05-13T18:57:30
The trigger time is: 611074552. The reference is keyword in image file
Using zero point of 16.382 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1   27.1 245.07435 -15.66241 0.201  76.1
  2   26.8 245.07443 -15.66255 0.201  76.1
  3   27.5 245.07428 -15.66227 0.201  76.1
  4   28.0 245.07414 -15.66227 0.201  76.1
  5   27.7 245.07414 -15.66255 0.201  76.1
  6   27.8 245.07414 -15.66241 0.201  76.1
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00972030992uw2_sk.img ================
Use keyword TRIGTIME of 611074552 for trigger time.
Long-term sensitivity correction to zero point is -0.622 at 611075172
The processing date in extension 0 is:  2020-05-13T18:57:30
The trigger time is: 611074552. The reference is keyword in image file
Using zero point of 16.758 for filter UVW2
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   28.5 245.07399 -15.66227 0.201  76.1
  2   28.5 245.07399 -15.66227 0.201  76.1
  3   28.5 245.07399 -15.66227 0.201  76.1
  4   27.6 245.07414 -15.66269 0.201  76.1
  5   28.1 245.07407 -15.66241 0.201  76.1
  6   29.1 245.07385 -15.66213 0.201  76.1
There are no aspect corrected images to process.
The data range from T+154.9 s (0.00 d) to T+304.7 s (0.00 d)
Wrote uvot_fluxes_200513d19h17m10s878613usUT.qdp
Wrote uvot_fluxes_200513d19h17m10s878613usUT.gif
Wrote uvot_fluxes_200513d19h17m10s878613usUT.ps
Wrote uvot_fluxes_200513d19h17m10s878613usUT_vis.qdp
Wrote uvot_fluxes_200513d19h17m10s878613usUT_uv.qdp
Wrote uvot_fluxes_200513d19h17m10s878613usUT_vis.gif
Wrote uvot_fluxes_200513d19h17m10s878613usUT_vis.ps
Found 6 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem