0

I am trying to convert an XYZ file to a CSV using Pandas below

import pandas as pd

inputfile = "input.xyz"
df  = pd.read_table(inputfile, delim_whitespace=True, names=['x', 'y', 'z'])


df.to_csv("output.csv", index=False)

Whilst it works, the likes of GDAL is complaining that it is an Ungridded Dataset. Is there anything I can pass in during conversion to ensure it is gridded?

0 Answers0