# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 240318d17h04m32s984895usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01218452002 -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
# ========= GRB240303A ===================
Could not find/read custom source region custom_1218452_src.reg
Used archived XRT position of 229.73750 -57.36331 4.00
Reference: GCN_Circulars-35849-Sun,_3_Mar_2024_07:00:41_+0000
The position is (15:18:57.00, -57:21:47.9)
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(229.73750,-57.36331,4") # color=red dash=0
Source region spec. is: 229.73750 -57.36331 4"
Region file centered at (229.73750,-57.36331), which is (15:18:57.00, -57:21:47.9)
Could not find/read custom background region custom_1218452_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 -33.00308 from uncorrected trigger time of 731140398.98 in BAT summary file
# ============ Reading file sw01218452001uvv_sk.img ================
Use keyword TRIGTIME of 731140432 for trigger time.
Long-term sensitivity correction to zero point is -0.224 at 731162463
The processing date in extension 0 is: 2024-03-03T22:46:50
The trigger time is: 731140432. The reference is keyword in image file
Using zero point of 17.666 for filter V
Use aperture correction of 1.030 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(229.73750,-57.36331,25")
fk5;-circle(229.73750,-57.36331,12.5")
fk5;-circle(229.752228,-57.363362,6")
fk5;-circle(229.728234,-57.364744,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 vv731162463I   22031.2  0.99  295.0  264.4 196   6883  5355  0.044 0.058 21.06 19.3  0.0437 0.0582 21.06 19.3   295 10.871 14.484 17.70 0.005 
#  2 vv731162766I   22334.8  0.99  295.0  270.4 200   6916  5309 
   3 vv731163070I   22638.3  0.99  194.3  154.2 188   4561  5302 -0.040 0.068 99.00 19.5  0.0104 0.0442 22.62 19.7   489  2.611 11.097 19.25 0.005 
    Sum (T+ 22031 to  22836):             418.6        413.7 (est. in src region)   SNR_unwtd_sum:   0.24 0.9987 signif. UL:  19.72
  0   489 731162834   22401.8    433.9   -370.6    0.0104   0.0442 22.620 76.380  -1.798
Total wtd_rate (for all exposures so far):  2.611 +/-10.904 snr:  0.2 mag: 19.25 UL: 13.74
Rebinned Data for sw01218452001uvv_sk.img using a zero point of 17.666:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      485   22401.9    433.7   -370.7    0.0104   0.0442 22.62  1.80   22401.9    0.0104   0.0442 22.62  1.80 19.72
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01218452001ubb_sk.img ================
Use keyword TRIGTIME of 731140432 for trigger time.
Long-term sensitivity correction to zero point is -0.210 at 731167148
The processing date in extension 0 is:  2024-03-03T22:46:50
The trigger time is: 731140432. The reference is keyword in image file
Using zero point of 18.900 for filter B
Use aperture correction of  1.035 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(229.73750,-57.36331,25")
fk5;-circle(229.73750,-57.36331,12.5")
fk5;-circle(229.727565,-57.365634,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 bb731167148I   26716.1  0.99  295.0  453.1 200  12041  5477  0.048 0.077 22.20 20.3  0.0479 0.0771 22.20 20.3   295  4.634  7.454 18.62 0.007 
   2 bb731167452I   27021.0  0.99  295.0  410.9 196  12026  5458 -0.074 0.073 99.00 20.7 -0.0133 0.0532 99.00 20.9   590 -1.317  5.174 99.00 0.007 
   3 bb731167756I   27324.5  0.99   86.9  110.7 204   3420  5442 -0.211 0.130 99.00 20.3 -0.0387 0.0493 99.00 21.1   677 -3.768  4.800 99.00 0.007 
    Sum (T+ 26716 to  27413):             974.8        999.8 (est. in src region)   SNR_unwtd_sum:  -0.79 0.9987 signif. UL:  21.10
  0   677 731167495   27063.4    349.4   -347.3   -0.0387   0.0493 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -2.738 +/- 4.329 snr: -0.6 mag: 99.00 UL: 16.20
Rebinned Data for sw01218452001ubb_sk.img using a zero point of 18.900:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      668   27063.5    349.3   -347.4   -0.0387   0.0493 99.00 99.00   27063.5   -0.0387   0.0493 99.00 99.00 21.10
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01218452992uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.228 at 731140576
The processing date in extension 0 is:  2024-03-03T15:09:15
The trigger time is: 731140432. The reference is keyword in image file
Using zero point of 18.112 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(229.73750,-57.36331,25")
fk5;-circle(229.73750,-57.36331,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 uu731140575I     143.9  0.99  245.8  195.5 199   5427  5844  0.045 0.060 21.48 19.7  0.0451 0.0601 21.48 19.7   246  0.090  0.120 22.90 0.661 
    Sum (T+   144 to    394):             195.5        184.8 (est. in src region)   SNR_unwtd_sum:   0.75 0.9987 signif. UL:  19.70
  0   246 731140701     268.7    124.9   -124.9    0.0451   0.0601 21.478 77.522  -0.920
Total wtd_rate (for all exposures so far):  0.088 +/- 0.118 snr:  0.7 mag: 22.93 UL: 18.97
# ============ Reading file sw01218452001uuu_sk.img ================
Use keyword TRIGTIME of 731140432 for trigger time.
Long-term sensitivity correction to zero point is -0.228 at 731150973
The processing date in extension 0 is:  2024-03-03T22:46:49
The trigger time is: 731140432. The reference is keyword in image file
Using zero point of 18.112 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(229.73750,-57.36331,25")
fk5;-circle(229.73750,-57.36331,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 uu731150972I   10540.8  0.99  295.0  168.8 204   5502  5839 -0.083 0.047 99.00 20.6 -0.0825 0.0466 99.00 20.6   295 -6.557  3.702 99.00 0.019 
   2 uu731151276I   10844.4  0.99  295.0  182.9 208   5603  5883 -0.053 0.048 99.00 20.4 -0.0679 0.0336 99.00 21.0   590 -5.506  2.706 99.00 0.019 
   3 uu731151579I   11148.0  0.99  177.0   99.1 192   3337  5863 -0.060 0.059 99.00 20.2 -0.0660 0.0293 99.00 21.2   767 -5.385  2.376 99.00 0.019 
    Sum (T+ 10541 to  11328):             450.8        499.6 (est. in src region)   SNR_unwtd_sum:  -2.25 0.9987 signif. UL:  21.24
  0   767 731151366   10933.7    394.1   -392.9   -0.0660   0.0293 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.076 +/- 0.118 snr:  0.6 mag: 23.09 UL: 19.00
Rebinned Data for sw01218452001uuu_sk.img using a zero point of 18.112:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      244     268.7    124.9   -124.9    0.0451   0.0601 21.48  0.92     268.7    0.0451   0.0601 21.48  0.92 19.70
  1      763   10933.6    394.1   -392.8   -0.0660   0.0293 99.00 99.00    8348.6   -0.0391   0.0265 99.00 99.00 21.16
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01218452001uw1_sk.img ================
Use keyword TRIGTIME of 731140432 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 731150067
The processing date in extension 0 is:  2024-03-03T22:46:49
The trigger time is: 731140432. The reference is keyword in image file
Using zero point of 17.169 for filter UVW1
Use aperture correction of  1.035 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(229.73750,-57.36331,25")
fk5;-circle(229.73750,-57.36331,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 w1731150066I    9634.5  1.00  885.6  121.3 196   3995  5875 -0.014 0.013 99.00 20.9 -0.0140 0.0131 99.00 20.9   886 -2.510  2.344 99.00 0.037 
    Sum (T+  9635 to  10534):             121.3        133.3 (est. in src region)   SNR_unwtd_sum:  -1.07 0.9987 signif. UL:  20.88
  0   886 731150516   10084.4    449.9   -449.9   -0.0140   0.0131 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.070 +/- 0.118 snr:  0.6 mag: 23.17 UL: 18.07
Rebinned Data for sw01218452001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      884   10084.4    449.9   -449.9   -0.0140   0.0131 99.00 99.00   10084.4   -0.0140   0.0131 99.00 99.00 20.88
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01218452002um2_sk.img ================
Use keyword TRIGTIME of 731140432 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 731337913
The processing date in extension 0 is:  2024-03-18T15:41:52
The trigger time is: 731140432. The reference is keyword in image file
Using zero point of 16.591 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(229.73750,-57.36331,25")
fk5;-circle(229.73750,-57.36331,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 m2731337913E  197481.3  1.00 1668.4  100.5 203   2862  5850  0.001 0.006 24.47 20.8  0.0007 0.0063 24.47 20.8  1668  4.219 37.699 18.73 0.003 
    Sum (T+197481 to 199176):             100.5         99.3 (est. in src region)   SNR_unwtd_sum:   0.11 0.9987 signif. UL:  20.80
  0  1668 731338761  198328.9    847.6   -847.6    0.0007   0.0063 24.471 74.529  -2.494
Total wtd_rate (for all exposures so far):  0.070 +/- 0.118 snr:  0.6 mag: 23.17 UL: 17.49
Rebinned Data for sw01218452002um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.67e+03  198328.9    847.6   -847.6    0.0007   0.0063 24.47  2.49  198328.9    0.0007   0.0063 24.47  2.49 20.80
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01218452001uw2_sk.img ================
Use keyword TRIGTIME of 731140432 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 731161557
The processing date in extension 0 is:  2024-03-03T22:46:49
The trigger time is: 731140432. The reference is keyword in image file
Using zero point of 17.035 for filter UVW2
Use aperture correction of  1.035 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(229.73750,-57.36331,25")
fk5;-circle(229.73750,-57.36331,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 w2731161556I   21124.9  1.00  885.6   93.9 204   2645  5836  0.002 0.012 24.01 20.6  0.0016 0.0115 24.01 20.6   886  0.703  4.981 20.67 0.022 
    Sum (T+ 21125 to  22025):              93.9         92.5 (est. in src region)   SNR_unwtd_sum:   0.14 0.9987 signif. UL:  20.58
  0   886 731162007   21574.8    449.9   -449.9    0.0016   0.0115 24.008 74.992  -2.270
Total wtd_rate (for all exposures so far):  0.071 +/- 0.118 snr:  0.6 mag: 23.16 UL: 17.93
Rebinned Data for sw01218452001uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885   21574.8    449.9   -449.9    0.0016   0.0115 24.01  2.27   21574.8    0.0016   0.0115 24.01  2.27 20.58
The data range from T+143.9 s (0.00 d) to T+199176.4 s (2.31 d)
Wrote uvot_fluxes_240318d17h04m32s984895usUT.qdp
Wrote uvot_fluxes_240318d17h04m32s984895usUT.gif
Wrote uvot_fluxes_240318d17h04m32s984895usUT.ps
Wrote uvot_fluxes_240318d17h04m32s984895usUT_vis.qdp
Wrote uvot_fluxes_240318d17h04m32s984895usUT_uv.qdp
Wrote uvot_fluxes_240318d17h04m32s984895usUT_vis.gif
Wrote uvot_fluxes_240318d17h04m32s984895usUT_vis.ps
Wrote uvot_fluxes_240318d17h04m32s984895usUT_uv.gif
Wrote uvot_fluxes_240318d17h04m32s984895usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  white (0)  , b (0)  , v (0)  , u (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     9.34     268.7    124.9   -124.9    0.3349   0.4465 21.48  0.92     268.7    0.3349   0.4465 21.48  0.92 19.70
  1   0.0367   16481.3  10931.5  -5940.4   -0.2960   0.1348 99.00 99.00     332.1    0.2125   0.3608 21.97  1.08 19.98
The data range from T+143.9 s (0.00 d) to T+199176.4 s (2.31 d)
Wrote uvot_fluxes_wtd_240318d17h04m32s984895usUT.qdp
Wrote uvot_fluxes_wtd_240318d17h04m32s984895usUT.gif
Wrote uvot_fluxes_wtd_240318d17h04m32s984895usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem