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
__init__
instantiate an azim, dip object
from_vector
classmethod
instantiate an azim dip vector object from a dip vector
:param dipvec 3D vector (np.array)
azimdip2Vector
convert azimuth and dip spherical coordinates to a cartesianvector in the dip direction
:return cartesian coordinates of the azimdip directon(x, y, z)
azimdip2normal
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
swap to the normal of azim,dip plane (azim,dip) -> (azim+180, 90-dip), preserving sign of dip
plane2normal_ref
convert azimuth and dip spherical coordinates to its normal or vice versa
plane2normal
convert azimuth and dip spherical coordinates to its normal or vice versa, forcing dip>0
normalize_vector
classmethod
normalize a 3D vector
:param vec: np array with 3 elements :return: normalized vector