# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 191026d01h18m05s148696usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00931484992 -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
# ========= GRB191025 ===================
Could not find/read custom source region custom_931484_src.reg
Used archived BAT position of 139.77100 1.38400
Reference: GCN_Position_Notice_Fri_25_Oct_19_18:16:28_UT
The position is (09:19:05.04, +01:23:02.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(139.771,+1.384,3") # color=red dash=0
Source region spec. is: 139.771 +1.384 3"
Region file centered at (139.771,+1.384), which is (09:19:05.04, +01:23:02.4)
Could not find/read custom background region custom_931484_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 -23.80596 from uncorrected trigger time of 593720172.99 in BAT summary file
# ============ Reading file sw00931484992uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.216 at 593720270
The processing date in extension 0 is: 2019-10-26T01:06:04
The trigger time is: 593720196.79596. The reference is BAT GRB summary file
Using zero point of 20.074 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.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(139.771,+1.384,25")
fk5;-circle(139.771,+1.384,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 wh593720270I      73.4  0.95  147.4  457.1 113  24800  5838  0.000 0.176 99.00 20.2  0.0000 0.1759 99.00 20.2   147  0.000  0.032 99.00 1.605 
   2 wh593720270E      73.4  0.94  147.4  441.4 110  24790  5838  0.000 0.174 99.00 20.2 
   3 wh593720761E     564.9  0.92   19.5   96.9 111   4971  5843  0.000 0.609 99.00 18.8  0.0000 0.1706 99.00 20.2   167  0.000  0.032 99.00 1.385 
   4 wh593720934E     737.9  0.89   19.4  142.7 112   6620  5832  0.000 0.729 99.00 18.7  0.0000 0.1698 99.00 20.2   186  0.000  0.032 99.00 1.161 
above line uses coinc_corr_src:  0.889 corr_bkg:  0.889
High bkg:   5 wh593721059I  128.3  54391  5841 72.556  0.311
   5 wh593721059I     862.8  0.86  128.3 1015.5 111  54391  5841  0.000 0.325 99.00 19.5  0.0000 0.1634 99.00 20.3   315  0.000  0.032 99.00 0.526 
above line uses coinc_corr_src:  0.862 corr_bkg:  0.862
    Sum (T+    73 to    993):            1735.2       1735.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.27
  0   315 593720727     529.8    463.5   -456.4    0.0000   0.1634 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.031 snr:  0.0 mag: 99.00 UL: 22.07
Rebinned Data for sw00931484992uwh_sk.img using a zero point of 20.074:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      139     148.3     74.9    -74.9    0.0000   0.1759 99.00 99.00     148.3    0.0000   0.1759 99.00 99.00 20.69
  1      146     863.4    129.8   -298.6    0.0000   0.2717 99.00 99.00     514.0    0.0000   0.1634 99.00 99.00 20.77
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00931484992uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.276 at 593720251
The processing date in extension 0 is:  2019-10-26T01:05:40
The trigger time is: 593720196.79596. The reference is BAT GRB summary file
Using zero point of 17.614 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(139.771,+1.384,25")
fk5;-circle(139.771,+1.384,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 vv593720250E      53.8  0.99    9.8    7.9 112    417  5842  0.000 0.321 99.00 17.1 
   2 vv593720811E     614.8  0.98   19.5   27.4 112   1088  5840  0.000 0.262 99.00 17.3  0.0000 0.2624 99.00 17.3    19  0.000  1.927 99.00 0.125 
   3 vv593720984E     787.6  0.97   19.5   38.3 112   1827  5844  0.000 0.345 99.00 17.0  0.0000 0.2162 99.00 17.5    39  0.000  1.655 99.00 0.083 
    Sum (T+   615 to    807):              55.9         55.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  17.51
  0    39 593720908     711.1     96.3    -96.3    0.0000   0.2162 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.031 snr:  0.0 mag: 99.00 UL: 19.63
Rebinned Data for sw00931484992uvv_sk.img using a zero point of 17.614:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0       38     710.5     96.9    -95.7    0.0000   0.2162 99.00 99.00     710.5    0.0000   0.2162 99.00 99.00 18.01
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00931484992ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.157 at 593720737
The processing date in extension 0 is:  2019-10-26T01:05:57
The trigger time is: 593720196.79596. The reference is BAT GRB summary file
Using zero point of 18.953 for filter B
Use aperture correction of  1.108 based on aperture of  3.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(139.771,+1.384,25")
fk5;-circle(139.771,+1.384,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 bb593720737E     540.6  0.97   19.5   35.7 115   2047  5849  0.000 0.378 99.00 18.2  0.0000 0.3778 99.00 18.2    19  0.000  0.713 99.00 0.247 
   2 bb593720909E     713.0  0.95   19.4   57.1 111   2835  5842  0.000 0.443 99.00 18.1  0.0000 0.2908 99.00 18.5    39  0.000  0.598 99.00 0.185 
    Sum (T+   541 to    733):              94.1         94.1 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.53
  0    39 593720833     636.6     96.1    -96.1    0.0000   0.2908 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.031 snr:  0.0 mag: 99.00 UL: 20.95
Rebinned Data for sw00931484992ubb_sk.img using a zero point of 18.953:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     37.3     636.0     96.7    -95.5    0.0000   0.2908 99.00 99.00     636.0    0.0000   0.2908 99.00 99.00 19.02
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00931484992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.170 at 593720482
The processing date in extension 0 is:  2019-10-26T01:06:05
The trigger time is: 593720196.79596. The reference is BAT GRB summary file
Using zero point of 18.170 for filter U
Use aperture correction of  1.100 based on aperture of  3.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(139.771,+1.384,25")
fk5;-circle(139.771,+1.384,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 uu593720482I     285.2  0.99  245.8  205.2 111  10195  5840  0.000 0.064 99.00 19.4  0.0000 0.0637 99.00 19.4   246  0.000  0.184 99.00 0.433 
   2 uu593720482E     285.2  0.99  245.8  206.0 111  10215  5844  0.000 0.064 99.00 19.4 
   3 uu593720884E     688.1  0.98   19.5   23.7 108   1272  5848  0.000 0.282 99.00 17.8  0.0000 0.0626 99.00 19.4   265  0.000  0.183 99.00 0.404 
    Sum (T+   285 to    708):             217.3        217.3 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.41
  0   265 593720628     431.2    276.7   -146.0    0.0000   0.0626 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.031 snr:  0.0 mag: 99.00 UL: 20.19
Rebinned Data for sw00931484992uuu_sk.img using a zero point of 18.170:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      242     410.1    124.9   -124.9    0.0000   0.0637 99.00 99.00     410.1    0.0000   0.0637 99.00 99.00 19.89
  1       19     698.0      9.9     -9.9    0.0000   0.2824 99.00 99.00     431.1    0.0000   0.0626 99.00 99.00 19.91
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00931484992uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.460 at 593720861
The processing date in extension 0 is:  2019-10-26T01:06:00
The trigger time is: 593720196.79596. The reference is BAT GRB summary file
Using zero point of 16.980 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(139.771,+1.384,25")
fk5;-circle(139.771,+1.384,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
High bkg:   1 w1593720860E   19.4    174  5842  1.534  0.116
   1 w1593720860E     663.8  1.00   19.4    1.0 116    174  5842  0.000 0.109 99.00 17.6  0.0000 0.1088 99.00 17.6    19  0.000  1.546 99.00 0.394 
High bkg:   2 w1593721033E   19.5    224  5849  1.965  0.131
   2 w1593721033E     836.9  1.00   19.5    2.3 115    224  5849  0.000 0.123 99.00 17.5  0.0000 0.0820 99.00 17.9    39  0.000  1.263 99.00 0.312 
    Sum (T+   664 to    857):               7.9          7.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  17.93
  0    39 593720957     760.2     96.4    -96.5    0.0000   0.0820 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.031 snr:  0.0 mag: 99.00 UL: 18.98
Rebinned Data for sw00931484992uw1_sk.img using a zero point of 16.980:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.8     760.2     96.5    -96.4    0.0000   0.0820 99.00 99.00     760.2    0.0000   0.0820 99.00 99.00 18.43
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00931484992um2_sk.img ================
Long-term sensitivity correction to zero point is -0.429 at 593720836
The processing date in extension 0 is:  2019-10-26T01:06:00
The trigger time is: 593720196.79596. The reference is BAT GRB summary file
Using zero point of 16.421 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 sw00931484992uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.563 at 593720787
The processing date in extension 0 is:  2019-10-26T01:06:00
The trigger time is: 593720196.79596. The reference is BAT GRB summary file
Using zero point of 16.817 for filter UVW2
Use aperture correction of  1.108 based on aperture of  3.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(139.771,+1.384,25")
fk5;-circle(139.771,+1.384,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 w2593720787E     590.3  1.00   19.5    2.0 110     68  5843  0.000 0.065 99.00 18.0  0.0000 0.0651 99.00 18.0    19  0.000  0.957 99.00 1.032 
   2 w2593720960E     763.3  1.00   19.5    2.0 110     71  5855  0.000 0.066 99.00 18.0  0.0000 0.0465 99.00 18.4    39  0.000  0.762 99.00 0.899 
    Sum (T+   590 to    783):               2.6          2.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  18.38
  0    39 593720883     686.7     96.4    -96.4    0.0000   0.0465 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.031 snr:  0.0 mag: 99.00 UL: 18.83
Rebinned Data for sw00931484992uw2_sk.img using a zero point of 16.817:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.9     686.7     96.4    -96.4    0.0000   0.0465 99.00 99.00     686.7    0.0000   0.0465 99.00 99.00 18.88
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw00931484992ugu_sk.img ================
The data range from T+73.4 s (0.00 d) to T+993.2 s (0.01 d)
Wrote uvot_fluxes_191026d01h18m05s148696usUT.qdp
Wrote uvot_fluxes_191026d01h18m05s148696usUT.gif
Wrote uvot_fluxes_191026d01h18m05s148696usUT.ps
Wrote uvot_fluxes_191026d01h18m05s148696usUT_vis.qdp
Wrote uvot_fluxes_191026d01h18m05s148696usUT_uv.qdp
Wrote uvot_fluxes_191026d01h18m05s148696usUT_vis.gif
Wrote uvot_fluxes_191026d01h18m05s148696usUT_vis.ps
Wrote uvot_fluxes_191026d01h18m05s148696usUT_uv.gif
Wrote uvot_fluxes_191026d01h18m05s148696usUT_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      810     148.3     74.9    -74.9    0.0000   0.2146 99.00 99.00     148.3    0.0000   0.2146 99.00 99.00 20.69
  1     11.4     545.6    261.8   -260.3    0.0000   0.3937 99.00 99.00     153.8    0.0000   0.2049 99.00 99.00 20.74
  2     6.06     928.0     65.2    -65.2    0.0000   0.3962 99.00 99.00     159.5    0.0000   0.1969 99.00 99.00 20.79
The data range from T+73.4 s (0.00 d) to T+993.2 s (0.01 d)
Wrote uvot_fluxes_wtd_191026d01h18m05s148696usUT.qdp
Wrote uvot_fluxes_wtd_191026d01h18m05s148696usUT.gif
Wrote uvot_fluxes_wtd_191026d01h18m05s148696usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem