# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 241104d03h09m14s126907usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021725002 -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
# ========= GRB241021A ===================
Could not find/read custom source region custom_021725_src.reg
Used archived opt source position of 28.84754 5.93833 3.00
Reference: GCN_Circulars-37840
The position is (01:55:23.41, +05:56:18.0)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl opt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(28.84754,5.93833,3") # color=red dash=0
Source region spec. is: 28.84754 5.93833 3"
Region file centered at (28.84754,5.93833), which is (01:55:23.41, +05:56:18.0)
Could not find/read custom background region custom_021725_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.38518 from uncorrected trigger time of 751180076 in BAT summary file
# ============ Reading file sw00021725001uvv_sk.img ================
Long-term sensitivity correction to zero point is -0.227 at 751496299
The processing date in extension 0 is: 2024-10-25T05:34:22
The trigger time is: 751180110.38518. The reference is BAT GRB summary file
Using zero point of 17.663 for filter V
Use aperture correction of 1.087 based on aperture of 3.00
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(28.84754,5.93833,25")
fk5;-circle(28.84754,5.93833,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 vv751496298I  316188.1  0.99  587.4  297.8 112  15513  5827 -0.001 0.033 99.00 20.1 -0.0007 0.0325 99.00 20.1   587 -2.533 115.707 99.00 0.001 
   2 vv751501284I  321174.4  0.99  922.9  426.2 104  23697  5798  0.001 0.025 24.89 20.4  0.0005 0.0197 25.90 20.7  1510  1.967 70.774 19.55 0.001 
   3 vv751506384I  326274.3  0.99 1035.6  560.0 112  28211  5869  0.023 0.025 21.76 20.2  0.0096 0.0156 22.71 20.8  2546 32.849 56.318 16.50 0.001 
    Sum (T+316188 to 327326):            1284.0       1261.7 (est. in src region)   SNR_unwtd_sum:   0.62 0.9987 signif. UL:  20.75
  0  2546 751502662  322551.3   4775.2  -6363.1    0.0096   0.0156 22.706 76.294  -1.046
Total wtd_rate (for all exposures so far): 32.849 +/-55.807 snr:  0.6 mag: 16.50 UL: 11.88
Rebinned Data for sw00021725001uvv_sk.img using a zero point of 17.663:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.52e+03  322550.1   4776.3  -6362.0    0.0096   0.0156 22.71  1.05  322550.1    0.0096   0.0156 22.71  1.05 20.75
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw00021725001ubb_sk.img ================
Long-term sensitivity correction to zero point is -0.218 at 751496903
The processing date in extension 0 is:  2024-10-25T05:34:23
The trigger time is: 751180110.38518. The reference is BAT GRB summary file
Using zero point of 18.892 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(28.84754,5.93833,25")
fk5;-circle(28.84754,5.93833,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 bb751496903I  316792.9  0.99  163.0  128.1 112   7322  5840 -0.085 0.079 99.00 20.7 -0.0847 0.0788 99.00 20.7   163 -97.262 90.447 99.00 0.001 
    Sum (T+316793 to 316959):             128.1        140.4 (est. in src region)   SNR_unwtd_sum:  -1.08 0.9987 signif. UL:  20.66
  0   163 751496986  316875.8     82.8    -82.8   -0.0847   0.0788 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -1.302 +/-48.040 snr: -0.0 mag: 99.00 UL: 13.43
Rebinned Data for sw00021725001ubb_sk.img using a zero point of 18.892:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      161  316875.8     82.8    -82.8   -0.0847   0.0788 99.00 99.00  316875.8   -0.0847   0.0788 99.00 99.00 20.66
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw00021725002um2_sk.img ================
Long-term sensitivity correction to zero point is -0.259 at 751563036
The processing date in extension 0 is:  2024-11-04T02:59:06
The trigger time is: 751180110.38518. The reference is BAT GRB summary 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(28.84754,5.93833,25")
fk5;-circle(28.84754,5.93833,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 m2751563035I  382925.4  1.00  792.3   30.2 116   1124  5868  0.011 0.008 21.47 20.2  0.0112 0.0077 21.47 20.2   792 129.343 89.399 15.01 0.003 
   2 m2751570416I  390305.9  1.00  555.6    9.6 108    341  5824  0.007 0.006 22.05 20.6  0.0093 0.0052 21.67 20.6  1348 96.750 56.687 15.33 0.004 
    Sum (T+382925 to 390870):              39.8         28.5 (est. in src region)   SNR_unwtd_sum:   1.78 0.9987 signif. UL:  20.59
  0  1348 751566431  386320.5   4549.8  -3395.1    0.0093   0.0052 21.673  0.897  -0.484
Total wtd_rate (for all exposures so far): 49.415 +/-37.209 snr:  1.3 mag: 16.05 UL: 11.06
Rebinned Data for sw00021725002um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 1.35e+03  386321.0   4549.4  -3395.5    0.0093   0.0052 21.67  0.48  386321.0    0.0093   0.0052 21.67  0.48 20.59
The data range from T+316188.1 s (3.66 d) to T+390870.3 s (4.52 d)
Wrote uvot_fluxes_241104d03h09m14s126907usUT.qdp
Wrote uvot_fluxes_241104d03h09m14s126907usUT.gif
Wrote uvot_fluxes_241104d03h09m14s126907usUT.ps
Wrote uvot_fluxes_241104d03h09m14s126907usUT_vis.qdp
Wrote uvot_fluxes_241104d03h09m14s126907usUT_uv.qdp
Wrote uvot_fluxes_241104d03h09m14s126907usUT_vis.gif
Wrote uvot_fluxes_241104d03h09m14s126907usUT_vis.ps
Wrote uvot_fluxes_241104d03h09m14s126907usUT_uv.gif
Wrote uvot_fluxes_241104d03h09m14s126907usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  white (0)  , v (0)  , u (0)  , b (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 6.18e-05  319346.0   7980.5  -3157.8   -0.1206   0.1741 99.00 99.00  319346.0   -0.1206   0.1741 99.00 99.00 21.10
The data range from T+316188.1 s (3.66 d) to T+390870.3 s (4.52 d)
Wrote uvot_fluxes_wtd_241104d03h09m14s126907usUT.qdp
Wrote uvot_fluxes_wtd_241104d03h09m14s126907usUT.gif
Wrote uvot_fluxes_wtd_241104d03h09m14s126907usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem