# uvot_fluxes_wget.pl vrs. 2023-03-23 fem at 230702d02h08m28s501272usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=01176135001 -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
# ========= GRB230622A ===================
Could not find/read custom source region custom_1176135_src.reg
Used archived XRT position of 292.51733 -32.97036 4.00
Reference: GCN_Circulars-34069-Fri,_23_Jun_2023_13:16:53_+0000
The position is (19:30:04.16, -32:58:13.3)
Using source region:
# Region file format: DS9 version 3.0
# uvot_fluxes.pl xrt
global font="helvetica 12 bold" select=1 edit=1 move=1 delete=1 include=1 fixed=0 source=1
fk5;circle(292.51733,-32.97036,4") # color=red dash=0
Source region spec. is: 292.51733 -32.97036 4"
Region file centered at (292.51733,-32.97036), which is (19:30:04.16, -32:58:13.3)
Could not find/read custom background region custom_1176135_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 -31.51044 from uncorrected trigger time of 709121061.28 in BAT summary file
# ============ Reading file sw01176135992uwh_sk.img ================
Use keyword TRIGTIME of 709121092.8 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 709121471
The processing date in extension 0 is: 2023-06-22T18:24:19
The trigger time is: 709121092.8. The reference is keyword in image file
Using zero point of 20.115 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.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(292.51733,-32.97036,25")
fk5;-circle(292.51733,-32.97036,12.5")
fk5;-circle(292.525653,-32.965455,6")
fk5;-circle(292.515456,-32.964359,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 wh709121471I     378.6  0.95  111.9  637.4 202  17876  5481 -0.208 0.251 99.00 20.6 -0.2084 0.2510 99.00 20.6   112 -0.107  0.128 99.00 0.315 
   2 wh709121471E     378.6  0.95  111.9  630.6 201  17904  5480 -0.254 0.250 99.00 20.6 
    Sum (T+   379 to    492):             637.4        658.8 (est. in src region)   SNR_unwtd_sum:  -0.83 0.9987 signif. UL:  20.56
  0   112 709121528     435.5     56.9    -56.9   -0.2084   0.2510 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.107 +/- 0.126 snr: -0.8 mag: 99.00 UL: 21.32
# ============ Reading file sw01176135001uwh_sk.img ================
Use keyword TRIGTIME of 709121092.8 for trigger time.
Long-term sensitivity correction to zero point is -0.175 at 709143869
The processing date in extension 0 is:  2023-07-02T01:52:18
The trigger time is: 709121092.8. The reference is keyword in image file
Using zero point of 20.115 for filter WHITE
Use aperture correction of  1.035 based on aperture of  4.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(292.51733,-32.97036,25")
fk5;-circle(292.51733,-32.97036,12.5")
fk5;-circle(292.515473,-32.964323,6")
fk5;-circle(292.525640,-32.965467,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 wh709143868I   22776.0  0.96  100.3  348.6 200  11255  5508 -0.643 0.204 99.00 21.3 -0.6432 0.2039 99.00 21.3   100 -17.253  5.469 99.00 0.009 
    Sum (T+ 22776 to  22878):             348.6        408.7 (est. in src region)   SNR_unwtd_sum:  -3.15 0.9987 signif. UL:  21.34
  0   100 709143920   22827.0     51.0    -51.0   -0.6432   0.2039 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.115 +/- 0.126 snr: -0.9 mag: 99.00 UL: 21.33
Rebinned Data for sw01176135001uwh_sk.img using a zero point of 20.115:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      106     435.5     56.9    -56.9   -0.2084   0.2510 99.00 99.00     435.5   -0.2084   0.2510 99.00 99.00 20.56
  1     96.7   22827.0     51.0    -51.0   -0.6432   0.2039 99.00 99.00   11117.9   -0.4158   0.1634 99.00 99.00 21.45
=========================================================
================ Start New Filter V ==================
=========================================================
# ============ Reading file sw01176135992uvv_sk.img ================
Use keyword TRIGTIME of 709121092.8 for trigger time.
Long-term sensitivity correction to zero point is -0.222 at 709121452
The processing date in extension 0 is:  2023-06-22T18:24:11
The trigger time is: 709121092.8. The reference is keyword in image file
Using zero point of 17.668 for filter V
Use aperture correction of  1.030 based on aperture of  4.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(292.51733,-32.97036,25")
fk5;-circle(292.51733,-32.97036,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 vv709121452E     359.5  0.99   10.2   10.7 201    319  5836 -0.029 0.339 99.00 17.6 
# ============ Reading file sw01176135001uvv_sk.img ================
Use keyword TRIGTIME of 709121092.8 for trigger time.
Long-term sensitivity correction to zero point is -0.222 at 709131974
The processing date in extension 0 is:  2023-07-02T01:52:16
The trigger time is: 709121092.8. The reference is keyword in image file
Using zero point of 17.668 for filter V
Use aperture correction of  1.030 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1    5.2 292.53251 -32.90051 0.134 139.3
  2    3.5 292.53134 -32.90121 0.134 139.3
  3    3.7 292.53101 -32.90121 0.134 139.3
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(292.51733,-32.97036,25")
fk5;-circle(292.51733,-32.97036,12.5")
fk5;-circle(292.525694,-32.965519,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
Low  bkg:   1 vv709131973I  295.1   3330  5856  1.927  0.033
%  1 vv709131973I   10881.1  1.00  295.1   15.3 200   3330  5839 
%  2 vv709132277I   11184.7  1.00  295.0   57.4 192   3543  5814 
%  3 vv709132580I   11488.1  1.00  295.1   71.3 196   3569  5805 
=========================================================
================ Start New Filter B ==================
=========================================================
# ============ Reading file sw01176135001ubb_sk.img ================
Use keyword TRIGTIME of 709121092.8 for trigger time.
Long-term sensitivity correction to zero point is -0.202 at 709142957
The processing date in extension 0 is:  2023-07-02T01:52:17
The trigger time is: 709121092.8. The reference is keyword in image file
Using zero point of 18.908 for filter B
Use aperture correction of  1.035 based on aperture of  4.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(292.51733,-32.97036,25")
fk5;-circle(292.51733,-32.97036,12.5")
fk5;-circle(292.525701,-32.965450,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 bb709142956I   21864.0  0.99  295.0  415.7 192  13465  5815 -0.103 0.074 99.00 20.8 -0.1029 0.0738 99.00 20.8   295 -8.088  5.800 99.00 0.008 
   2 bb709143260I   22167.4  0.99  295.0  430.2 188  13653  5799 -0.044 0.075 99.00 20.6 -0.0736 0.0526 99.00 21.2   590 -5.835  4.164 99.00 0.008 
   3 bb709143563I   22470.9  0.99  295.0  466.1 208  13706  5865 -0.071 0.078 99.00 20.6 -0.0727 0.0437 99.00 21.5   885 -5.805  3.478 99.00 0.008 
    Sum (T+ 21864 to  22771):            1312.0       1373.3 (est. in src region)   SNR_unwtd_sum:  -1.66 0.9987 signif. UL:  21.46
  0   885 709143410   22317.3    453.3   -453.3   -0.0727   0.0437 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.123 +/- 0.126 snr: -1.0 mag: 99.00 UL: 20.14
Rebinned Data for sw01176135001ubb_sk.img using a zero point of 18.908:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      872   22317.2    453.4   -453.2   -0.0727   0.0437 99.00 99.00   22317.2   -0.0727   0.0437 99.00 99.00 21.46
=========================================================
================ Start New Filter U ==================
=========================================================
# ============ Reading file sw01176135001uuu_sk.img ================
Use keyword TRIGTIME of 709121092.8 for trigger time.
Long-term sensitivity correction to zero point is -0.219 at 709142044
The processing date in extension 0 is:  2023-07-02T01:52:17
The trigger time is: 709121092.8. The reference is keyword in image file
Using zero point of 18.121 for filter U
Use aperture correction of  1.032 based on aperture of  4.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(292.51733,-32.97036,25")
fk5;-circle(292.51733,-32.97036,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 uu709142044I   20951.5  0.99  295.0  200.6 208   5527  5868  0.017 0.051 22.57 20.0  0.0166 0.0507 22.57 20.0   295  2.584  7.887 19.26 0.010 
   2 uu709142347I   21255.1  0.99  295.0  193.1 208   5508  5868 -0.008 0.050 99.00 20.1  0.0045 0.0355 23.98 20.4   590  0.718  5.566 20.65 0.010 
   3 uu709142651I   21558.7  0.99  295.0  194.0 208   5432  5879  0.006 0.050 23.60 20.1  0.0052 0.0289 23.84 20.7   885  0.821  4.565 20.50 0.010 
    Sum (T+ 20951 to  21859):             587.7        583.3 (est. in src region)   SNR_unwtd_sum:   0.18 0.9987 signif. UL:  20.65
  0   885 709142498   21405.0    453.5   -453.5    0.0052   0.0289 23.839 75.161  -2.050
Total wtd_rate (for all exposures so far): -0.122 +/- 0.126 snr: -1.0 mag: 99.00 UL: 19.36
Rebinned Data for sw01176135001uuu_sk.img using a zero point of 18.121:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      880   21405.0    453.5   -453.5    0.0052   0.0289 23.84  2.05   21405.0    0.0052   0.0289 23.84  2.05 20.65
=========================================================
================ Start New Filter UVW1 ==================
=========================================================
# ============ Reading file sw01176135001uw1_sk.img ================
Use keyword TRIGTIME of 709121092.8 for trigger time.
Long-term sensitivity correction to zero point is -0.271 at 709137636
The processing date in extension 0 is:  2023-07-02T01:52:17
The trigger time is: 709121092.8. The reference is keyword in image file
Using zero point of 17.169 for filter UVW1
Use aperture correction of  1.035 based on aperture of  4.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(292.51733,-32.97036,25")
fk5;-circle(292.51733,-32.97036,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 w1709137635I   16542.8  1.00  754.1   96.5 196   2532  5824  0.016 0.014 21.69 20.3  0.0156 0.0137 21.69 20.3   754  4.665  4.108 18.62 0.029 
   2 w1709147870I   26777.9  1.00  235.3   19.5 200    785  5851 -0.032 0.020 99.00 20.6  0.0041 0.0115 23.13 20.7   989  2.469  3.803 19.31 0.027 
    Sum (T+ 16543 to  27017):             116.0        112.0 (est. in src region)   SNR_unwtd_sum:   0.36 0.9987 signif. UL:  20.66
  0   989 709140390   19297.3   7719.6  -2754.6    0.0041   0.0115 23.126 75.874  -1.440
Total wtd_rate (for all exposures so far): -0.119 +/- 0.126 snr: -0.9 mag: 99.00 UL: 18.40
Rebinned Data for sw01176135001uw1_sk.img using a zero point of 17.169:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      988   19297.6   7719.3  -2754.9    0.0041   0.0115 23.13  1.44   19297.6    0.0041   0.0115 23.13  1.44 20.66
=========================================================
================ Start New Filter UVM2 ==================
=========================================================
# ============ Reading file sw01176135001um2_sk.img ================
Use keyword TRIGTIME of 709121092.8 for trigger time.
Long-term sensitivity correction to zero point is -0.259 at 709132886
The processing date in extension 0 is:  2023-07-02T01:52:16
The trigger time is: 709121092.8. The reference is keyword in image file
Using zero point of 16.591 for filter UVM2
Use aperture correction of  1.031 based on aperture of  4.00
Calculate distance from target to edge of image.
Ext Dist.(") RA_cent  DEC_cent width  PA
  1    3.1 292.52134 -32.87026 0.201 139.3
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(292.51733,-32.97036,25")
fk5;-circle(292.51733,-32.97036,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 m2709132885I   11793.2  1.00   93.4    3.0 188     68  5796 
   2 m2709136727I   15635.1  1.00  885.6   24.6 196    917  5848 -0.007 0.006 99.00 21.2 -0.0071 0.0059 99.00 21.2   886 -3.454  2.860 99.00 0.059 
    Sum (T+ 15635 to  16535):              24.6         30.7 (est. in src region)   SNR_unwtd_sum:  -1.21 0.9987 signif. UL:  21.21
  0   886 709137178   16085.0    449.9   -449.9   -0.0071   0.0059 99.000 99.000 -99.000
Total wtd_rate (for all exposures so far): -0.124 +/- 0.125 snr: -1.0 mag: 99.00 UL: 17.84
Rebinned Data for sw01176135001um2_sk.img using a zero point of 16.591:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0      885   16085.0    449.9   -449.9   -0.0071   0.0059 99.00 99.00   16085.0   -0.0071   0.0059 99.00 99.00 21.21
The data range from T+378.6 s (0.00 d) to T+27016.9 s (0.31 d)
Wrote uvot_fluxes_230702d02h08m28s501272usUT.qdp
Wrote uvot_fluxes_230702d02h08m28s501272usUT.gif
Wrote uvot_fluxes_230702d02h08m28s501272usUT.ps
Wrote uvot_fluxes_230702d02h08m28s501272usUT_vis.qdp
Wrote uvot_fluxes_230702d02h08m28s501272usUT_uv.qdp
Wrote uvot_fluxes_230702d02h08m28s501272usUT_vis.gif
Wrote uvot_fluxes_230702d02h08m28s501272usUT_vis.ps
Wrote uvot_fluxes_230702d02h08m28s501272usUT_uv.gif
Wrote uvot_fluxes_230702d02h08m28s501272usUT_uv.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  b (0)  , white (0)  , v (0)  , u (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     51.6     435.5     56.9    -56.9   -0.2449   0.2949 99.00 99.00     435.5   -0.2449   0.2949 99.00 99.00 20.56
  1   0.0581   22457.5    420.4  -1506.0   -0.4756   0.1361 99.00 99.00     460.2   -0.2576   0.2788 99.00 99.00 20.65
The data range from T+378.6 s (0.00 d) to T+27016.9 s (0.31 d)
Wrote uvot_fluxes_wtd_230702d02h08m28s501272usUT.qdp
Wrote uvot_fluxes_wtd_230702d02h08m28s501272usUT.gif
Wrote uvot_fluxes_wtd_230702d02h08m28s501272usUT.ps
Found 1 exposures with unusual background rate
Normal end of uvot_fluxes_wget.pl vrs. 2023-03-23 fem