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 = 335392676.48
TIMEDEL = 0.001766
WTHIRATE = 250
WTLORATE = 70
WTPUPRATE = 120
wtslew called for trigger 00500914, with pos 317.3412698405, -63.9815605025 and T0: 335392676.48
START WAS 

Event list: sw00500914000xwtw2st_cl.evt.gz
Calling extractor to filter first snaphot: 335392676.48 - 335393676.48 (0 - 1000) s
Roll angle is 193.04108601001
TIME RANGE: 335393041.617725 - 335393051.251724 (365.137724995613 - 374.771723985672)
LIST of teldef files:
  /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20110601v001.teldef
  /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20110601v001.teldef
SELECTED TELDEF: /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20110601v001.teldef
ATTFILE: sw00500914000pat.fits.gz
HDFILE: sw00500914000xhd.hk.gz

Got ra/dec pnt of 317.368018644952,-63.9792665161817 from sw00500914000pat.fits.gz
This converts (317.3412698405,-63.9815605025) to sky pixels (518.4192,496.993)

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

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

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

EXL:  pixels


GOTCENTROID= 1

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