polyTEM.spatial.spatial_analysisΒΆ

Functions

create_polygons(peaks_df[, alpha, verbose, ...])

create polygon for each cluster group using alpha shape set to concave hull alpha is used to determine the convexity and concavitiy of the final polygon first check if peaks_df["coo"] exists, otherwise create it

domain_length_df(cluster_df[, theta_type, ...])

Get domain size statistics for each cluster in cluster dataframe.

get_domain_gradient(domain_array, ...[, plot])

Note: x,y follows i,j indexing such that x is iterating through the rows and y is iterating through the columns Thus, the parallel orientation is in the direction of y and the perpendicular orientation is in the direction of x, and these follow the conventions of plt.imshow() BUT are inverse to the cartesian coordinates as usually plotted.

plot_polygons_df(cluster_df[, resolution, ...])