# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 190410d06h14m02s589661usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00897653992 -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
# ========= GRB190409A ===================
Could not find/read custom source region custom_897653_src.reg
Used archived BAT position of 324.92100 -46.60700
Reference: GCN_Position_Notice_Tue_09_Apr_19_13:02:37_UT
The position is (21:39:41.04, -46:36:25.2)
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(324.921,-46.607,3") # color=red dash=0
Source region spec. is: 324.921 -46.607 3"
Region file centered at (324.921,-46.607), which is (21:39:41.04, -46:36:25.2)
Could not find/read custom background region custom_897653_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 -22.71098 from uncorrected trigger time of 576507681.28 in BAT summary file
# ============ Reading file sw00897653992uwh_sk.img ================
Use keyword TRIGTIME of 576507703.769 for trigger time.
Long-term sensitivity correction to zero point is -0.207 at 576510654
The processing date in extension 0 is: 2019-04-10T06:07:04
The trigger time is: 576507703.769. The reference is keyword in image file
Using zero point of 20.083 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(324.921,-46.607,25")
fk5;-circle(324.921,-46.607,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 wh576510654I    2950.3  0.96  147.4  316.2 110  17421  5836  0.000 0.143 99.00 20.4  0.0000 0.1430 99.00 20.4   147  0.000  0.523 99.00 0.118 
   2 wh576510654E    2950.3  0.96  147.4  330.6 112  17405  5842  0.000 0.144 99.00 20.4 
   3 wh576511840I    4136.3  0.92  125.2  627.0 112  32212  5844  0.000 0.242 99.00 19.9  0.0000 0.1341 99.00 20.5   273  0.000  0.482 99.00 0.065 
    Sum (T+  2950 to   4263):             945.7        945.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.50
  0   273 576511268    3564.7    698.8   -614.4    0.0000   0.1341 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.477 snr:  0.0 mag: 99.00 UL: 19.12
Rebinned Data for sw00897653992uwh_sk.img using a zero point of 20.083:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      256    3550.6    712.9   -600.3    0.0000   0.1341 99.00 99.00    3550.6    0.0000   0.1341 99.00 99.00 21.00
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00897653992uvv_sk.img ================
Use keyword TRIGTIME of 576507703.769 for trigger time.
Long-term sensitivity correction to zero point is -0.264 at 576510636
The processing date in extension 0 is:  2019-04-10T06:07:04
The trigger time is: 576507703.769. The reference is keyword in image file
Using zero point of 17.626 for filter V
Use aperture correction of  1.087 based on aperture of  3.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(324.921,-46.607,25")
fk5;-circle(324.921,-46.607,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 vv576510635E    2932.0  0.99    9.7    3.0 112    211  5839  0.000 0.230 99.00 17.5 
   2 vv576510812I    3108.7  0.99  196.6  119.3 116   6219  5820  0.000 0.063 99.00 18.9  0.0000 0.0628 99.00 18.9   197  0.000  2.345 99.00 0.042 
   3 vv576517197I    9494.0  0.99  295.0  280.1 116  13566  5880  0.000 0.062 99.00 18.9  0.0000 0.0448 99.00 19.2   492  0.000  2.221 99.00 0.020 
   4 vv576517501I    9797.6  0.99  295.0  243.6 112  13265  5848  0.000 0.060 99.00 18.9  0.0000 0.0360 99.00 19.5   787  0.000  2.116 99.00 0.016 
   5 vv576517804I   10101.0  0.98   71.2   71.8 104   3922  5808  0.000 0.131 99.00 18.1  0.0000 0.0347 99.00 19.5   858  0.000  2.097 99.00 0.015 
    Sum (T+  3109 to  10173):             715.9        715.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.51
  0   858 576516018    8314.2   1859.1  -5205.5    0.0000   0.0347 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.457 snr:  0.0 mag: 99.00 UL: 16.71
Rebinned Data for sw00897653992uvv_sk.img using a zero point of 17.626:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    3208.6     99.9    -99.9    0.0000   0.0628 99.00 99.00    3208.6    0.0000   0.0628 99.00 99.00 19.36
  1      651    9832.4    340.9   -338.4    0.0000   0.0410 99.00 99.00    8308.6    0.0000   0.0347 99.00 99.00 20.01
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00897653992ubb_sk.img ================
Use keyword TRIGTIME of 576507703.769 for trigger time.
Long-term sensitivity correction to zero point is -0.151 at 576511635
The processing date in extension 0 is:  2019-04-10T06:07:04
The trigger time is: 576507703.769. The reference is keyword in image file
Using zero point of 18.959 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(324.921,-46.607,25")
fk5;-circle(324.921,-46.607,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 bb576511635I    3931.6  0.96  196.6  449.3 108  23081  5812  0.000 0.122 99.00 19.5  0.0000 0.1224 99.00 19.5   197  0.000  1.681 99.00 0.032 
    Sum (T+  3932 to   4131):             428.9        428.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.47
  0   197 576511735    4031.5     99.9    -99.9    0.0000   0.1224 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.448 snr:  0.0 mag: 99.00 UL: 18.06
Rebinned Data for sw00897653992ubb_sk.img using a zero point of 18.959:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      189    4031.5     99.9    -99.9    0.0000   0.1224 99.00 99.00    4031.5    0.0000   0.1224 99.00 99.00 19.97
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00897653992uuu_sk.img ================
Use keyword TRIGTIME of 576507703.769 for trigger time.
Long-term sensitivity correction to zero point is -0.163 at 576511428
The processing date in extension 0 is:  2019-04-10T06:07:04
The trigger time is: 576507703.769. The reference is keyword in image file
Using zero point of 18.177 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(324.921,-46.607,25")
fk5;-circle(324.921,-46.607,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 uu576511428I    3724.2  0.98  196.6  173.8 112   9344  5832  0.000 0.077 99.00 19.2  0.0000 0.0768 99.00 19.2   197  0.000  2.058 99.00 0.040 
    Sum (T+  3724 to   3924):             179.4        179.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.20
  0   197 576511528    3824.1     99.9    -99.9    0.0000   0.0768 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.435 snr:  0.0 mag: 99.00 UL: 17.32
Rebinned Data for sw00897653992uuu_sk.img using a zero point of 18.177:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    3824.1     99.9    -99.9    0.0000   0.0768 99.00 99.00    3824.1    0.0000   0.0768 99.00 99.00 19.70
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00897653992uw1_sk.img ================
Use keyword TRIGTIME of 576507703.769 for trigger time.
Long-term sensitivity correction to zero point is -0.417 at 576511223
The processing date in extension 0 is:  2019-04-10T06:07:04
The trigger time is: 576507703.769. The reference is keyword in image file
Using zero point of 17.023 for filter UVW1
Use aperture correction of  1.123 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(324.921,-46.607,25")
fk5;-circle(324.921,-46.607,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 w1576511223I    3519.5  1.00  196.6   17.5 104    865  5852  0.000 0.023 99.00 19.4  0.0000 0.0226 99.00 19.4   197  0.000  1.660 99.00 0.174 
    Sum (T+  3519 to   3719):              15.4         15.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.37
  0   197 576511323    3619.4     99.9    -99.9    0.0000   0.0226 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.429 snr:  0.0 mag: 99.00 UL: 16.18
Rebinned Data for sw00897653992uw1_sk.img using a zero point of 17.023:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    3619.4     99.9    -99.9    0.0000   0.0226 99.00 99.00    3619.4    0.0000   0.0226 99.00 99.00 19.87
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00897653992um2_sk.img ================
Use keyword TRIGTIME of 576507703.769 for trigger time.
Long-term sensitivity correction to zero point is -0.393 at 576511017
The processing date in extension 0 is:  2019-04-10T06:07:04
The trigger time is: 576507703.769. The reference is keyword in image file
Using zero point of 16.457 for filter UVM2
Use aperture correction of  1.106 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(324.921,-46.607,25")
fk5;-circle(324.921,-46.607,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 m2576511017I    3313.4  1.00  196.6    4.7 108    236  5828  0.000 0.012 99.00 19.5  0.0000 0.0119 99.00 19.5   197  0.000  1.384 99.00 0.385 
    Sum (T+  3313 to   3513):               4.4          4.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.50
  0   197 576511117    3413.3     99.9    -99.9    0.0000   0.0119 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.403 snr:  0.0 mag: 99.00 UL: 15.68
Rebinned Data for sw00897653992um2_sk.img using a zero point of 16.457:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    3413.3     99.9    -99.9    0.0000   0.0119 99.00 99.00    3413.3    0.0000   0.0119 99.00 99.00 20.00
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00897653992uw2_sk.img ================
Use keyword TRIGTIME of 576507703.769 for trigger time.
Long-term sensitivity correction to zero point is -0.509 at 576516292
The processing date in extension 0 is:  2019-04-10T06:07:04
The trigger time is: 576507703.769. The reference is keyword in image file
Using zero point of 16.871 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(324.921,-46.607,25")
fk5;-circle(324.921,-46.607,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 w2576516291I    8587.8  1.00  885.6   39.1 128   2016  5880  0.000 0.008 99.00 20.3  0.0000 0.0084 99.00 20.3   886  0.000  1.767 99.00 0.096 
    Sum (T+  8588 to   9488):              43.9         43.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.30
  0   886 576516741    9037.6    449.9   -449.9    0.0000   0.0084 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.394 snr:  0.0 mag: 99.00 UL: 16.12
Rebinned Data for sw00897653992uw2_sk.img using a zero point of 16.871:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885    9037.6    449.9   -449.9    0.0000   0.0084 99.00 99.00    9037.6    0.0000   0.0084 99.00 99.00 20.79
The data range from T+2950.3 s (0.03 d) to T+10173.3 s (0.12 d)
Wrote uvot_fluxes_190410d06h14m02s589661usUT.qdp
Wrote uvot_fluxes_190410d06h14m02s589661usUT.gif
Wrote uvot_fluxes_190410d06h14m02s589661usUT.ps
Wrote uvot_fluxes_190410d06h14m02s589661usUT_vis.qdp
Wrote uvot_fluxes_190410d06h14m02s589661usUT_uv.qdp
Wrote uvot_fluxes_190410d06h14m02s589661usUT_vis.gif
Wrote uvot_fluxes_190410d06h14m02s589661usUT_vis.ps
Wrote uvot_fluxes_190410d06h14m02s589661usUT_uv.gif
Wrote uvot_fluxes_190410d06h14m02s589661usUT_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     3.72    3233.7   1029.8   -283.4    0.0000   0.1437 99.00 99.00    3233.7    0.0000   0.1437 99.00 99.00 21.13
  1  0.00392    9826.3    347.1   -332.3    0.0000   0.4766 99.00 99.00    3240.6    0.0000   0.1432 99.00 99.00 21.13
The data range from T+2950.3 s (0.03 d) to T+10173.3 s (0.12 d)
Wrote uvot_fluxes_wtd_190410d06h14m02s589661usUT.qdp
Wrote uvot_fluxes_wtd_190410d06h14m02s589661usUT.gif
Wrote uvot_fluxes_wtd_190410d06h14m02s589661usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem