# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200803d06h51m59s993699usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021019001 -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/data/khamseenssd/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB200723A ===================
Could not find/read custom source region custom_021019_src.reg
Used archived opt source position of 244.64571 60.32117 3.00
Reference: GCN_Circulars-28159
The position is (16:18:34.97, +60:19:16.2)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(244.64571,60.32117,3") # color=red dash=0
Source region spec. is: 244.64571 60.32117 3"
Region file centered at (244.64571,60.32117), which is (16:18:34.97, +60:19:16.2)
Could not find/read custom background region custom_021019_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 2 bright star(s) within 50.0 arcsec of 244.64571 60.32117:
ra: 244.6455 dec: 60.3189 mag: 10.71
ra: 244.6437 dec: 60.3158 mag: 11.92
Subtract UTCF of -25.30228 from uncorrected trigger time of 617214924 in BAT summary file
# ============ Reading file sw00021019001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.166 at 617292747
The processing date in extension 0 is: 2020-08-03T06:39:14
The trigger time is: 617214949.30228. The reference is BAT GRB summary file
Using zero point of 18.944 for filter B
Use aperture correction of 1.108 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(244.64571,60.32117,25")
fk5;-circle(244.64571,60.32117,12.5")
fk5;-circle(244.650053,60.324603,6")
fk5;-circle(244.6454806,60.3189472,25")
fk5;-circle(244.6436588,60.3157733,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 bb617292746I   77797.2  0.96  295.0 1156.2 128   1675  1581  3.993 0.134 17.44 17.3  3.9928 0.1337 17.44 17.3   295 1075.046 35.987 12.71 0.008 
Low  bkg:   2 bb617293050I  295.0   1561  1464  3.615  0.091
   2 bb617293050I   78100.7  0.96  295.0  997.4 104   1561  1513  3.476 0.124 17.59 17.5  3.7344 0.0911 17.51 17.4   590 999.621 24.528 12.79 0.009 
Low  bkg:   3 bb617293353I   27.0    145  1492  3.608  0.299
   3 bb617293353I   78404.2  0.96   27.0   90.8 108    145  1542  3.445 0.409 17.60 17.3  3.7217 0.0889 17.52 17.4   617 996.519 23.947 12.79 0.009 
    Sum (T+ 77797 to  78432):            2244.3        253.1 (est. in src region)   SNR_unwtd_sum:  41.85 0.9987 signif. UL:  17.44
  0   617 617293062   78112.8    318.8   -315.6    3.7217   0.0889 17.517  0.027  -0.025
Total wtd_rate (for all exposures so far): 996.519 +/-23.849 snr: 41.8 mag: 12.79 UL: 11.37
Rebinned Data for sw00021019001ubb_sk.img using a zero point of 18.944:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      593   78112.9    318.7   -315.7    3.7217   0.0889 17.52  0.02   78112.9    3.7217   0.0889 17.52  0.02 17.44
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021019001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.180 at 617291834
The processing date in extension 0 is:  2020-08-03T06:39:14
The trigger time is: 617214949.30228. The reference is BAT GRB summary file
Using zero point of 18.160 for filter U
Use aperture correction of  1.100 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(244.64571,60.32117,25")
fk5;-circle(244.64571,60.32117,12.5")
fk5;-circle(244.650182,60.324681,6")
fk5;-circle(244.6454806,60.3189472,25")
fk5;-circle(244.6436588,60.3157733,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 uu617291833I   76884.4  0.97  295.0  756.6 116   2942  1523  2.047 0.107 17.38 17.2  2.0465 0.1069 17.38 17.2   295 1120.835 58.548 12.67 0.002 
   2 uu617292137I   77187.9  0.98  295.0  632.4 112   1787  1497  1.905 0.097 17.46 17.3  1.9758 0.0721 17.42 17.3   590 1074.937 39.896 12.71 0.003 
   3 uu617292440I   77491.4  0.98  295.0  543.2 112    868  1505  1.821 0.089 17.51 17.4  1.9240 0.0565 17.45 17.4   885 1035.545 32.755 12.75 0.004 
Low  bkg:   4 uu617304220I   78.9    162  1468  1.397  0.110
   4 uu617304220I   89271.5  0.98   78.9  181.3 112    162  1497  2.411 0.192 17.20 17.0  1.9640 0.0542 17.43 17.3   964 1104.802 32.944 12.68 0.004 
    Sum (T+ 76884 to  89352):            2113.6        434.5 (est. in src region)   SNR_unwtd_sum:  36.24 0.9987 signif. UL:  17.34
  0   964 617293267   78317.5  11034.2  -1433.1    1.9640   0.0542 17.428  0.030  -0.030
Total wtd_rate (for all exposures so far): 1025.201 +/-19.235 snr: 53.3 mag: 12.76 UL: 10.57
Rebinned Data for sw00021019001uuu_sk.img using a zero point of 18.160:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      940   78321.6  11030.0  -1437.3    1.9640   0.0542 17.43  0.03   78321.6    1.9640   0.0542 17.43  0.03 17.34
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00021019001uw1_sk.img ================
Long-term sensitivity correction to zero point is -0.525 at 617298475
The processing date in extension 0 is:  2020-08-03T06:39:15
The trigger time is: 617214949.30228. The reference is BAT GRB summary file
Using zero point of 16.915 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(244.64571,60.32117,25")
fk5;-circle(244.64571,60.32117,12.5")
fk5;-circle(244.6454806,60.3189472,25")
fk5;-circle(244.6436588,60.3157733,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 w1617298475I   83526.1  1.00  418.8  126.8 108    280  1581  0.290 0.030 18.26 18.0  0.2899 0.0305 18.26 18.0   419 543.365 57.116 13.45 0.012 
   2 w1617303314I   88365.4  1.00  885.6  265.4 112   1098  1581  0.239 0.021 18.47 18.2  0.2554 0.0173 18.40 18.2  1304 509.671 35.485 13.52 0.007 
    Sum (T+ 83526 to  89265):             392.2         96.9 (est. in src region)   SNR_unwtd_sum:  14.78 0.9987 signif. UL:  18.20
  0  1304 617302135   87185.4   2079.7  -3659.3    0.2554   0.0173 18.397  0.076  -0.071
Total wtd_rate (for all exposures so far): 964.223 +/-17.483 snr: 55.2 mag: 12.83 UL:  9.40
Rebinned Data for sw00021019001uw1_sk.img using a zero point of 16.915:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0  1.3e+03   87184.5   2080.6  -3658.4    0.2554   0.0173 18.40  0.07   87184.5    0.2554   0.0173 18.40  0.07 18.20
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00021019001um2_sk.img ================
Long-term sensitivity correction to zero point is -0.482 at 617297569
The processing date in extension 0 is:  2020-08-03T06:39:15
The trigger time is: 617214949.30228. The reference is BAT GRB summary file
Using zero point of 16.368 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(244.64571,60.32117,25")
fk5;-circle(244.64571,60.32117,12.5")
fk5;-circle(244.6454806,60.3189472,25")
fk5;-circle(244.6436588,60.3157733,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 m2617297568I   82619.6  1.00  885.6   64.6 112    217  1602  0.062 0.010 19.39 19.0  0.0618 0.0101 19.39 19.0   886 190.288 31.185 14.59 0.019 
    Sum (T+ 82620 to  83519):              64.6         15.2 (est. in src region)   SNR_unwtd_sum:   6.10 0.9987 signif. UL:  18.95
  0   886 617298019   83069.5    449.9   -449.9    0.0618   0.0101 19.390  0.194  -0.165
Total wtd_rate (for all exposures so far): 842.182 +/-15.414 snr: 54.6 mag: 12.98 UL:  9.00
Rebinned Data for sw00021019001um2_sk.img using a zero point of 16.368:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      884   83069.5    449.9   -449.9    0.0618   0.0101 19.39  0.16   83069.5    0.0618   0.0101 19.39  0.16 18.95
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00021019001uw2_sk.img ================
Long-term sensitivity correction to zero point is -0.645 at 617309032
The processing date in extension 0 is:  2020-08-03T06:39:15
The trigger time is: 617214949.30228. The reference is BAT GRB summary file
Using zero point of 16.735 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(244.64571,60.32117,25")
fk5;-circle(244.64571,60.32117,12.5")
fk5;-circle(244.6454806,60.3189472,25")
fk5;-circle(244.6436588,60.3157733,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 w2617309031I   94082.6  1.00  105.7   16.2 108    111  1578  0.091 0.043 19.34 18.4  0.0910 0.0430 19.34 18.4   106 226.177 106.898 14.40 0.006 
    Sum (T+ 94083 to  94190):              16.2          7.6 (est. in src region)   SNR_unwtd_sum:   2.12 0.9987 signif. UL:  18.38
  0   106 617309086   94136.3     53.7    -53.7    0.0910   0.0430 19.338  0.695  -0.420
Total wtd_rate (for all exposures so far): 839.959 +/-15.361 snr: 54.7 mag: 12.98 UL:  9.37
Rebinned Data for sw00021019001uw2_sk.img using a zero point of 16.735:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      105   94136.3     53.7    -53.7    0.0910   0.0430 19.34  0.42   94136.3    0.0910   0.0430 19.34  0.42 18.38
The data range from T+76884.4 s (0.89 d) to T+94190.0 s (1.09 d)
Wrote uvot_fluxes_200803d06h51m59s993699usUT.qdp
Wrote uvot_fluxes_200803d06h51m59s993699usUT.gif
Wrote uvot_fluxes_200803d06h51m59s993699usUT.ps
Wrote uvot_fluxes_200803d06h51m59s993699usUT_vis.qdp
Wrote uvot_fluxes_200803d06h51m59s993699usUT_uv.qdp
Wrote uvot_fluxes_200803d06h51m59s993699usUT_vis.gif
Wrote uvot_fluxes_200803d06h51m59s993699usUT_vis.ps
Wrote uvot_fluxes_200803d06h51m59s993699usUT_uv.gif
Wrote uvot_fluxes_200803d06h51m59s993699usUT_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 0.000372   77717.5    379.5   -833.2   13.7103   0.3198 17.45  0.02   77717.5   13.7103   0.3198 17.45  0.02 17.37
  1 0.000282   78264.6    167.0   -163.9   11.9991   0.4093 17.59  0.04   77953.4   12.9697   0.2535 17.51  0.02 17.45
  2 9.43e-06   89311.6     40.1    -40.1   17.1436   1.3675 17.20  0.08   78114.7   13.0375   0.2504 17.50  0.02 17.44
The data range from T+76884.4 s (0.89 d) to T+94190.0 s (1.09 d)
Wrote uvot_fluxes_wtd_200803d06h51m59s993699usUT.qdp
Wrote uvot_fluxes_wtd_200803d06h51m59s993699usUT.gif
Wrote uvot_fluxes_wtd_200803d06h51m59s993699usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem