# uvot_fluxes_wget.pl vrs. 2024-08-27 fem at 241216d00h27m38s577928usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021740002 -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
# ========= GRB241212A ===================
Could not find/read custom source region custom_021740_src.reg
Used archived BAT position of 45.11900 6.70100
Reference: GCN_Circ-38541
The position is (03:00:28.56, +06:42:03.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(45.119,6.701,3") # color=red dash=0
Source region spec. is: 45.119 6.701 3"
Region file centered at (45.119,6.701), which is (03:00:28.56, +06:42:03.6)
Could not find/read custom background region custom_021740_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.
No estimate of the increase is possible because the size of the BAT error region is not known.
Subtract UTCF of -34.7025 from uncorrected trigger time of 755688109 in BAT summary file
# ============ Reading file sw00021740002uuu_sk.img ================
Long-term sensitivity correction to zero point is -0.238 at 755945300
The processing date in extension 0 is: 2024-12-16T00:17:29
The trigger time is: 755688143.7025. The reference is BAT GRB summary file
Using zero point of 18.102 for filter U
Use aperture correction of 1.100 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(45.119,6.701,25")
fk5;-circle(45.119,6.701,12.5")
fk5;-circle(45.115595,6.694631,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 uu755945299I  257156.0  0.99  337.7  138.4 128   5412  5708  0.000 0.036 99.00 20.4  0.0000 0.0365 99.00 20.4   338  0.000 70.388 99.00 0.001 
   2 uu755956171I  268027.8  0.99  855.7  264.1 104  14458  5688  0.000 0.021 99.00 21.0  0.0000 0.0184 99.00 21.2  1193  0.000 36.507 99.00 0.002 
   3 uu755984712I  296569.2  0.99 1110.1  336.1 112  17891  5696  0.000 0.019 99.00 21.1  0.0000 0.0132 99.00 21.5  2304  0.000 27.564 99.00 0.001 
    Sum (T+257156 to 297697):             737.5        737.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.9987 signif. UL:  21.54
  0  2304 755968791  280647.1  17050.0 -23491.1    0.0000   0.0132 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/-27.299 snr:  0.0 mag: 99.00 UL: 13.24
Rebinned Data for sw00021740002uuu_sk.img using a zero point of 18.102:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 2.29e+03  280648.5  17048.6 -23492.5    0.0000   0.0132 99.00 99.00  280648.5    0.0000   0.0132 99.00 99.00 21.54
The data range from T+257156.0 s (2.98 d) to T+297697.2 s (3.45 d)
Wrote uvot_fluxes_241216d00h27m38s577928usUT.qdp
Wrote uvot_fluxes_241216d00h27m38s577928usUT.gif
Wrote uvot_fluxes_241216d00h27m38s577928usUT.ps
Wrote uvot_fluxes_241216d00h27m38s577928usUT_vis.qdp
Wrote uvot_fluxes_241216d00h27m38s577928usUT_uv.qdp
Wrote uvot_fluxes_241216d00h27m38s577928usUT_vis.gif
Wrote uvot_fluxes_241216d00h27m38s577928usUT_vis.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  b (0)  , white (0)  , u (0)  , v (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.000175  279081.1  18616.0 -21925.1    0.0000   0.0988 99.00 99.00  279081.1    0.0000   0.0988 99.00 99.00 21.54
The data range from T+257156.0 s (2.98 d) to T+297697.2 s (3.45 d)
Wrote uvot_fluxes_wtd_241216d00h27m38s577928usUT.qdp
Wrote uvot_fluxes_wtd_241216d00h27m38s577928usUT.gif
Wrote uvot_fluxes_wtd_241216d00h27m38s577928usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2024-08-27 fem