# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200317d09h46m00s549320usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00960102001 -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
# ========= GRB200306C ===================
Could not find/read custom source region custom_960102_src.reg
Used archived uvot source position of 198.55607 11.26992 3.00
Reference: GCN_Circ_27352
The position is (13:14:13.46, +11:16:11.7)
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(198.55607,11.26992,3") # color=red dash=0
Source region spec. is: 198.55607 11.26992 3"
Region file centered at (198.55607,11.26992), which is (13:14:13.46, +11:16:11.7)
Could not find/read custom background region custom_960102_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.5542 from uncorrected trigger time of 605227839.06 in BAT summary file
# ============ Reading file sw00960102001uvv_sk.img ================
Use keyword TRIGTIME of 605227863.616 for trigger time.
Long-term sensitivity correction to zero point is -0.283 at 605233325
The processing date in extension 0 is: 2020-03-09T13:23:14
The trigger time is: 605227863.616. The reference is keyword in image file
Using zero point of 17.607 for filter V
Use aperture correction of 1.087 based on aperture of 3.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(198.55607,11.26992,25")
fk5;-circle(198.55607,11.26992,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 vv605233325I    5461.5  0.99  196.6  100.9 108   4583  5829  0.089 0.056 20.23 19.1  0.0890 0.0564 20.23 19.1   197  5.860  3.715 18.37 0.035 
   2 vv605234556I    6692.6  0.99   83.3   40.2 112   1977  5833  0.029 0.084 21.45 18.9  0.0712 0.0469 20.48 19.3   280  5.099  3.253 18.52 0.033 
   3 vv605238953I   11090.1  0.99  295.0  131.2 116   6608  5874  0.003 0.043 24.06 19.7  0.0360 0.0317 21.22 19.8   575  4.054  2.832 18.77 0.024 
   4 vv605239257I   11393.8  0.99  295.0  126.1 112   6557  5850  0.002 0.042 24.33 19.8  0.0245 0.0254 21.64 20.1   870  3.383  2.543 18.97 0.022 
   5 vv605239560I   11697.3  0.99  295.0  147.3 112   6448  5855  0.089 0.045 20.23 19.2  0.0408 0.0222 21.08 20.0  1165  4.720  2.363 18.61 0.021 
    Sum (T+  5461 to  11997):             545.7        502.3 (est. in src region)   SNR_unwtd_sum:   1.84 0.9987 signif. UL:  20.02
  0  1165 605238054   10190.1   1807.0  -4728.6    0.0408   0.0222 21.079  0.850  -0.471
Total wtd_rate (for all exposures so far):  4.720 +/- 2.343 snr:  2.0 mag: 18.61 UL: 14.93
Rebinned Data for sw00960102001uvv_sk.img using a zero point of 17.607:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      278    5910.6    866.7   -449.2    0.0712   0.0469 20.48  0.55    5910.6    0.0712   0.0469 20.48  0.55 19.28
  1      878   11543.6    453.5   -453.5    0.0312   0.0251 21.37  0.64   10190.2    0.0408   0.0222 21.08  0.47 20.02
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00960102001ubb_sk.img ================
Use keyword TRIGTIME of 605227863.616 for trigger time.
Long-term sensitivity correction to zero point is -0.161 at 605234145
The processing date in extension 0 is:  2020-03-09T13:23:14
The trigger time is: 605227863.616. The reference is keyword in image file
Using zero point of 18.949 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(198.55607,11.26992,25")
fk5;-circle(198.55607,11.26992,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 bb605234145I    6281.7  0.99  196.6  161.8 112   7790  5824  0.068 0.073 21.86 20.3  0.0682 0.0732 21.86 20.3   197  1.497  1.608 19.85 0.059 
    Sum (T+  6282 to   6481):             161.8        149.8 (est. in src region)   SNR_unwtd_sum:   0.93 0.9987 signif. UL:  20.28
  0   197 605234245    6381.6     99.9    -99.9    0.0682   0.0732 21.864 77.136  -0.792
Total wtd_rate (for all exposures so far):  2.542 +/- 1.326 snr:  1.9 mag: 19.28 UL: 16.91
Rebinned Data for sw00960102001ubb_sk.img using a zero point of 18.949:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      194    6381.6     99.9    -99.9    0.0682   0.0732 21.86  0.79    6381.6    0.0682   0.0732 21.86  0.79 20.28
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00960102992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 605227981
The processing date in extension 0 is:  2020-03-07T17:56:55
The trigger time is: 605227863.616. The reference is keyword in image file
Using zero point of 18.165 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(198.55607,11.26992,25")
fk5;-circle(198.55607,11.26992,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 uu605227981I     117.5  0.98  245.8  776.4 110   3432  5958  3.268 0.128 16.88 16.8  3.2680 0.1278 16.88 16.8   246  5.606  0.219 18.42 2.207 
   2 uu605228739I     875.8  0.99  147.5  153.7 116   2005  5881  0.859 0.094 18.33 18.0  2.3562 0.0870 17.23 17.1   393  5.613  0.212 18.42 1.570 
    Sum (T+   117 to   1026):             930.1        102.9 (est. in src region)   SNR_unwtd_sum:  27.10 0.9987 signif. UL:  17.12
  0   393 605228372     508.0    517.7   -390.5    2.3562   0.0870 17.235  0.041  -0.040
Total wtd_rate (for all exposures so far):  5.605 +/- 0.212 snr: 26.5 mag: 18.42 UL: 16.18
# ============ Reading file sw00960102001uuu_sk.img ================
Use keyword TRIGTIME of 605227863.616 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 605233940
The processing date in extension 0 is:  2020-03-09T13:23:14
The trigger time is: 605227863.616. The reference is keyword in image file
Using zero point of 18.165 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(198.55607,11.26992,25")
fk5;-circle(198.55607,11.26992,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 uu605233939I    6076.3  1.00  196.6   65.0 116   2750  5878  0.060 0.046 21.22 19.9  0.0602 0.0457 21.22 19.9   197  2.631  1.997 19.24 0.082 
    Sum (T+  6076 to   6276):              65.0         54.3 (est. in src region)   SNR_unwtd_sum:   1.32 0.9987 signif. UL:  19.92
  0   197 605234040    6176.2     99.9    -99.9    0.0602   0.0457 21.217  1.544  -0.614
Total wtd_rate (for all exposures so far):  5.602 +/- 0.212 snr: 26.5 mag: 18.42 UL: 16.18
Rebinned Data for sw00960102001uuu_sk.img using a zero point of 18.165:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      240     242.4    124.9   -124.9    3.2680   0.1278 16.88  0.04     242.4    3.2680   0.1278 16.88  0.04 16.76
  1      146     950.8     74.9    -74.9    0.8591   0.0935 18.33  0.11     510.5    2.3562   0.0870 17.23  0.04 17.12
  2      196    6176.2     99.9    -99.9    0.0602   0.0457 21.22  0.61    2416.2    1.5839   0.0597 17.67  0.04 17.55
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00960102001uw1_sk.img ================
Use keyword TRIGTIME of 605227863.616 for trigger time.
Long-term sensitivity correction to zero point is -0.491 at 605233735
The processing date in extension 0 is:  2020-03-09T13:23:14
The trigger time is: 605227863.616. The reference is keyword in image file
Using zero point of 16.949 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(198.55607,11.26992,25")
fk5;-circle(198.55607,11.26992,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 w1605233735I    5871.6  1.00  196.6   16.6 112    589  5826  0.030 0.023 20.75 19.4  0.0303 0.0235 20.75 19.4   197  3.924  3.040 18.81 0.134 
   2 w1605245650I   17786.5  1.00  148.4    6.4 116    357  5839 -0.005 0.019 99.00 20.0  0.0150 0.0158 21.51 19.9   345  3.376  2.845 18.97 0.103 
   3 w1605246562I   18698.9  1.00  175.9   11.2 112    460  5821  0.015 0.022 21.52 19.7  0.0149 0.0127 21.51 20.1   521  3.603  2.707 18.90 0.085 
    Sum (T+  5872 to  18878):              34.2         27.3 (est. in src region)   SNR_unwtd_sum:   1.18 0.9987 signif. UL:  20.12
  0   521 605241551   13687.2   5190.5  -7815.5    0.0149   0.0127 21.513  2.068  -0.668
Total wtd_rate (for all exposures so far):  5.720 +/- 0.216 snr: 26.5 mag: 18.40 UL: 14.94
Rebinned Data for sw00960102001uw1_sk.img using a zero point of 16.949:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5971.5     99.9    -99.9    0.0303   0.0235 20.75  0.62    5971.5    0.0303   0.0235 20.75  0.62 19.43
  1      324   18364.3    513.4   -577.8    0.0056   0.0147 22.57  1.39   13688.3    0.0149   0.0127 21.51  0.67 20.12
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00960102001um2_sk.img ================
Use keyword TRIGTIME of 605227863.616 for trigger time.
Long-term sensitivity correction to zero point is -0.454 at 605233530
The processing date in extension 0 is:  2020-03-09T13:23:14
The trigger time is: 605227863.616. The reference is keyword in image file
Using zero point of 16.396 for filter UVM2
Use aperture correction of  1.106 based on aperture of  3.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(198.55607,11.26992,25")
fk5;-circle(198.55607,11.26992,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 m2605233529I  196.6    104  5824  0.090  0.009
   1 m2605233529I    5666.3  1.00  196.6    2.0 116    104  5824 -0.000 0.008 99.00 20.4 -0.0003 0.0080 99.00 20.4   197 -0.072  1.673 99.00 0.458 
Low  bkg:   2 m2605239865I  231.4    133  5832  0.098  0.009
   2 m2605239865I   12002.2  1.00  231.4    1.6 104    133  5832 -0.004 0.006 99.00 20.8 -0.0021 0.0050 99.00 21.0   428 -0.388  1.437 99.00 0.332 
   3 m2605241252I   13388.7  1.00  224.5    2.4 108    235  5812 -0.010 0.008 99.00 20.7 -0.0047 0.0042 99.00 21.4   653 -0.740  1.356 99.00 0.220 
   4 m2605244743I   16879.7  1.00  885.6   12.0 116    634  5872 -0.001 0.004 99.00 21.1 -0.0023 0.0031 99.00 21.6  1538 -0.664  1.216 99.00 0.157 
    Sum (T+  5666 to  17780):              18.1         21.3 (est. in src region)   SNR_unwtd_sum:  -0.76 0.9987 signif. UL:  21.60
  0  1538 605242373   14509.0   3270.5  -8842.7   -0.0023   0.0031 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  5.617 +/- 0.212 snr: 26.5 mag: 18.42 UL: 14.40
Rebinned Data for sw00960102001um2_sk.img using a zero point of 16.396:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5766.2     99.9    -99.9   -0.0003   0.0080 99.00 99.00    5766.2   -0.0003   0.0080 99.00 99.00 20.38
  1 1.34e+03   15790.5   1989.0  -3788.2   -0.0026   0.0033 99.00 99.00   14509.0   -0.0023   0.0031 99.00 99.00 21.60
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00960102001uw2_sk.img ================
Use keyword TRIGTIME of 605227863.616 for trigger time.
Long-term sensitivity correction to zero point is -0.602 at 605234352
The processing date in extension 0 is:  2020-03-09T13:23:14
The trigger time is: 605227863.616. The reference is keyword in image file
Using zero point of 16.778 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(198.55607,11.26992,25")
fk5;-circle(198.55607,11.26992,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 w2605234351I  196.6    193  5892  0.166  0.012
   1 w2605234351I    6488.0  1.00  196.6    4.9 128    193  5892  0.004 0.013 22.82 20.2  0.0038 0.0126 22.82 20.2   197  0.641  2.099 20.77 0.281 
    Sum (T+  6488 to   6688):               4.9          4.2 (est. in src region)   SNR_unwtd_sum:   0.31 0.9987 signif. UL:  20.18
  0   197 605234451    6587.8     99.9    -99.9    0.0038   0.0126 22.819 76.181  -1.577
Total wtd_rate (for all exposures so far):  5.622 +/- 0.212 snr: 26.5 mag: 18.41 UL: 14.79
Rebinned Data for sw00960102001uw2_sk.img using a zero point of 16.778:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    6587.8     99.9    -99.9    0.0038   0.0126 22.82  1.58    6587.8    0.0038   0.0126 22.82  1.58 20.18
The data range from T+117.5 s (0.00 d) to T+18877.6 s (0.22 d)
Wrote uvot_fluxes_200317d09h46m00s549320usUT.qdp
Wrote uvot_fluxes_200317d09h46m00s549320usUT.gif
Wrote uvot_fluxes_200317d09h46m00s549320usUT.ps
Wrote uvot_fluxes_200317d09h46m00s549320usUT_vis.qdp
Wrote uvot_fluxes_200317d09h46m00s549320usUT_uv.qdp
Wrote uvot_fluxes_200317d09h46m00s549320usUT_vis.gif
Wrote uvot_fluxes_200317d09h46m00s549320usUT_vis.ps
Wrote uvot_fluxes_200317d09h46m00s549320usUT_uv.gif
Wrote uvot_fluxes_200317d09h46m00s549320usUT_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     2.94     242.4    124.9   -124.9   23.1306   0.9046 16.88  0.04     242.4   23.1306   0.9046 16.88  0.04 16.76
  1    0.357     950.8     74.9    -74.9    6.0809   0.6620 18.33  0.11     319.0   17.6325   0.6490 17.17  0.04 17.06
  2    0.163    6537.6   5459.5  -1076.2    0.3089   0.1852 21.57  0.51     612.2    8.9102   0.3354 17.91  0.04 17.80
The data range from T+117.5 s (0.00 d) to T+18877.6 s (0.22 d)
Wrote uvot_fluxes_wtd_200317d09h46m00s549320usUT.qdp
Wrote uvot_fluxes_wtd_200317d09h46m00s549320usUT.gif
Wrote uvot_fluxes_wtd_200317d09h46m00s549320usUT.ps
Found 3 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem