# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 250108d02h50m15s139076usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01277428001 -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
# ========= GRB241229B ===================
Could not find/read custom source region custom_1277428_src.reg
Used archived XRT position of 274.17608 74.68333 4.00
Reference: GCN_Circulars-38708-Sun,_29_Dec_2024_14:06:54_+0000
The position is (18:16:42.26, +74:40:60.0)
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.17608,74.68333,4") # color=red dash=0
Source region spec. is: 274.17608 74.68333 4"
Region file centered at (274.17608,74.68333), which is (18:16:42.26, +74:40:60.0)
Could not find/read custom background region custom_1277428_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 -34.79676 from uncorrected trigger time of 757128975.95 in BAT summary file
# ============ Reading file sw01277428001uwh_sk.img ================
Use keyword TRIGTIME of 757129010.752 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 757168900
The processing date in extension 0 is: 2025-01-08T02:25:45
The trigger time is: 757129010.752. The reference is keyword in image file
Using zero point of 20.115 for filter WHITE
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(274.17608,74.68333,25")
fk5;-circle(274.17608,74.68333,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 wh757168900I   39889.7  0.94  129.2  769.6 200  21713  5865  0.247 0.239 21.63 20.1  0.2472 0.2393 21.63 20.1   129 11.607 11.236 17.63 0.004 
    Sum (T+ 39890 to  40021):             769.6        740.4 (est. in src region)   SNR_unwtd_sum:   1.03 0.9987 signif. UL:  20.14
  0   129 757168966   39955.3     65.6    -65.6    0.2472   0.2393 21.632  3.736  -0.735
Total wtd_rate (for all exposures so far): 11.607 +/-11.056 snr:  1.0 mag: 17.63 UL: 15.97
Rebinned Data for sw01277428001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      122   39955.3     65.6    -65.6    0.2472   0.2393 21.63  0.74   39955.3    0.2472   0.2393 21.63  0.74 20.14
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01277428001uvv_sk.img ================
Use keyword TRIGTIME of 757129010.752 for trigger time.
Long-term sensitivity correction to zero point is -0.227 at 757163398
The processing date in extension 0 is:  2025-01-08T02:25:44
The trigger time is: 757129010.752. The reference is keyword in image file
Using zero point of 17.663 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.17608,74.68333,25")
fk5;-circle(274.17608,74.68333,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 vv757163397I   34386.8  0.99  176.3  205.2 204   5891  5841 -0.003 0.086 99.00 19.1 -0.0033 0.0860 99.00 19.1   176 -1.266 33.352 99.00 0.002 
   2 vv757180195I   51185.2  0.99  192.7  218.2 200   6426  5851 -0.008 0.081 99.00 19.1 -0.0057 0.0590 99.00 19.5   369 -2.374 27.161 99.00 0.002 
    Sum (T+ 34387 to  51381):             423.4        425.4 (est. in src region)   SNR_unwtd_sum:  -0.10 0.9987 signif. UL:  19.49
  0   369 757172264   43253.4   8127.6  -8866.6   -0.0057   0.0590 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  9.604 +/-10.176 snr:  0.9 mag: 17.83 UL: 13.63
Rebinned Data for sw01277428001uvv_sk.img using a zero point of 17.663:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      365   43252.2   8128.9  -8865.3   -0.0057   0.0590 99.00 99.00   43252.2   -0.0057   0.0590 99.00 99.00 19.49
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01277428001ubb_sk.img ================
Use keyword TRIGTIME of 757129010.752 for trigger time.
Long-term sensitivity correction to zero point is -0.220 at 757152512
The processing date in extension 0 is:  2025-01-08T02:25:43
The trigger time is: 757129010.752. The reference is keyword in image file
Using zero point of 18.890 for filter B
Use aperture correction of  1.035 based on aperture of  4.00
Using background region based on sources found in extension 6:
# 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.17608,74.68333,25")
fk5;-circle(274.17608,74.68333,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 bb757152511I   23500.8  0.98  295.0  680.8 200  19762  5847  0.017 0.095 23.30 20.1  0.0172 0.0951 23.30 20.1   295  1.479  8.167 19.86 0.005 
   2 bb757152814I   23804.2  0.98  295.0  586.2 200  17745  5861 -0.069 0.088 99.00 20.5 -0.0261 0.0648 99.00 20.7   590 -2.441  5.589 99.00 0.005 
   3 bb757153118I   24107.9  0.99  196.0  258.2 196   7432  5885  0.057 0.087 22.00 20.1 -0.0053 0.0533 99.00 20.8   786  0.224  4.520 21.91 0.006 
   4 bb757167988I   38977.6  0.96  295.0 1374.4 204  37740  5847  0.212 0.138 20.58 19.4  0.0529 0.0538 22.08 20.5  1081  1.781  4.405 19.66 0.004 
   5 bb757168291I   39281.2  0.97  295.0 1012.6 204  28493  5835  0.060 0.117 21.95 19.8  0.0543 0.0491 22.05 20.6  1376  2.220  4.261 19.42 0.003 
   6 bb757168595I   39584.7  0.98  295.1  729.1 200  22289  5860 -0.114 0.099 99.00 20.4  0.0246 0.0441 22.91 20.9  1671  0.758  4.083 20.59 0.003 
   7 bb757184879I   55868.7  0.97  295.0 1082.1 204  32373  5831 -0.184 0.122 99.00 20.3 -0.0065 0.0416 99.00 21.1  1966 -0.207  4.028 99.00 0.003 
   8 bb757185182I   56172.2  0.97  207.6  704.7 204  21158  5830 -0.184 0.139 99.00 20.1 -0.0233 0.0399 99.00 21.3  2174 -0.906  3.989 99.00 0.003 
    Sum (T+ 23501 to  56383):            6428.1       6475.7 (est. in src region)   SNR_unwtd_sum:  -0.58 0.9987 signif. UL:  21.27
  0  2174 757166687   37675.9  18707.1 -14175.1   -0.0233   0.0399 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.484 +/- 3.662 snr:  0.1 mag: 21.08 UL: 16.18
Rebinned Data for sw01277428001ubb_sk.img using a zero point of 18.890:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.63e+03   32071.6   7812.9  -8570.8    0.0246   0.0441 22.91  1.12   32071.6    0.0246   0.0441 22.91  1.12 20.87
  1      486   56125.6    257.4   -257.0   -0.1837   0.0916 99.00 99.00   37603.3   -0.0233   0.0399 99.00 99.00 21.27
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01277428001uuu_sk.img ================
Use keyword TRIGTIME of 757129010.752 for trigger time.
Long-term sensitivity correction to zero point is -0.238 at 757157738
The processing date in extension 0 is:  2025-01-08T02:25:44
The trigger time is: 757129010.752. The reference is keyword in image file
Using zero point of 18.102 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(274.17608,74.68333,25")
fk5;-circle(274.17608,74.68333,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 uu757157737I   28726.7  0.99  174.4  240.7 204   7612  5839 -0.151 0.095 99.00 19.8 -0.1513 0.0948 99.00 19.8   174 -32.720 20.497 99.00 0.003 
   2 uu757174521I   45510.9  0.99  223.6  301.9 200   9217  5844 -0.064 0.083 99.00 19.7 -0.1020 0.0623 99.00 20.3   398 -28.827 16.607 99.00 0.002 
    Sum (T+ 28727 to  45738):             542.6        581.4 (est. in src region)   SNR_unwtd_sum:  -1.64 0.9987 signif. UL:  20.27
  0   398 757167270   38258.9   7479.1  -9532.1   -0.1020   0.0623 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.807 +/- 3.564 snr: -0.2 mag: 99.00 UL: 15.51
Rebinned Data for sw01277428001uuu_sk.img using a zero point of 18.102:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      393   38259.2   7478.8  -9532.5   -0.1020   0.0623 99.00 99.00   38259.2   -0.1020   0.0623 99.00 99.00 20.27
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01277428001uw1_sk.img ================
Use keyword TRIGTIME of 757129010.752 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 757156831
The processing date in extension 0 is:  2025-01-08T02:25:43
The trigger time is: 757129010.752. 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 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.17608,74.68333,25")
fk5;-circle(274.17608,74.68333,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 w1757156831I   27820.5  1.00  885.6  213.7 204   6633  5827 -0.022 0.017 99.00 20.6 -0.0217 0.0174 99.00 20.6   886 -10.868  8.737 99.00 0.008 
High bkg:   2 w1757173615I  885.6   8749  5860  1.686  0.018
   2 w1757173615I   44604.7  1.00  885.6  302.3 200   8749  5861  0.004 0.021 23.07 20.1 -0.0087 0.0135 99.00 20.7  1771 -7.508  7.732 99.00 0.005 
    Sum (T+ 27821 to  45504):             516.0        530.8 (est. in src region)   SNR_unwtd_sum:  -0.64 0.9987 signif. UL:  20.74
  0  1771 757165673   36662.5   8842.0  -8842.0   -0.0087   0.0135 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -1.962 +/- 3.235 snr: -0.6 mag: 99.00 UL: 14.78
Rebinned Data for sw01277428001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.77e+03   36657.8   8846.7  -8837.3   -0.0087   0.0135 99.00 99.00   36657.8   -0.0087   0.0135 99.00 99.00 20.74
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01277428001uw2_sk.img ================
Use keyword TRIGTIME of 757129010.752 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 757162492
The processing date in extension 0 is:  2025-01-08T02:25:44
The trigger time is: 757129010.752. 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 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.17608,74.68333,25")
fk5;-circle(274.17608,74.68333,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 w2757162491I   33480.8  1.00  885.6  136.6 204   3474  5841  0.018 0.014 21.41 20.1  0.0178 0.0139 21.41 20.1   886 12.126  9.440 17.58 0.011 
High bkg:   2 w2757179289I  885.6   4469  5856  0.862  0.013
   2 w2757179289I   50278.9  1.00  885.6  127.3 200   4469  5855 -0.030 0.013 99.00 21.0 -0.0059 0.0097 99.00 21.0  1771  1.047  7.836 20.24 0.008 
    Sum (T+ 33481 to  51179):             263.9        274.0 (est. in src region)   SNR_unwtd_sum:  -0.61 0.9987 signif. UL:  20.96
  0  1771 757171341   42329.8   8848.9  -8849.0   -0.0059   0.0097 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -1.490 +/- 2.984 snr: -0.5 mag: 99.00 UL: 14.71
Rebinned Data for sw01277428001uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.77e+03   42329.7   8849.0  -8848.9   -0.0059   0.0097 99.00 99.00   42329.7   -0.0059   0.0097 99.00 99.00 20.96
The data range from T+23500.8 s (0.27 d) to T+56383.1 s (0.65 d)
Wrote uvot_fluxes_250108d02h50m15s139076usUT.qdp
Wrote uvot_fluxes_250108d02h50m15s139076usUT.gif
Wrote uvot_fluxes_250108d02h50m15s139076usUT.ps
Wrote uvot_fluxes_250108d02h50m15s139076usUT_vis.qdp
Wrote uvot_fluxes_250108d02h50m15s139076usUT_uv.qdp
Wrote uvot_fluxes_250108d02h50m15s139076usUT_vis.gif
Wrote uvot_fluxes_250108d02h50m15s139076usUT_vis.ps
Wrote uvot_fluxes_250108d02h50m15s139076usUT_uv.gif
Wrote uvot_fluxes_250108d02h50m15s139076usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  v (0)  , b (0)  , white (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   0.0247   31561.3  24821.7  -8060.5    0.0553   0.1321 23.43  1.32   31561.3    0.0553   0.1321 23.43  1.32 21.11
The data range from T+23500.8 s (0.27 d) to T+56383.1 s (0.65 d)
Wrote uvot_fluxes_wtd_250108d02h50m15s139076usUT.qdp
Wrote uvot_fluxes_wtd_250108d02h50m15s139076usUT.gif
Wrote uvot_fluxes_wtd_250108d02h50m15s139076usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem