# uvot_fluxes_wget.pl vrs. 2018-11-07 fem at 200521d13h10m04s960032usUT
# /Home/eud/uvot_tdrss/perl/uvot_fluxes_wget.pl -seq=00021000002 -use_uvot -rebin -plot_mag -sens_corr -search_src_reg -wrk_dir=/local/home/khamseen/khamseen10/uvot_tdrss/uvot_lc -web -useprev -zp_2011 -gamma=1.0 -use_filter_wtd=white v b u
# Current directory: /local/data/khamseenssd/khamseen/khamseen10/uvot_tdrss/uvot_lc
# ========= unknown GRB ===================
Could not find/read custom source region custom_021000_src.reg
Used archived XRT position of 17.69838 -50.92242 4.00
Reference: GCN_Circulars-27754-Mon,_18_May_2020_11:06:32_-0400
The position is (01:10:47.61, -50:55:20.7)
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(17.69838,-50.92242,4") # color=red dash=0
Source region spec. is: 17.69838 -50.92242 4"
Region file centered at (17.69838,-50.92242), which is (01:10:47.61, -50:55:20.7)
Could not find/read custom background region custom_021000_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 -24.95086 from uncorrected trigger time of 611407641 in BAT summary file
# ============ Reading file sw00021000002uwh_sk.img ================
Use keyword TRIGTIME of 611407665.982 for trigger time.
Long-term sensitivity correction to zero point is -0.225 at 611627606
The processing date in extension 0 is: 2020-05-21T12:55:30
The trigger time is: 611407665.982. The reference is keyword in image file
Using zero point of 20.065 for filter WHITE
Use aperture correction of 1.035 based on aperture of 4.00
Using background region based on sources found in extension 10:
# 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(17.69838,-50.92242,25")
fk5;-circle(17.69838,-50.92242,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 wh611627606I  219940.1  0.94   78.5  518.1 204  15658  5830 -0.419 0.326 99.00 20.3 -0.4187 0.3260 99.00 20.3    79 -113.317 88.240 99.00 0.000 
   2 wh611627688I  220022.9  0.94  636.5 3849.9 204 110457  5843 -0.012 0.109 99.00 21.2 -0.0561 0.1032 99.00 21.4   715 -13.742 27.976 99.00 0.001 
   3 wh611628496I  220830.9  0.95   31.6  189.2 208   5647  5841 -0.411 0.485 99.00 19.8 -0.0712 0.1010 99.00 21.5   747 -17.758 27.369 99.00 0.001 
   4 wh611638831I  231165.4  0.92   66.7  545.7 208  14875  5885  0.335 0.399 21.25 19.6 -0.0385 0.0982 99.00 21.4   813 -11.267 26.607 99.00 0.001 
   5 wh611638901I  231235.9  0.93  459.4 3206.3 200  94978  5858 -0.089 0.139 99.00 21.1 -0.0565 0.0804 99.00 21.7  1273 -15.587 22.100 99.00 0.001 
   6 wh611639581I  231915.7  0.93   36.0  225.8 192   7758  5833 -0.908 0.471 99.00 20.1 -0.0798 0.0793 99.00 21.8  1309 -21.330 21.811 99.00 0.001 
   7 wh611644751I  237085.7  0.94   36.2  222.1 200   6413  5882  0.124 0.461 22.33 19.6 -0.0743 0.0781 99.00 21.8  1345 -19.815 21.529 99.00 0.001 
   8 wh611644791I  237125.1  0.94  347.3 2193.8 208  59965  5888  0.239 0.151 21.62 20.5 -0.0099 0.0694 99.00 21.7  1692 -1.911 19.342 99.00 0.001 
   9 wh611650369I  242703.1  0.93   93.3  653.0 188  18454  5822  0.678 0.308 20.49 19.6  0.0260 0.0677 24.03 21.6  1785  7.514 18.931 18.10 0.001 
  10 wh611650466I  242800.6  0.94  685.1 4394.4 196 127557  5850  0.194 0.109 21.84 20.8  0.0725 0.0574 22.91 21.6  2470 20.537 16.359 17.01 0.001 
  11 wh611651424I  243758.9  0.95   27.5  149.5 204   4652  5809 -0.551 0.495 99.00 19.8  0.0656 0.0571 23.02 21.6  2498 18.507 16.262 17.12 0.001 
  12 wh611679539I  271873.1  0.92   22.4  179.4 208   4626  5940  0.869 0.679 20.22 18.9  0.0727 0.0569 22.91 21.6  2520 20.026 16.221 17.04 0.001 
  13 wh611679565I  271899.6  0.94  212.0 1446.4 208  41071  5878 -0.037 0.201 99.00 20.6  0.0642 0.0547 23.05 21.7  2732 18.278 15.770 17.14 0.001 
  14 wh611691179I  283513.2  0.95   12.6   64.4 204   1845  5833 -0.007 0.705 99.00 19.2  0.0638 0.0546 23.05 21.7  2745 18.195 15.738 17.14 0.001 
  15 wh611691194I  283528.7  0.95  104.5  522.4 196  15556  5817 -0.019 0.242 99.00 20.4  0.0608 0.0533 23.11 21.7  2849 17.374 15.471 17.19 0.001 
  16 wh611702063I  294397.9  0.94   20.4  139.3 204   3642  5844  0.655 0.646 20.52 19.0  0.0650 0.0531 23.03 21.7  2870 18.410 15.437 17.13 0.001 
  17 wh611702087I  294421.3  0.94  208.4 1177.1 200  33261  5883  0.244 0.183 21.60 20.3  0.0772 0.0511 22.85 21.7  3078 22.101 15.037 16.93 0.001 
  18 wh611702302I  294636.0  0.95   38.3  201.5 200   5643  5827  0.223 0.410 21.70 19.6  0.0790 0.0507 22.82 21.6  3117 22.711 14.960 16.90 0.001 
  19 wh611707764I  300098.6  0.93   35.3  247.5 200   7010  5888  0.297 0.503 21.38 19.4  0.0814 0.0504 22.79 21.6  3152 23.287 14.912 16.87 0.001 
  20 wh611707803I  300137.2  0.94  306.1 1983.5 196  58253  5829  0.090 0.163 22.68 20.6  0.0822 0.0482 22.78 21.7  3458 23.859 14.475 16.85 0.000 
  21 wh611708168I  300502.3  0.95   41.1  200.3 196   6633  5827 -0.603 0.382 99.00 20.2  0.0740 0.0478 22.89 21.7  3499 21.565 14.401 16.96 0.000 
    Sum (T+219940 to 300555):           22309.9      22074.9 (est. in src region)   SNR_unwtd_sum:   1.55 0.9987 signif. UL:  21.71
  0  3499 611656934  249268.1  51286.9 -29328.0    0.0740   0.0478 22.892  1.128  -0.541
Total wtd_rate (for all exposures so far): 21.565 +/-14.162 snr:  1.5 mag: 16.96 UL: 15.54
Rebinned Data for sw00021000002uwh_sk.img using a zero point of 20.065:
 No Exposure     t-avg        + / -       net_rate      +/-   mag   +/-     t-avg  sum_rate     +/-   mag   +/-   UL3
  0 3.29e+03  249302.8  51252.1 -29362.7    0.0740   0.0478 22.89  0.54  249302.8    0.0740   0.0478 22.89  0.54 21.71
The data range from T+219940.1 s (2.55 d) to T+300555.0 s (3.48 d)
Wrote uvot_fluxes_200521d13h10m04s960032usUT.qdp
Wrote uvot_fluxes_200521d13h10m04s960032usUT.gif
Wrote uvot_fluxes_200521d13h10m04s960032usUT.ps
Wrote uvot_fluxes_200521d13h10m04s960032usUT_vis.qdp
Wrote uvot_fluxes_200521d13h10m04s960032usUT_uv.qdp
Wrote uvot_fluxes_200521d13h10m04s960032usUT_vis.gif
Wrote uvot_fluxes_200521d13h10m04s960032usUT_vis.ps
# ================ Make Light Curve for Weighted Filters ==========
Use the following filters with indicated color corrections (mags):
  u (0)  , white (0)  , b (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.00392  244380.1  56174.8 -24440.0    0.0788   0.0589 23.05  0.60  244380.1    0.0788   0.0589 23.05  0.60 21.76
The data range from T+219940.1 s (2.55 d) to T+300555.0 s (3.48 d)
Wrote uvot_fluxes_wtd_200521d13h10m04s960032usUT.qdp
Wrote uvot_fluxes_wtd_200521d13h10m04s960032usUT.gif
Wrote uvot_fluxes_wtd_200521d13h10m04s960032usUT.ps
Normal end of uvot_fluxes_wget.pl vrs. 2018-11-07 fem