Skip to content

pywellgeo.transformations

pywellgeo.transformations.azim_dip.AzimDip

AzimDip class, spherical coordinates and its conversion to vector notation using the following convention

  • azmimuth = 0 corresponds to positive y-axis
  • azimuth = 90 corresponds to positive x-axis
  • dip >0 corresponds to negative z axis

azim property writable

azim

degrees of the azimuth (from 0 to 360, 0 is north)

dip property writable

dip

degrees of the dip (from -90 to 90, 0 is horizontal)

__init__

__init__(
    azim: Union[float64, int], dip: Union[float64, int]
) -> None

instantiate an azim, dip object

copy classmethod

copy()

create a deep copy of the object

:return: deep copy of the object

from_vector classmethod

from_vector(dipvec: ndarray) -> AzimDip

instantiate an azim dip vector object from a dip vector

:param dipvec 3D vector (np.array)

azimdip2Vector

azimdip2Vector(n: ndarray = None) -> ndarray

convert azimuth and dip spherical coordinates to a cartesianvector in the dip direction

:return cartesian coordinates of the azimdip directon(x, y, z)

azimdip2normal

azimdip2normal(n: ndarray = None) -> ndarray

convert azimuth and dip spherical coordinates to a cartesianvector in the normal direction of the plane dipping in azim and dip

:return cartesian coordinates of the normal directon(x, y, z)

swapnormal

swapnormal() -> None

swap to the normal of azim,dip plane (azim,dip) -> (azim+180, 90-dip), preserving sign of dip

swapsign

swapsign()

swap the sign of the dip. (azim,dip) -> (azim+180, -dip)

plane2normal_ref

plane2normal_ref()

convert azimuth and dip spherical coordinates to its normal or vice versa

plane2normal

plane2normal() -> None

convert azimuth and dip spherical coordinates to its normal or vice versa, forcing dip>0

normalize_vector classmethod

normalize_vector(vec: ndarray) -> ndarray

normalize a 3D vector

:param vec: np array with 3 elements :return: normalized vector

test classmethod

test()

test the AzimDip class