parq_blockmodel.utils.orientation_utils.compute_orientation
- parq_blockmodel.utils.orientation_utils.compute_orientation(centroids)[source]
Compute the azimuth, dip, and plunge angles of the main axis of a set of centroids.
- Parameters:
centroids (
ndarray
) – A 2D numpy array of shape (N, 3) where N is the number of centroids and each row represents a centroid’s (x, y, z) coordinates.- Return type:
tuple
[float
,float
,float
]- Returns:
A tuple containing the azimuth, dip, and plunge angles in degrees.