# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 201228d10h54m39s833956usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021406002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/data/uvot/swift_data/home/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /data/uvot/swift_data/home/uvot_lc
# ========= GRB201214A ===================
Could not find/read custom source region custom_021406_src.reg
Used archived XRT position of 170.92446 33.86931 4.00
Reference: GCN_Circulars-29092-Sat,_19_Dec_2020_14:28:50_-0500
The position is (11:23:41.87, +33:52:09.5)
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(170.92446,33.86931,4") # color=red dash=0
Source region spec. is: 170.92446 33.86931 4"
Region file centered at (170.92446,33.86931), which is (11:23:41.87, +33:52:09.5)
Could not find/read custom background region custom_021406_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 -26.16542 from uncorrected trigger time of 629619636.48 in BAT summary file
# ============ Reading file sw00021406001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.180 at 629625236
The processing date in extension 0 is: 2020-12-14T15:56:30
The trigger time is: 629619662.64542. The reference is BAT GRB summary file
Using zero point of 20.110 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(170.92446,33.86931,25")
fk5;-circle(170.92446,33.86931,12.5")
fk5;-circle(170.917349,33.872795,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 wh629625236I    5573.7  0.94  328.9 2051.7 188  58883  5595  0.245 0.154 21.64 20.5  0.2450 0.1540 21.64 20.5   329  1.664  1.046 19.74 0.023 
   2 wh629631119I   11456.9  0.93  252.8 1825.5 200  50508  5601  0.097 0.191 22.64 20.5  0.1810 0.1202 21.97 20.8   582  1.618  0.971 19.77 0.017 
   3 wh629636908I   17246.0  0.93  227.8 1720.9 200  48342  5609 -0.013 0.207 99.00 20.6  0.1268 0.1041 22.35 21.0   810  1.527  0.946 19.83 0.013 
   4 wh629642223I   22560.8  0.94  425.9 2422.6 196  73186  5586 -0.374 0.129 99.00 21.8 -0.0469 0.0814 99.00 21.7  1236  0.787  0.913 20.55 0.011 
    Sum (T+  5574 to  23026):            8020.8       8073.3 (est. in src region)   SNR_unwtd_sum:  -0.58 0.9987 signif. UL:  21.72
  0  1236 629634630   14967.1   8058.5  -9393.3   -0.0469   0.0814 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.787 +/- 0.898 snr:  0.9 mag: 20.55 UL: 18.73
# ============ Reading file sw00021406002uwh_sk.img ================
Use keyword TRIGTIME of 629619526.224 for trigger time.
Long-term sensitivity correction to zero point is -0.180 at 629979846
The processing date in extension 0 is:  2020-12-28T10:38:45
The trigger time is: 629619526.224. The reference is keyword in image file
Using zero point of 20.110 for filter WHITE
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(170.92446,33.86931,25")
fk5;-circle(170.92446,33.86931,12.5")
fk5;-circle(170.920946,33.867753,6")
fk5;-circle(170.917400,33.872841,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 wh629979846I  360320.0  0.97  450.5 1273.8 204  34365  5399 -0.058 0.086 99.00 21.7 -0.0583 0.0858 99.00 21.7   451 -24.815 36.527 99.00 0.001 
   2 wh629985576I  366050.0  0.97  472.2 1406.2 200  36645  5399  0.110 0.086 22.51 21.2  0.0275 0.0608 24.01 21.8   923 11.548 26.075 17.63 0.001 
   3 wh629996778I  377252.1  0.97  413.1 1174.6 200  31342  5398  0.035 0.090 23.76 21.4  0.0297 0.0504 23.93 21.9  1336 12.704 21.851 17.53 0.001 
    Sum (T+360320 to 377672):            3854.6       3817.3 (est. in src region)   SNR_unwtd_sum:   0.59 0.9987 signif. UL:  21.93
  0  1336 629987335  367808.8   9863.1  -7488.9    0.0297   0.0504 23.927 75.073  -1.076
Total wtd_rate (for all exposures so far):  0.807 +/- 0.898 snr:  0.9 mag: 20.52 UL: 18.73
Rebinned Data for sw00021406002uwh_sk.img using a zero point of 20.110:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      309    5752.7    178.9   -178.9    0.2450   0.1540 21.64  0.53    5752.7    0.2450   0.1540 21.64  0.53 20.48
  1      447   14329.9   3175.9  -2873.0    0.0450   0.1403 23.48  1.54   10822.7    0.1268   0.1041 22.35  0.65 20.99
  2      402   22793.2    232.4   -232.4   -0.3735   0.1289 99.00 99.00   14979.8   -0.0469   0.0814 99.00 99.00 21.72
  3  1.3e+03  367807.1   9864.9  -7487.1    0.0297   0.0504 23.93  1.08  201479.6   -0.0064   0.0467 99.00 99.00 22.20
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00021406001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.211 at 629625600
The processing date in extension 0 is:  2020-12-14T15:56:30
The trigger time is: 629619526.224. The reference is keyword in image file
Using zero point of 17.679 for filter V
Use aperture correction of  1.030 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(170.92446,33.86931,25")
fk5;-circle(170.92446,33.86931,12.5")
fk5;-circle(170.917457,33.872924,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 vv629625600I    6074.3  0.98  352.1  764.2 204  20958  5602  0.003 0.084 23.99 19.1  0.0030 0.0840 23.99 19.1   352  0.207  5.821 22.00 0.007 
   3 vv629631411I   11885.1  0.98  281.3  672.4 200  19331  5612 -0.062 0.099 99.00 19.1 -0.0258 0.0641 99.00 19.5   633 -1.144  5.326 99.00 0.005 
   4 vv629637174I   17648.2  0.98  255.7  625.2 204  17670  5597 -0.078 0.105 99.00 19.1 -0.0408 0.0548 99.00 19.8   889 -2.005  5.158 99.00 0.004 
   5 vv629642695I   23169.1  0.98  457.5  908.3 204  25868  5648 -0.060 0.070 99.00 19.5 -0.0473 0.0434 99.00 20.1  1347 -2.981  4.964 99.00 0.003 
   6 vv629643164I   23638.6  0.98    7.3   11.1 204    553  5601 -1.288 0.492 99.00 17.8 -0.0540 0.0432 99.00 20.1  1354 -3.264  4.961 99.00 0.003 
    Sum (T+  6074 to  23646):            2981.2       3050.7 (est. in src region)   SNR_unwtd_sum:  -1.25 0.9987 signif. UL:  20.14
  0  1354 629635044   15518.2   8127.9  -9443.9   -0.0540   0.0432 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.675 +/- 0.879 snr:  0.8 mag: 20.72 UL: 16.35
# ============ Reading file sw00021406002uvv_sk.img ================
Use keyword TRIGTIME of 629619526.224 for trigger time.
Long-term sensitivity correction to zero point is -0.211 at 629980310
The processing date in extension 0 is:  2020-12-28T10:38:45
The trigger time is: 629619526.224. The reference is keyword in image file
Using zero point of 17.679 for filter V
Use aperture correction of  1.030 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(170.92446,33.86931,25")
fk5;-circle(170.92446,33.86931,12.5")
fk5;-circle(170.917398,33.872752,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 vv629980310I  360784.2  0.99  450.5  329.1 200   9681  5620 -0.036 0.043 99.00 20.1 -0.0355 0.0425 99.00 20.1   451 -142.155 170.124 99.00 0.000 
   2 vv629980773I  361246.8  0.99   27.5   24.7 204    707  5573 -0.045 0.191 99.00 18.3 -0.0361 0.0416 99.00 20.1   478 -143.888 166.075 99.00 0.000 
   3 vv629986062I  366536.2  0.99  472.2  345.9 196  10078  5627 -0.011 0.042 99.00 19.9 -0.0237 0.0294 99.00 20.4   950 -94.765 118.437 99.00 0.000 
   4 vv629986545I  367019.6  0.99   15.0   14.0 200    403  5631 -0.019 0.265 99.00 17.9 -0.0236 0.0292 99.00 20.5   965 -94.555 117.727 99.00 0.000 
   5 vv629997204I  377678.1  0.99  413.2  266.6 204   7508  5593 -0.018 0.042 99.00 20.0 -0.0220 0.0240 99.00 20.7  1378 -88.785 97.618 99.00 0.000 
   6 vv629997627I  378101.3  0.99   32.9   30.1 204    619  5605  0.238 0.175 19.24 18.0 -0.0159 0.0238 99.00 20.6  1411 -63.235 96.872 99.00 0.000 
    Sum (T+360784 to 378135):            1010.4       1032.1 (est. in src region)   SNR_unwtd_sum:  -0.67 0.9987 signif. UL:  20.64
  0  1411 629987876  368349.4   9785.4  -7565.2   -0.0159   0.0238 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.670 +/- 0.879 snr:  0.8 mag: 20.73 UL: 16.36
Rebinned Data for sw00021406002uvv_sk.img using a zero point of 17.679:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      345    6253.1    178.9   -178.9    0.0030   0.0840 23.99  3.66    6253.1    0.0030   0.0840 23.99  3.66 19.09
  1      980   18783.7   4862.4  -6898.6   -0.0741   0.0504 99.00 99.00   15522.6   -0.0540   0.0432 99.00 99.00 20.14
  2  1.4e+03  368351.9   9782.9  -7567.7   -0.0159   0.0238 99.00 99.00  196876.0   -0.0344   0.0243 99.00 99.00 20.81
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021406001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.187 at 629624873
The processing date in extension 0 is:  2020-12-14T15:56:29
The trigger time is: 629619526.224. The reference is keyword in image file
Using zero point of 18.153 for filter U
Use aperture correction of  1.032 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(170.92446,33.86931,25")
fk5;-circle(170.92446,33.86931,12.5")
fk5;-circle(170.917566,33.872875,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 uu629624872I    5346.7  0.99  352.1  397.5 204   9959  5596  0.102 0.060 20.63 19.5  0.1021 0.0600 20.63 19.5   352  4.038  2.374 18.77 0.024 
   2 uu629630827I   11301.0  0.99  281.3  351.8 208   9058  5638  0.065 0.071 21.12 19.5  0.0858 0.0459 20.82 19.8   633  4.219  2.197 18.73 0.018 
   3 uu629636643I   17117.0  0.99  255.7  336.6 200   9291  5618  0.024 0.076 22.21 19.6  0.0680 0.0394 21.07 20.0   889  4.158  2.140 18.74 0.014 
   4 uu629641752I   22225.9  0.99  457.4  324.4 204   9412  5594 -0.043 0.042 99.00 20.6  0.0303 0.0296 21.95 20.4  1346  3.256  2.040 19.01 0.012 
    Sum (T+  5347 to  22691):            1410.3       1371.2 (est. in src region)   SNR_unwtd_sum:   1.02 0.9987 signif. UL:  20.45
  0  1346 629634266   14740.1   7950.6  -9393.4    0.0303   0.0296 21.950  4.061  -0.740
Total wtd_rate (for all exposures so far):  1.105 +/- 0.806 snr:  1.4 mag: 20.18 UL: 16.78
# ============ Reading file sw00021406002uuu_sk.img ================
Use keyword TRIGTIME of 629619526.224 for trigger time.
Long-term sensitivity correction to zero point is -0.187 at 629979382
The processing date in extension 0 is:  2020-12-28T10:38:45
The trigger time is: 629619526.224. The reference is keyword in image file
Using zero point of 18.153 for filter U
Use aperture correction of  1.032 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(170.92446,33.86931,25")
fk5;-circle(170.92446,33.86931,12.5")
fk5;-circle(170.917439,33.872738,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 uu629979382I  359856.3  1.00  450.6  212.7 200   5675  5612  0.024 0.034 22.20 20.4  0.0241 0.0341 22.20 20.4   451 62.219 87.908 15.80 0.001 
   2 uu629985090I  365564.2  1.00  472.2  207.2 208   5727  5571 -0.014 0.032 99.00 20.7  0.0044 0.0234 24.05 20.9   923 12.007 60.877 17.59 0.001 
   3 uu629996352I  376826.5  1.00  413.1  208.2 204   4969  5604  0.069 0.037 21.06 20.0  0.0242 0.0198 22.19 20.8  1336 63.737 51.977 15.78 0.001 
    Sum (T+359856 to 377246):             628.2        596.9 (est. in src region)   SNR_unwtd_sum:   1.22 0.9987 signif. UL:  20.84
  0  1336 629986875  367349.0   9897.3  -7492.7    0.0242   0.0198 22.193  1.841  -0.648
Total wtd_rate (for all exposures so far):  1.121 +/- 0.806 snr:  1.4 mag: 20.17 UL: 16.77
Rebinned Data for sw00021406002uuu_sk.img using a zero point of 18.153:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      348    5525.6    178.9   -178.9    0.1021   0.0600 20.63  0.50    5525.6    0.1021   0.0600 20.63  0.50 19.52
  1      530   14205.0   3171.8  -2904.0    0.0456   0.0519 21.51  0.83   10764.5    0.0680   0.0394 21.07  0.50 19.97
  2      454   22458.3    232.4   -232.4   -0.0426   0.0417 99.00 99.00   14750.0    0.0303   0.0296 21.95  0.74 20.45
  3 1.33e+03  367347.8   9898.5  -7491.5    0.0242   0.0198 22.19  0.65  190840.7    0.0273   0.0178 22.06  0.55 20.88
The data range from T+5346.7 s (0.06 d) to T+378134.8 s (4.38 d)
Wrote uvot_fluxes_201228d10h54m39s833956usUT.qdp
Wrote uvot_fluxes_201228d10h54m39s833956usUT.gif
Wrote uvot_fluxes_201228d10h54m39s833956usUT.ps
Wrote uvot_fluxes_201228d10h54m39s833956usUT_vis.qdp
Wrote uvot_fluxes_201228d10h54m39s833956usUT_uv.qdp
Wrote uvot_fluxes_201228d10h54m39s833956usUT_vis.gif
Wrote uvot_fluxes_201228d10h54m39s833956usUT_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.931    6556.4   5614.4  -1209.7    0.2576   0.1434 21.76  0.48    6556.4    0.2576   0.1434 21.76  0.48 20.69
  1   0.0756   22652.0    994.0  -5535.0   -0.4284   0.1435 99.00 99.00    7765.5    0.1073   0.1163 22.71  0.80 21.12
  2  0.00184  367546.8  10588.0  -7690.6    0.0351   0.0576 23.93  1.05    8420.7    0.1016   0.1071 22.77  0.78 21.21
The data range from T+5346.7 s (0.06 d) to T+378134.8 s (4.38 d)
Wrote uvot_fluxes_wtd_201228d10h54m39s833956usUT.qdp
Wrote uvot_fluxes_wtd_201228d10h54m39s833956usUT.gif
Wrote uvot_fluxes_wtd_201228d10h54m39s833956usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem