xdem.EPC.from_xyz

Contents

xdem.EPC.from_xyz#

classmethod EPC.from_xyz(x, y, z, crs, data_column=None, use_z=False)#

Create point cloud from three 1D array-like coordinates for X/Y/Z.

Note that this is the most modular method to create a point cloud, as it allows to specify different data types for the different coordinates or columns.

Parameters:
  • x (TypeAliasType) – X coordinates of point cloud.

  • y (TypeAliasType) – Y coordinates of point cloud.

  • z (TypeAliasType) – Z values of point cloud.

  • crs (CRS) – Coordinate reference system.

  • data_column (str | None) – Data column name to associate to 2D point geometries (defaults to “z” if none is passed).

  • use_z (bool) – Use 3D point geometries with Z coordinates instead of a data column.

Return type:

PointCloud

:return Point cloud.