polyTEM.spatial.spatial_analysis.get_domain_gradient

polyTEM.spatial.spatial_analysis.get_domain_gradient(domain_array, center_index, center_orientation, plot=True)

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.