2. setvector3d

2.1. Description

setvector3d is a class to work on a set of 3d vectors. It is used in aita in the function plotpdf

It can be used to do statisc on every kind of set of 3d vectors

2.2. Function

class AITAToolbox.setvector3d.setvector3d(data)[source]

Object to work on a set of 3d unit vector

OrientationTensor2nd()[source]

Compute the normelized second order orientation tensor

Return eigvalue

eigen value w[i]

Rtype eigvalue

np.array

Return eigvector

eigen vector v[:,i]

Rtype eigvector

np.array

Note

eigen value w[i] is associate to eigen vector v[:,i]

__init__(data)[source]
Parameters

data (np.array) – data is an array of dimention 3

__weakref__

list of weak references to the object (if defined)

cart2spher()[source]

Return vector on spherical coordinate phi theta

Return phi

Angle from the z axis

Rtype phi

np.array

Return theta

Angle within the xOy plane

Rtype theta

np.array

concatenate(v1)[source]

Concatenate 2 set of vector3d

inv()[source]

Create a new set of vector -v

stereoplot(contourf=False, bw=0.03, plotOT=True, nbpoints=0, projz=1, angle=array([30., 60.]), cm=<matplotlib.colors.ListedColormap object>, cline=15, n_jobs=-1)[source]

Plot a stereographic projection of the vector

Parameters
  • contourf (bool) – filled contour plot (default False)

  • bw (float) – bandwidth for Kernel density function (default 0.03). bw=0 mean find the best fit between 0.01 and 1

  • plotOT (bool) – plot the eigen vector on the pole figure (default True)

  • nbpoints (int) – number of random vector selected to compute the pole figure (default 0, mean every pixel are used) Be careful with to many point the computation can be very slow. Up to 10000 it is still reasonable.

  • projz (int) – 0 or 1. It choose the type of projection. 0 (1) means projection in the plane z=0 (1).

  • angle (np.array) – angle in degree for inner circle between 0 and 90 (0 mean no inner circle, default np.array([30.,60.]))

  • cm (cm) – colorbar

  • cline (int) – Number of line in contourf (default 15) Used only when contourf=True.

  • n_jobs (int) – number of job in parellel (CPU). Only use when bw=0 (best fit) (default : -1 mean all processor)

subset(nbpoints)[source]

Select a random subset of the set of vector 3d

Parameters

nbpoints (int) – number of point

Return v

Rtype v

setvector3d