BINFACT = 1.5
COUNTS_MIN = 30
GDMAX = 12
GDMIN = 0
HARD1 = 1.51
HARD2 = 10
MAXCADENCE = 0.205
MAXCENTRATE = 1
MAXEN = 10
MAXSLEWRATE = 10
MINCENTCTS = 20
MINCMIN = 15
MINEN = 0.3
MINEVT = 15
RATEFACT = 10
SOFT1 = 0.3
SOFT2 = 1.5
T0 = 354950664
TIMEDEL = 0.001766
WTHIRATE = 250
WTLORATE = 70
WTPUPRATE = 120
wtslew called for trigger 00519043, with pos 58.0825609656, -17.6356760858 and T0: 354950664
START WAS 

Event list: sw00519043000xwtw2st_cl.evt.gz
Calling extractor to filter first snaphot: 354950664 - 354951664 (0 - 1000) s
Roll angle is 291.27220256697
TIME RANGE: 354950767.077347 - 354950780.805128 (103.077346980572 - 116.805127978325)
LIST of teldef files:
  /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20120101v001.teldef
  /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20120101v001.teldef
SELECTED TELDEF: /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20120101v001.teldef
ATTFILE: sw00519043000pat.fits.gz
HDFILE: sw00519043000xhd.hk.gz

Got ra/dec pnt of 58.0673523632939,-17.609697086836 from sw00519043000pat.fits.gz
This converts (58.0825609656,-17.6356760858) to sky pixels (478.3655,460.825)

Filtered on time as firstvalid is 354950762.07735
Do a pileup check
CHECKING FOR PILEUP: RATE: 120
CHECKPUP: 13 bins, 0 above 120, 0 above 250, 13 below 70  (ex=0)
Done pileup check
Going to filter on the data after the slew is complete

I have 178 after the slew rate drop to 1 pix/sec, so  centroid
Calling expo map
xrtexpomap clobber=yes checkattitude=yes infile=tocentroid.evt attfile=sw00519043000pat.fits.gz hdfile=sw00519043000xhd.hk.gz stemout=tocentroid outdir=. &> /dev/null
Centroid
Centroiding returned a sky X,Y of 478.186, 460.073
Calling wt_syserr with single positions
Comm: wt_syserr -t 0 -xaf -A 478.186 460.073 /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20120101v001.teldef sw00519043000pat.fits.gz 354950762.077347 354950785.805128 philx2.out 0.5

No pile up to play with
Call ftlist to get the events from event list filtered_2.evt.gz
Got 388 events before binning
Call getbadpix()
The number of events it 388, for ontime; 13.7277815937996 s and mean rate thus rate=28.2638529283746
BIN SIZE: 45

EXL:  pixels


GOTCENTROID= 1

EXL=
Skipping as DETX=168.916636856518
Skipping as DETX=185.603921830807 and we have no time-resolved centroids
Skipping as DETX=185.753519845042 and we have no time-resolved centroids
Skipping as DETX=194.914926600453 and we have no time-resolved centroids
Skipping as DETX=197.973793629471 and we have no time-resolved centroids
Skipping as DETX=199.877047829714 and we have no time-resolved centroids
Skipping as DETX=201.916278851774 and we have no time-resolved centroids
Skipping as DETX=204.499312404134 and we have no time-resolved centroids
Skipping as DETX=207.014376902852 and we have no time-resolved centroids
Created events.txt
The bg to source ratio is 0.0402144772117962
Calling binwtslew.pl  start=103.077346980572 T0=354950664 BINFACT=1.5 COUNTS_MIN=30 GDMAX=12 GDMIN=0 HARD1=1.51 HARD2=10 MAXCADENCE=0.205 MAXCENTRATE=1 MAXEN=10 MAXSLEWRATE=10 MINCENTCTS=20 MINCMIN=15 MINEN=0.3 MINEVT=15 RATEFACT=10 SOFT1=0.3 SOFT2=1.5 T0=354950664 TIMEDEL=0.001766 WTHIRATE=250 WTLORATE=70 WTPUPRATE=120 
Returned 0
Complete OK
