map2loop.utils.normal_vector_to_dipdirection_dip#
- map2loop.utils.normal_vector_to_dipdirection_dip(normal_vector: ndarray) ndarray #
Calculates the dip and dip direction from a normal vector.
- Parameters:
normal_vector (numpy.ndarray) – The normal vector(s) for which to calculate the dip and dip direction. Each row corresponds to a vector, and the columns correspond to the x, y, and z components of the vector.
- Returns:
numpy.ndarray – The calculated dip and dip direction(s). Each row corresponds to a set of dip and dip direction, and the columns correspond to the dip and dip direction, respectively.
Note
This code is adapted from LoopStructural.