# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 221216d01h09m24s903957usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01144538992 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/data/uvot/swift_data/home/uvot_lc -web -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /data/uvot/swift_data/home/uvot_lc
# ========= GRB221215 ===================
Could not find/read custom source region custom_1144538_src.reg
Used archived BAT position of 54.78900 -27.43300
Reference: GCN_Position_Notice_Thu_15_Dec_22_03:35:52_UT
The position is (03:39:09.36, -27:25:58.8)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl bat
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(54.789,-27.433,3") # color=red dash=0
Source region spec. is: 54.789 -27.433 3"
Region file centered at (54.789,-27.433), which is (03:39:09.36, -27:25:58.8)
Could not find/read custom background region custom_1144538_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.
*** Since no accurate position is available, set rates to 0. and compute ULs based on expected background in source aperture.
Because there are many possible positions for a source, the confidence levels should be increased for upper limits.
Using the ratio of the BAT region and the aperture of 3600.0,
3 sigma should become about 5.1 sigma and 2 sigma should become about 4.5 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999964.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -30.33282 from uncorrected trigger time of 692768124.35 in BAT summary file
# ============ Reading file sw01144538992uwh_sk.img ================
Use keyword TRIGTIME of 692768154.752 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 692769446
The processing date in extension 0 is: 2022-12-16T01:03:25
The trigger time is: 692768154.752. The reference is keyword in image file
Using zero point of 20.115 for filter WHITE
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(54.789,-27.433,25")
fk5;-circle(54.789,-27.433,12.5")
fk5;-circle(54.795958,-27.435410,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 wh692769445I    1290.8  0.98  137.4  161.3 113   7986  5576  0.000 0.106 99.00 20.8  0.0000 0.1057 99.00 20.8   137  0.000  0.169 99.00 0.520 
   2 wh692769445E    1290.8  0.98  137.4  156.4 112   8002  5578  0.000 0.105 99.00 20.8 
Low  bkg:   3 wh692773879I    4.8    105  5556  3.915  0.383
   3 wh692773879I    5724.5  0.99    4.8    2.1 108    105  5556  0.000 0.334 99.00 19.5  0.0000 0.1027 99.00 20.8   142  0.000  0.169 99.00 0.518 
    Sum (T+  1291 to   5729):             163.9        163.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.82
  0   142 692769663    1508.3   4221.2   -217.5    0.0000   0.1027 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.167 snr:  0.0 mag: 99.00 UL: 20.29
Rebinned Data for sw01144538992uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      135    1360.6     69.8    -69.8    0.0000   0.1057 99.00 99.00    1360.6    0.0000   0.1057 99.00 99.00 21.29
  1     4.77    5727.0      2.4     -2.4    0.0000   0.3341 99.00 99.00    1510.1    0.0000   0.1027 99.00 99.00 21.32
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01144538992uvv_sk.img ================
Use keyword TRIGTIME of 692768154.752 for trigger time.
Long-term sensitivity correction to zero point is -0.220 at 692772855
The processing date in extension 0 is:  2022-12-16T01:03:25
The trigger time is: 692768154.752. The reference is keyword in image file
Using zero point of 17.670 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(54.789,-27.433,25")
fk5;-circle(54.789,-27.433,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 vv692772854I    4699.8  0.99  196.6   92.9 116   5082  5840  0.000 0.057 99.00 19.0  0.0000 0.0566 99.00 19.0   197  0.000  3.033 99.00 0.036 
    Sum (T+  4700 to   4900):             100.9        100.9 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.02
  0   197 692772954    4799.7     99.9    -99.9    0.0000   0.0566 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.164 snr:  0.0 mag: 99.00 UL: 17.87
Rebinned Data for sw01144538992uvv_sk.img using a zero point of 17.670:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    4799.7     99.9    -99.9    0.0000   0.0566 99.00 99.00    4799.7    0.0000   0.0566 99.00 99.00 19.52
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01144538992ubb_sk.img ================
Use keyword TRIGTIME of 692768154.752 for trigger time.
Long-term sensitivity correction to zero point is -0.196 at 692773675
The processing date in extension 0 is:  2022-12-16T01:03:26
The trigger time is: 692768154.752. The reference is keyword in image file
Using zero point of 18.914 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(54.789,-27.433,25")
fk5;-circle(54.789,-27.433,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 bb692773674I    5519.9  0.99  196.6   84.8 108   4469  5836  0.000 0.052 99.00 20.4  0.0000 0.0521 99.00 20.4   197  0.000  1.040 99.00 0.118 
    Sum (T+  5520 to   5720):              82.7         82.7 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.36
  0   197 692773775    5619.7     99.9    -99.9    0.0000   0.0521 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.164 snr:  0.0 mag: 99.00 UL: 19.11
Rebinned Data for sw01144538992ubb_sk.img using a zero point of 18.914:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      195    5619.7     99.9    -99.9    0.0000   0.0521 99.00 99.00    5619.7    0.0000   0.0521 99.00 99.00 20.85
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01144538992uuu_sk.img ================
Use keyword TRIGTIME of 692768154.752 for trigger time.
Long-term sensitivity correction to zero point is -0.212 at 692773469
The processing date in extension 0 is:  2022-12-16T01:03:26
The trigger time is: 692768154.752. The reference is keyword in image file
Using zero point of 18.128 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(54.789,-27.433,25")
fk5;-circle(54.789,-27.433,12.5")
fk5;-circle(54.795926,-27.435404,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 uu692773469I    5314.7  1.00  196.6   31.9 116   1856  5596  0.000 0.035 99.00 20.0  0.0000 0.0352 99.00 20.0   197  0.000  1.395 99.00 0.128 
    Sum (T+  5315 to   5514):              38.5         38.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  20.00
  0   197 692773569    5414.6     99.9    -99.9    0.0000   0.0352 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.162 snr:  0.0 mag: 99.00 UL: 18.34
Rebinned Data for sw01144538992uuu_sk.img using a zero point of 18.128:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5414.6     99.9    -99.9    0.0000   0.0352 99.00 99.00    5414.6    0.0000   0.0352 99.00 99.00 20.49
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01144538992uw1_sk.img ================
Use keyword TRIGTIME of 692768154.752 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 692773264
The processing date in extension 0 is:  2022-12-16T01:03:26
The trigger time is: 692768154.752. The reference is keyword in image file
Using zero point of 17.169 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(54.789,-27.433,25")
fk5;-circle(54.789,-27.433,12.5")
fk5;-circle(54.795932,-27.435242,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 w1692773264I    5109.7  1.00  196.6    6.8 120    448  5600  0.000 0.018 99.00 19.8  0.0000 0.0179 99.00 19.8   197  0.000  1.652 99.00 0.222 
    Sum (T+  5110 to   5309):               9.6          9.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.77
  0   197 692773364    5209.6     99.9    -99.9    0.0000   0.0179 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.165 snr:  0.0 mag: 99.00 UL: 17.36
Rebinned Data for sw01144538992uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196    5209.6     99.9    -99.9    0.0000   0.0179 99.00 99.00    5209.6    0.0000   0.0179 99.00 99.00 20.27
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01144538992um2_sk.img ================
Use keyword TRIGTIME of 692768154.752 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 692773059
The processing date in extension 0 is:  2022-12-16T01:03:25
The trigger time is: 692768154.752. The reference is keyword in image file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.106 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(54.789,-27.433,25")
fk5;-circle(54.789,-27.433,12.5")
fk5;-circle(54.795930,-27.435459,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 m2692773059I    4904.5  1.00  196.6    6.5 116    297  5584  0.000 0.014 99.00 19.4  0.0000 0.0141 99.00 19.4   197  0.000  2.132 99.00 0.211 
    Sum (T+  4905 to   5104):               6.2          6.2 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999638888889 signif. UL:  19.45
  0   197 692773159    5004.4     99.9    -99.9    0.0000   0.0141 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 0.162 snr:  0.0 mag: 99.00 UL: 16.80
Rebinned Data for sw01144538992um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      197    5004.4     99.9    -99.9    0.0000   0.0141 99.00 99.00    5004.4    0.0000   0.0141 99.00 99.00 19.95
The data range from T+1290.8 s (0.01 d) to T+5729.4 s (0.07 d)
Wrote uvot_fluxes_221216d01h09m24s903957usUT.qdp
Wrote uvot_fluxes_221216d01h09m24s903957usUT.gif
Wrote uvot_fluxes_221216d01h09m24s903957usUT.ps
Wrote uvot_fluxes_221216d01h09m24s903957usUT_vis.qdp
Wrote uvot_fluxes_221216d01h09m24s903957usUT_uv.qdp
Wrote uvot_fluxes_221216d01h09m24s903957usUT_vis.gif
Wrote uvot_fluxes_221216d01h09m24s903957usUT_vis.ps
Wrote uvot_fluxes_221216d01h09m24s903957usUT_uv.gif
Wrote uvot_fluxes_221216d01h09m24s903957usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  u (0)  , b (0)  , v (0)  , white (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     29.8    1360.6     69.8    -69.8    0.0000   0.1242 99.00 99.00    1360.6    0.0000   0.1242 99.00 99.00 21.29
  1    0.509    5611.3    118.1   -911.5    0.0000   0.1669 99.00 99.00    1431.9    0.0000   0.1166 99.00 99.00 21.36
The data range from T+1290.8 s (0.01 d) to T+5729.4 s (0.07 d)
Wrote uvot_fluxes_wtd_221216d01h09m24s903957usUT.qdp
Wrote uvot_fluxes_wtd_221216d01h09m24s903957usUT.gif
Wrote uvot_fluxes_wtd_221216d01h09m24s903957usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem