# uvot_fluxes_wget.pl vrs. 2020-11-03a fem at 220902d08h24m50s209785usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021512002 -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
# ========= GRB220831A ===================
Could not find/read custom source region custom_021512_src.reg
Used archived BAT position of 24.25500 -41.58200
Reference: GCN_Circ-32506
The position is (01:37:01.20, -41:34:55.2)
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(24.255,-41.582,3") # color=red dash=0
Source region spec. is: 24.255 -41.582 3"
Region file centered at (24.255,-41.582), which is (01:37:01.20, -41:34:55.2)
Could not find/read custom background region custom_021512_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 1600.0,
3 sigma should become about 4.9 sigma and 2 sigma should become about 4.3 sigma.
Accordingly confidence limits in the tables have been adjusted from 0.9987 to 0.99999919.
No adjustment has been made for the confidence limits for the rebinned data or the plots.
Failed to find trigger time in BAT summary file for trigger 00021512
Use bat_met of 683647022.78 for trigger time.
# ============ Reading file sw00021512001uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 683698370
The processing date in extension 0 is: 2022-09-01T14:25:39
The trigger time is: 683647022.78. The reference is GCN_Circ-32506
Using zero point of 20.115 for filter WHITE
Use aperture correction of 1.108 based on aperture of 3.00
Using background region based on sources found in extension 9:
# 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(24.255,-41.582,25")
fk5;-circle(24.255,-41.582,12.5")
fk5;-circle(24.252194,-41.586550,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 wh683698370I   51347.5  0.96   37.2   68.0 116   4030  5376 
#  2 wh683698410I   51387.9  0.93  325.5 1284.6 116  60315  5384 
#  3 wh683698793I   51771.1  0.90    9.4   56.7 116   2620  5384 
#  4 wh683702096I   55073.3  0.98  203.5  247.4 116  11712  5376 
#  5 wh683702305I   55283.1  0.98   93.5  105.1 116   5345  5436 
#  6 wh683704197I   57174.5  0.95   28.3   81.7 116   3664  5376 
#  7 wh683704228I   57205.9  0.93  242.0 1107.0 116  50349  5440 
#  8 wh683704526I   57503.7  0.89    6.6   41.7 116   1982  5436 
   9 wh683707849I   60826.7  0.98  200.6  214.3 116  11629  5428  0.000 0.090 99.00 21.0  0.0000 0.0899 99.00 21.0   201  0.000  6.433 99.00 0.011 
# 10 wh683708056I   61033.4  0.98  398.3  484.2 116  24143  5436 
# 11 wh683710132I   63110.2  0.91   11.6   65.3 116   2969  5440 
# 12 wh683710147I   63124.5  0.90  105.3  596.5 116  28267  5440 
# 13 wh683713590I   66567.4  0.98  199.6  244.1 116  11449  5384 
# 14 wh683713795I   66773.2  0.98  772.7  953.6 116  44181  5440 
# 15 wh683719318I   72295.9  0.98  199.6  266.5 116  11326  5384 
# 16 wh683719524I   72501.6  0.98 1099.0 1384.9 116  63228  5384 
# 17 wh683725043I   78020.5  0.98  199.6  255.6 116  11580  5376 
# 18 wh683725249I   78226.3  0.98  579.9  673.6 116  33144  5384 
    Sum (T+ 60827 to  61030):             248.5        248.5 (est. in src region)   SNR_unwtd_sum:   0.00 0.9999991875 signif. UL:  21.00
  0   201 683707951   60928.6    101.9   -101.9    0.0000   0.0899 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far):  0.000 +/- 6.366 snr:  0.0 mag: 99.00 UL: 16.37
# ============ Reading file sw00021512002uwh_sk.img ================
Long-term sensitivity correction to zero point is -0.175 at 683754784
The processing date in extension 0 is:  2022-09-02T08:16:58
The trigger time is: 683647022.78. The reference is GCN_Circ-32506
Using zero point of 20.115 for filter WHITE
Use aperture correction of  1.108 based on aperture of  3.00
There are no aspect corrected images to process.
Rebinned Data for sw00021512002uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      196   60928.6    101.9   -101.9    0.0000   0.0899 99.00 99.00   60928.6    0.0000   0.0899 99.00 99.00 21.46
The data range from T+60826.7 s (0.70 d) to T+61030.5 s (0.71 d)
Wrote uvot_fluxes_220902d08h24m50s209785usUT.qdp
Wrote uvot_fluxes_220902d08h24m50s209785usUT.gif
Wrote uvot_fluxes_220902d08h24m50s209785usUT.ps
Wrote uvot_fluxes_220902d08h24m50s209785usUT_vis.qdp
Wrote uvot_fluxes_220902d08h24m50s209785usUT_uv.qdp
Wrote uvot_fluxes_220902d08h24m50s209785usUT_vis.gif
Wrote uvot_fluxes_220902d08h24m50s209785usUT_vis.ps
Normal end of uvot_fluxes_wget.pl vrs. 2020-11-03a fem