parq_blockmodel.utils.orientation_utils.calculate_orientation
- parq_blockmodel.utils.orientation_utils.calculate_orientation(blocks, query=None)[source]
Calculate the orientation (bearing, dip, plunge) of block centroids.
- Parameters:
blocks (pd.DataFrame) – DataFrame containing block centroids with x, y, z columns.
query (Optional[str]) – Optional query string to filter the DataFrame.
- Returns:
Either 3 vectors (u, v, w) or a DataFrame with bearing, dip, and plunge in degrees.
- Return type:
Union[Tuple[np.ndarray, np.ndarray, np.ndarray], pd.DataFrame]