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 = 634615254.4
TIMEDEL = 0.001766
WTHIRATE = 250
WTLORATE = 70
WTPUPRATE = 120
wtslew called for trigger 01031728, with pos 262.7717345770, 14.6634822120 and T0: 634615254.4
START WAS 

Event list: sw01031728000xwtw2st_cl.evt.gz
Calling extractor to filter first snaphot: 634615254.4 - 634616254.4 (0 - 1000) s
Roll angle is 112.86921343044
TIME RANGE: 634615320.811171 - 634615330.443392 (66.4111710786819 - 76.0433920621872)
LIST of teldef files:
  /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20190101v001.teldef
  /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20210101v001.teldef
SELECTED TELDEF: /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20210101v001.teldef
ATTFILE: sw01031728000pat.fits.gz
HDFILE: sw01031728000xhd.hk.gz

Got ra/dec pnt of 262.816223855459,14.6495739818943 from sw01031728000pat.fits.gz
This converts (262.7717345770,14.6634822120) to sky pixels (566.2295,521.7466)

Filtered on time as firstvalid is 634615315.81117
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 37 after the slew rate drop to 1 pix/sec, so  centroid
Calling expo map
xrtexpomap clobber=yes checkattitude=yes infile=tocentroid.evt attfile=sw01031728000pat.fits.gz hdfile=sw01031728000xhd.hk.gz stemout=tocentroid outdir=. &> /dev/null
Centroid
Centroiding returned a sky X,Y of 564.836, 519.931
Calling wt_syserr with single positions
Comm: wt_syserr -t 0 -xaf -A 564.836 519.931 /usr/local/swift/caldb/data/swift/xrt/bcf/teldef/swx20210101v001.teldef sw01031728000pat.fits.gz 634615315.811171 634615335.443392 philx2.out 0.5

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

EXL:  pixels


GOTCENTROID= 1

EXL=
Skipping as DETX=157.000231320739
Skipping as DETX=186.875546043301 and we have no time-resolved centroids
Skipping as DETX=198.232413840456 and we have no time-resolved centroids
Skipping as DETX=200.842951330645 and we have no time-resolved centroids
Skipping as DETX=201.828044374497 and we have no time-resolved centroids
Skipping as DETX=201.926575461001 and we have no time-resolved centroids
Skipping as DETX=201.975826152809 and we have no time-resolved centroids
Skipping as DETX=203.847533959146 and we have no time-resolved centroids
Skipping as DETX=204.980408781309 and we have no time-resolved centroids
Skipping as DETX=206.3479967591 and we have no time-resolved centroids
Skipping as DETX=207.598769739075 and we have no time-resolved centroids
Skipping as DETX=208.398752544565 and we have no time-resolved centroids
Skipping as DETX=209.356769038839 and we have no time-resolved centroids
Created events.txt
The bg to source ratio is 0.11864406779661
Calling binwtslew.pl  start=66.4111710786819 T0=634615254.4 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=634615254.4 TIMEDEL=0.001766 WTHIRATE=250 WTLORATE=70 WTPUPRATE=120 
Returned 0
Complete OK
