# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200702d22h30m28s596178usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00980513992 -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/data/khamseenssd/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= GRB200702 ===================
Could not find/read custom source region custom_980513_src.reg
Used archived XRT position of 274.50167 -16.13172 4.00
Reference: GRB_Auto_Processing-Thu,_02_Jul_2020_08:24:41_+0100
The position is (18:18:00.40, -16:07:54.2)
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(274.50167,-16.13172,4") # color=red dash=0
Source region spec. is: 274.50167 -16.13172 4"
Region file centered at (274.50167,-16.13172), which is (18:18:00.40, -16:07:54.2)
Could not find/read custom background region custom_980513_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.20074 from uncorrected trigger time of 615366578.94 in BAT summary file
# ============ Reading file sw00980513992uwh_sk.img ================
Use keyword TRIGTIME of 615366604.16 for trigger time.
Long-term sensitivity correction to zero point is -0.227 at 615366692
The processing date in extension 0 is: 2020-07-02T22:17:49
The trigger time is: 615366604.16. The reference is keyword in image file
Using zero point of 20.063 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Using background region based on sources found in extension 5:
# 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(274.50167,-16.13172,25")
fk5;-circle(274.50167,-16.13172,12.5")
fk5;-circle(274.500210,-16.124428,6")
fk5;-circle(274.501213,-16.134503,6")
 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 wh615366691I      87.4  0.93  147.4 1041.6 199  31083  5554 -0.544 0.248 99.00 20.9 -0.5438 0.2478 99.00 20.9   147 -0.109  0.050 99.00 0.616 
   2 wh615366691E      87.4  0.93  147.4 1042.2 201  31100  5552 -0.631 0.248 99.00 20.9 
   3 wh615367183E     579.1  0.93   19.5  159.1 197   4098  5587  0.838 0.736 20.25 18.8 -0.3835 0.2351 99.00 20.8   167 -0.102  0.049 99.00 0.565 
   4 wh615367357E     753.3  0.93   19.5  140.9 199   4104  5561 -0.340 0.692 99.00 19.3 -0.3790 0.2226 99.00 20.9   186 -0.103  0.049 99.00 0.520 
   5 wh615371311I    4707.7  0.93  196.6 1376.9 196  40858  5543 -0.383 0.214 99.00 20.9 -0.3810 0.1541 99.00 21.4   383 -0.106  0.049 99.00 0.267 
    Sum (T+    87 to   4907):            2718.5       2849.7 (est. in src region)   SNR_unwtd_sum:  -2.47 0.9987 signif. UL:  21.44
  0   383 615369204    2599.7   2307.8  -2512.3   -0.3810   0.1541 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.106 +/- 0.048 snr: -2.2 mag: 99.00 UL: 22.64
Rebinned Data for sw00980513992uwh_sk.img using a zero point of 20.063:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      137     162.3     74.9    -74.9   -0.5438   0.2478 99.00 99.00     162.3   -0.5438   0.2478 99.00 99.00 20.86
  1     36.1     676.2     96.8    -97.1    0.2480   0.5051 21.58  1.21     269.3   -0.3790   0.2226 99.00 99.00 20.86
  2      183    4807.6     99.9    -99.9   -0.3829   0.2136 99.00 99.00    2600.2   -0.3810   0.1541 99.00 99.00 21.44
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00980513992uvv_sk.img ================
Use keyword TRIGTIME of 615366604.16 for trigger time.
Long-term sensitivity correction to zero point is -0.290 at 615366668
The processing date in extension 0 is:  2020-07-02T22:17:21
The trigger time is: 615366604.16. The reference is keyword in image file
Using zero point of 17.600 for filter V
Use aperture correction of  1.030 based on aperture of  4.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(274.50167,-16.13172,25")
fk5;-circle(274.50167,-16.13172,12.5")
fk5;-circle(274.501211,-16.134488,6")
 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 vv615366668E      64.1  0.98   14.8   37.1 202    739  5749  0.791 0.439 17.85 16.8  0.7913 0.4390 17.85 16.8    15  0.675  0.374 20.72 0.653 
   2 vv615367233E     628.9  0.98   19.5   36.2 200    982  5725  0.102 0.330 20.08 17.5  0.3992 0.2666 18.60 17.4    34  0.676  0.371 20.71 0.323 
   3 vv615367407E     803.7  0.98   19.5   32.9 197   1066  5715 -0.208 0.315 99.00 17.8  0.1790 0.2048 19.47 17.8    54  0.652  0.368 20.75 0.221 
    Sum (T+    64 to    824):             106.2         97.0 (est. in src region)   SNR_unwtd_sum:   0.87 0.9987 signif. UL:  17.83
  0    54 615367150     546.0    277.5   -481.9    0.1790   0.2048 19.468 79.532  -0.829
Total wtd_rate (for all exposures so far): -0.086 +/- 0.048 snr: -1.8 mag: 99.00 UL: 20.09
Rebinned Data for sw00980513992uvv_sk.img using a zero point of 17.600:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     14.5      71.6      7.5     -7.5    0.7913   0.4390 17.85  0.48      71.6    0.7913   0.4390 17.85  0.48 16.79
  1     38.2     726.2     97.3    -97.3   -0.0529   0.2283 99.00 99.00     546.4    0.1790   0.2048 19.47  0.83 17.83
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00980513992ubb_sk.img ================
Use keyword TRIGTIME of 615366604.16 for trigger time.
Long-term sensitivity correction to zero point is -0.165 at 615367159
The processing date in extension 0 is:  2020-07-02T22:17:50
The trigger time is: 615366604.16. The reference is keyword in image file
Using zero point of 18.945 for filter B
Use aperture correction of  1.035 based on aperture of  4.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(274.50167,-16.13172,25")
fk5;-circle(274.50167,-16.13172,12.5")
fk5;-circle(274.501192,-16.134471,6")
 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 bb615367158E     554.7  0.97   19.5   65.9 200   1659  5724  0.435 0.452 19.85 18.3  0.4345 0.4520 19.85 18.3    19  0.847  0.881 20.47 0.167 
   2 bb615367332E     728.8  0.97   19.5   66.6 198   1728  5742  0.387 0.456 19.98 18.3  0.4106 0.3212 19.91 18.6    39  0.897  0.702 20.41 0.145 
   3 bb615371106I    4502.6  0.97  196.6  548.6 200  16119  5714 -0.085 0.129 99.00 20.1 -0.0032 0.1201 99.00 20.0   236  0.690  0.665 20.69 0.043 
    Sum (T+   555 to   4702):             681.1        681.8 (est. in src region)   SNR_unwtd_sum:  -0.03 0.9987 signif. UL:  19.98
  0   236 615370554    3949.8    752.6  -3395.1   -0.0032   0.1201 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.082 +/- 0.048 snr: -1.7 mag: 99.00 UL: 21.41
Rebinned Data for sw00980513992ubb_sk.img using a zero point of 18.945:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     37.7     651.4     97.1    -96.7    0.4106   0.3212 19.91  0.63     651.4    0.4106   0.3212 19.91  0.63 18.59
  1      191    4602.5     99.9    -99.9   -0.0848   0.1291 99.00 99.00    3952.2   -0.0032   0.1201 99.00 99.00 19.98
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00980513992uuu_sk.img ================
Use keyword TRIGTIME of 615366604.16 for trigger time.
Long-term sensitivity correction to zero point is -0.179 at 615366903
The processing date in extension 0 is:  2020-07-02T22:17:50
The trigger time is: 615366604.16. The reference is keyword in image file
Using zero point of 18.161 for filter U
Use aperture correction of  1.032 based on aperture of  4.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(274.50167,-16.13172,25")
fk5;-circle(274.50167,-16.13172,12.5")
fk5;-circle(274.501233,-16.134486,6")
 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 uu615366903I     299.3  0.98  245.8  375.6 200  10538  5726  0.032 0.084 21.90 19.5  0.0320 0.0840 21.90 19.5   246  0.097  0.253 22.83 0.218 
   2 uu615366903E     299.3  0.98  240.6  373.4 202  10285  5722  0.045 0.086 21.53 19.4 
   3 uu615367307E     703.5  0.99   19.5   17.8 198    847  5670 -0.628 0.232 99.00 19.1 -0.0167 0.0797 99.00 19.7   265  0.007  0.248 25.62 0.211 
   4 uu615370901I    4297.5  0.99  196.6  263.5 200   8076  5742 -0.095 0.088 99.00 19.8 -0.0500 0.0591 99.00 20.2   462 -0.015  0.247 99.00 0.133 
    Sum (T+   299 to   4497):             656.9        679.0 (est. in src region)   SNR_unwtd_sum:  -0.85 0.9987 signif. UL:  20.18
  0   462 615368732    2127.6   2369.7  -1828.3   -0.0500   0.0591 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.079 +/- 0.047 snr: -1.7 mag: 99.00 UL: 20.65
Rebinned Data for sw00980513992uuu_sk.img using a zero point of 18.161:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      242     424.2    124.9   -124.9    0.0320   0.0840 21.90  1.40     424.2    0.0320   0.0840 21.90  1.40 19.48
  1     19.3     713.4      9.9     -9.9   -0.6280   0.2324 99.00 99.00     445.5   -0.0167   0.0797 99.00 99.00 19.69
  2      194    4397.4     99.9    -99.9   -0.0948   0.0879 99.00 99.00    2129.3   -0.0500   0.0591 99.00 99.00 20.18
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw00980513992uw1_sk.img ================
Use keyword TRIGTIME of 615366604.16 for trigger time.
Long-term sensitivity correction to zero point is -0.519 at 615367283
The processing date in extension 0 is:  2020-07-02T22:17:50
The trigger time is: 615366604.16. The reference is keyword in image file
Using zero point of 16.921 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.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(274.50167,-16.13172,25")
fk5;-circle(274.50167,-16.13172,12.5")
fk5;-circle(274.501157,-16.134492,6")
 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
High bkg:   1 w1615367283E   19.6    202  5702  1.811  0.127
   1 w1615367283E     679.0  1.00   19.6    8.8 196    202  5704  0.099 0.160 19.44 17.5  0.0986 0.1596 19.44 17.5    20  1.513  2.449 19.84 0.183 
High bkg:   2 w1615370697I  196.6   1982  5736  1.757  0.039
   2 w1615370697I    4092.9  1.00  196.6   50.2 200   1982  5733 -0.100 0.038 99.00 19.8 -0.0821 0.0377 99.00 19.8   216 -0.825  2.070 99.00 0.044 
    Sum (T+   679 to   4293):              59.0         76.1 (est. in src region)   SNR_unwtd_sum:  -2.18 0.9987 signif. UL:  19.76
  0   216 615370480    3875.7    416.9  -3196.7   -0.0821   0.0377 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.080 +/- 0.047 snr: -1.7 mag: 99.00 UL: 19.41
Rebinned Data for sw00980513992uw1_sk.img using a zero point of 16.921:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     19.5     689.0      9.9     -9.9    0.0986   0.1596 19.44  1.05     689.0    0.0986   0.1596 19.44  1.05 17.49
  1      196    4192.8     99.9    -99.9   -0.1001   0.0383 99.00 99.00    3876.0   -0.0821   0.0377 99.00 99.00 19.76
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00980513992um2_sk.img ================
Use keyword TRIGTIME of 615366604.16 for trigger time.
Long-term sensitivity correction to zero point is -0.478 at 615367258
The processing date in extension 0 is:  2020-07-02T22:17:45
The trigger time is: 615366604.16. The reference is keyword in image file
Using zero point of 16.372 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.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(274.50167,-16.13172,25")
fk5;-circle(274.50167,-16.13172,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
High bkg:   1 m2615367257E   19.5     59  5845  0.516  0.067
   1 m2615367257E     653.5  1.00   19.5    1.3 204     59  5847 -0.041 0.062 99.00 18.3 -0.0407 0.0617 99.00 18.3    19 -0.995  1.509 99.00 0.388 
High bkg:   2 m2615367433E   17.0     49  5835  0.497  0.071
   2 m2615367433E     829.1  1.00   17.0    1.0 198     49  5836 -0.043 0.061 99.00 18.3 -0.0416 0.0436 99.00 18.8    36 -1.115  1.183 99.00 0.361 
    Sum (T+   653 to    846):               2.2          3.7 (est. in src region)   SNR_unwtd_sum:  -0.95 0.9987 signif. UL:  18.75
  0    36 615367349     744.7    101.7    -91.2   -0.0416   0.0436 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.080 +/- 0.047 snr: -1.7 mag: 99.00 UL: 18.87
Rebinned Data for sw00980513992um2_sk.img using a zero point of 16.372:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     36.4     744.7    101.7    -91.2   -0.0416   0.0436 99.00 99.00     744.7   -0.0416   0.0436 99.00 99.00 18.75
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw00980513992uw2_sk.img ================
Use keyword TRIGTIME of 615366604.16 for trigger time.
Long-term sensitivity correction to zero point is -0.638 at 615367209
The processing date in extension 0 is:  2020-07-02T22:17:50
The trigger time is: 615366604.16. The reference is keyword in image file
Using zero point of 16.742 for filter UVW2
Use aperture correction of  1.035 based on aperture of  4.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(274.50167,-16.13172,25")
fk5;-circle(274.50167,-16.13172,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
High bkg:   1 w2615367208E   19.5    114  5845  1.006  0.094
   1 w2615367208E     604.4  1.00   19.5    4.7 201    114  5845  0.040 0.117 20.23 17.7  0.0401 0.1170 20.23 17.7    19  0.647  1.886 20.76 0.306 
High bkg:   2 w2615367383E   19.5    125  5854  1.099  0.098
   2 w2615367383E     779.4  1.00   19.5    4.3 194    125  5861  0.007 0.112 22.15 17.8  0.0235 0.0810 20.81 18.1    39  0.463  1.467 21.13 0.265 
High bkg:   3 w2615371517I  142.4    933  5840  1.122  0.037
   3 w2615371517I    4913.5  1.00  142.4   36.3 204    933  5841  0.027 0.045 20.66 18.7  0.0263 0.0391 20.69 18.8   181  0.644  1.423 20.77 0.079 
    Sum (T+   604 to   5058):              45.3         40.7 (est. in src region)   SNR_unwtd_sum:   0.67 0.9987 signif. UL:  18.82
  0   181 615370671    4066.5    991.7  -3462.1    0.0263   0.0391 20.691 78.309  -0.988
Total wtd_rate (for all exposures so far): -0.080 +/- 0.047 snr: -1.7 mag: 99.00 UL: 19.23
Rebinned Data for sw00980513992uw2_sk.img using a zero point of 16.742:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0     38.8     701.7     97.5    -97.3    0.0235   0.0810 20.81  1.62     701.7    0.0235   0.0810 20.81  1.62 18.13
  1      142    4985.9     72.4    -72.4    0.0271   0.0446 20.66  1.05    4066.7    0.0263   0.0391 20.69  0.99 18.82
=========================================================
================ Start New Filter UGRISM ==================
=========================================================
# ============ Reading file sw00980513992ugu_sk.img ================
Use keyword TRIGTIME of 615366604.16 for trigger time.
The data range from T+64.1 s (0.00 d) to T+5058.2 s (0.06 d)
Wrote uvot_fluxes_200702d22h30m28s596178usUT.qdp
Wrote uvot_fluxes_200702d22h30m28s596178usUT.gif
Wrote uvot_fluxes_200702d22h30m28s596178usUT.ps
Wrote uvot_fluxes_200702d22h30m28s596178usUT_vis.qdp
Wrote uvot_fluxes_200702d22h30m28s596178usUT_uv.qdp
Wrote uvot_fluxes_200702d22h30m28s596178usUT_vis.gif
Wrote uvot_fluxes_200702d22h30m28s596178usUT_vis.ps
Wrote uvot_fluxes_200702d22h30m28s596178usUT_uv.gif
Wrote uvot_fluxes_200702d22h30m28s596178usUT_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.599      71.6      7.5     -7.5    9.4292   5.2318 17.85  0.48      71.6    9.4292   5.2318 17.85  0.48 16.79
  1      330     162.3     74.9    -74.9   -0.6702   0.3055 99.00 99.00     162.1   -0.6621   0.3053 99.00 99.00 20.86
  2     7.66     590.3    233.2   -291.0    0.3372   0.4614 21.47  0.94     171.8   -0.5844   0.2838 99.00 99.00 20.91
  3    0.594    4770.9    136.5   -473.4   -0.4578   0.2323 99.00 99.00     179.9   -0.5785   0.2708 99.00 99.00 20.98
The data range from T+64.1 s (0.00 d) to T+5058.2 s (0.06 d)
Wrote uvot_fluxes_wtd_200702d22h30m28s596178usUT.qdp
Wrote uvot_fluxes_wtd_200702d22h30m28s596178usUT.gif
Wrote uvot_fluxes_wtd_200702d22h30m28s596178usUT.ps
Found 7 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem