# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200412d08h00m11s484599usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00020979002 -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
# ========= GRB200405B ===================
Could not find/read custom source region custom_020979_src.reg
Used archived XRT position of 62.82480 -51.56870 4.00
Reference: GCN_Circ-27500(source
The position is (04:11:17.95, -51:34:07.3)
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(62.8248,-51.5687,4") # color=red dash=0
Source region spec. is: 62.8248 -51.5687 4"
Region file centered at (62.8248,-51.5687), which is (04:11:17.95, -51:34:07.3)
Could not find/read custom background region custom_020979_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.
Subtract UTCF of -24.69908 from uncorrected trigger time of 607751618.05 in BAT summary file
# ============ Reading file sw00020979001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.223 at 607818384
The processing date in extension 0 is: 2020-04-06T07:30:15
The trigger time is: 607751642.74908. The reference is BAT GRB summary file
Using zero point of 20.067 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
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(62.8248,-51.5687,25")
fk5;-circle(62.8248,-51.5687,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 wh607818384I   66741.6  0.92  189.4 1594.3 204  43794  5871  0.431 0.241 20.98 19.9  0.4307 0.2409 20.98 19.9   189 35.360 19.780 16.42 0.001 
   2 wh607818599I   66957.0  0.96 1136.6 4535.0 204 114445  5877  0.532 0.065 20.75 20.4  0.5181 0.0649 20.78 20.4  1326 43.605  5.184 16.19 0.003 
   3 wh607824215I   72573.1  0.90  167.6 1742.2 204  48176  5875  0.475 0.291 20.88 19.7  0.5135 0.0657 20.79 20.4  1494 43.561  5.084 16.19 0.002 
   4 wh607824423I   72780.4  0.96 1415.1 5136.0 200 134046  5869  0.431 0.055 20.98 20.6  0.4732 0.0431 20.88 20.6  2909 41.223  3.560 16.25 0.003 
   5 wh607829880I   78237.9  0.91  186.9 1627.3 192  48013  5836  0.289 0.248 21.42 20.0  0.4625 0.0430 20.90 20.6  3096 40.955  3.521 16.26 0.003 
   6 wh607830093I   78450.6  0.96 1370.7 5295.5 200 135811  5858  0.517 0.058 20.78 20.5  0.4793 0.0347 20.86 20.7  4466 43.602  2.986 16.19 0.003 
    Sum (T+ 66742 to  79978):           19930.3      17951.3 (est. in src region)   SNR_unwtd_sum:  13.81 0.9987 signif. UL:  20.65
  0  4466 607825300   73657.4   6320.3  -6915.8    0.4793   0.0347 20.865  0.082  -0.076
Total wtd_rate (for all exposures so far): 43.602 +/- 2.942 snr: 14.8 mag: 16.19 UL: 15.77
# ============ Reading file sw00020979002uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.223 at 608302460
The processing date in extension 0 is:  2020-04-12T07:49:15
The trigger time is: 607751642.74908. The reference is BAT GRB summary file
Using zero point of 20.067 for filter WHITE
Use aperture correction of  1.035 based on aperture of  4.00
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(62.8248,-51.5687,25")
fk5;-circle(62.8248,-51.5687,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
Low  bkg:   1 wh608302460I   40.3   2256  5840  9.588  0.202
   1 wh608302460I  550817.3  0.97   40.3   90.2 200   2256  5880  0.354 0.254 21.19 19.9  0.3543 0.2538 21.19 19.9    40 239.704 171.724 14.34 0.001 
Low  bkg:   2 wh608308195I   65.5   3766  5860  9.818  0.160
   2 wh608308195I  556553.1  0.97   65.5  168.3 200   3766  5906  0.662 0.213 20.51 19.8  0.5449 0.1637 20.73 20.0   106 369.271 111.378 13.87 0.001 
   3 wh608313747I  562104.6  0.98   56.9  131.3 208   3392  5860  0.203 0.217 21.80 20.2  0.4250 0.1307 21.00 20.3   163 294.855 89.520 14.12 0.001 
Low  bkg:   4 wh608313807I  150.6   8774  5876  9.915  0.106
   4 wh608313807I  562165.2  0.98  150.6  325.0 196   8774  5900  0.235 0.129 21.64 20.6  0.3338 0.0918 21.26 20.6   313 230.807 63.112 14.38 0.001 
   5 wh608334749I  583107.1  0.93   71.6  484.3 200  13464  5897  0.427 0.346 20.99 19.6  0.3505 0.0976 21.20 20.5   385 235.006 61.171 14.36 0.001 
   6 wh608334825I  583182.6  0.96  722.2 3289.9 208  85691  5909  0.410 0.087 21.04 20.5  0.3889 0.0662 21.09 20.6  1107 262.833 43.752 14.24 0.000 
   7 wh608335563I  583920.5  0.97   56.7  170.3 200   4392  5864  0.387 0.250 21.10 19.9  0.3888 0.0641 21.09 20.7  1164 263.682 42.502 14.24 0.000 
    Sum (T+550817 to 583978):            4659.3       4239.0 (est. in src region)   SNR_unwtd_sum:   6.06 0.9987 signif. UL:  20.65
  0  1164 608328734  577091.0   6887.2 -26273.7    0.3888   0.0641 21.092  0.196  -0.165
Total wtd_rate (for all exposures so far): 44.679 +/- 2.935 snr: 15.2 mag: 16.16 UL: 15.74
Rebinned Data for sw00020979002uwh_sk.img using a zero point of 20.067:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 4.27e+03   73663.2   6314.5  -6921.6    0.4793   0.0347 20.86  0.08   73663.2    0.4793   0.0347 20.86  0.08 20.65
  1 1.12e+03  576993.2   6985.0 -26175.9    0.3888   0.0641 21.09  0.16  178101.3    0.4606   0.0306 20.91  0.07 20.71
The data range from T+66741.6 s (0.77 d) to T+583978.1 s (6.76 d)
Wrote uvot_fluxes_200412d08h00m11s484599usUT.qdp
Wrote uvot_fluxes_200412d08h00m11s484599usUT.gif
Wrote uvot_fluxes_200412d08h00m11s484599usUT.ps
Wrote uvot_fluxes_200412d08h00m11s484599usUT_vis.qdp
Wrote uvot_fluxes_200412d08h00m11s484599usUT_uv.qdp
Wrote uvot_fluxes_200412d08h00m11s484599usUT_vis.gif
Wrote uvot_fluxes_200412d08h00m11s484599usUT_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   0.0913   73210.4   6767.3  -6468.8    0.5947   0.0408 20.85  0.07   73210.4    0.5947   0.0408 20.85  0.07 20.65
  1 0.000452  572697.9  11280.2 -21880.7    0.4558   0.0741 21.14  0.16   75670.3    0.5895   0.0394 20.86  0.07 20.66
The data range from T+66741.6 s (0.77 d) to T+583978.1 s (6.76 d)
Wrote uvot_fluxes_wtd_200412d08h00m11s484599usUT.qdp
Wrote uvot_fluxes_wtd_200412d08h00m11s484599usUT.gif
Wrote uvot_fluxes_wtd_200412d08h00m11s484599usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem