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 = 347552192
TIMEDEL = 0.001766
WTHIRATE = 250
WTLORATE = 70
WTPUPRATE = 120
wtslew called for trigger 00511235, with pos 66.1083888310, 64.0385650628 and T0: 347552192
START WAS 

Event list: sw00511235000xwtw2st_cl.evt.gz
Calling extractor to filter first snaphot: 347552192 - 347553192 (0 - 1000) s
Roll angle is 307.27493302486
TIME RANGE: 347552256.985929 - 347552265.507971 (64.9859290122986 - 73.5079709887505)
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: sw00511235000pat.fits.gz
HDFILE: sw00511235000xhd.hk.gz

Got ra/dec pnt of 66.0926185573571,64.0413087774885 from sw00511235000pat.fits.gz
This converts (66.1083888310,64.0385650628) to sky pixels (489.9569,496.3112)

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

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

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

EXL:  pixels


GOTCENTROID= 1

EXL=
Created events.txt
The bg to source ratio is 0.0254957507082153
Calling binwtslew.pl  start=64.9859290122986 T0=347552192 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=347552192 TIMEDEL=0.001766 WTHIRATE=250 WTLORATE=70 WTPUPRATE=120 
Returned 0
Complete OK
