I am trying to create a numpy array from a geosoft formatted xyz text file. The format uses a '/' to start the header file, then space delimited after. I believe numpy sees the '/' and assigns as column zero.
Header info looks like this
/ Line Aircraft Flight Date JulL Time DateU TimeU Zn Easting Northing Lat Long xTrack ZFid_ms KFid AFid TFRAWT TFUNCT Mag4D VecX VecY VecZ VecTF MagRatio GPSHt Undul Sats HDop DGPS RadAlt BaroHPa Temp Humid CurrAmps Dn Up Samp Live RawTC RawK RawU RawTh Cosm LRange LStr LErr
data = np.genfromtxt(filename, deletechars="/", usecols=(0,18,20,21,22,23),invalid_raise=False, names=True,dtype=None)
data.dtype.names results in below, first column did not create a valid column name
('f0', 'TFRAWT', 'Mag4D', 'VecX', 'VecY', 'VecZ')
I thought deletechars was built for this purpose? Am I not using it correctly?