map2loop.interpolators.strike_dip_vector#

map2loop.interpolators.strike_dip_vector(strike: list | ndarray, dip: list | ndarray) ndarray#

Calculates the strike-dip vector from the given strike and dip angles.

Parameters:
  • strike (Union[float, list, numpy.ndarray]) – The strike angle(s) in degrees. Can be a single value or an array of values.

  • dip (Union[float, list, numpy.ndarray]) – The dip angle(s) in degrees. Can be a single value or an array of values.

Returns:

numpy.ndarray – The calculated strike-dip vector(s). Each row corresponds to a vector, and the columns correspond to the x, y, and z components of the vector.

Note

This code is adapted from LoopStructural.