# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 240424d10h53m38s891353usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01221714001 -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
# ========= GRB240414A ===================
Could not find/read custom source region custom_1221714_src.reg
Used archived uvot source position of 184.78370 56.74127 3.00
Reference: GCN_Circ_36115
The position is (12:19:08.09, +56:44:28.6)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl uvot
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(184.78370,56.74127,3") # color=red dash=0
Source region spec. is: 184.78370 56.74127 3"
Region file centered at (184.78370,56.74127), which is (12:19:08.09, +56:44:28.6)
Could not find/read custom background region custom_1221714_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.2726 from uncorrected trigger time of 734754036.43 in BAT summary file
# ============ Reading file sw01221714001ubb_sk.img ================
Use keyword TRIGTIME of 734754069.696 for trigger time.
Long-term sensitivity correction to zero point is -0.212 at 734763926
The processing date in extension 0 is: 2024-04-24T10:38:51
The trigger time is: 734754069.696. The reference is keyword in image file
Using zero point of 18.898 for filter B
Use aperture correction of 1.108 based on aperture of 3.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(184.78370,56.74127,25")
fk5;-circle(184.78370,56.74127,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 bb734763926I    9856.4  0.99  295.0  330.2 116   6952  5906  0.736 0.069 19.23 19.0  0.7364 0.0694 19.23 19.0   295 26.552  2.502 16.73 0.059 
   2 bb734764229I   10160.0  0.99  295.0  307.8 112   6686  5898  0.687 0.067 19.31 19.0  0.7117 0.0482 19.27 19.1   590 26.032  1.763 16.75 0.060 
   3 bb734764533I   10463.6  0.99  263.3  250.9 112   5792  5836  0.594 0.068 19.46 19.1  0.6754 0.0393 19.32 19.1   853 25.020  1.457 16.79 0.061 
    Sum (T+  9856 to  10731):             888.8        374.7 (est. in src region)   SNR_unwtd_sum:  17.18 0.9987 signif. UL:  19.15
  0   853 734764363   10293.6    437.5   -437.2    0.6754   0.0393 19.324  0.065  -0.061
Total wtd_rate (for all exposures so far): 25.020 +/- 1.451 snr: 17.2 mag: 16.79 UL: 15.23
Rebinned Data for sw01221714001ubb_sk.img using a zero point of 18.898:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      843   10293.8    437.3   -437.4    0.6754   0.0393 19.32  0.06   10293.8    0.6754   0.0393 19.32  0.06 19.15
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01221714001uuu_sk.img ================
Use keyword TRIGTIME of 734754069.696 for trigger time.
Long-term sensitivity correction to zero point is -0.229 at 734776308
The processing date in extension 0 is:  2024-04-24T10:38:52
The trigger time is: 734754069.696. The reference is keyword in image file
Using zero point of 18.111 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(184.78370,56.74127,25")
fk5;-circle(184.78370,56.74127,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 uu734776308I   22238.8  1.00  295.0  127.6 116   2610  5886  0.285 0.042 19.47 19.1  0.2852 0.0425 19.47 19.1   295 47.525  7.076 16.10 0.034 
Low  bkg:   2 uu734776612I  295.0   2558  5832  1.486  0.029
   2 uu734776612I   22542.3  0.99  295.0  124.2 108   2558  5845  0.288 0.042 19.46 19.1  0.2868 0.0298 19.47 19.2   590 48.130  5.006 16.08 0.035 
Low  bkg:   3 uu734776915I  117.4   1023  5828  1.496  0.047
   3 uu734776915I   22845.8  0.99  117.4   56.8 112   1023  5842  0.350 0.071 19.25 18.7  0.2973 0.0275 19.43 19.2   707 50.002  4.633 16.04 0.035 
    Sum (T+ 22239 to  22965):             308.7        118.3 (est. in src region)   SNR_unwtd_sum:  10.79 0.9987 signif. UL:  19.16
  0   707 734776671   22601.0    364.0   -362.2    0.2973   0.0275 19.428  0.105  -0.097
Total wtd_rate (for all exposures so far): 27.274 +/- 1.376 snr: 19.8 mag: 16.70 UL: 14.37
Rebinned Data for sw01221714001uuu_sk.img using a zero point of 18.111:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      704   22600.9    364.1   -362.2    0.2973   0.0275 19.43  0.10   22600.9    0.2973   0.0275 19.43  0.10 19.16
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01221714001uw1_sk.img ================
Use keyword TRIGTIME of 734754069.696 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 734770482
The processing date in extension 0 is:  2024-04-24T10:38:51
The trigger time is: 734754069.696. 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 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(184.78370,56.74127,25")
fk5;-circle(184.78370,56.74127,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 w1734770482I   16412.5  1.00  376.6   35.1 112    676  5867  0.066 0.018 20.12 19.5  0.0662 0.0177 20.12 19.5   377 19.491  5.222 17.07 0.099 
   2 w1734775402I   21332.4  1.00  885.6   78.5 112   1828  5826  0.055 0.011 20.32 19.8  0.0584 0.0095 20.25 19.8  1262 20.434  3.362 17.01 0.074 
    Sum (T+ 16413 to  22232):             113.6         48.0 (est. in src region)   SNR_unwtd_sum:   6.12 0.9987 signif. UL:  19.82
  0  1262 734774307   20237.3   1994.9  -3824.7    0.0584   0.0095 20.253  0.194  -0.164
Total wtd_rate (for all exposures so far): 26.723 +/- 1.296 snr: 20.6 mag: 16.72 UL: 13.45
Rebinned Data for sw01221714001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      376   16603.8    191.3   -191.3    0.0662   0.0177 20.12  0.26   16603.8    0.0662   0.0177 20.12  0.26 19.47
  1      885   21782.3    449.9   -449.9    0.0550   0.0113 20.32  0.20   20237.3    0.0584   0.0095 20.25  0.16 19.82
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01221714001um2_sk.img ================
Use keyword TRIGTIME of 734754069.696 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 734769575
The processing date in extension 0 is:  2024-04-24T10:38:51
The trigger time is: 734754069.696. 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(184.78370,56.74127,25")
fk5;-circle(184.78370,56.74127,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 m2734769575I   15505.8  1.00  885.6   23.3 108   1061  5824  0.005 0.006 22.45 20.7  0.0045 0.0061 22.45 20.7   886  2.185  2.925 19.44 0.093 
    Sum (T+ 15506 to  16406):              23.3         19.7 (est. in src region)   SNR_unwtd_sum:   0.75 0.9987 signif. UL:  20.67
  0   886 734770025   15955.7    449.9   -449.9    0.0045   0.0061 22.449 76.551  -0.923
Total wtd_rate (for all exposures so far): 24.210 +/- 1.192 snr: 20.3 mag: 16.83 UL: 12.98
Rebinned Data for sw01221714001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885   15955.7    449.9   -449.9    0.0045   0.0061 22.45  0.92   15955.7    0.0045   0.0061 22.45  0.92 20.67
=========================================================
================ Start New Filter UVW2 ==================
=========================================================
# ============ Reading file sw01221714001uw2_sk.img ================
Use keyword TRIGTIME of 734754069.696 for trigger time.
Long-term sensitivity correction to zero point is -0.345 at 734780870
The processing date in extension 0 is:  2024-04-24T10:38:52
The trigger time is: 734754069.696. The reference is keyword in image file
Using zero point of 17.035 for filter UVW2
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(184.78370,56.74127,25")
fk5;-circle(184.78370,56.74127,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 w2734780870I   26800.8  1.00  755.2   31.1 112   1244  5824  0.011 0.008 21.98 20.7  0.0105 0.0082 21.98 20.7   755  5.746  4.492 18.39 0.058 
    Sum (T+ 26801 to  27568):              31.1         23.9 (est. in src region)   SNR_unwtd_sum:   1.28 0.9987 signif. UL:  20.66
  0   755 734781254   27184.4    383.6   -383.6    0.0105   0.0082 21.977  1.653  -0.627
Total wtd_rate (for all exposures so far): 23.534 +/- 1.161 snr: 20.3 mag: 16.86 UL: 13.46
Rebinned Data for sw01221714001uw2_sk.img using a zero point of 17.035:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      755   27184.4    383.6   -383.6    0.0105   0.0082 21.98  0.63   27184.4    0.0105   0.0082 21.98  0.63 20.66
The data range from T+9856.4 s (0.11 d) to T+27568.1 s (0.32 d)
Wrote uvot_fluxes_240424d10h53m38s891353usUT.qdp
Wrote uvot_fluxes_240424d10h53m38s891353usUT.gif
Wrote uvot_fluxes_240424d10h53m38s891353usUT.ps
Wrote uvot_fluxes_240424d10h53m38s891353usUT_vis.qdp
Wrote uvot_fluxes_240424d10h53m38s891353usUT_uv.qdp
Wrote uvot_fluxes_240424d10h53m38s891353usUT_vis.gif
Wrote uvot_fluxes_240424d10h53m38s891353usUT_vis.ps
Wrote uvot_fluxes_240424d10h53m38s891353usUT_uv.gif
Wrote uvot_fluxes_240424d10h53m38s891353usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  u (0)  , v (0)  , b (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    0.131   10298.4    432.7   -442.0    2.4247   0.1414 19.33  0.06   10298.4    2.4247   0.1414 19.33  0.06 19.15
  1  0.00628   22593.4    371.6   -354.6    2.2042   0.2048 19.43  0.10   10861.1    2.4037   0.1294 19.34  0.06 19.18
The data range from T+9856.4 s (0.11 d) to T+27568.1 s (0.32 d)
Wrote uvot_fluxes_wtd_240424d10h53m38s891353usUT.qdp
Wrote uvot_fluxes_wtd_240424d10h53m38s891353usUT.gif
Wrote uvot_fluxes_wtd_240424d10h53m38s891353usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem