# uvot_fluxes_wget.pl vrs. 2018-01-16 fem at 180520d03h58m46s959058usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00831810002 -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
# ========= GRB180510A ===================
Could not find/read custom source region custom_831810_src.reg
Used archived XRT position of 276.33142 -31.90808 4.00
Reference: GCN_Circulars-22707-Fri,_11_May_2018_15:47:15_-0400
The position is (18:25:19.54, -31:54:29.1)
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(276.33142,-31.90808,4") # color=red dash=0
Source region spec. is: 276.33142 -31.90808 4"
Region file centered at (276.33142,-31.90808), which is (18:25:19.54, -31:54:29.1)
Could not find/read custom background region custom_831810_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.
Found 1 bright star(s) within 50.0 arcsec of 276.33142 -31.90808:
ra: 276.3188 dec: -31.9163 mag: 11.83
Subtract UTCF of -20.92226 from uncorrected trigger time of 547673074.3 in BAT summary file
# ============ Reading file sw00831810992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.192 at 547673192
The processing date in extension 0 is: 2018-05-10T22:42:23
The trigger time is: 547673095.22226. The reference is BAT GRB summary file
Using zero point of 20.098 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(276.33142,-31.90808,25")
fk5;-circle(276.33142,-31.90808,12.5")
fk5;-circle(276.332938,-31.913726,6")
fk5;-circle(276.334650,-31.909296,6")
fk5;-circle(276.327860,-31.912373,6")
fk5;-circle(276.340644,-31.911245,6")
fk5;-circle(276.327936,-31.905689,6")
fk5;-circle(276.3187572,-31.9163250,25")
 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 wh547673192I      96.9  0.89  147.4 1685.5 193  37097  4520  0.802 0.331 20.34 19.5  0.8019 0.3305 20.34 19.5   147  0.164  0.068 22.25 0.403 
above line uses coinc_corr_src:  0.889 corr_bkg:  0.895
   2 wh547673192E      96.9  0.89  147.4 1676.1 193  37096  4527  0.747 0.330 20.41 19.5 
above line uses coinc_corr_src:  0.889 corr_bkg:  0.896
    Sum (T+    97 to    247):            1685.5       1583.9 (est. in src region)   SNR_unwtd_sum:   2.43 0.9987 signif. UL:  19.46
  0   147 547673267     171.8     74.9    -74.9    0.8019   0.3305 20.337  0.577  -0.374
Total wtd_rate (for all exposures so far):  0.164 +/- 0.066 snr:  2.5 mag: 22.25 UL: 21.19
# ============ Reading file sw00831810002uwh_sk.img ================
Use keyword TRIGTIME of 547673095.232 for trigger time.
Long-term sensitivity correction to zero point is -0.192 at 547702084
The processing date in extension 0 is:  2018-05-20T03:46:26
The trigger time is: 547673095.232. The reference is keyword in image file
Using zero point of 20.098 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(276.33142,-31.90808,25")
fk5;-circle(276.33142,-31.90808,12.5")
fk5;-circle(276.334614,-31.909268,6")
fk5;-circle(276.340686,-31.911347,6")
fk5;-circle(276.328035,-31.912310,6")
fk5;-circle(276.332933,-31.913667,6")
fk5;-circle(276.3187572,-31.9163250,25")
 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
High bkg:   1 wh547702083I   20.6   7085  4752 72.228  0.858
   1 wh547702083I   28988.3  0.86   20.6  315.4 204   7085  4767  0.712 1.057 20.47 18.6  0.7124 1.0569 20.47 18.6    21 24.662 36.586 16.81 0.002 
above line uses coinc_corr_src:  0.859 corr_bkg:  0.862
    Sum (T+ 28988 to  29009):             315.4        303.2 (est. in src region)   SNR_unwtd_sum:   0.67 0.9987 signif. UL:  18.60
  0    21 547702094   28998.8     10.5    -10.5    0.7124   1.0569 20.466 78.534  -0.988
Total wtd_rate (for all exposures so far):  0.165 +/- 0.066 snr:  2.5 mag: 22.25 UL: 21.19
Rebinned Data for sw00831810002uwh_sk.img using a zero point of 20.098:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      131     171.8     74.9    -74.9    0.8019   0.3305 20.34  0.37     171.8    0.8019   0.3305 20.34  0.37 19.46
  1     17.7   28998.8     10.5    -10.5    0.7124   1.0569 20.47  0.99    3608.5    0.7912   0.3172 20.35  0.37 19.49
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00831810992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.245 at 547673173
The processing date in extension 0 is:  2018-05-10T22:42:04
The trigger time is: 547673095.232. The reference is keyword in image file
Using zero point of 17.645 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(276.33142,-31.90808,25")
fk5;-circle(276.33142,-31.90808,12.5")
fk5;-circle(276.333021,-31.913818,6")
fk5;-circle(276.334546,-31.909274,6")
fk5;-circle(276.3187572,-31.9163250,25")
 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 vv547673173E      78.3  0.98    9.9   20.4 199    709  5265 -0.681 0.490 99.00 17.5 
# ============ Reading file sw00831810002uvv_sk.img ================
Use keyword TRIGTIME of 547673095.232 for trigger time.
Long-term sensitivity correction to zero point is -0.245 at 547696056
The processing date in extension 0 is:  2018-05-20T03:46:25
The trigger time is: 547673095.232. The reference is keyword in image file
Using zero point of 17.645 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(276.33142,-31.90808,25")
fk5;-circle(276.33142,-31.90808,12.5")
fk5;-circle(276.334602,-31.909262,6")
fk5;-circle(276.340649,-31.911190,6")
fk5;-circle(276.332890,-31.913701,6")
fk5;-circle(276.3187572,-31.9163250,25")
 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 vv547696056I   22961.1  0.97  295.0  978.6 204  23665  5227  0.198 0.115 19.41 18.3  0.1978 0.1148 19.41 18.3   295 52.241 30.315 15.99 0.001 
High bkg:   2 vv547696359I    6.7    679  5216 19.377  0.743
   2 vv547696359I   23264.5  0.96    6.7   25.0 204    679  5216 -0.258 0.811 99.00 16.7  0.1877 0.1137 19.46 18.3   302 50.154 30.023 16.04 0.001 
    Sum (T+ 22961 to  23271):            1003.5        950.2 (est. in src region)   SNR_unwtd_sum:   1.65 0.9987 signif. UL:  18.33
  0   302 547696210   23114.5    156.9   -153.4    0.1877   0.1137 19.461  1.010  -0.514
Total wtd_rate (for all exposures so far):  0.164 +/- 0.066 snr:  2.5 mag: 22.25 UL: 18.74
Rebinned Data for sw00831810002uvv_sk.img using a zero point of 17.645:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      292   23114.4    156.9   -153.4    0.1877   0.1137 19.46  0.51   23114.4    0.1877   0.1137 19.46  0.51 18.33
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00831810002ubb_sk.img ================
Use keyword TRIGTIME of 547673095.232 for trigger time.
Long-term sensitivity correction to zero point is -0.141 at 547701171
The processing date in extension 0 is:  2018-05-20T03:46:26
The trigger time is: 547673095.232. The reference is keyword in image file
Using zero point of 18.969 for filter B
Use aperture correction of  1.035 based on aperture of  4.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(276.33142,-31.90808,25")
fk5;-circle(276.33142,-31.90808,12.5")
fk5;-circle(276.334689,-31.909302,6")
fk5;-circle(276.340604,-31.911251,6")
fk5;-circle(276.327913,-31.912282,6")
fk5;-circle(276.333014,-31.913717,6")
fk5;-circle(276.3187572,-31.9163250,25")
 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 bb547701171I   28076.0  0.97  295.0  994.0 204  21641  4749  0.233 0.116 20.55 19.6  0.2332 0.1164 20.55 19.6   295 22.207 11.089 16.92 0.003 
   2 bb547701474I   28379.6  0.97  295.0 1073.9 188  24295  4781  0.431 0.121 19.88 19.2  0.3319 0.0840 20.17 19.6   590 31.586  8.036 16.54 0.003 
   3 bb547701778I   28683.2  0.95  295.1 1622.6 188  38635  4773  0.373 0.152 20.04 19.2  0.3455 0.0753 20.12 19.6   885 32.638  7.062 16.51 0.003 
    Sum (T+ 28076 to  28983):            3690.5       3406.7 (est. in src region)   SNR_unwtd_sum:   4.59 0.9987 signif. UL:  19.57
  0   885 547701625   28529.5    453.5   -453.5    0.3455   0.0753 20.123  0.268  -0.214
Total wtd_rate (for all exposures so far):  0.168 +/- 0.066 snr:  2.5 mag: 22.23 UL: 20.05
Rebinned Data for sw00831810002ubb_sk.img using a zero point of 18.969:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      850   28527.2    455.8   -451.2    0.3455   0.0753 20.12  0.21   28527.2    0.3455   0.0753 20.12  0.21 19.57
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00831810992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.152 at 547673405
The processing date in extension 0 is:  2018-05-10T22:42:23
The trigger time is: 547673095.232. The reference is keyword in image file
Using zero point of 18.188 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(276.33142,-31.90808,25")
fk5;-circle(276.33142,-31.90808,12.5")
fk5;-circle(276.334780,-31.909312,6")
fk5;-circle(276.3187572,-31.9163250,25")
 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
High bkg:   1 uu547673405I   12.4   1205  5627 17.231  0.496
   1 uu547673405I     309.8  0.97   12.4   37.2 202   1205  5625 -0.519 0.535 99.00 17.9 -0.5188 0.5346 99.00 17.9    12 -1.137  1.171 99.00 0.127 
High bkg:   2 uu547673405E   12.4   1191  5614 17.087  0.495
   2 uu547673405E     309.8  0.97   12.4   36.0 202   1191  5608 -0.592 0.526 99.00 17.9 
    Sum (T+   310 to    322):              37.2         43.3 (est. in src region)   SNR_unwtd_sum:  -0.97 0.9987 signif. UL:  17.85
  0    12 547673411     316.1      6.3     -6.3   -0.5188   0.5346 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.164 +/- 0.066 snr:  2.5 mag: 22.25 UL: 19.29
# ============ Reading file sw00831810002uuu_sk.img ================
Use keyword TRIGTIME of 547673095.232 for trigger time.
Long-term sensitivity correction to zero point is -0.152 at 547689855
The processing date in extension 0 is:  2018-05-20T03:46:25
The trigger time is: 547673095.232. The reference is keyword in image file
Using zero point of 18.188 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(276.33142,-31.90808,25")
fk5;-circle(276.33142,-31.90808,12.5")
fk5;-circle(276.334593,-31.909330,6")
fk5;-circle(276.327911,-31.912435,6")
fk5;-circle(276.332889,-31.913876,6")
fk5;-circle(276.3187572,-31.9163250,25")
 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 uu547689854I   16759.5  0.99  295.0  384.2 196   8765  4779  0.087 0.071 20.83 19.5  0.0875 0.0707 20.83 19.5   295 10.252  8.289 17.76 0.007 
   2 uu547690158I   17063.0  0.98  295.0  558.8 204  13378  4809 -0.031 0.086 99.00 19.7  0.0284 0.0556 22.05 19.9   590  4.997  6.452 18.54 0.005 
High bkg:   3 uu547690461I  165.3  12393  4788 15.655  0.141
   3 uu547690461I   17366.4  0.97  165.3  530.4 204  12393  4794  0.020 0.151 22.46 18.9  0.0265 0.0545 22.13 20.0   755  4.715  6.086 18.61 0.004 
   4 uu547713197I   40102.2  0.98  295.0  767.3 204  16404  4856  0.280 0.101 19.57 18.8  0.0974 0.0484 20.72 19.7  1050  8.208  5.950 18.00 0.003 
High bkg:   5 uu547713501I   75.9   6145  4772 16.959  0.216
   5 uu547713501I   40406.3  0.97   75.9  242.9 196   6145  4771 -0.134 0.223 99.00 18.7  0.0819 0.0476 20.90 19.8  1126  7.825  5.923 18.06 0.003 
    Sum (T+ 16759 to  40483):            2483.5       2396.0 (est. in src region)   SNR_unwtd_sum:   1.72 0.9987 signif. UL:  19.80
  0  1126 547697864   24769.2  15714.3  -8009.7    0.0819   0.0476 20.904  0.943  -0.497
Total wtd_rate (for all exposures so far):  0.165 +/- 0.066 snr:  2.5 mag: 22.25 UL: 19.29
Rebinned Data for sw00831810002uuu_sk.img using a zero point of 18.188:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0       12     316.1      6.3     -6.3   -0.5188   0.5346 99.00 99.00     316.1   -0.5188   0.5346 99.00 99.00 17.85
  1      741   17144.9    389.5   -385.4    0.0265   0.0545 22.13  1.21   16876.4    0.0178   0.0543 22.56  1.52 20.00
  2      361   40291.3    192.1   -189.1    0.1957   0.0925 19.96  0.42   24466.9    0.0755   0.0474 20.99  0.53 19.84
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00831810002uw1_sk.img ================
Use keyword TRIGTIME of 547673095.232 for trigger time.
Long-term sensitivity correction to zero point is -0.353 at 547688949
The processing date in extension 0 is:  2018-05-20T03:46:25
The trigger time is: 547673095.232. The reference is keyword in image file
Using zero point of 17.087 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00831810002uw2_sk.img ================
Use keyword TRIGTIME of 547673095.232 for trigger time.
Long-term sensitivity correction to zero point is -0.429 at 547695150
The processing date in extension 0 is:  2018-05-20T03:46:25
The trigger time is: 547673095.232. The reference is keyword in image file
Using zero point of 16.951 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.00
There are no aspect corrected images to process.
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw00831810992ugu_sk.img ================
The data range from T+96.9 s (0.00 d) to T+40483.4 s (0.47 d)
Wrote uvot_fluxes_180520d03h58m46s959058usUT.qdp
Wrote uvot_fluxes_180520d03h58m46s959058usUT.gif
Wrote uvot_fluxes_180520d03h58m46s959058usUT.ps
Wrote uvot_fluxes_180520d03h58m46s959058usUT_vis.qdp
Wrote uvot_fluxes_180520d03h58m46s959058usUT_uv.qdp
Wrote uvot_fluxes_180520d03h58m46s959058usUT_vis.gif
Wrote uvot_fluxes_180520d03h58m46s959058usUT_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      182     171.8     74.9    -74.9    0.9572   0.3945 20.34  0.37     171.8    0.9572   0.3945 20.34  0.37 19.46
  1    0.105     316.1      6.3     -6.3   -3.5961   3.7051 99.00 99.00     171.9    0.9524   0.3942 20.34  0.38 19.46
  2  0.00641   21360.8   7015.0  -4601.3    0.5541   0.2619 20.93  0.42     172.6    0.9507   0.3924 20.34  0.38 19.47
  3  0.00416   28698.9    310.3   -319.3    1.2987   0.3320 20.01  0.25     173.3    0.9520   0.3910 20.34  0.37 19.47
  4 0.000218   40284.7    198.8   -182.4    1.4537   0.6387 19.88  0.40     173.3    0.9521   0.3908 20.34  0.37 19.47
The data range from T+96.9 s (0.00 d) to T+40483.4 s (0.47 d)
Wrote uvot_fluxes_wtd_180520d03h58m46s959058usUT.qdp
Wrote uvot_fluxes_wtd_180520d03h58m46s959058usUT.gif
Wrote uvot_fluxes_wtd_180520d03h58m46s959058usUT.ps
Found 6 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-01-16 fem