pointcloudset.io.pointcloud.csv module
- pointcloudset.io.pointcloud.csv.read_csv(file_path: Path | str, **kwargs)
Read a CSV pointcloud file into a dataframe.
- Parameters:
file_path – Path to the CSV file.
**kwargs – Additional keyword arguments forwarded to the shared delimited reader. Supports
normalize_xyzto opt in to convertingX/Y/Zheaders tox/y/z.
- Returns:
A dataframe containing pointcloud columns.
- Raises:
ValueError – If parsing fails or required coordinate columns are missing.
- pointcloudset.io.pointcloud.csv.write_csv(pointcloud: PointCloud, file_path: Path, header: bool = True, sep: str = ',') None
Write a pointcloud to a CSV file.
- Parameters:
pointcloud – PointCloud instance to serialize.
file_path – Destination file path.
header – Whether to write a header row. Default is True for CSV files. Same as pandas.
sep – Field delimiter.