seidart.routines.fabricsynth module¶
- class seidart.routines.fabricsynth.Fabric(params, output_filename='euler_angles.txt', plot=False)¶
Bases:
object- build()¶
Build the object.
- bunge_compute()¶
Compute the euler angles for the z-x-z transform (Bunge’s notation). A space delimited file will be produced from the output.
- custom_cmap(n_colors=100)¶
Compute a custom colormap for the density plot.
- Parameters:
n_colors (int) – The number of colors to be used to compute the colormap. Default is 100.
- generate_trends_plunges()¶
Create a set of trends and plunges according to a distribution.
- projection_plot(density_sigma=3)¶
Create the stereonet plot. The axes and figure inputs are useful when creating subplots since replacing empty axes objects with mplstereonet axes objects is not straightforward.
- Parameters:
density_sigma (float) – The bandwidth parameter for the density plot. A larger number uses a broader kernel and will smooth the data. Default is 3.
- rotation_matrix_to_euler_angles(rotation_matrix)¶
Convert rotation matrix to Euler angles
- Parameters:
rotation_matrix (np.ndarray) – The 3-by-3 orthogonal rotation matrix
- trend_plunge_to_rotation_matrix(trend, plunge)¶
Compute the rotation matrix from a trend and plunge pair.
- Parameters:
trend (float) – The trend value in degrees
plunge (float) – The plunge value in degrees
- Returns:
rotation_matrix
- Return type:
np.ndarray