# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 260209d07h51m38s333363usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021908001 -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
# ========= GRB260208 ===================
Could not find/read custom source region custom_021908_src.reg
Used archived BAT position of 204.57300 33.76600
Reference: GCN_Notice_Sun_08_Feb_26_14:50:08_UT
The position is (13:38:17.52, +33:45:57.6)
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(204.573,+33.766,3") # color=red dash=0
Source region spec. is: 204.573 +33.766 3"
Region file centered at (204.573,+33.766), which is (13:38:17.52, +33:45:57.6)
Could not find/read custom background region custom_021908_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 32328.0,
3 sigma should become about 5.5 sigma and 2 sigma should become about 5.0 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999996.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Subtract UTCF of -37.13116 from uncorrected trigger time of 792220048.23 in BAT summary file
# ============ Reading file sw00021908001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 792255711
The processing date in extension 0 is: 2026-02-09T07:41:48
The trigger time is: 792220085.36116. The reference is BAT GRB summary file
Using zero point of 20.115 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  2   10.1 204.75933  33.80202 0.286  76.6
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(204.573,+33.766,25")
fk5;-circle(204.573,+33.766,12.5")
fk5;-circle(204.580454,33.762584,6")
fk5;-circle(204.581890,33.768854,6")
fk5;-circle(204.578614,33.772515,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 wh792255710I   35625.5  0.97  517.5  946.4 112  44825  5528  0.000 0.067 99.00 21.2  0.0000 0.0672 99.00 21.2   517  0.000  2.833 99.00 0.013 
Low  bkg:   2 wh792260912I  690.7  15211  5576  3.950  0.032
%  2 wh792260912I   40827.0  0.99  690.7    0.0 116  15211  5576 
   3 wh792266373I   46288.4  0.97  735.0 1043.5 112  53082  5528  0.000 0.051 99.00 21.5  0.0000 0.0409 99.00 21.7  1252  0.000  1.994 99.00 0.013 
    Sum (T+ 35626 to  47035):            1983.6       1983.6 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999959787231 signif. UL:  21.74
  0  1252 792262296   42210.6   4824.6  -6585.1    0.0000   0.0409 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.974 snr:  0.0 mag: 99.00 UL: 17.53
Rebinned Data for sw00021908001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.22e+03   42223.1   4812.1  -6597.6    0.0000   0.0409 99.00 99.00   42223.1    0.0000   0.0409 99.00 99.00 22.32
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw00021908001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.231 at 792256243
The processing date in extension 0 is:  2026-02-09T07:41:48
The trigger time is: 792220085.36116. The reference is BAT GRB summary file
Using zero point of 17.659 for filter V
Use aperture correction of  1.087 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  2    9.0 204.75901  33.80218 0.286  76.6
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(204.573,+33.766,25")
fk5;-circle(204.573,+33.766,12.5")
fk5;-circle(204.580706,33.762795,6")
fk5;-circle(204.582049,33.768871,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 vv792256243I   36157.8  0.98  283.4  238.5 112  12900  5620  0.000 0.063 99.00 18.8  0.0000 0.0631 99.00 18.8   283  0.000 25.860 99.00 0.003 
%  2 vv792261620I   41535.6  0.99  645.3    0.0 116  10385  5648 
   3 vv792267127I   47042.3  0.99    9.4    3.9 108    171  5612  0.000 0.214 99.00 17.5  0.0000 0.0615 99.00 18.8   293  0.000 25.213 99.00 0.003 
    Sum (T+ 36158 to  47052):             260.4        260.4 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999959787231 signif. UL:  18.84
  0   293 792256731   36645.7  10406.1   -487.9    0.0000   0.0615 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.933 snr:  0.0 mag: 99.00 UL: 15.09
Rebinned Data for sw00021908001uvv_sk.img using a zero point of 17.659:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      288   36648.9  10402.9   -491.1    0.0000   0.0615 99.00 99.00   36648.9    0.0000   0.0615 99.00 99.00 19.42
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw00021908001uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.252 at 792255179
The processing date in extension 0 is:  2026-02-09T07:41:47
The trigger time is: 792220085.36116. The reference is BAT GRB summary file
Using zero point of 18.088 for filter U
Use aperture correction of  1.100 based on aperture of  3.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  2   10.0 204.75929  33.80200 0.286  76.6
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(204.573,+33.766,25")
fk5;-circle(204.573,+33.766,12.5")
fk5;-circle(204.581769,33.768884,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 uu792255179I   35093.9  1.00  517.5  116.5 116   5333  5760  0.000 0.022 99.00 20.4  0.0000 0.0223 99.00 20.4   517  0.000  5.998 99.00 0.018 
Low  bkg:   2 uu792260203I  690.7   2399  5788  0.600  0.012
%  2 uu792260203I   40118.6  1.00  690.7    0.0 116   2399  5788 
   3 uu792265620I   45535.0  1.00  735.0  155.4 112   8160  5780  0.000 0.019 99.00 20.5  0.0000 0.0145 99.00 20.8  1252  0.000  4.455 99.00 0.015 
    Sum (T+ 35094 to  46282):             265.5        265.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.999999959787231 signif. UL:  20.84
  0  1252 792261634   41548.9   4732.9  -6455.0    0.0000   0.0145 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 1.787 snr:  0.0 mag: 99.00 UL: 15.61
Rebinned Data for sw00021908001uuu_sk.img using a zero point of 18.088:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.25e+03   41548.2   4733.5  -6454.3    0.0000   0.0145 99.00 99.00   41548.2    0.0000   0.0145 99.00 99.00 21.42
The data range from T+35093.9 s (0.41 d) to T+47051.8 s (0.54 d)
Wrote uvot_fluxes_260209d07h51m38s333363usUT.qdp
Wrote uvot_fluxes_260209d07h51m38s333363usUT.gif
Wrote uvot_fluxes_260209d07h51m38s333363usUT.ps
Wrote uvot_fluxes_260209d07h51m38s333363usUT_vis.qdp
Wrote uvot_fluxes_260209d07h51m38s333363usUT_uv.qdp
Wrote uvot_fluxes_260209d07h51m38s333363usUT_vis.gif
Wrote uvot_fluxes_260209d07h51m38s333363usUT_vis.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    0.221   41281.7   5770.1  -6187.8    0.0000   0.0469 99.00 99.00   41281.7    0.0000   0.0469 99.00 99.00 22.34
The data range from T+35093.9 s (0.41 d) to T+47051.8 s (0.54 d)
Wrote uvot_fluxes_wtd_260209d07h51m38s333363usUT.qdp
Wrote uvot_fluxes_wtd_260209d07h51m38s333363usUT.gif
Wrote uvot_fluxes_wtd_260209d07h51m38s333363usUT.ps
Found 2 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem