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 = 296192758.144
TIMEDEL = 0.001766
WTHIRATE = 250
WTLORATE = 70
WTPUPRATE = 120
wtslew called for trigger 00422783, with pos 6.9868696397, 9.4018688662 and T0: 296192758.144
START WAS 

Event list: sw00422783000xwtw2st_cl.evt.gz
Calling extractor to filter first snaphot: 296192758.144 - 296193758.144 (0 - 1000) s
Roll angle is 71.399173111499
TIME RANGE: 296192813.702845 - 296192822.23734 (55.5588449835777 - 64.0933399796486)
LIST of teldef files:
  /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20100101v001.teldef
  /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20100101v001.teldef
SELECTED TELDEF: /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20100101v001.teldef
ATTFILE: sw00422783000pat.fits.gz
HDFILE: sw00422783000xhd.hk.gz

Got ra/dec pnt of 7.02869575025538,9.43174557578391 from sw00422783000pat.fits.gz
This converts (6.9868696397,9.4018688662) to sky pixels (563.5173,454.8771)

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

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

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

EXL:  pixels


GOTCENTROID= 1

EXL=
Skipping as DETX=432.863824697204
Skipping as DETX=423.04894626605
Skipping as DETX=419.67003345501 and we have no time-resolved centroids
Skipping as DETX=418.543725591011 and we have no time-resolved centroids
Skipping as DETX=415.003923207564 and we have no time-resolved centroids
Skipping as DETX=405.188136619589 and we have no time-resolved centroids
Skipping as DETX=401.810784553754 and we have no time-resolved centroids
Skipping as DETX=400.394457019937 and we have no time-resolved centroids
Skipping as DETX=399.522884883559 and we have no time-resolved centroids
Skipping as DETX=398.54237261755 and we have no time-resolved centroids
Skipping as DETX=397.017104954102 and we have no time-resolved centroids
Skipping as DETX=396.472349556663 and we have no time-resolved centroids
Skipping as DETX=396.036592688093 and we have no time-resolved centroids
Skipping as DETX=395.927656208415 and we have no time-resolved centroids
Skipping as DETX=395.382897161024 and we have no time-resolved centroids
Skipping as DETX=394.402388544967 and we have no time-resolved centroids
Skipping as DETX=393.748693017898 and we have no time-resolved centroids
Skipping as DETX=393.639752888267 and we have no time-resolved centroids
Skipping as DETX=393.312874100137 and we have no time-resolved centroids
Skipping as DETX=393.203937620459 and we have no time-resolved centroids
Skipping as DETX=392.768180751889 and we have no time-resolved centroids
Skipping as DETX=391.678669957011 and we have no time-resolved centroids
Skipping as DETX=391.133976608763 and we have no time-resolved centroids
Skipping as DETX=390.698157691002 and we have no time-resolved centroids
Skipping as DETX=390.589217561371 and we have no time-resolved centroids
Created events.txt
The bg to source ratio is 0.0728476821192053
Calling binwtslew.pl  start=55.5588449835777 T0=296192758.144 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=296192758.144 TIMEDEL=0.001766 WTHIRATE=250 WTLORATE=70 WTPUPRATE=120 
Returned 0
Complete OK
