Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update stereonet_math.py #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JNDanielson
Copy link

@JNDanielson JNDanielson commented Mar 24, 2021

Currently, the find_fisher_stats, fisher_stats, and mean_vector functions don't calculate Fisher k (kappa) or the mean vector of a group of poles correctly where the group of poles includes orientations which cross a dip=90° (e.g., subvertical joints with steeply north and south dipping orientations will have a flat mean orientation instead of a subvertical one - see example image). This is because the mean vector calc assumes that orientations have directions (i.e. are vector data), which is not true for most data plotted on stereonets, e.g. rock joints, which are really axial data. For axial data, the vectors x and -x are indistinguishable. See Issue #39 for an example of undesired results.
image

This update uses the scatter matrix approach from Directional Statistics (Jupp and Mardia, 2000, pp.165) to estimate mean orientation and dispersion. This fixes the issue described above.

I suppose if the current behaviour is intended, we could add my tweaked functions as new functions or an option in the existing functions. Could modify the functions so that they include a data_type keyword and for data_type = 'axial', it uses the scatter matrix approach, for data_type = 'vector' is uses the current approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant