Hello,
I've written a code in Python that reads files in CSV format, that were initially created as TAB files in MapInfo Pro (2019). Instead of reading CSV files, I would like to adapt the code so that it directly reads TAB files.
Does anyone know how could I implement it such that I can access the attributes' values of the TAB file for further process ?
Here below is the piece of code that reads a CSV file.
def loadConcatFile(fileName):
df = pd.read_csv(fileName, skiprows=[0], names=['sliceId', 'offset', 'Ln', 'Lt','Z_m'], sep=',')
df = df.applymap(float)
df['sliceId'] = df.applymap(int)
num = df['sliceId'].values
sliceId = df['sliceId'].unique()
d = df['offset'].values
ln = df['Ln'].values
lt = df['Lt'].values
Z = df['Z_m'].values
....
Thanks for your help !
------------------------------
Annie Royen
RTI Exploration
Tarascon
------------------------------