# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200623d04h40m29s705899usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021003001 -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
# ========= GRB200613A ===================
Could not find/read custom source region custom_021003_src.reg
Used archived uvot source position of 153.04178 45.75391 3.00
Reference: GCN_Circ_27944
The position is (10:12:10.03, +45:45:14.1)
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(153.04178,45.75391,3") # color=red dash=0
Source region spec. is: 153.04178 45.75391 3"
Region file centered at (153.04178,45.75391), which is (10:12:10.03, +45:45:14.1)
Could not find/read custom background region custom_021003_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 -25.09998 from uncorrected trigger time of 613719008.21 in BAT summary file
# ============ Reading file sw00021003001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.226 at 613769230
The processing date in extension 0 is: 2020-06-23T04:25:14
The trigger time is: 613719033.30998. The reference is BAT GRB summary file
Using zero point of 20.064 for filter WHITE
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
  3  171.5 153.07338  45.95897 0.286 273.7
  4   -8.3 153.06087  45.90530 0.286 273.7
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(153.04178,45.75391,25")
fk5;-circle(153.04178,45.75391,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 wh613769229I   50196.4  0.95  775.3 3039.9 112  93567  5934  1.916 0.083 19.36 19.2  1.9163 0.0834 19.36 19.2   775 119.395  5.196 15.10 0.007 
   2 wh613774936I   55903.1  0.95  398.1 1519.5 108  48572  5873  1.836 0.115 19.40 19.2  1.8890 0.0675 19.37 19.3  1173 121.614  4.348 15.08 0.006 
%  4 wh613786404I   67371.2  0.95  241.1  983.5 116  32993  5898 
    Sum (T+ 50196 to  56308):            4559.4       2659.3 (est. in src region)   SNR_unwtd_sum:  27.99 0.9987 signif. UL:  19.26
  0  1173 613771495   52461.4   3846.2  -2265.0    1.8890   0.0675 19.373  0.040  -0.038
Total wtd_rate (for all exposures so far): 121.614 +/- 4.324 snr: 28.1 mag: 15.08 UL: 14.74
Rebinned Data for sw00021003001uwh_sk.img using a zero point of 20.064:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.11e+03   52460.8   3846.9  -2264.4    1.8890   0.0675 19.37  0.04   52460.8    1.8890   0.0675 19.37  0.04 19.26
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00021003001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.289 at 613770025
The processing date in extension 0 is:  2020-06-23T04:25:14
The trigger time is: 613719033.30998. The reference is BAT GRB summary file
Using zero point of 17.601 for filter V
Use aperture correction of  1.087 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(153.04178,45.75391,25")
fk5;-circle(153.04178,45.75391,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 vv613770024I   50991.5  0.99  212.7  150.8 112   5880  5880  0.200 0.064 19.35 18.6  0.2004 0.0639 19.35 18.6   213 121.934 38.867 15.07 0.003 
    Sum (T+ 50992 to  51208):             150.8        112.0 (est. in src region)   SNR_unwtd_sum:   3.14 0.9987 signif. UL:  18.61
  0   213 613770133   51099.6    108.1   -108.1    0.2004   0.0639 19.346  0.416  -0.301
Total wtd_rate (for all exposures so far): 119.418 +/- 4.221 snr: 28.3 mag: 15.10 UL: 12.30
Rebinned Data for sw00021003001uvv_sk.img using a zero point of 17.601:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      210   51099.6    108.1   -108.1    0.2004   0.0639 19.35  0.30   51099.6    0.2004   0.0639 19.35  0.30 18.61
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021003001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.178 at 613762654
The processing date in extension 0 is:  2020-06-23T04:25:13
The trigger time is: 613719033.30998. The reference is BAT GRB summary file
Using zero point of 18.162 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
  5  -13.2 153.06255  45.90292 0.286 273.7
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(153.04178,45.75391,25")
fk5;-circle(153.04178,45.75391,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 uu613762654I   43620.8  0.97  262.7  440.8 112  18026  5887  0.420 0.091 19.10 18.6  0.4203 0.0908 19.10 18.6   263 130.564 28.212 15.00 0.002 
   2 uu613768435I   49401.9  0.98  775.3  934.3 108  30845  5823  0.522 0.044 18.87 18.6  0.4965 0.0403 18.92 18.7  1038 174.025 13.755 14.69 0.003 
   3 uu613774127I   55093.8  0.98  790.1  916.4 108  31410  5823  0.472 0.043 18.98 18.7  0.4860 0.0295 18.95 18.8  1828 178.804 10.685 14.66 0.003 
   4 uu613780677I   61644.2  0.99  527.3  403.3 112  10082  5890  0.445 0.042 19.04 18.8  0.4768 0.0248 18.97 18.8  2355 183.981  9.357 14.63 0.004 
%  5 uu613785594I   66560.9  0.98  791.1  870.7 112  30646  5881 
    Sum (T+ 43621 to  62180):            2694.9       1689.3 (est. in src region)   SNR_unwtd_sum:  19.26 0.9987 signif. UL:  18.81
  0  2355 613772780   53746.3   8433.7 -10125.5    0.4768   0.0248 18.966  0.058  -0.055
Total wtd_rate (for all exposures so far): 131.838 +/- 3.879 snr: 34.0 mag: 14.99 UL: 12.77
Rebinned Data for sw00021003001uuu_sk.img using a zero point of 18.162:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.02e+03   48277.4   1912.2  -4656.7    0.4965   0.0403 18.92  0.09   48277.4    0.4965   0.0403 18.92  0.09 18.68
  1  1.3e+03   58073.8   4106.1  -2980.0    0.4614   0.0309 19.00  0.07   53768.9    0.4768   0.0248 18.97  0.05 18.81
The data range from T+43620.8 s (0.50 d) to T+62179.9 s (0.72 d)
Wrote uvot_fluxes_200623d04h40m29s705899usUT.qdp
Wrote uvot_fluxes_200623d04h40m29s705899usUT.gif
Wrote uvot_fluxes_200623d04h40m29s705899usUT.ps
Wrote uvot_fluxes_200623d04h40m29s705899usUT_vis.qdp
Wrote uvot_fluxes_200623d04h40m29s705899usUT_uv.qdp
Wrote uvot_fluxes_200623d04h40m29s705899usUT_vis.gif
Wrote uvot_fluxes_200623d04h40m29s705899usUT_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.000177   43754.2    133.4   -133.4    2.9840   0.6448 19.10  0.21   43754.2    2.9840   0.6448 19.10  0.21 18.56
  1 0.000574   49795.8    393.9   -393.9    3.7072   0.3146 18.87  0.09   48372.2    3.5531   0.2831 18.91  0.08 18.68
  2   0.0301   50591.2    616.4   -394.8    2.3601   0.1025 19.36  0.05   50537.2    2.3879   0.1004 19.34  0.04 19.22
  3 0.000489   55495.2    401.4   -401.4    3.3524   0.3058 18.98  0.09   50614.6    2.4044   0.0988 19.34  0.04 19.21
  4   0.0129   56105.4    202.3   -202.3    2.2610   0.1415 19.40  0.07   52213.4    2.3595   0.0810 19.36  0.04 19.25
  5 0.000404   61912.1    267.9   -267.9    3.1624   0.3015 19.04  0.10   52301.2    2.3681   0.0802 19.35  0.04 19.25
The data range from T+43620.8 s (0.50 d) to T+62179.9 s (0.72 d)
Wrote uvot_fluxes_wtd_200623d04h40m29s705899usUT.qdp
Wrote uvot_fluxes_wtd_200623d04h40m29s705899usUT.gif
Wrote uvot_fluxes_wtd_200623d04h40m29s705899usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem