# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190609d06h25m27s482760usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020893001 -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
# ========= GRB190530A ===================
Could not find/read custom source region custom_020893_src.reg
Used archived uvot source position of 120.53209 35.47968 3.00
Reference: GCN_Circ-24703
The position is (08:02:07.70, +35:28:46.8)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(120.53209,35.47968,3") # color=red dash=0
Source region spec. is: 120.53209 35.47968 3"
Region file centered at (120.53209,35.47968), which is (08:02:07.70, +35:28:46.8)
Could not find/read custom background region custom_020893_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 120.53209 35.47968:
ra: 120.5293 dec: 35.4661 mag: 10.89
Subtract UTCF of -23.01886 from uncorrected trigger time of 580904348 in BAT summary file
# ============ Reading file sw00020893001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.267 at 580938600
The processing date in extension 0 is: 2019-06-09T05:57:23
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 17.623 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
  1  -21.0 120.72637  35.50001 0.286 268.6
  2   36.0 120.74819  35.49994 0.286 268.6
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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 vv580938599I   34229.0  0.97   44.1  101.9 116   2755  5872 
Low  bkg:   2 vv580944403I   23.4      0  5872  0.000  0.007
%  2 vv580944403I   40032.5  1.00   23.4    0.0 120      0  5872 
   3 vv580960903I   56532.3  0.98  198.6  330.0 112  12825  5837  0.471 0.103 18.44 17.9  0.4707 0.1026 18.44 17.9   199 310.865 67.773 14.06 0.001 
    Sum (T+ 56532 to  56734):             330.0        246.1 (est. in src region)   SNR_unwtd_sum:   4.59 0.9987 signif. UL:  17.89
  0   199 580961004   56633.2    100.9   -100.9    0.4707   0.1026 18.441  0.267  -0.214
Total wtd_rate (for all exposures so far): 310.865 +/-67.293 snr:  4.6 mag: 14.06 UL: 10.85
Rebinned Data for sw00020893001uvv_sk.img using a zero point of 17.623:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194   56633.2    100.9   -100.9    0.4707   0.1026 18.44  0.21   56633.2    0.4707   0.1026 18.44  0.21 17.89
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00020893001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.153 at 580938366
The processing date in extension 0 is:  2019-06-09T05:57:23
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 18.957 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  -20.7 120.72658  35.50014 0.286 268.6
  3   36.6 120.74817  35.49952 0.286 268.6
Using background region based on sources found in extension 5:
# 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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 bb580938365I   33994.6  0.95   44.1  216.7 116   4523  5974 
   2 bb580942705I   38334.1  0.94  153.3  720.2 108  21384  5898  2.521 0.207 17.95 17.7  2.5212 0.2069 17.95 17.7   153 330.446 27.117 13.99 0.003 
Low  bkg:   3 bb580944275I   23.4      0  5808  0.000  0.007
%  3 bb580944275I   39904.2  1.00   23.4    0.0 112      0  5808 
   4 bb580948444I   44073.2  0.95  193.7  847.0 120  25244  5939  2.037 0.177 18.18 17.9  2.2503 0.1346 18.08 17.9   347 319.111 19.040 14.03 0.003 
   5 bb580959880I   55509.8  0.95  198.6  737.9 112  27201  5877  1.293 0.161 18.68 18.3  1.9015 0.1038 18.26 18.1   546 301.436 16.225 14.09 0.002 
    Sum (T+ 38334 to  55712):            2305.2       1420.1 (est. in src region)   SNR_unwtd_sum:  18.33 0.9987 signif. UL:  18.09
  0   546 580951087   46715.7   8995.8  -8381.6    1.9015   0.1038 18.260  0.061  -0.058
Total wtd_rate (for all exposures so far): 302.082 +/-15.720 snr: 19.2 mag: 14.09 UL: 12.60
Rebinned Data for sw00020893001ubb_sk.img using a zero point of 18.957:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      328   41633.3   2636.6  -3299.2    2.2503   0.1346 18.08  0.06   41633.3    2.2503   0.1346 18.08  0.06 17.90
  1      188   55610.6    100.9   -100.9    1.2935   0.1611 18.68  0.13   46728.7    1.9015   0.1038 18.26  0.06 18.09
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00020893001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.165 at 580938316
The processing date in extension 0 is:  2019-06-09T05:57:23
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 18.175 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  -18.8 120.72743  35.50033 0.286 268.6
  3   40.8 120.74949  35.49908 0.286 268.6
Using background region based on sources found in extension 6:
# 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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 uu580938315I   33945.0  0.96   44.1  187.9 112   1782  5989 
   2 uu580942503I   38132.3  0.96  193.7  649.0 112  12694  5918  2.412 0.151 17.22 17.0  2.4123 0.1509 17.22 17.0   194 646.951 40.462 13.26 0.003 
Low  bkg:   3 uu580944246I   23.4      0  5796  0.000  0.007
%  3 uu580944246I   39875.8  1.00   23.4    0.0 108      0  5796 
   4 uu580948242I   43871.5  0.96  193.7  583.6 116  12934  5953  1.951 0.143 17.45 17.2  2.1811 0.1038 17.33 17.2   387 627.926 29.876 13.29 0.003 
   5 uu580954639I   50268.4  0.97   99.9  282.9 116   4905  5947  2.122 0.191 17.36 17.1  2.1690 0.0914 17.33 17.2   487 650.414 27.369 13.26 0.003 
   6 uu580959673I   55302.6  0.97  198.6  568.4 120  13730  5926  1.661 0.137 17.62 17.4  2.0217 0.0761 17.41 17.3   686 649.609 24.448 13.26 0.002 
    Sum (T+ 38132 to  55504):            2083.8        866.0 (est. in src region)   SNR_unwtd_sum:  26.57 0.9987 signif. UL:  17.29
  0   686 580950956   46584.7   8919.6  -8452.4    2.0217   0.0761 17.411  0.041  -0.040
Total wtd_rate (for all exposures so far): 434.111 +/-13.410 snr: 32.4 mag: 13.70 UL: 11.48
Rebinned Data for sw00020893001uuu_sk.img using a zero point of 18.175:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      373   41104.6   2963.6  -2972.3    2.1811   0.1038 17.33  0.05   41104.6    2.1811   0.1038 17.33  0.05 17.18
  1      289   53698.0   1806.4  -3429.6    1.8160   0.1114 17.53  0.07   46602.5    2.0217   0.0761 17.41  0.04 17.29
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00020893001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.428 at 580938222
The processing date in extension 0 is:  2019-06-09T05:57:23
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 17.012 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  -18.3 120.72710  35.49952 0.286 268.6
  3   39.5 120.74919  35.49938 0.286 268.6
Using background region based on sources found in extension 7:
# 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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 w1580938222I   33851.0  0.99   88.3  109.1 112    517  5854 
High bkg:   2 w1580942104I  387.6   3260  5868  1.434  0.025
   2 w1580942104I   37733.6  0.99  387.6  462.0 120   3260  5912  1.159 0.063 16.85 16.7  1.1589 0.0630 16.85 16.7   388 900.066 48.944 12.90 0.007 
Low  bkg:   3 w1580944194I   46.0      0  5812  0.000  0.004
%  3 w1580944194I   39823.7  1.00   46.0    0.0 108      0  5812 
High bkg:   4 w1580947843I  387.6   3306  5868  1.454  0.025
   4 w1580947843I   43472.8  0.99  387.6  402.0 120   3306  5904  0.979 0.059 17.04 16.9  1.0689 0.0431 16.94 16.8   775 889.539 35.907 12.92 0.007 
High bkg:   5 w1580953587I   13.0    136  5868  1.792  0.153
   5 w1580953587I   49216.7  0.99   13.0   12.3 120    136  5892  0.829 0.306 17.22 16.4  1.0650 0.0427 16.94 16.8   788 889.046 35.692 12.92 0.007 
   6 w1580954372I   50001.1  0.99  257.6  179.0 120   1767  5895  0.628 0.059 17.52 17.2  0.9571 0.0353 17.06 16.9  1046 837.626 30.916 12.98 0.007 
High bkg:   7 w1580959263I  398.4   3674  5808  1.588  0.026
   7 w1580959263I   54892.8  0.99  398.4  312.6 108   3674  5835  0.695 0.050 17.41 17.2  0.8847 0.0291 17.14 17.0  1444 827.942 27.332 12.99 0.006 
    Sum (T+ 37734 to  55298):            1368.0        240.1 (est. in src region)   SNR_unwtd_sum:  30.44 0.9987 signif. UL:  17.04
  0  1444 580950855   46484.2   8813.4  -8750.6    0.8847   0.0291 17.145  0.036  -0.035
Total wtd_rate (for all exposures so far): 608.158 +/-14.070 snr: 43.2 mag: 13.33 UL:  9.98
Rebinned Data for sw00020893001uw1_sk.img using a zero point of 17.012:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      768   40801.8   3064.7  -3068.2    1.0689   0.0431 16.94  0.04   40801.8    1.0689   0.0431 16.94  0.04 16.82
  1      664   53069.1   2228.5  -3852.4    0.6716   0.0380 17.44  0.06   46491.7    0.8847   0.0291 17.14  0.04 17.04
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00020893001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.402 at 580938649
The processing date in extension 0 is:  2019-06-09T05:57:24
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 16.448 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  -22.6 120.72594  35.50031 0.286 268.6
  2   35.4 120.74799  35.50000 0.286 268.6
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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 m2580938648I   34277.9  0.99   68.2   50.4 104     85  5879 
Low  bkg:   2 m2580944431I   26.9      0  5820  0.000  0.006
%  2 m2580944431I   40060.4  1.00   26.9    0.0 112      0  5820 
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00020893001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.523 at 580938416
The processing date in extension 0 is:  2019-06-09T05:57:23
The trigger time is: 580904371.01886. The reference is BAT GRB summary file
Using zero point of 16.857 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  -21.7 120.72625  35.50026 0.286 268.6
  2   35.1 120.74784  35.49995 0.286 268.6
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(120.53209,35.47968,25")
fk5;-circle(120.53209,35.47968,12.5")
fk5;-circle(120.5292962,35.4661261,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 w2580938415I   34044.8  0.99  176.9  174.4 112    442  5857 
Low  bkg:   2 w2580944304I   93.3      0  5816  0.000  0.002
%  2 w2580944304I   39933.5  1.00   93.3    0.0 108      0  5816 
   3 w2580948646I   44275.8  0.99  328.8  188.9 108    823  5840  0.588 0.047 17.43 17.2  0.5882 0.0466 17.43 17.2   329 617.145 48.880 13.31 0.020 
   4 w2580960088I   55717.5  1.00  796.0  375.9 112   1914  5823  0.474 0.027 17.67 17.5  0.5072 0.0235 17.59 17.5  1125 623.557 29.079 13.30 0.017 
    Sum (T+ 44276 to  56526):             564.8         52.0 (est. in src region)   SNR_unwtd_sum:  21.56 0.9987 signif. UL:  17.45
  0  1125 580957079   52707.8   3818.5  -8432.0    0.5072   0.0235 17.594  0.052  -0.049
Total wtd_rate (for all exposures so far): 609.494 +/-14.418 snr: 42.3 mag: 13.33 UL:  9.82
Rebinned Data for sw00020893001uw2_sk.img using a zero point of 16.857:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      327   44442.9    167.0   -167.0    0.5882   0.0466 17.43  0.08   44442.9    0.5882   0.0466 17.43  0.08 17.20
  1      793   56121.9    404.4   -404.4    0.4738   0.0271 17.67  0.06   52711.5    0.5072   0.0235 17.59  0.05 17.45
The data range from T+37733.6 s (0.44 d) to T+56734.1 s (0.66 d)
Wrote uvot_fluxes_190609d06h25m27s482760usUT.qdp
Wrote uvot_fluxes_190609d06h25m27s482760usUT.gif
Wrote uvot_fluxes_190609d06h25m27s482760usUT.ps
Wrote uvot_fluxes_190609d06h25m27s482760usUT_vis.qdp
Wrote uvot_fluxes_190609d06h25m27s482760usUT_uv.qdp
Wrote uvot_fluxes_190609d06h25m27s482760usUT_vis.gif
Wrote uvot_fluxes_190609d06h25m27s482760usUT_vis.ps
Wrote uvot_fluxes_190609d06h25m27s482760usUT_uv.gif
Wrote uvot_fluxes_190609d06h25m27s482760usUT_uv.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 8.71e-05   38230.7     98.4    -98.4   16.9223   1.0584 17.22  0.07   38230.7   16.9223   1.0584 17.22  0.07 17.03
  1 0.000399   38412.0     77.9    -77.9    8.6027   0.7060 17.95  0.09   38379.5   10.0886   0.6099 17.78  0.06 17.60
  2 7.35e-05   43969.9     98.4    -98.4   13.6840   1.0013 17.45  0.08   39114.8   10.6201   0.5404 17.73  0.05 17.57
  3 0.000412   44171.6     98.4    -98.4    6.9499   0.6039 18.18  0.09   41259.6    8.9535   0.4028 17.91  0.05 17.77
  4 8.15e-05   53452.6   2051.7  -3184.2   12.8227   0.7825 17.52  0.06   42203.5    9.3329   0.3713 17.86  0.04 17.74
  5 0.000332   55668.1   1066.0   -158.3    4.4749   0.5229 18.66  0.12   45433.2    7.9051   0.3039 18.05  0.04 17.93
The data range from T+37733.6 s (0.44 d) to T+56734.1 s (0.66 d)
Wrote uvot_fluxes_wtd_190609d06h25m27s482760usUT.qdp
Wrote uvot_fluxes_wtd_190609d06h25m27s482760usUT.gif
Wrote uvot_fluxes_wtd_190609d06h25m27s482760usUT.ps
Found 10 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem